代码更新
This commit is contained in:
@@ -258,15 +258,22 @@ public class MesToLmsServiceImpl implements MesToLmsService {
|
|||||||
if (ObjectUtil.isEmpty(bakingTemperature)) throw new BadRequestException("温度不能为空");
|
if (ObjectUtil.isEmpty(bakingTemperature)) throw new BadRequestException("温度不能为空");
|
||||||
if (ObjectUtil.isEmpty(bakingTimer)) throw new BadRequestException("烘烤时间不能为空");
|
if (ObjectUtil.isEmpty(bakingTimer)) throw new BadRequestException("烘烤时间不能为空");
|
||||||
|
|
||||||
|
String point_code = "";
|
||||||
JSONObject jsonCoolIvt = coolIvtTab.query("container_name = '" + containerName + "' and full_point_status = '02' and cool_ivt_status <> '03'").uniqueResult(0);
|
JSONObject jsonCoolIvt = coolIvtTab.query("container_name = '" + containerName + "' and full_point_status = '02' and cool_ivt_status <> '03'").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(jsonCoolIvt)) throw new BadRequestException("母卷不存在或已烘烤完成");
|
if (ObjectUtil.isEmpty(jsonCoolIvt)) {
|
||||||
|
JSONObject jsonPoint = pointTab.query("material_code ='" + containerName + "'").uniqueResult(0);
|
||||||
|
if (ObjectUtil.isNotEmpty(jsonPoint)) point_code = jsonPoint.getString("point_code");
|
||||||
|
} else {
|
||||||
|
point_code = jsonCoolIvt.getString("full_point_code");
|
||||||
|
}
|
||||||
|
if (ObjectUtil.isEmpty(point_code)) throw new BadRequestException("母卷不存在或已烘烤完成");
|
||||||
|
|
||||||
// 调用接口输入参数
|
// 调用接口输入参数
|
||||||
jsonParam.put("option", "1");
|
jsonParam.put("option", "1");
|
||||||
jsonParam.put("container_name", containerName);
|
jsonParam.put("container_name", containerName);
|
||||||
jsonParam.put("temperature", bakingTemperature);
|
jsonParam.put("temperature", bakingTemperature);
|
||||||
jsonParam.put("hours", bakingTimer);
|
jsonParam.put("hours", bakingTimer);
|
||||||
jsonParam.put("point_code", jsonCoolIvt.getString("full_point_code"));
|
jsonParam.put("point_code", point_code);
|
||||||
|
|
||||||
// 调用手持接口
|
// 调用手持接口
|
||||||
BakingServiceImpl bakingService = new BakingServiceImpl();
|
BakingServiceImpl bakingService = new BakingServiceImpl();
|
||||||
|
|||||||
Reference in New Issue
Block a user