From 735a9d992e0c1fffbbe942097115b3d0888ca6c0 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期二, 08 七月 2025 10:12:58 +0800 Subject: [PATCH] no message --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 41 insertions(+), 6 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 39f9fe5..db6218b 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 @@ -13,6 +13,7 @@ import com.zy.asrs.wms.asrs.entity.dto.OrderInfoDto; import com.zy.asrs.wms.asrs.entity.dto.PickSheetDetlDto; import com.zy.asrs.wms.asrs.entity.dto.ShippingOrderDetlDto; +import com.zy.asrs.wms.asrs.entity.enums.OrderType; import com.zy.asrs.wms.asrs.entity.param.BatchMergeOrdersParam; import com.zy.asrs.wms.asrs.entity.param.PakinOnShelvesParams; import com.zy.asrs.wms.asrs.service.MobileService; @@ -26,6 +27,7 @@ import com.zy.asrs.wms.system.service.UserService; import io.jsonwebtoken.lang.Collections; import io.netty.util.internal.StringUtil; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.*; @@ -64,6 +66,7 @@ * @param barcode * @return */ + @ApiOperation("鍏ュ簱鍗曟嵁--鎵爜鑾峰彇璁㈠崟鏄庣粏鍒楄〃") @PostMapping("/mat/auth") public R getProductForBarcode(@RequestBody Map<String, String> barcode) { if (Objects.isNull(barcode)) { @@ -151,7 +154,7 @@ return R.parse(CodeRes.USER_10003); } String system = null;//鐧婚檰绯荤粺 - if (wms) { + if (Objects.isNull(wms) || wms) { system = String.valueOf(LoginSystemType.WMS); }else { system = String.valueOf(LoginSystemType.WCS); @@ -174,6 +177,12 @@ } + /** + * @author Ryan + * @date 2025/6/25 + * @description: 缁勬墭 + * @version 1.0 + */ @PostMapping("/comb/auth") public R combMats(@RequestBody BatchMergeOrdersParam ordersParam) { if (StringUtil.isNullOrEmpty(ordersParam.getOrderNo())) { @@ -187,11 +196,15 @@ } String str = ordersParam.getMergeNo().trim(); - // CUT搴撴潯鐮乀寮�澶达紝鎴彇鍚�10浣� + // CTU搴撴潯鐮乀寮�澶达紝鎴彇鍚�10浣� if (str.charAt(0) == 'T') { ordersParam.setMergeNo(str.substring(str.length() - 10)); } - + if (str.startsWith("PK")) { + ordersParam.setInType(OrderType.PK_IN_ORDER.id); + } else { + ordersParam.setInType(OrderType.UTC_OUT_ORDER.id); + } boolean result = mobileService.batchMergeOrders(ordersParam); if (result) { return R.ok("缁勬墭鎴愬姛锛侊紒"); @@ -284,6 +297,31 @@ return mobileService.selectShippingDetl(params); } + + /** + * @author Ryan + * @date 2025/6/28 + * @description: 鑾峰彇鎺ㄨ崘搴撲綅 + * @version 1.0 + */ + @GetMapping("/recommend/locs") + public R getRecommend() { + return mobileService.getRecommendLocs(); + } + + + /** + * @author Ryan + * @date 2025/6/28 + * @description: 鏌ヨ鐗╂枡淇℃伅 + * @version 1.0 + */ + @GetMapping("/mats/search/{matnr}") + public R getMats(@PathVariable String matnr) { + return mobileService.getMatsByCode(matnr); + } + + /** * 纭鍙戣揣鍗曟槑缁� * @return @@ -295,7 +333,4 @@ } return mobileService.confirmShippingDetl(params); } - - - } -- Gitblit v1.9.1