Explorar o código

feat: 匹配结算渠道1

shc %!s(int64=2) %!d(string=hai) anos
pai
achega
ab2dc45ba8

+ 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)) {