opt:空木箱入库增加托盘校验

This commit is contained in:
zhangzq
2025-03-20 18:48:05 +08:00
parent 6443fe2da4
commit a8239e083b
2 changed files with 10 additions and 1 deletions

View File

@@ -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) {

View File

@@ -6,7 +6,7 @@ spring:
freemarker:
check-template-location: false
profiles:
active: prod
active: dev
jackson:
time-zone: GMT+8
data: