mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-14 21:36:48 +08:00
专业分类
This commit is contained in:
@@ -899,7 +899,7 @@ public class CasesServiceImpl implements ICasesService {
|
|||||||
@Override
|
@Override
|
||||||
public List<DictItem> majorTypes() {
|
public List<DictItem> majorTypes() {
|
||||||
List<DictItem> major_type = sysDictionaryDao.findByKey("major_type");
|
List<DictItem> major_type = sysDictionaryDao.findByKey("major_type");
|
||||||
String hql1 = "select majorType from Cases c where c.deleted=false and (c.filePath is not null and c.filePath != '')";
|
/* String hql1 = "select majorType from Cases c where c.deleted=false and (c.filePath is not null and c.filePath != '')";
|
||||||
List<String> listByHql = casesDao.findListByHql(hql1);
|
List<String> listByHql = casesDao.findListByHql(hql1);
|
||||||
List<DictItem> dictItems = new ArrayList<>();
|
List<DictItem> dictItems = new ArrayList<>();
|
||||||
for (DictItem d : major_type) {
|
for (DictItem d : major_type) {
|
||||||
@@ -914,8 +914,8 @@ public class CasesServiceImpl implements ICasesService {
|
|||||||
if (flag){
|
if (flag){
|
||||||
dictItems.add(d);
|
dictItems.add(d);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
/* String hql = "select cm.majorId,count(cm.caseId) from CasesMajorType cm,Cases c where cm.caseId=c.id and c.deleted=false and (c.filePath is not null and c.filePath != '') group by cm.majorId";
|
String hql = "select cm.majorId,count(cm.caseId) from CasesMajorType cm,Cases c where cm.caseId=c.id and c.deleted=false and (c.filePath is not null and c.filePath != '') group by cm.majorId";
|
||||||
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) {
|
||||||
@@ -926,7 +926,7 @@ public class CasesServiceImpl implements ICasesService {
|
|||||||
dictItems.add(d);
|
dictItems.add(d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
return dictItems;
|
return dictItems;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user