From 3e547e284c314fecf79f0742c440d83b5e329743 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Fri, 22 Nov 2024 17:24:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/thrsys/impl/ThrInvOrderServiceImpl.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java index 7e74c8aad..5a14a0d8b 100644 --- a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java +++ b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java @@ -961,9 +961,13 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { }); if (thrInvOrderDetails.size() == fullGen.intValue()) { thrInvOrder.setGenStatus(2); + thrInvOrder.setStatus(ConstantStatus.SFIO_CFMD);//已确认 + thrInvOrder.setUpdateTime(new Date()); thrInvOrderMapper.updateById(thrInvOrder); } else if (thrInvOrder.getGenStatus() < 1 && fullGen.intValue() > 0) { thrInvOrder.setGenStatus(2); + thrInvOrder.setStatus(ConstantStatus.SFIO_CFMD);//已确认 + thrInvOrder.setUpdateTime(new Date()); thrInvOrderMapper.updateById(thrInvOrder); } @@ -1035,6 +1039,8 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { e.printStackTrace(); log.error("生成单据异常", ExceptionUtils.getStackTrace(e)); thrInvOrder.setGenStatus(2); + thrInvOrder.setStatus(ConstantStatus.SFIO_CFMD);//已确认 + thrInvOrder.setUpdateTime(new Date()); thrInvOrder.setRemark(new Date() + "出现异常"); thrInvOrderMapper.updateById(thrInvOrder); } @@ -1109,6 +1115,8 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { thrInvOrderDetailMapper.updateBatchById(thrInvOrderDetails); thrInvOrder.setToBillNo(toBillNo); thrInvOrder.setGenStatus(3); + thrInvOrder.setStatus(ConstantStatus.SFIO_CFMD);//已确认 + thrInvOrder.setUpdateTime(new Date()); thrInvOrderMapper.updateById(thrInvOrder); ioOrderService.insertOrder(ioOrderEntity); ioOrderDetailBizService.batchInsertBizs(newOrderDetailBiz); @@ -1275,6 +1283,8 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { toBillNo = toBillNo.substring(1); } thrInvOrder.setToBillNo(toBillNo); + thrInvOrder.setStatus(ConstantStatus.SFIO_CFMD);//已确认 + thrInvOrder.setUpdateTime(new Date()); thrInvOrderMapper.updateById(thrInvOrder); thrInvOrderDetails.forEach(item -> { @@ -1371,6 +1381,8 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { toBillNo = toBillNo.substring(1); } thrInvOrder.setToBillNo(toBillNo); + thrInvOrder.setStatus(ConstantStatus.SFIO_CFMD);//已确认 + thrInvOrder.setUpdateTime(new Date()); thrInvOrderMapper.updateById(thrInvOrder); thrInvOrderDetailMapper.updateBatchById(generatethrInvOrderDetails);