企标详情 属性字典查询为空时,使用其本身数值

This commit is contained in:
zhaokaiyao@91isoft.com
2022-01-06 17:53:31 +08:00
parent 8eeb61a354
commit 2e6ca96447
@@ -282,7 +282,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
if (null != page.getNowOrderBy()) {
nowOrderFunc(page);
}
List<SarBussionessStand> getList = sarBussionessStandEODao.getSarBussionessStand(page);
attrInfoShowExport(getList);
return getList;
@@ -825,7 +825,13 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
value = entry.getValue().toString();
List<String> valArr = Arrays.asList(value.split(","));
value = dicTypeEODao.getDicNamesByCodes(valArr);
entry.setValue(value);
Optional.ofNullable(value)
.ifPresent(val->{
entry.setValue(val);
});
}
}
}