From 3af3a3d37c1d1dc0e34666786c960b4a72cac889 Mon Sep 17 00:00:00 2001 From: aike <17730485278@139.com> Date: Tue, 25 Nov 2025 17:22:08 +0800 Subject: [PATCH] =?UTF-8?q?demand:=20=20=20=E5=AE=A2=E6=88=B7=E8=B4=A6?= =?UTF-8?q?=E5=8D=95=E6=9F=A5=E8=AF=A2-cpu=E9=A3=99=E5=8D=87=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=AE=9A=E4=BD=8D=E8=A7=A3=E5=86=B3=20committer:=20he?= =?UTF-8?q?yu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/EmisWaybillServiceImpl.java | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java index 8827a3f1d..08144427c 100644 --- a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillServiceImpl.java @@ -157,32 +157,32 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb * @param emisWaybillSave */ private void saveOrUpdateWaybillOther(EmisWaybill emisWaybillSave) { - if (emisWaybillSave == null || emisWaybillSave.getId() == null) { - return; - } - - String salesSupport = emisWaybillSave.getSalesSupport(); - String billCode = emisWaybillSave.getBillCode(); - Long waybillId = emisWaybillSave.getId(); - - // 查询是否已存在 - EmisWaybillOther existing = emisWaybillOtherMapper.selectEmisWaybillOtherByWaybillId(waybillId); - - if (existing != null) { - // 更新 - existing.setSalesSupport(salesSupport); - existing.setBillCode(billCode); - existing.preUpdate(); - emisWaybillOtherMapper.updateEmisWaybillOther(existing); - } else { - // 新增 - EmisWaybillOther waybillOtherEntity = new EmisWaybillOther(); - waybillOtherEntity.setWaybillId(waybillId); - waybillOtherEntity.setBillCode(billCode); - waybillOtherEntity.setSalesSupport(salesSupport); - waybillOtherEntity.preInsert(); - emisWaybillOtherMapper.insertEmisWaybillOther(waybillOtherEntity); - } +// if (emisWaybillSave == null || emisWaybillSave.getId() == null) { +// return; +// } +// +// String salesSupport = emisWaybillSave.getSalesSupport(); +// String billCode = emisWaybillSave.getBillCode(); +// Long waybillId = emisWaybillSave.getId(); +// +// // 查询是否已存在 +// EmisWaybillOther existing = emisWaybillOtherMapper.selectEmisWaybillOtherByWaybillId(waybillId); +// +// if (existing != null) { +// // 更新 +// existing.setSalesSupport(salesSupport); +// existing.setBillCode(billCode); +// existing.preUpdate(); +// emisWaybillOtherMapper.updateEmisWaybillOther(existing); +// } else { +// // 新增 +// EmisWaybillOther waybillOtherEntity = new EmisWaybillOther(); +// waybillOtherEntity.setWaybillId(waybillId); +// waybillOtherEntity.setBillCode(billCode); +// waybillOtherEntity.setSalesSupport(salesSupport); +// waybillOtherEntity.preInsert(); +// emisWaybillOtherMapper.insertEmisWaybillOther(waybillOtherEntity); +// } } /**