‘liusuyi’
2023-07-24 e339298a0b94505a0dd283f7f0d9c0cf0aa51987
ard-work/src/main/resources/mapper/app/ArdAppTaskMapper.xml
@@ -52,8 +52,8 @@
               c.name,
               c.text,
               c.voice,
               c.dept_id,
               c.user_id,
               d.dept_id,
               u.user_id,
               c.create_by,
               c.create_time,
               c.update_by,
@@ -69,14 +69,9 @@
            <if test="name != null  and name != ''">and name like '%'||#{name}||'%'</if>
            <if test="text != null  and text != ''">and text = #{text}</if>
            <if test="voice != null  and voice != ''">and voice = #{voice}</if>
            <if test="deptId != null and deptId != 0 ">
            and (c.dept_id = #{deptId} OR c.dept_id IN ( SELECT t.dept_id FROM sys_dept t
                WHERE cast(#{deptId} as varchar) = any(string_to_array(ancestors,',')) ))
            </if>
            <if test="userId != null  and userId != ''">and user_id = #{userId}</if>
        </where>
        <!-- 数据范围过滤 -->
        ${params.dataScope}
        </where>
    </select>
    <select id="selectArdAppTaskById" parameterType="String" resultMap="ArdAppTaskSubResult">