问题修改
This commit is contained in:
@@ -129,8 +129,6 @@ public class LmsToMesServiceImpl implements LmsToMesService {
|
||||
if (RTYPE.equals("E")) {
|
||||
throw new BadRequestException(result.getString("RTMSG"));
|
||||
}
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new BadRequestException("MES提示错误:" + e.getMessage());
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ public class FeedingServiceImpl implements FeedingService {
|
||||
String task_id = "";
|
||||
|
||||
JSONObject jo = new JSONObject();
|
||||
if (StrUtil.isEmpty(cut_jo.getString("empty_vehicle_code"))) {
|
||||
if (StrUtil.equals("01", cut_jo.getString("empty_point_status"))) {
|
||||
jo.put("point_code1", cool_ivt.getString("full_point_code"));
|
||||
jo.put("point_code2", cut_jo.getString("full_point_code"));
|
||||
jo.put("vehicle_code", parent_container_name);
|
||||
@@ -271,7 +271,7 @@ public class FeedingServiceImpl implements FeedingService {
|
||||
}
|
||||
|
||||
JSONObject jo = new JSONObject();
|
||||
if (StrUtil.equals("01", cut_jo.getString("empty_point_code"))) {
|
||||
if (StrUtil.equals("01", cut_jo.getString("empty_point_status"))) {
|
||||
jo.put("point_code1", point_code);
|
||||
jo.put("point_code2", next_point_code);
|
||||
jo.put("vehicle_code", cool_jo.getString("container_name"));
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
WHERE
|
||||
is_delete = '0'
|
||||
AND is_used = '1'
|
||||
AND point_status = '1'
|
||||
|
||||
OPTION 输入.reging_id <> ""
|
||||
region_id = 输入.reging_id
|
||||
@@ -82,6 +81,7 @@
|
||||
is_used = '1'
|
||||
AND full_point_status = '01'
|
||||
AND empty_point_status = '01'
|
||||
AND is_used = '1'
|
||||
|
||||
AND NOT EXISTS (
|
||||
SELECT
|
||||
|
||||
@@ -51,8 +51,8 @@ public class CoolOutServiceImpl
|
||||
String point_code = whereJson.getString("point_code"); // 出库点位
|
||||
|
||||
// 查询终点在冷却区是否存在
|
||||
JSONObject jsonCoolIvt = coolIvtTab.query("point_code = '" + point_code + "' and full_point_status = '02' and is_used = '1'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonCoolIvt)) throw new BadRequestException("此点位不存在或是空位"+point_code);
|
||||
JSONObject jsonCoolIvt = coolIvtTab.query("full_point_code = '" + point_code + "' and full_point_status = '02' and is_used = '1'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonCoolIvt)) throw new BadRequestException("点位:"+point_code+"不符,请扫描冷却区满轴点位!");
|
||||
|
||||
// 更新点位状态
|
||||
jsonCoolIvt.put("full_point_status", "01");
|
||||
|
||||
@@ -59,13 +59,8 @@
|
||||
FROM
|
||||
ST_IVT_CoolPointIvt coolIvt
|
||||
LEFT JOIN PDM_BI_RawFoilWorkOrder der ON coolIvt.container_name = der.container_name
|
||||
LEFT JOIN ST_IVT_HotRegionIOMst hotMst ON hotMst.container_name = coolIvt.container_name
|
||||
LEFT JOIN (
|
||||
SELECT * FROM ST_IVT_HotRegionIOMst WHERE 1=1 ORDER BY confirm_time ASC LIMIT 1
|
||||
) AS hotDtl1 ON hotMst.iostorinv_id = hotDtl1.iostorinv_id
|
||||
LEFT JOIN (
|
||||
SELECT * FROM ST_IVT_HotRegionIOMst WHERE 1=1 ORDER BY confirm_time DESC LIMIT 1
|
||||
) AS hotDtl2 ON hotMst.iostorinv_id = hotDtl1.iostorinv_id
|
||||
LEFT JOIN ( SELECT * FROM ST_IVT_HotRegionIOMst WHERE 1 = 1 ORDER BY confirm_time ASC LIMIT 1 ) AS hotDtl1 ON hotDtl1.container_name = coolIvt.container_name
|
||||
LEFT JOIN ( SELECT * FROM ST_IVT_HotRegionIOMst WHERE 1 = 1 ORDER BY confirm_time DESC LIMIT 1 ) AS hotDtl2 ON hotDtl2.container_name = coolIvt.container_name
|
||||
WHERE
|
||||
coolIvt.full_point_status = '02'
|
||||
|
||||
|
||||
@@ -312,6 +312,8 @@ public class CoolCutTask extends AbstractAcsTask {
|
||||
|
||||
tab.insert(json);
|
||||
|
||||
this.immediateNotifyAcs(null);
|
||||
|
||||
return json.getString("task_id");
|
||||
}
|
||||
|
||||
|
||||
@@ -236,9 +236,6 @@ public class InHotTask extends AbstractAcsTask {
|
||||
if (cutConveyorTask.isSingleTask(point_code1)) {
|
||||
throw new BadRequestException("点位:" + point_code1 + "存在未完成的任务!");
|
||||
}
|
||||
if (cutConveyorTask.isSingleTask(point_code2)) {
|
||||
throw new BadRequestException("点位:" + point_code2 + "存在未完成的任务!");
|
||||
}
|
||||
if (cutConveyorTask.isSingleTask(point_code3)) {
|
||||
throw new BadRequestException("点位:" + point_code3 + "存在未完成的任务!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user