浏览代码

修改审核列表查询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>