소스 검색

修改审核列表查询sql,申诉人不一定是系统内用户

songxinlu 3 년 전
부모
커밋
284d632b63
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      report-service/src/main/resources/mapper/AppealExamineInfoMapper.xml

+ 2 - 3
report-service/src/main/resources/mapper/AppealExamineInfoMapper.xml

@@ -139,10 +139,9 @@
             <![CDATA[ AND c.example_status = #{getAppealReviewVO.state}]]>
         </if>
         ) a
-        LEFT JOIN sys_user b ON a.claimant_id = b.id
+        LEFT JOIN sys_user b ON a.claimant_id = b.id AND b.is_deleted='N'
         LEFT JOIN sys_user c ON a.check_id = c.id
-        WHERE b.is_deleted='N'
-        AND c.is_deleted='N'
+        WHERE c.is_deleted='N'
         <if test="getAppealReviewVO.name != null and getAppealReviewVO.name != '' ">
             <![CDATA[ AND b.linkman like concat('%',#{getAppealReviewVO.name},'%')]]>
         </if>