diff --git a/shkj-wms/src/main/java/com/shkj/wms/bo/BaseLocationQueryPageBo.java b/shkj-wms/src/main/java/com/shkj/wms/bo/BaseLocationQueryPageBo.java index 7aeb7fe..8c38887 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/bo/BaseLocationQueryPageBo.java +++ b/shkj-wms/src/main/java/com/shkj/wms/bo/BaseLocationQueryPageBo.java @@ -56,4 +56,6 @@ public class BaseLocationQueryPageBo extends BaseEntity { */ private String isActivity; + private String layer; + } diff --git a/shkj-wms/src/main/java/com/shkj/wms/controller/base/BaseLocationController.java b/shkj-wms/src/main/java/com/shkj/wms/controller/base/BaseLocationController.java index 827f8a7..99b44f8 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/controller/base/BaseLocationController.java +++ b/shkj-wms/src/main/java/com/shkj/wms/controller/base/BaseLocationController.java @@ -17,6 +17,7 @@ import com.shkj.wms.common.SwitchStatusEntity; import com.shkj.wms.service.IBaseLocationService; import com.shkj.wms.config.ValidList; import com.shkj.wms.vo.BaseLocationExcelVo; +import com.shkj.wms.vo.BaseLocationMapListVo; import com.shkj.wms.vo.ImportLocationVo; import lombok.RequiredArgsConstructor; import org.apache.commons.io.FilenameUtils; @@ -136,4 +137,14 @@ public class BaseLocationController extends BaseController { } return result; } + + /** + * 查询货位--map + */ + @GetMapping("/getBaseLocationForMap") + public TableDataInfo getBaseLocationForMap(BaseLocationQueryPageBo bo) { + startPage(); + List list = iBaseLocationService.getBaseLocationForMap(bo); + return getDataTable(list); + } } diff --git a/shkj-wms/src/main/java/com/shkj/wms/mapper/BaseLocationMapper.java b/shkj-wms/src/main/java/com/shkj/wms/mapper/BaseLocationMapper.java index 1106642..362d629 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/mapper/BaseLocationMapper.java +++ b/shkj-wms/src/main/java/com/shkj/wms/mapper/BaseLocationMapper.java @@ -5,6 +5,7 @@ import com.shkj.wms.bo.BaseLocationQueryListBo; import com.shkj.wms.domain.BaseLocation; import com.shkj.wms.bo.BaseLocationQueryBo; import com.shkj.wms.bo.BaseLocationQueryPageBo; +import com.shkj.wms.vo.BaseLocationMapListVo; import com.shkj.wms.vo.BaseLocationRecommendVo; import com.shkj.wms.vo.BaseLocationVo; import org.apache.ibatis.annotations.Param; @@ -81,5 +82,7 @@ public interface BaseLocationMapper extends BaseMapper { */ List gettunnel(String locationId); + List getBaseLocationForMap(BaseLocationQueryPageBo bo); + } diff --git a/shkj-wms/src/main/java/com/shkj/wms/service/IBaseLocationService.java b/shkj-wms/src/main/java/com/shkj/wms/service/IBaseLocationService.java index dc32b4e..baf8778 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/service/IBaseLocationService.java +++ b/shkj-wms/src/main/java/com/shkj/wms/service/IBaseLocationService.java @@ -6,6 +6,7 @@ import com.shkj.wms.bo.*; import com.shkj.wms.domain.BaseLocation; import com.shkj.wms.config.ValidList; import com.shkj.wms.vo.BaseLocationExcelVo; +import com.shkj.wms.vo.BaseLocationMapListVo; import com.shkj.wms.vo.BaseLocationVo; import com.shkj.wms.vo.ImportLocationVo; @@ -169,4 +170,7 @@ public interface IBaseLocationService extends IService { * @return {@code BaseLocation} */ BaseLocation getByLocationCode(String locationCode); + + + List getBaseLocationForMap(BaseLocationQueryPageBo bo); } diff --git a/shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseLocationServiceImpl.java b/shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseLocationServiceImpl.java index 939c6c9..d50eb2e 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseLocationServiceImpl.java +++ b/shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseLocationServiceImpl.java @@ -25,10 +25,7 @@ import com.shkj.wms.mapper.BaseLocationMapper; import com.shkj.wms.service.*; import com.shkj.wms.utils.BeanMapperUtils; import com.shkj.wms.utils.TunnelTaskUtil; -import com.shkj.wms.vo.BaseLocationExcelVo; -import com.shkj.wms.vo.BaseLocationVo; -import com.shkj.wms.vo.ImportLocationVo; -import com.shkj.wms.vo.SysStockDetailVo; +import com.shkj.wms.vo.*; import lombok.extern.slf4j.Slf4j; import org.apache.commons.collections4.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -670,9 +667,15 @@ public class BaseLocationServiceImpl extends ServiceImpl().eq(BaseLocation::getLocationCode, locationCode)); } + @Override + public List getBaseLocationForMap(BaseLocationQueryPageBo bo) { + return this.baseMapper.getBaseLocationForMap(bo); + } + public List getTunnel(String goodsId) { return this.baseMapper.gettunnel(goodsId); } + } diff --git a/shkj-wms/src/main/java/com/shkj/wms/service/impl/SysThirdExceptionRequestServiceImpl.java b/shkj-wms/src/main/java/com/shkj/wms/service/impl/SysThirdExceptionRequestServiceImpl.java index 04091b2..55a7ccf 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/service/impl/SysThirdExceptionRequestServiceImpl.java +++ b/shkj-wms/src/main/java/com/shkj/wms/service/impl/SysThirdExceptionRequestServiceImpl.java @@ -193,7 +193,7 @@ public class SysThirdExceptionRequestServiceImpl extends ServiceImpl wrapper = new LambdaQueryWrapper<>(); wrapper.eq(SysThirdExceptionRequest::getStatus, ThirdApiStatusEnum.fail.getValue()); diff --git a/shkj-wms/src/main/java/com/shkj/wms/vo/BaseLocationMapListVo.java b/shkj-wms/src/main/java/com/shkj/wms/vo/BaseLocationMapListVo.java new file mode 100644 index 0000000..e397b4e --- /dev/null +++ b/shkj-wms/src/main/java/com/shkj/wms/vo/BaseLocationMapListVo.java @@ -0,0 +1,67 @@ +package com.shkj.wms.vo; + +import lombok.Data; + +import java.io.Serializable; + + +/** + * 货位资料视图对象 + * + * @author lch + * @date 2022-04-23 + */ +@Data +public class BaseLocationMapListVo implements Serializable { + private static final long serialVersionUID = 1L; + + private Integer w; + + private Integer h; + + private Integer x; + + private Integer y; + + private String i; + + private String warehouse; + + /** + * 禁用状态 + */ + private String isDel; + + /** + * 自增id + */ + private Long id; + + + /** + * 货位ID + */ + private String locationCode; + + + /** + * 货位名称 + */ + private String locationName; + + /** + * 巷道 + */ + private String tunnel; + + /** + * 货位状态 + */ + private String locationStatus; + + /** + * 货位类型 + */ + private String type; + +} diff --git a/shkj-wms/src/main/resources/mapper/wms/BaseLocationMapper.xml b/shkj-wms/src/main/resources/mapper/wms/BaseLocationMapper.xml index aeb70a7..2303c2c 100644 --- a/shkj-wms/src/main/resources/mapper/wms/BaseLocationMapper.xml +++ b/shkj-wms/src/main/resources/mapper/wms/BaseLocationMapper.xml @@ -383,4 +383,30 @@ + + +