From 6f90108a414a56d01b503e37cbbcdbf5965cd362 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Mon, 19 Jun 2023 16:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4diam?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hfkj/service/impl/BsDeviceOrderServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/service/src/main/java/com/hfkj/service/impl/BsDeviceOrderServiceImpl.java b/service/src/main/java/com/hfkj/service/impl/BsDeviceOrderServiceImpl.java index 8c25064..3a9d0ec 100644 --- a/service/src/main/java/com/hfkj/service/impl/BsDeviceOrderServiceImpl.java +++ b/service/src/main/java/com/hfkj/service/impl/BsDeviceOrderServiceImpl.java @@ -138,6 +138,8 @@ public class BsDeviceOrderServiceImpl implements BsDeviceOrderService { if (device.getStoreId() != null) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "设备编号:"+device.getDeviceNo() + "无法分配,已分配给" + device.getStoreName()); } + device.setSalesmanId(order.getSalesmanId()); + device.setSalesmanName(order.getSalesmanName()); device.setMerId(order.getMerId()); device.setMerName(order.getMerName()); device.setStoreId(order.getStoreId()); @@ -194,6 +196,8 @@ public class BsDeviceOrderServiceImpl implements BsDeviceOrderService { if (!payQrCode.getStatus().equals(PayQrCodeStatusEnum.status1.getNumber())) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "支付码状态错误"); } + payQrCode.setSalesmanId(order.getSalesmanId()); + payQrCode.setSalesmanName(order.getSalesmanName()); payQrCode.setStoreId(order.getStoreId()); payQrCode.setStoreName(order.getStoreName()); payQrCode.setStoreBindTime(new Date()); @@ -201,7 +205,6 @@ public class BsDeviceOrderServiceImpl implements BsDeviceOrderService { payQrCode.setMerName(order.getMerName()); payQrCodeService.editData(payQrCode, null); - BsDeviceOrderAssign orderAssign = new BsDeviceOrderAssign(); orderAssign.setOrderId(order.getId()); orderAssign.setOrderNo(order.getOrderNo());