|
@ -94,19 +94,27 @@ public class StructFindUtil { |
|
|
String area_type = jsonObject.getString("area_type"); |
|
|
String area_type = jsonObject.getString("area_type"); |
|
|
String vehicle_type = jsonObject.getString("vehicle_type"); |
|
|
String vehicle_type = jsonObject.getString("vehicle_type"); |
|
|
String point_code = jsonObject.getString("point_code"); |
|
|
String point_code = jsonObject.getString("point_code"); |
|
|
|
|
|
if (StrUtil.isEmpty(area_type)) { |
|
|
|
|
|
throw new BadRequestException("区域不能为空!"); |
|
|
|
|
|
} |
|
|
|
|
|
JSONObject result = new JSONObject(); |
|
|
//如果是堆叠位5 需要更新 设备状态
|
|
|
//如果是堆叠位5 需要更新 设备状态
|
|
|
if (StrUtil.equals(point_code, "KGTPDDW05")) { |
|
|
if (StrUtil.equals(point_code, "KGTPDDW05")) { |
|
|
JSONArray pointarr = WQL.getWO("ACSTOMES_001").addParam("area_type", AreaEnum.KGTDDQ).addParam("flag", "2").process().getResultJSONArray(0); |
|
|
JSONArray pointarr = WQL.getWO("ACSTOMES_001").addParam("area_type", AreaEnum.KGTDDQ).addParam("flag", "2").process().getResultJSONArray(0); |
|
|
PointUpdateUtil.updatePoint(pointarr); |
|
|
PointUpdateUtil.updatePoint(pointarr); |
|
|
} |
|
|
result = WQL.getWO("QSTRUCT_RULE").addParam("flag", "6") |
|
|
if (StrUtil.isEmpty(area_type)) { |
|
|
|
|
|
throw new BadRequestException("区域不能为空!"); |
|
|
|
|
|
} |
|
|
|
|
|
JSONObject result = WQL.getWO("QSTRUCT_RULE").addParam("flag", "5") |
|
|
|
|
|
.addParam("area_type", area_type) |
|
|
.addParam("area_type", area_type) |
|
|
.addParam("vehicle_type", vehicle_type) |
|
|
.addParam("vehicle_type", vehicle_type) |
|
|
.addParam("point_code", point_code) |
|
|
.addParam("point_code", point_code) |
|
|
.process().uniqueResult(0); |
|
|
.process().uniqueResult(0); |
|
|
|
|
|
} else { |
|
|
|
|
|
result = WQL.getWO("QSTRUCT_RULE").addParam("flag", "5") |
|
|
|
|
|
.addParam("area_type", area_type) |
|
|
|
|
|
.addParam("vehicle_type", vehicle_type) |
|
|
|
|
|
.addParam("point_code", point_code) |
|
|
|
|
|
.process().uniqueResult(0); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|