guarantee-lsq 1 год назад
Родитель
Сommit
495bbe459d

+ 3 - 3
platform-dao/src/main/resources/mapper/preparation/PreparationMapper.xml

@@ -195,16 +195,16 @@
         select status, count(1) counts from t_preparation
         <where>
             <if test="applyVerifyUserId != null and applyVerifyUserId != ''">
-                and (user_id = #{applyVerifyUserId} or apply_verify_user_id = #{applyVerifyUserId})
+                and apply_verify_user_id = #{applyVerifyUserId}
             </if>
             <if test="userId !=null and userId !='' ">
                 and user_id = #{userId}
             </if>
             <if test="repairUserId!=null and repairUserId!=''">
-                and (user_id = #{repairUserId} or repair_user_id = #{repairUserId})
+                and repair_user_id = #{repairUserId}
             </if>
             <if test="tempUserId != null and tempUserId != ''">
-                and (user_id = #{tempUserId} or receive_verify_leader = #{tempUserId}
+                and (receive_verify_leader = #{tempUserId}
                 or apply_verify_leader = #{tempUserId})
             </if>
             <if test="delUserId != null and delUserId != ''">

+ 1 - 0
platform-service/src/main/java/com/platform/service/preparation/impl/PreparationServiceImpl.java

@@ -987,6 +987,7 @@ public class PreparationServiceImpl extends BaseServiceImpl<PreparationMapper, P
                         }
                         break;
                     case 4: // 部门负责人
+                        // 通过userId判断是收件部门负责人还是
                         if (item.getStatus() == PreparationStatusEnum.APPLY_MANAGER_VERIFY_SUCCESS.getValue() ||
                                 item.getStatus() == PreparationStatusEnum.APPLY_LEADER_VERIFY_SUCCESS.getValue()){ // 待审核
                             vo.setWaitVerifyNum(vo.getWaitVerifyNum().add(tempVal));