rev:球磨工艺参数设置

This commit is contained in:
2023-09-15 09:55:26 +08:00
parent eebbc0beff
commit 3619b08443

View File

@@ -140,7 +140,7 @@ public class MaterialbaseServiceImpl implements MaterialbaseService {
if (StrUtil.isNotEmpty(code) && code.contains("\\")) {
code = code.replace("\\", "\\\\");
}
JSONObject json = wo.query("material_code ='" + code + "'").uniqueResult(0);
JSONObject json = wo.query("material_code ='" + code + "' and is_delete = '0' and is_used = '1'").uniqueResult(0);
if (ObjectUtil.isEmpty(json)) return null;
String unit_name = WQLObject.getWQLObject("md_pb_measureunit").query("measure_unit_id= '" + json.getString("base_unit_id") + "'").uniqueResult(0).getString("unit_name");
json.put("base_unit_name", unit_name);