From b899d2388df844378ff6f2c495febf09447d954d Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期五, 27 十二月 2024 19:51:39 +0800 Subject: [PATCH] #问题修复 # 3.生成任务档作业中数量没变 4.合并订单生成任务,只生成了其中一个 5.103任务完成后,订单状态未修改 6.库位订数量未减少 --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java index cb1c1dc..afc4f30 100644 --- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java +++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java @@ -12,8 +12,10 @@ import com.zy.asrs.wms.asrs.service.MobileService; import com.zy.asrs.wms.asrs.service.OrderService; import com.zy.asrs.wms.system.controller.BaseController; +import com.zy.asrs.wms.system.entity.Host; import com.zy.asrs.wms.system.entity.User; import com.zy.asrs.wms.system.entity.UserLogin; +import com.zy.asrs.wms.system.service.HostService; import com.zy.asrs.wms.system.service.UserLoginService; import com.zy.asrs.wms.system.service.UserService; import io.jsonwebtoken.lang.Collections; @@ -30,7 +32,6 @@ @Value("${super.pwd}") private String superPwd; - @Autowired private UserService userService; @Autowired @@ -40,6 +41,15 @@ @Autowired private MobileService mobileService; + /** + * 鑾峰彇鐢ㄦ埛鏈烘瀯 + * @return + */ + @GetMapping("/current/host") + public R getUserHost() { + List<Host> hosts = mobileService.getHosts(); + return R.ok(hosts); + } /** * 鍏ュ簱鍗曟嵁--鎵爜鑾峰彇璁㈠崟鏄庣粏鍒楄〃 @@ -56,9 +66,9 @@ if (!(order.getOrderType() == 1)) { return R.error("闈炲叆搴撹鍗曪紝 涓嶅彲鎿嶄綔锛侊紒"); } - if (order.getOrderSettle() > 2) { - return R.error("鍗曟嵁褰撳墠鐘舵�佷笉鍙仛鍏ュ簱鎿嶄綔锛侊紒"); - } +// if (order.getOrderSettle() > 2) { +// return R.error("鍗曟嵁褰撳墠鐘舵�佷笉鍙仛鍏ュ簱鎿嶄綔锛侊紒"); +// } List<OrderInfoDto> orders = orderService.getDetlForOrderId(order.getId()); return R.ok(orders); @@ -130,4 +140,5 @@ return R.ok("缁勬墭澶辫触锛侊紒"); } } + } -- Gitblit v1.9.1