手动控制是否暂停出库

main
Comair 1 year ago
parent 7e473281fe
commit b0841c2cb2
  1. 50
      shkj-wms/src/main/java/com/shkj/wms/controller/business/BaseBarcodesController.java
  2. 10
      shkj-wms/src/main/java/com/shkj/wms/service/IBaseBarcodesOutService.java
  3. 63
      shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseBarcodesOutServiceImpl.java

@ -242,5 +242,55 @@ public class BaseBarcodesController extends BaseController {
} }
/**
* 手动控制是否暂停出库
* stop 停止出库
* start 启动出库
* @param status
* @return
*/
@PostMapping("/handStartStopOutboundStatus")
@RepeatSubmit
public Result<Boolean> handStartStopOutboundStatus(@RequestParam("status") String status){
return iBaseBarcodesOutService.handStartStopOutboundStatus(status);
}
/**
* 获取是否停止出库
* start 启动出库
* stop 停止出库
* @return
*/
@GetMapping("/getStartStopOutboundStatus")
@RepeatSubmit
public Result<Boolean> getStartStopOutboundStatus(){
return iBaseBarcodesOutService.getStartStopOutboundStatus();
}
/**
* 手动控制是否越库
* start 启动越库
* stop 停止越库
* @param status
* @return
*/
@PostMapping("/handOskipOverWareStatus")
@RepeatSubmit
public Result<Boolean> handOskipOverWareStatus(@RequestParam("status") String status){
return iBaseBarcodesOutService.handOskipOverWareStatus(status);
}
/**
* 获取是否是否越库的状态
* start 启动越库
* stop 停止越库
* @return
*/
@GetMapping("/getOskipOverWareStatus")
@RepeatSubmit
public Result<Boolean> getOskipOverWareStatus(){
return iBaseBarcodesOutService.getOskipOverWareStatus();
}
} }

@ -119,4 +119,14 @@ 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> getStartStopOutboundStatus();
Result<Boolean> getOskipOverWareStatus();
Result<Boolean> handStartStopOutboundStatus(String status);
} }

@ -381,6 +381,69 @@ public class BaseBarcodesOutServiceImpl extends ServiceImpl<BaseBarcodesOutMappe
} }
/**
* 启动或停止越库
* 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("设置越库成功");
}
}
/**
* 获取是否越库 start 启动越库 stop 不启动越库
* @return
*/
@Override
public Result<Boolean> getOskipOverWareStatus() {
Object o = redisTemplate.opsForValue().get(RedisConstant.redisSkipOverWare);
if(o== null){
return Result.ok().data("stop");
}
return Result.ok().data(o.toString());
}
/**
* 是否启动/或暂停出库
* 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("设置启动/停止出库成功");
}
}
/**
* 获取是否启动或暂停出库状态
* @return
*/
@Override
public Result<Boolean> getStartStopOutboundStatus() {
Object o = redisTemplate.opsForValue().get(RedisConstant.redisStartStopOutbound);
if(o== null){
return Result.ok().data("start");
}
return Result.ok().data(o.toString());
}
/** /**
* 手动下发出库任务-恢复 暂停 已取消是否是作废不可恢复 2出库中 给堆垛机下发命令成功更改状态 * 手动下发出库任务-恢复 暂停 已取消是否是作废不可恢复 2出库中 给堆垛机下发命令成功更改状态
* @param bo * @param bo

Loading…
Cancel
Save