rev:修改查询冷却区点位
This commit is contained in:
@@ -344,7 +344,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
|
||||
log.info("母卷:" + ContainerName + "被决策入烘箱,请求烘烤标识改为1");
|
||||
|
||||
String point_code = "";
|
||||
JSONObject jsonCoolIvt = coolIvtTab.query("container_name = '" + containerName + "' and full_point_status = '02' and cool_ivt_status <> '04'").uniqueResult(0);
|
||||
JSONObject jsonCoolIvt = coolIvtTab.query("container_name = '" + containerName + "' and full_point_status = '02' and cool_ivt_status <> '04' AND point_type = '1'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonCoolIvt)) {
|
||||
JSONObject jsonPoint = pointTab.query("material_code ='" + containerName + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonPoint)) {
|
||||
@@ -398,8 +398,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
|
||||
} else {
|
||||
log.info("当前AGV启用参数为否");
|
||||
//判断当前位置是否在冷却区如果不在则提醒人工报错
|
||||
JSONObject container_jo = coolIvtTab.query("container_name = '" + containerName + "' and full_point_status = '02' and cool_ivt_status <> '04'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(container_jo)) {
|
||||
JSONObject container_jo = coolIvtTab.query("container_name = '" + containerName + "' and full_point_status = '02' and cool_ivt_status <> '04' AND point_type = '1'").uniqueResult(0); if (ObjectUtil.isEmpty(container_jo)) {
|
||||
throw new BadRequestException("该母卷已经被烘烤或现在还未绑定在冷却区上,且AGV未启用!请使用人工烘烤功能【出箱】将母卷绑定到冷却区!");
|
||||
}
|
||||
container_jo.put("cool_ivt_status", "04");
|
||||
|
||||
Reference in New Issue
Block a user