Commit 43196aba authored by 李健华's avatar 李健华

判断物流信息异常修改

parent 23cd7ca3
...@@ -412,7 +412,12 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -412,7 +412,12 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
continue; continue;
} }
TransactionReceiptVO vo = transactionReceiptVOList.get(0); TransactionReceiptVO vo = transactionReceiptVOList.get(0);
if(vo.getLogisticsList().size() <= 5) { Integer logisticsDetailCount = 0;
for (LogisticsVO logisticsVO: vo.getLogisticsList()) {
logisticsDetailCount += logisticsVO.getDetailList().size();
}
if(logisticsDetailCount <= 5) {
// 物流信息异常 // 物流信息异常
record.setExportStatus(VoucherExportStatus.EXPORT_WARN.getCode()); record.setExportStatus(VoucherExportStatus.EXPORT_WARN.getCode());
transactionReceiptRecordRepo.save(record); transactionReceiptRecordRepo.save(record);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment