Commit 6c43d2ba authored by 曹盼盼's avatar 曹盼盼

修改

parent e4e8d9ca
......@@ -329,9 +329,11 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
List<Map<String, Object>> records = model.getResult().getRecords();
List<Map<String, Object>> result = new ArrayList<>();
for (Map<String, Object> record : records) {
Integer integer = Integer.valueOf(record.get(EQUSTATE).toString());
String status = EquimentEnum.getName.get(integer);
record.put(EQUSTATE, status);
if (!ValidationUtil.isEmpty(record.get(EQUSTATE))) {
Integer integer = Integer.valueOf(record.get(EQUSTATE).toString());
String status = EquimentEnum.getName.get(integer);
record.put(EQUSTATE, status);
}
result.add(record);
}
Page<Map<String, Object>> mapPage = model.getResult().setRecords(result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment