瀏覽代碼

Merge branch 'fix-burstate' into temp-pre

shc 2 年之前
父節點
當前提交
99858fd5b1

+ 1 - 1
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/SysDictController.java

@@ -110,7 +110,7 @@ public class SysDictController {
 
 		Integer deptId = SecurityUtils.getUser().getDeptId();
 		if ("subject_location".equals(type) && 1 != deptId) {
-			List<SysDeptSub> l = deptSubService.list(Wrappers.<SysDeptSub>lambdaQuery().eq(SysDeptSub::getDeptId, deptId));
+			List<SysDeptSub> l = deptSubService.list(Wrappers.<SysDeptSub>lambdaQuery().eq(SysDeptSub::getDeptId, deptId).eq(SysDeptSub::getEnableFlag, "1"));
 			if (CollUtil.isNotEmpty(l)) {
 				List<String> collect = l.stream().filter(sub -> sub.getSubjectLocation() != null).map(sub -> sub.getSubjectLocation().getType()).collect(Collectors.toList());
 				if (CollUtil.isNotEmpty(collect)) {