opt:空木箱入库增加托盘校验
This commit is contained in:
@@ -109,6 +109,15 @@ public class InBoxManageServiceImpl implements InBoxManageService {
|
||||
if (count > 0) {
|
||||
throw new BadRequestException("当前木箱入库任务已存在" + boxNo);
|
||||
}
|
||||
SchBaseTask one = ischBaseTaskService.getOne(new QueryWrapper<SchBaseTask>()
|
||||
.eq("task_type", "010702")
|
||||
.eq("is_delete", "0")
|
||||
.orderByDesc("task_id")
|
||||
.last("limit 1"));
|
||||
String vehicleCode2 = one.getVehicle_code2();
|
||||
if (whereJson.getString("vehicle_code").equals(vehicleCode2)){
|
||||
throw new BadRequestException("当前托盘"+whereJson.getString("vehicle_code")+"已经存在木箱入库任务"+one.getTask_code());
|
||||
};
|
||||
//查询仓库是否存在相同木箱
|
||||
JSONArray stIvtStructattr = WQLObject.getWQLObject("st_ivt_structattr").query("storagevehicle_code = '" + boxNo + "'").getResultJSONArray(0);
|
||||
if (stIvtStructattr != null && stIvtStructattr.size() > 0) {
|
||||
|
||||
@@ -6,7 +6,7 @@ spring:
|
||||
freemarker:
|
||||
check-template-location: false
|
||||
profiles:
|
||||
active: prod
|
||||
active: dev
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
data:
|
||||
|
||||
Reference in New Issue
Block a user