3 次代碼提交 570d076a82 ... 78423692b3

作者 SHA1 備註 提交日期
  lixuesong 78423692b3 Merge branch 'refs/heads/hotfix-20250609-entlogicdel' into feat-250606-quitzpassingmark 4 周之前
  dengjia 34a5af7c1d fix: query desendation deep down two levels in dep relation 1 月之前
  dengjia 11245f0ff2 更新积分包不再更新积分值 1 月之前

+ 4 - 0
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/pkg/WmScorePackageController.java

@@ -1921,6 +1921,9 @@ public class WmScorePackageController {
             } else if (sysDept5.getLevel() == 3) {
                 wmScorePackage.setTypeid("2");
             }
+            /** 
+             * 有bug,先禁止更新积分值
+             * 
             List<WmScorePackage> wmScorePackageList = wmScorePackageService.list(Wrappers.query(queryWm));
             WmScorePackage wmId = wmScorePackageService.getById(wmScorePackage.getId());
             if (CollUtil.isNotEmpty(wmScorePackageList)) {
@@ -1980,6 +1983,7 @@ public class WmScorePackageController {
                 }
                 wmScorePackageService.updateBatchById(wmScorePackageList);
             }
+            */
         }
 
         if (CollUtil.isNotEmpty(wmScorePackage.getWmScoreTaskTypeList())) {

+ 2 - 0
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/mapper/SysDeptRelationMapper.java

@@ -35,6 +35,8 @@ public interface SysDeptRelationMapper extends BaseMapper<SysDeptRelation> {
 
 	List<SysDeptRelation> selectDeptRelationsList(@Param("query") SysDeptRelation sysDeptRelation);
 
+	List<SysDeptRelation> selectDeptAllDesc(@Param("query") SysDeptRelation sysDeptRelation);
+
 	List<SysDeptRelation> selectDeptRelation(@Param("query") SysDeptRelation sysDeptRelation);
 
 	List<SysDeptRelation> selectByDescendantList(@Param("query") SysDeptRelation sysDeptRelation);

+ 1 - 1
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/service/impl/WmDaAgentServiceImpl.java

@@ -720,7 +720,7 @@ public class WmDaAgentServiceImpl extends ServiceImpl<WmDaAgentMapper, WmDaAgent
             } else {
                 SysDeptRelation sysDeptRelation = new SysDeptRelation();
                 sysDeptRelation.setAncestor(SecurityUtils.getUser().getDeptId());
-                sysDeptRelationList.addAll(sysDeptRelationMapper.selectDeptRelationsList(sysDeptRelation));
+                sysDeptRelationList.addAll(sysDeptRelationMapper.selectDeptAllDesc(sysDeptRelation));
             }
 
             List<WmDaAgent> wmDaAgentList = new ArrayList<>();

+ 16 - 0
hnqz-upms/hnqz-upms-biz/src/main/resources/mapper/SysDeptRelationMapper.xml

@@ -69,6 +69,22 @@
 		WHERE ancestor = #{query.ancestor}
 	</select>
 
+	<select id="selectDeptAllDesc" resultMap="BaseResultMap">
+		SELECT *
+		FROM sys_dept_relation
+		WHERE ancestor = #{query.ancestor}
+		UNION ALL
+		SELECT *
+		FROM sys_dept_relation
+		WHERE ancestor in (
+			SELECT descendant
+			FROM sys_dept_relation
+			WHERE ancestor = #{query.ancestor}
+			and
+			descendant != ancestor
+		)
+	</select>
+
 	<select id="selectListByAncestor" resultMap="BaseResultMap">
 		SELECT
 		*