|
@@ -53,18 +53,23 @@ class ComonQrd
|
|
|
$payArr=array_column($assoc->toArray(),"cancel_fee","orderCode");
|
|
|
$tag=[];
|
|
|
$qrdSave=[];
|
|
|
+ IF($bool==false){
|
|
|
+ $tagLog=TagLog::where(["code"=>$data['invNo'],"tag_id"=>107])->column("id","code");
|
|
|
+ }
|
|
|
foreach ($orderArr as $item){
|
|
|
if(!isset($payArr[$item->sequenceNo]))continue;
|
|
|
- $tag_temp=[
|
|
|
- 'code'=>$item->sequenceNo,
|
|
|
- 'tag_id'=>107,//开票申请同步QR
|
|
|
- 'creater'=>'system',
|
|
|
- 'createrid'=>0,
|
|
|
- 'tag_fee'=>0,
|
|
|
- 'tag_img'=>'',
|
|
|
- "tag_code"=>$data['invNo'],
|
|
|
- 'status'=>$bool?1:0
|
|
|
- ];
|
|
|
+ if($bool==false &&!isset($tagLog[$data['invNo']])) continue;
|
|
|
+ $tag_temp=[
|
|
|
+ "id"=>$bool?null:$tagLog[$data['invNo']],
|
|
|
+ 'code'=>$item->sequenceNo,
|
|
|
+ 'tag_id'=>107,//开票申请同步QR
|
|
|
+ 'creater'=>'system',
|
|
|
+ 'createrid'=>0,
|
|
|
+ 'tag_fee'=>0,
|
|
|
+ 'tag_img'=>'',
|
|
|
+ "tag_code"=>$data['invNo'],
|
|
|
+ 'status'=>$bool?1:0
|
|
|
+ ];
|
|
|
$qrd=[
|
|
|
'id'=>$item->id,
|
|
|
'apay_fee'=>$item->apay_fee,
|