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