|
|
|
|
@ -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出库中 给堆垛机下发命令成功,更改状态 |
|
|
|
|
* @param bo |
|
|
|
|
|