代码合并

This commit is contained in:
2022-12-13 13:41:48 +08:00
parent e0f1decfda
commit 1ef6c07c2e

View File

@@ -472,15 +472,15 @@ public class BakingServiceImpl implements BakingService {
JSONObject json = new JSONObject();
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"));
} else {
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"));
} else {
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"));
} else {
json.put("container_name", "");