Browse Source

已删除部门未过滤问题修改

sunzehao 2 months ago
parent
commit
907dbf5e50

+ 2 - 1
ims-service/ims-eval/src/main/resources/mappers/EvaluationDeptBusinessAssessmentMapper.xml

@@ -47,7 +47,7 @@
 
     <select id="selectListPage" resultType="com.ims.eval.entity.EvaluationDeptBusinessAssessment">
         select * from evaluation_dept_business_assessment edba
-        left join evaluation_dept ed on edba.dept_id = ed.dept_id
+        left join evaluation_dept ed on edba.dept_id = ed.dept_id and ed.del_flag = '1'
         <where>
             <if test="deptId != null and deptId != ''">
                 AND edba.dept_id = #{deptId}
@@ -64,6 +64,7 @@
             <if test="stage != null and stage != ''">
                 AND edba.stage = #{stage}
             </if>
+
         </where>
         order by edba.appraisal_year desc, ed.serial_number asc
     </select>