提交 492a2c4f authored 作者: chengye's avatar chengye

缴费单在保存时同时保存创建人ID

上级 67e1cd03
...@@ -223,6 +223,7 @@ class Payment extends Base ...@@ -223,6 +223,7 @@ class Payment extends Base
$pData['em_id'] = '\\'; //占位符,表示空的无效的 $pData['em_id'] = '\\'; //占位符,表示空的无效的
$pData['payment_type'] = 1; $pData['payment_type'] = 1;
$pData['balance'] = $pData['amount'] = round($amount,2); $pData['balance'] = $pData['amount'] = round($amount,2);
$pData['uid'] = $this->uid;
if((new EmPayment())->save($pData)){ if((new EmPayment())->save($pData)){
return json(['status'=>1,'message'=>'已创建缴费单']); return json(['status'=>1,'message'=>'已创建缴费单']);
...@@ -370,7 +371,7 @@ class Payment extends Base ...@@ -370,7 +371,7 @@ class Payment extends Base
$paymentModel->account_id = $accountId; $paymentModel->account_id = $accountId;
$paymentModel->balance = $data['amount']; $paymentModel->balance = $data['amount'];
$paymentModel->staff_id = $data['staff_id']; $paymentModel->staff_id = $data['staff_id'];
$paymentModel->cid = $this->uid; $paymentModel->uid = $this->uid;
$paymentModel->payment_type = $em->em_type_id; $paymentModel->payment_type = $em->em_type_id;
// $paymentModel->is_check = $em->em_type_id == 2 || $em->em_type_id == 4 ? 0 : 1; // $paymentModel->is_check = $em->em_type_id == 2 || $em->em_type_id == 4 ? 0 : 1;
$paymentModel->status = 0; $paymentModel->status = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论