rev:球磨工艺参数设置
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user