Browse Source

结报逻辑优化2

master
wanghongjun 1 year ago
parent
commit
871d0177cc
  1. 2
      app/service/invoice/InvoiceIssuanceService.php

2
app/service/invoice/InvoiceIssuanceService.php

@ -433,6 +433,7 @@ class InvoiceIssuanceService
$FinalReportData = new FinalReportData(); $FinalReportData = new FinalReportData();
$save = []; $save = [];
if (isset($daiZhengSummaryQuery['cxwjbList'])) {
foreach ($daiZhengSummaryQuery['cxwjbList'] as $value) { foreach ($daiZhengSummaryQuery['cxwjbList'] as $value) {
foreach ($value['cxwjbVO'] as $val) { foreach ($value['cxwjbVO'] as $val) {
$sbpch = $val['sbpch']; // 申报批次号 $sbpch = $val['sbpch']; // 申报批次号
@ -449,6 +450,7 @@ class InvoiceIssuanceService
$save[] = $queryWhere; $save[] = $queryWhere;
} }
} }
}
if (!$save) { if (!$save) {
throw new FuncException($daiZhengSummaryQuery['message'] ?? '数据储存失败'); throw new FuncException($daiZhengSummaryQuery['message'] ?? '数据储存失败');

Loading…
Cancel
Save