|
|
|
@ -1055,7 +1055,7 @@ class PaymentController extends BaseController
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|
foreach ($companyStatementInfo as $key => $value) {
|
|
|
|
|
if ($value['statement_money'] < 0) {
|
|
|
|
|
if ($value['statement_money'] <= 0) {
|
|
|
|
|
$payres["remark"] = '打款金额非正,直接打款成功';
|
|
|
|
|
|
|
|
|
|
$pay_info = json_encode($payres, JSON_UNESCAPED_UNICODE);
|
|
|
|
@ -1069,6 +1069,16 @@ class PaymentController extends BaseController
|
|
|
|
|
'statement_info_id'=>['in',$value['id']]
|
|
|
|
|
])
|
|
|
|
|
->save(['pay_status'=>1,'pay_time'=>time(),'pay_type'=>2,'pay_info'=>$pay_info]);
|
|
|
|
|
} else {
|
|
|
|
|
$payres["remark"] = '打款金额非正,直接打款成功';
|
|
|
|
|
|
|
|
|
|
$pay_info = json_encode($payres, JSON_UNESCAPED_UNICODE);
|
|
|
|
|
M("pay_statement_info","tab_")
|
|
|
|
|
->where([
|
|
|
|
|
'statement_info_id'=>['in',$value['id']],
|
|
|
|
|
'statement_money'=>['elt',0]
|
|
|
|
|
])
|
|
|
|
|
->save(['pay_status'=>1,'pay_time'=>time(),'pay_type'=>2,'pay_info'=>$pay_info]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|