代码合并
This commit is contained in:
@@ -472,15 +472,15 @@ public class BakingServiceImpl implements BakingService {
|
|||||||
JSONObject json = new JSONObject();
|
JSONObject json = new JSONObject();
|
||||||
|
|
||||||
JSONObject jsonCool = coolIvtTab.query("full_point_code = '" + point_code + "'").uniqueResult(0);
|
JSONObject jsonCool = coolIvtTab.query("full_point_code = '" + point_code + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isNotEmpty(jsonCool.getString("container_name"))) {
|
if (ObjectUtil.isNotEmpty(jsonCool)) {
|
||||||
json.put("container_name", jsonCool.getString("container_name"));
|
json.put("container_name", jsonCool.getString("container_name"));
|
||||||
} else {
|
} else {
|
||||||
JSONObject jsonHot = hotIvtTab.query("point_code = '" + point_code + "'").uniqueResult(0);
|
JSONObject jsonHot = hotIvtTab.query("point_code = '" + point_code + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isNotEmpty(jsonHot.getString("container_name"))) {
|
if (ObjectUtil.isNotEmpty(jsonHot)) {
|
||||||
json.put("container_name", jsonHot.getString("container_name"));
|
json.put("container_name", jsonHot.getString("container_name"));
|
||||||
} else {
|
} else {
|
||||||
JSONObject jsonPoint = pointIvtTab.query("point_code = '" + point_code + "'").uniqueResult(0);
|
JSONObject jsonPoint = pointIvtTab.query("point_code = '" + point_code + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isNotEmpty(jsonPoint.getString("material_code"))) {
|
if (ObjectUtil.isNotEmpty(jsonPoint)) {
|
||||||
json.put("container_name", jsonPoint.getString("material_code"));
|
json.put("container_name", jsonPoint.getString("material_code"));
|
||||||
} else {
|
} else {
|
||||||
json.put("container_name", "");
|
json.put("container_name", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user