文档库--添加判空
This commit is contained in:
+3
-2
@@ -349,6 +349,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
* @param map
|
||||
*/
|
||||
public void addInfo(Map<String, Object> map) {
|
||||
map.remove("cut");
|
||||
//字段属性
|
||||
List<OnlCgformField> fieldList = onlCgformFieldService.getFieldList(ModuleEnum.DOCUMENT_LIBRARY.getValue());
|
||||
//时间类型字段
|
||||
@@ -512,7 +513,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
StringBuilder conditionSb = new StringBuilder("where 1 = 1");
|
||||
|
||||
//编码
|
||||
String serialNumber = (String) parameter.get("serial_number");
|
||||
String serialNumber = (String) parameter.get("serialNumber");
|
||||
|
||||
//标题
|
||||
String title = (String) parameter.get("title");
|
||||
@@ -665,7 +666,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
||||
for (String itemValue : value.split(",")) {
|
||||
//字段的数据字典
|
||||
List<SysDictItem> dictItemList = sysDictItems.stream()
|
||||
.filter(e -> e.getDictCode().equals(entry.getKey()))
|
||||
.filter(e -> StringUtils.isNotBlank(e.getDictCode()) && e.getDictCode().equals(entry.getKey()))
|
||||
.collect(Collectors.toList());
|
||||
if (dictItemList.size() != 0) {
|
||||
List<SysDictItem> dictItems = dictItemList.stream()
|
||||
|
||||
Reference in New Issue
Block a user