lyq 4 mesi fa
parent
commit
12914d19c6

+ 2 - 0
src/main/resources/mapper/lawenforcement/LawenforcementCaseMapper.xml

@@ -38,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
     <select id="selectLawenforcementCaseList" parameterType="LawenforcementCase" resultMap="LawenforcementCaseResult">
         <include refid="selectLawenforcementCaseVo"/>
+        left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         <where>
             <if test="deptName != null  and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
             <if test="recordId != null  and recordId != ''"> and record_id = #{recordId}</if>
@@ -47,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="punishType != null  and punishType != ''"> and punish_type = #{punishType}</if>
             <if test="describe != null  and describe != ''"> and `describe` = #{describe}</if>
             <if test="state != null  and state != ''"> and state = #{state}</if>
+            ${params.dataScope}
         </where>
         order by a.create_time desc
     </select>