diff --git a/shkj-common/src/main/java/com/shkj/common/constant/RedisConstant.java b/shkj-common/src/main/java/com/shkj/common/constant/RedisConstant.java index 47c201d..7f16e3e 100644 --- a/shkj-common/src/main/java/com/shkj/common/constant/RedisConstant.java +++ b/shkj-common/src/main/java/com/shkj/common/constant/RedisConstant.java @@ -30,9 +30,9 @@ public class RedisConstant { //任务下发时间 public static String redisTaskTime ="redisTaskTime:"; - public static String redisTaskOut ="redisTaskOut"; + public static String redisTaskOut ="redisTaskOut:"; - public static String redisTaskIn ="redisTaskIn"; + public static String redisTaskIn ="redisTaskIn:"; diff --git a/shkj-wms/src/main/java/com/shkj/wms/enums/LocationStausEnum.java b/shkj-wms/src/main/java/com/shkj/wms/enums/LocationStausEnum.java index 722224c..91c1990 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/enums/LocationStausEnum.java +++ b/shkj-wms/src/main/java/com/shkj/wms/enums/LocationStausEnum.java @@ -19,11 +19,12 @@ public enum LocationStausEnum { */ FREE("0", "空闲"), + STOCK("1", "库存"), /** * 1、满位 */ - FULL("1", "满位"), - NO_FULL("2", "半满位"), + /* FULL("1", "满位"), + NO_FULL("2", "半满位"),*/ CALL("3", "空托出库中"), diff --git a/shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java b/shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java index 7a84edb..01a46b8 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java +++ b/shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java @@ -1349,12 +1349,12 @@ public class BusinOutInPlanServiceImpl extends ServiceImpl x.setPlanStatus(planStatus)); this.updateBatchById(list); return Result.ok(); diff --git a/shkj-wms/src/main/resources/mapper/wms/BaseMoldMapper.xml b/shkj-wms/src/main/resources/mapper/wms/BaseMoldMapper.xml index 42edd46..6cb9a1d 100644 --- a/shkj-wms/src/main/resources/mapper/wms/BaseMoldMapper.xml +++ b/shkj-wms/src/main/resources/mapper/wms/BaseMoldMapper.xml @@ -74,11 +74,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" c.container_name FROM base_mold m - INNER JOIN sys_stock_detail s ON m.id = s.mold_id AND s.qty - s.out_qty > 0 + INNER JOIN sys_stock_detail s ON m.id = s.mold_id INNER JOIN base_container c on c.id =s.container_id WHERE - m.is_activity = 1 - AND m.is_del = 0 + m.is_activity = 1 AND m.is_del = 0 AND s.qty - s.out_qty > 0 and m.bar_code like CONCAT('%', #{moldBarcode},'%') @@ -128,14 +127,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" c.container_name FROM base_mold m - INNER JOIN sys_stock_detail s ON m.id = s.mold_id AND s.qty - s.out_qty > 0 + INNER JOIN sys_stock_detail s ON m.id = s.mold_id INNER JOIN base_container c on c.id =s.container_id - LEFT JOIN ( SELECT plan.mold_id FROM busin_out_in_plan plan WHERE plan_status NOT IN ( '2', '3' ) AND plan.type = 'out' ) AS planout ON planout.mold_id = m.id WHERE - planout.mold_id IS NULL - AND m.is_activity = 1 + m.is_activity = 1 and s.qty - s.out_qty > 0 AND m.is_del = 0 - and m.bar_code like CONCAT('%', #{moldBarcode},'%') diff --git a/shkj-wms/src/main/resources/mapper/wms/SysStockDetailMapper.xml b/shkj-wms/src/main/resources/mapper/wms/SysStockDetailMapper.xml index 25d5c04..fb9007e 100644 --- a/shkj-wms/src/main/resources/mapper/wms/SysStockDetailMapper.xml +++ b/shkj-wms/src/main/resources/mapper/wms/SysStockDetailMapper.xml @@ -379,7 +379,7 @@ select mold.*,detail.in_time from sys_stock_detail detail inner join base_mold mold on detail.mold_id=mold.id inner join base_location location on detail.location_id=location.id - where location_name = #{locationCode} + where location.location_code = #{locationCode}