소스 검색

Merge branch 'test' into test-merge

# Conflicts:
#	blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/TextdictInfoServiceImpl.java
lvy 2 달 전
부모
커밋
f91e21dc5a
1개의 변경된 파일13개의 추가작업 그리고 10개의 파일을 삭제
  1. 13 10
      blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/TextdictInfoServiceImpl.java

+ 13 - 10
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/TextdictInfoServiceImpl.java

@@ -78,22 +78,25 @@ public class TextdictInfoServiceImpl extends ServiceImpl<TextdictInfoMapper, Tex
                 if(Func.isNotEmpty(textdictInfo.getShowType()) && textdictInfo.getShowType() == 1){
                     if(Func.isNotEmpty(dqid) && dqid.size() > 0){
                         textdict = baseMapper.selectTextdictBYIds(dqid,privateInfo.getProjectId());
-                        if (textdict != null && !textdict.isEmpty()) {
-                            for (TextdictInfoVO vo : textdict) {
-                                keys.remove(vo.getColKey());
-                            }
-                            if (Func.isNotEmpty(keys)) {
-                                // 查询系统级电签配置
-                                List<TextdictInfoVO> textdictList = iSignConfigService.hasSignConfig(privateInfo.getInitTableName(), keys, textdict.get(0));
-                                textdict.addAll(textdictList);
-                            }
-                        }
                     }else {
                         textdict = new ArrayList<>();
                     }
                 }else{
                     textdict = baseMapper.selectTextdictInfoByExcelId(page, textdictInfo);
                 }
+                if (textdict != null && !textdict.isEmpty()) {
+                    for (TextdictInfoVO vo : textdict) {
+                        if (!(privateInfo.getPKeyId() + "").equals(vo.getTabId())) {
+                            vo.setIsSystem(1);
+                        }
+                        keys.remove(vo.getColKey());
+                    }
+                    if (Func.isNotEmpty(keys)) {
+                        // 查询系统级电签配置
+                        List<TextdictInfoVO> textdictList = iSignConfigService.hasSignConfig(privateInfo.getInitTableName(), keys, textdict.get(0));
+                        textdict.addAll(textdictList);
+                    }
+                }
             } catch (Exception e) {
                 throw new RuntimeException(e);
             }