|
@@ -131,7 +131,7 @@ class ComonOrder extends Base
|
|
|
CgdInfo::where(["sequenceNo"=>array_column($list,"cgdNo")])->save(['status'=>1]);
|
|
|
|
|
|
$report =ReportCode::where(['cgdNo'=>array_column($list,'cgdNo')])->select();
|
|
|
- if($report->isEmpty()==false)$report->update(['payNo'=>Db::raw("CONCAT(payNo,{$payNo})")]);
|
|
|
+ if($report->isEmpty()==false)$report->update(['payNo'=>Db::raw("CONCAT(payNo,',','{$payNo}')")]);
|
|
|
$this->model->commit();
|
|
|
}else throw new Exception('采购单对账单创建失败');
|
|
|
}catch (\Exception $exception){
|
|
@@ -236,7 +236,7 @@ class ComonOrder extends Base
|
|
|
CgdInfo::where(['sequenceNo'=>$add])->save(['status'=>1]);
|
|
|
CgdInfo::where(['sequenceNo'=>$remove])->save(['status'=>0]);
|
|
|
$report =ReportCode::where(['cgdNo'=>$add])->select();
|
|
|
- if($report->isEmpty()==false)$report->update(['payNo'=>Db::raw("CONCAT(payNo,{$param['payNo']})")]);
|
|
|
+ if($report->isEmpty()==false)$report->update(['payNo'=>Db::raw("CONCAT(payNo,',','{$param['payNo']}')")]);
|
|
|
$reports =ReportCode::where(['cgdNo'=>$remove])->select();
|
|
|
if($reports->isEmpty()==false)$reports->update(['payNo'=>Db::raw("REPLACE(payNo,',{$param['payNo']}','')")]);
|
|
|
$this->model->commit();
|
|
@@ -438,7 +438,7 @@ class ComonOrder extends Base
|
|
|
$payIn = InvoicePay::create(["invNo"=>$invNo,"payNo"=>$param["payNo"]]);
|
|
|
if($payIn->isEmpty()) throw new Exception('开票信息创建失败');
|
|
|
$report =ReportCode::where(['qrdNo'=>array_column($param['orderArr'],'sequenceNo')])->select();
|
|
|
- if($report->isEmpty()==false)$report->update(["invNo"=>Db::raw("CONCAT(invNo,',',{$invNo})")]);
|
|
|
+ if($report->isEmpty()==false)$report->update(["invNo"=>Db::raw("CONCAT(invNo,',','{$invNo}')")]);
|
|
|
$this->model->commit();
|
|
|
|
|
|
}catch (\Exception $exception){
|