mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 03:16:48 +08:00
案例-专业分类 没有数据也显示
This commit is contained in:
@@ -849,13 +849,14 @@ public class CasesServiceImpl implements ICasesService {
|
||||
List<Object[]> listByHql = casesDao.findListByHql(hql);
|
||||
List<DictItem> dictItems = new ArrayList<>();
|
||||
for (DictItem d : major_type) {
|
||||
d.setExplanation("0");
|
||||
for (Object[] objs : listByHql) {
|
||||
String s = (String) objs[0];
|
||||
if (d.getCode().equals(s)) {
|
||||
d.setExplanation(objs[1].toString());
|
||||
dictItems.add(d);
|
||||
}
|
||||
}
|
||||
dictItems.add(d);
|
||||
}
|
||||
return dictItems;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user