出库设置-是否越库,是否暂停出库

main
Comair 1 year ago
parent 25d97b8e95
commit 4bc605c933
  1. 13
      shkj-common/src/main/java/com/shkj/common/constant/RedisConstant.java
  2. 26
      shkj-wms/src/main/java/com/shkj/wms/controller/business/BaseBarcodesController.java
  3. 7
      shkj-wms/src/main/java/com/shkj/wms/service/IBaseBarcodesOutService.java
  4. 35
      shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseBarcodesOutServiceImpl.java

@ -107,6 +107,19 @@ public class RedisConstant {
public static String redisSurplusWaitIssueEmpFixTaskNum="surplusWaitIssueEmpFixTaskNum:"; public static String redisSurplusWaitIssueEmpFixTaskNum="surplusWaitIssueEmpFixTaskNum:";
/**
* 是否越库
* start 启动越库
* stop 不启动越库
*/
public final static String redisSkipOverWare="skipOverWare:";
/**
* 是否启动/或暂停出库
* stop 停止出库
* start 启动出库
*/
public final static String redisStartStopOutbound="startStopOutbound:";
} }

@ -241,6 +241,32 @@ public class BaseBarcodesController extends BaseController {
return iBaseBarcodesOutService.handMoveOutboundInfoTaskForCancel(bo); return iBaseBarcodesOutService.handMoveOutboundInfoTaskForCancel(bo);
} }
/**
* 手动控制是否越库
* start 启动越库
* stop 停止越库
* @param status
* @return
*/
@PostMapping("/handStartStopOutboundStatus")
@RepeatSubmit
public Result<Boolean> handStartStopOutboundStatus(@RequestParam("status") String status){
return iBaseBarcodesOutService.handOskipOverWareStatus(status);
}
/**
* 手动控制是否越库
* start 启动越库
* stop 停止越库
* @param status
* @return
*/
@PostMapping("/handOskipOverWareStatus")
@RepeatSubmit
public Result<Boolean> handOskipOverWareStatus(@RequestParam("status") String status){
return iBaseBarcodesOutService.handOskipOverWareStatus(status);
}
} }

@ -10,6 +10,7 @@ import com.shkj.wms.domain.BaseBarcodesOut;
import com.shkj.wms.third.ykl.ThirdYklResult; import com.shkj.wms.third.ykl.ThirdYklResult;
import com.shkj.wms.vo.BaseBarcodesOutTaskVo; import com.shkj.wms.vo.BaseBarcodesOutTaskVo;
import com.shkj.wms.vo.BaseBarcodesOutVo; import com.shkj.wms.vo.BaseBarcodesOutVo;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -119,4 +120,10 @@ public interface IBaseBarcodesOutService extends IService<BaseBarcodesOut> {
* @return java.util.List<java.util.Map<java.lang.String,java.lang.String>> * @return java.util.List<java.util.Map<java.lang.String,java.lang.String>>
*/ */
List<Map<String,String>> getOutEmptyInfo(); List<Map<String,String>> getOutEmptyInfo();
Result<Boolean> handOskipOverWareStatus(String status);
Result<Boolean> handStartStopOutboundStatus(String status);
} }

@ -380,6 +380,41 @@ public class BaseBarcodesOutServiceImpl extends ServiceImpl<BaseBarcodesOutMappe
return this.baseMapper.getOutEmptyInfo(); return this.baseMapper.getOutEmptyInfo();
} }
/**
* 启动或停止越库
* start 启动越库
* stop 不启动越库
* @param status
* @return
*/
@Override
public Result<Boolean> handOskipOverWareStatus(String status) {
try {
redisTemplate.opsForValue().set(RedisConstant.redisSkipOverWare,status);
return Result.ok().msg("设置越库成功");
}catch (Exception e){
return Result.err().msg("设置越库成功");
}
}
/**
* 是否启动/或暂停出库
* stop 停止出库
* start 启动出库
* @param status
* @return
*/
@Override
public Result<Boolean> handStartStopOutboundStatus(String status) {
try {
redisTemplate.opsForValue().set(RedisConstant.redisStartStopOutbound,status);
return Result.ok().msg("设置启动/停止出库成功");
}catch (Exception e){
return Result.err().msg("设置启动/停止出库成功");
}
}
/** /**
* 手动下发出库任务-恢复 暂停 已取消是否是作废不可恢复 2出库中 给堆垛机下发命令成功更改状态 * 手动下发出库任务-恢复 暂停 已取消是否是作废不可恢复 2出库中 给堆垛机下发命令成功更改状态

Loading…
Cancel
Save