微调
This commit is contained in:
@@ -106,7 +106,7 @@ public class PqErrSysServiceImpl extends ServiceImpl<PqErrSysMapper, PqErrSys> i
|
||||
PqErrSysDtlsVO temp = new PqErrSysDtlsVO();
|
||||
temp.setDevLevel(this.getById(id).getDevLevel());
|
||||
//按照测量项分组
|
||||
Map<String, List<PqErrSysDtls>> map = pqErrSysDtls.stream().collect(Collectors.groupingBy(PqErrSysDtls::getType));
|
||||
Map<String, List<PqErrSysDtls>> map = pqErrSysDtls.stream().collect(Collectors.groupingBy(PqErrSysDtls::getErrorType));
|
||||
map.forEach((key, value) -> {
|
||||
this.visualize(value, temp);
|
||||
result.add(temp);
|
||||
@@ -141,7 +141,7 @@ public class PqErrSysServiceImpl extends ServiceImpl<PqErrSysMapper, PqErrSys> i
|
||||
*/
|
||||
private void visualize(List<PqErrSysDtls> list, PqErrSysDtlsVO temp) {
|
||||
if (ObjectUtil.isNotEmpty(list)) {
|
||||
String type = list.get(0).getType();
|
||||
String type = list.get(0).getErrorType();
|
||||
DictTree dictTree = dictTreeService.queryById(type);
|
||||
if (ObjectUtil.isNotNull(dictTree)) {
|
||||
String[] pids = dictTree.getPids().split(StrPool.COMMA);
|
||||
|
||||
Reference in New Issue
Block a user