Commit 11db90fe3cd49daa3061e1787b32c086d02b798a

Authored by 周峰
1 parent fa5f9ce7

添加呼叫料盒参数注解

jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/api/mobile/entity/CallBoxBean.java
1 package org.jeecg.modules.wms.api.mobile.entity; 1 package org.jeecg.modules.wms.api.mobile.entity;
2 2
  3 +import io.swagger.annotations.ApiModelProperty;
3 import lombok.Data; 4 import lombok.Data;
4 5
5 @Data 6 @Data
6 public class CallBoxBean { 7 public class CallBoxBean {
  8 + @ApiModelProperty(value = "托盘号", required=true)
7 private String containerCode; 9 private String containerCode;
  10 + @ApiModelProperty(value = "库位号", required=true)
8 private String locationCode; 11 private String locationCode;
  12 + @ApiModelProperty(value = "任务类型,200补充入, 400分拣出")
9 private int type; 13 private int type;
  14 + @ApiModelProperty(value = "货主编码", required=true)
10 private String companyCode; 15 private String companyCode;
11 } 16 }
jeecg-boot-master/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/wms/api/mobile/service/impl/MobileService.java
@@ -19,15 +19,11 @@ import org.springframework.transaction.annotation.Transactional; @@ -19,15 +19,11 @@ import org.springframework.transaction.annotation.Transactional;
19 import javax.annotation.Resource; 19 import javax.annotation.Resource;
20 20
21 /** 21 /**
22 - * @author 游杰  
23 */ 22 */
24 @Service 23 @Service
25 public class MobileService implements IMobileService { 24 public class MobileService implements IMobileService {
26 25
27 @Resource 26 @Resource
28 - private IErpService erpService;  
29 -  
30 - @Resource  
31 private IContainerService containerService; 27 private IContainerService containerService;
32 28
33 @Resource 29 @Resource
@@ -38,7 +34,7 @@ public class MobileService implements IMobileService { @@ -38,7 +34,7 @@ public class MobileService implements IMobileService {
38 34
39 @Override 35 @Override
40 @Transactional(rollbackFor = Exception.class) 36 @Transactional(rollbackFor = Exception.class)
41 - public Result callBox(CallBoxBean bean, String warehouseCode) { 37 + public Result<Integer> callBox(CallBoxBean bean, String warehouseCode) {
42 if(StringUtils.isEmpty(bean.getContainerCode())){ 38 if(StringUtils.isEmpty(bean.getContainerCode())){
43 return Result.error("托盘号containerCode不能为空"); 39 return Result.error("托盘号containerCode不能为空");
44 } 40 }