From fcbb4059f11d1e2b320d581bf6f960d9965142c6 Mon Sep 17 00:00:00 2001 From: pjb <123456> Date: 星期二, 08 七月 2025 08:58:18 +0800 Subject: [PATCH] Merge branch 'ycds-wms-dev' of http://47.97.1.152:5880/r/zy-asrs-master into ycds-wms-dev --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderServiceImpl.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderServiceImpl.java index 85dbb26..dc85947 100644 --- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderServiceImpl.java +++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderServiceImpl.java @@ -19,10 +19,7 @@ import org.springframework.transaction.annotation.Transactional; import java.text.SimpleDateFormat; -import java.util.Collections; -import java.util.Date; -import java.util.HashMap; -import java.util.List; +import java.util.*; @Service("orderService") public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService { @@ -67,6 +64,9 @@ Order order = new Order(); order.setOrderNo(orderNo); order.setOrderType(param.getOrderType()); + order.setCustomer(param.getCustomer()); + order.setPhone(param.getPhone()); + order.setAddress(param.getAddress()); order.setOrderSettle(OrderSettleType.INIT.val()); order.setIoPri(orderUtils.getIoPri()); order.setOrderTime(format.format(new Date())); @@ -132,7 +132,7 @@ throw new CoolException("鏇存柊鏄庣粏绱㈠紩澶辫触"); } - mat.setUtiliz(mat.getUtiliz() + 1); + mat.setUtiliz(Objects.isNull(mat.getUtiliz()) ? 0 : mat.getUtiliz() + 1); if (!matService.updateById(mat)) { throw new CoolException("鐗╂枡浣跨敤鐜囦慨鏀瑰け璐ワ紒锛�"); -- Gitblit v1.9.1