|
@@ -419,34 +419,32 @@ public class WmDeptTaskTypeConfigServiceImpl extends ServiceImpl<WmDeptTaskTypeC
|
|
|
wrapper2.isNull("p.relation_score_id");
|
|
|
});
|
|
|
} else {
|
|
|
- wrapper.or(wrapper2 -> {
|
|
|
- wrapper2.ne("1", "1");
|
|
|
- });
|
|
|
+ wrapper.or(wrapper2 -> wrapper2.ne("1", "1"));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
// 关联了上级企业的包的任务 条件
|
|
|
if (CollectionUtil.isNotEmpty(finalFilterAncestorConfigList)) {
|
|
|
for (WmDeptTaskTypeConfigJsonDTO configJsonDTO : finalFilterAncestorConfigList) {
|
|
|
- // 用户类型
|
|
|
- List<String> typeIdList = new ArrayList<>();
|
|
|
- if (configJsonDTO.getZbdbStatusEnable() && configJsonDTO.getZbdbStatusSelect()) {
|
|
|
- typeIdList.add("4");
|
|
|
- }
|
|
|
- if (configJsonDTO.getYydbStatusEnable() && configJsonDTO.getYydbStatusSelect()) {
|
|
|
- typeIdList.add("3");
|
|
|
- }
|
|
|
- if (CollectionUtil.isNotEmpty(typeIdList)) {
|
|
|
- wrapper.or(wrapper2 -> {
|
|
|
- wrapper2.eq("t.task_type_id", configJsonDTO.getTaskTypeId());
|
|
|
- wrapper2.eq("t.dept_id", deptId);
|
|
|
- wrapper2.in("p.typeid", typeIdList);
|
|
|
- wrapper2.isNotNull("p.relation_score_id");
|
|
|
- });
|
|
|
- } else {
|
|
|
- wrapper.or(wrapper2 -> {
|
|
|
- wrapper2.ne("1", "1");
|
|
|
- });
|
|
|
+ if (configJsonDTO.getAssociateLower()) {
|
|
|
+ // 用户类型
|
|
|
+ List<String> typeIdList = new ArrayList<>();
|
|
|
+ if (configJsonDTO.getZbdbStatusEnable() && configJsonDTO.getZbdbStatusSelect()) {
|
|
|
+ typeIdList.add("4");
|
|
|
+ }
|
|
|
+ if (configJsonDTO.getYydbStatusEnable() && configJsonDTO.getYydbStatusSelect()) {
|
|
|
+ typeIdList.add("3");
|
|
|
+ }
|
|
|
+ if (CollectionUtil.isNotEmpty(typeIdList)) {
|
|
|
+ wrapper.or(wrapper2 -> {
|
|
|
+ wrapper2.eq("t.task_type_id", configJsonDTO.getTaskTypeId());
|
|
|
+ wrapper2.eq("t.dept_id", deptId);
|
|
|
+ wrapper2.in("p.typeid", typeIdList);
|
|
|
+ wrapper2.isNotNull("p.relation_score_id");
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ wrapper.or(wrapper2 -> wrapper2.ne("1", "1"));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|