|
|
@ -364,14 +364,29 @@ class OldCountController extends \Think\Controller
|
|
|
|
foreach ($data as $key => $value) {
|
|
|
|
foreach ($data as $key => $value) {
|
|
|
|
|
|
|
|
|
|
|
|
$statement_info = json_decode($value['statement_info'],true);
|
|
|
|
$statement_info = json_decode($value['statement_info'],true);
|
|
|
|
$statement_info[0]['game_list'][0]['fine'] = $value['fine'];
|
|
|
|
$statement_info[0]['fine'] = $value['fine'];
|
|
|
|
$statement_info[0]['game_list'][0]['reward'] = $value['reward'];
|
|
|
|
$statement_info[0]['reward'] = $value['reward'];
|
|
|
|
$statement_info = json_encode($statement_info);
|
|
|
|
$statement_info = json_encode($statement_info);
|
|
|
|
|
|
|
|
|
|
|
|
M("company_lack_statement_info","tab_")->where(['id'=>$value['id']])->save(['statement_info'=>$statement_info]);
|
|
|
|
M("company_lack_statement_info","tab_")->where(['id'=>$value['id']])->save(['statement_info'=>$statement_info]);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$data = M("company_statement_info","tab_")
|
|
|
|
|
|
|
|
->where("(fine > 0 or reward > 0) and company_type != 2")
|
|
|
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($data as $key => $value) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$statement_info = json_decode($value['statement_info'],true);
|
|
|
|
|
|
|
|
$statement_info[0]['fine'] = $value['fine'];
|
|
|
|
|
|
|
|
$statement_info[0]['reward'] = $value['reward'];
|
|
|
|
|
|
|
|
$statement_info = json_encode($statement_info);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
M("company_statement_info","tab_")->where(['id'=>$value['id']])->save(['statement_info'=>$statement_info]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
echo "success";
|
|
|
|
echo "success";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|