From 6b0de8728028b822c68aeb796ab375c48984884b Mon Sep 17 00:00:00 2001 From: zyx Date: Sun, 6 Dec 2020 18:37:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=BB=93=E7=AE=97=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/OldCountController.class.php | 17 ++--------------- .../View/CompanyStatementPool/editPuPool.html | 6 ++++-- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/Application/Admin/Controller/OldCountController.class.php b/Application/Admin/Controller/OldCountController.class.php index 49cb28cdd..100bb2b09 100644 --- a/Application/Admin/Controller/OldCountController.class.php +++ b/Application/Admin/Controller/OldCountController.class.php @@ -12,7 +12,7 @@ class OldCountController extends \Think\Controller public function oldRewardChange() { - $data = M("company_statement_info","tab_") + $data = M("company_lack_statement_info","tab_") ->where("(fine > 0 or reward > 0) and company_type = 2") ->select(); @@ -23,20 +23,7 @@ class OldCountController extends \Think\Controller $statement_info[0]['game_list'][0]['reward'] = $value['reward']; $statement_info = json_encode($statement_info); - M("company_statement_info","tab_")->where(['id'=>$value['id']])->save(['statement_info'=>$statement_info]); - - } - - - $pool_data = M("company_statement_pool",'tab_')->where(['id'=>['in',[22,27]]])->select(); - foreach ($pool_data as $key => $value) { - - $save = json_decode($value['verify_log'],true); - $save['firstverify_user'] = $save['verify_user']; - $save['firstverify_time'] = $save['verify_time']; - $save = json_encode($save); - - M('company_statement_pool','tab_')->where(['id'=>$value['id']])->save(['verify_log'=>$save]); + M("company_lack_statement_info","tab_")->where(['id'=>$value['id']])->save(['statement_info'=>$statement_info]); } diff --git a/Application/Admin/View/CompanyStatementPool/editPuPool.html b/Application/Admin/View/CompanyStatementPool/editPuPool.html index cdb9aebdd..7af8604e3 100644 --- a/Application/Admin/View/CompanyStatementPool/editPuPool.html +++ b/Application/Admin/View/CompanyStatementPool/editPuPool.html @@ -172,8 +172,10 @@ {$com['statement_info'][0]['game_list'][0]['sum_money']} - {$com['reward']} - {$com['fine']} + + + {$com['statement_info'][0]['reward']||default="0"} + {$com['statement_info'][0]['fine']||default="0"}