三项制度库bug修复

1、标签展示空内容
2、新增按钮去掉权限校验
limingyu-20240401-app登录曹实业判断修改
liujun 2024-02-28 16:52:11 +08:00
parent feb83ceb03
commit c253b07103
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ public class TextLibraryServiceImpl implements TextLibraryService {
for (PageData entity : list) { for (PageData entity : list) {
List<PageData> _labels = libraryLabelsMapper.findBylibraryId(entity); List<PageData> _labels = libraryLabelsMapper.findBylibraryId(entity);
// 安全操作规程 // 安全操作规程
entity.put("labels", _labels.stream().filter(n -> n.get("BUS_LABEL_FACTORY_ID") != null).collect(Collectors.toList())); entity.put("labels", _labels.stream().filter(n -> StringUtils.isNotEmpty(n.getString("BUS_LABEL_FACTORY_ID"))).collect(Collectors.toList()));
entity.put("TYPES", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("TYPES")).collect(Collectors.toList())); entity.put("TYPES", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("TYPES")).collect(Collectors.toList()));
entity.put("SPECIFICATION_TYPES", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("SPECIFICATION_TYPES")).collect(Collectors.toList())); entity.put("SPECIFICATION_TYPES", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("SPECIFICATION_TYPES")).collect(Collectors.toList()));
entity.put("ATTRIBUTE_LIST", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("ATTRIBUTE_LIST")).collect(Collectors.toList())); entity.put("ATTRIBUTE_LIST", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("ATTRIBUTE_LIST")).collect(Collectors.toList()));