|
@@ -649,7 +649,7 @@ class Payment extends BaseController
|
|
|
|
|
|
/**
|
|
|
* 付款申请审核状态
|
|
|
- * 付款审核状态 0待发起 1待业务审核 2 待回执 3付款完成 4 驳回
|
|
|
+ * 付款审核状态 0待发起 1待业务审核 2 待回执 3付款完成 4 驳回 5 付款已退
|
|
|
* @param int $id
|
|
|
* @return \think\Response
|
|
|
*/
|
|
@@ -1538,7 +1538,7 @@ class Payment extends BaseController
|
|
|
if($valide->check($param)==false)return error_show(1004,$valide->getError());
|
|
|
$hpinfo =Db::name("pay_payment")->where([["dzNo","=",$param['dzNo']],["is_del","=",0]])->findOrEmpty();
|
|
|
if(empty($hpinfo)) return error_show(1004,"付款信息未找到");
|
|
|
-// if($hpinfo['status']!=3)return error_show(1004,"付款信息流程未完成");
|
|
|
+ if($hpinfo['status']!=3)return error_show(1004,"付款信息流程未完成");
|
|
|
$isR=Db::name("pay_return")->where(["orderCode"=>$param['dzNo'],"status"=>[1,2],"is_del"=>0])->findOrEmpty();
|
|
|
if(!empty($isR))return error_show(1004,"付款信息退款流程已存在");
|
|
|
$returnCode =makeNo("RP");
|
|
@@ -1607,7 +1607,7 @@ class Payment extends BaseController
|
|
|
if(empty($invinfo))throw new Exception("付款详情未找到");
|
|
|
$pay =Db::name("pay")->where(["payNo"=>$returninfo['payNo'],"is_del"=>0])->findOrEmpty();
|
|
|
if(empty($pay))throw new Exception("对账详情未找到");
|
|
|
- $invup =Db::name("pay_payment")->where($invinfo)->update(["status"=>4,"updatetime"=>date("Y-m-d H:i:s")]);
|
|
|
+ $invup =Db::name("pay_payment")->where($invinfo)->update(["status"=>5,"updatetime"=>date("Y-m-d H:i:s")]);
|
|
|
if($invup==false)throw new Exception("付款更新失败");
|
|
|
|
|
|
$paydata=[
|