|
|
|
@ -564,7 +564,7 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
|
$saveData = [
|
|
|
|
|
"pay_type"=>3,
|
|
|
|
|
"pay_status"=>1,
|
|
|
|
|
"pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time]),'pay_time'=>time()
|
|
|
|
|
"pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time]),'pay_time'=>strtotime($payment_time)
|
|
|
|
|
];
|
|
|
|
|
if($info_id) {
|
|
|
|
|
$companyStatementInfo->where(['id'=>['in',$info_id]])->save($saveData);
|
|
|
|
@ -575,7 +575,7 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
|
"pay_type"=>3,
|
|
|
|
|
"pay_status"=>2,
|
|
|
|
|
"pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time])
|
|
|
|
|
,'pay_time'=>time()
|
|
|
|
|
,'pay_time'=>strtotime($payment_time)
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
$unPayData = SM("company_statement_info_part","tab_")
|
|
|
|
@ -611,7 +611,7 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
|
|
|
|
|
|
SM("company_statement_info_part","tab_")
|
|
|
|
|
->where(['info_id'=>$value['id'],'pay_status'=>['neq',1]])
|
|
|
|
|
->save(["pay_status"=>1,'pay_time'=>time()]);
|
|
|
|
|
->save(["pay_status"=>1,'pay_time'=>strtotime($payment_time)]);
|
|
|
|
|
|
|
|
|
|
if($value['statement_money'] - $handlePayData[$value['id']] <=0) {
|
|
|
|
|
//打款成功
|
|
|
|
@ -621,7 +621,7 @@ class CompanyStatementOfflineController extends ThinkController
|
|
|
|
|
"pay_status"=>1,
|
|
|
|
|
"pay_info"=>json_encode(["payment_user"=>$_SESSION['onethink_admin']['user_auth']["username"],"payment_time"=>$payment_time]),
|
|
|
|
|
"remark"=>$saveData['remark'],
|
|
|
|
|
'pay_time'=>time()
|
|
|
|
|
'pay_time'=>strtotime($payment_time)
|
|
|
|
|
]);
|
|
|
|
|
} else {
|
|
|
|
|
$companyStatementInfo->where(['id'=>$value['id']])->save($saveData);
|
|
|
|
|