修改空箱初始化出入空箱逻辑
This commit is contained in:
@@ -48,7 +48,7 @@ public class CacheLineHandController{
|
||||
//任务类型和任务ID校验,instruct_uuid为前端参数命名,本来应为task_id
|
||||
if(StringUtils.isNotEmpty(params)) {
|
||||
//限制查询参数过短,模糊力度大
|
||||
int length = params.length();
|
||||
int length = params.getBytes().length;
|
||||
if(length < 3) {
|
||||
throw new BizCoreException("您输入的条件匹配的范围太大,请重新输入稍长一点的内容。");
|
||||
}
|
||||
|
||||
@@ -448,7 +448,7 @@ public class CacheLineHandServiceImpl implements CacheLineHandService{
|
||||
throw new BadRequestException("箱子【" + vehicle_code + "】已在库内,无法入空箱!");
|
||||
}
|
||||
// 3.判断是否可以放入空箱子
|
||||
JSONObject json = positionTab.query("cacheLine_code = '" + cacheLine_code + "position_code = '" + position_code + "' and is_blank= '1'").uniqueResult(0);
|
||||
JSONObject json = positionTab.query("cacheLine_code = '" + cacheLine_code + "' and position_code = '" + position_code + "' and is_empty= '1'").uniqueResult(0);
|
||||
if(json == null) {
|
||||
throw new BadRequestException("无法找到缓存线【" + position_code + "】的空位,无法入空箱!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user