rev:修正物料信息为空的情况。
This commit is contained in:
@@ -118,8 +118,10 @@ public class MdPbClassstandardServiceImpl extends ServiceImpl<MdPbClassstandardM
|
||||
query.eq("1","1");
|
||||
if(ObjectUtil.isNotEmpty(whereJson.get("material_id"))) {
|
||||
MdMeMaterialbase one = materialbaseService.getOne(new QueryWrapper<MdMeMaterialbase>().eq("material_id", whereJson.get("material_id")));
|
||||
if(null != one) {
|
||||
whereJson.put("class_idStr", one.getMaterial_type_id());
|
||||
}
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(whereJson.get("whereStr"))) {
|
||||
query.last((String) whereJson.get("whereStr"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user