jinlin
2025-04-24 a857feef16fdd2ea9295f0be82a8fdaa34f13595
src/main/resources/mapper/progressTrack/DjJdgzTrackRecordDao.xml
@@ -96,10 +96,10 @@
            and c.TEAMGROUP_ID = ${teamId}
        </if>
        <if test="cabinId!=null">
            and c.cabin_id = ${cabinId}
            and ',' || c.cabin_id || ',' LIKE '%,${cabinId},%'
        </if>
        <if test="type!=null and type!=''">
            and c.type = #{type}
            and c.type = '${type}'
        </if>
        <if test="name!=null and name!=''">
            and c.name LIKE '%${name}%'
@@ -205,6 +205,15 @@
        and a.is_delete = 0
        <if test="userId!=null">
            AND a.TEAMGROUP_ID in (select teamgroup from sys_user where is_delete=0 and id=#{userId})
        </if>
        <if test="deptId!=null">
            AND b.DEPT_ID  = ${deptId}
        </if>
        <if test="teamId!=null">
            AND b.TEAMGROUP_ID  = ${teamId}
        </if>
        <if test="name!=null">
            AND b.name LIKE '%${name}%'
        </if>
        AND b.IS_DELETE = 0
        AND c.IS_DELETE = 0
@@ -492,5 +501,19 @@
            AND b.REQUIRED_COMPLETION_TIME &gt; b.ACTUAL_COMPLETION
        </if>
    </select>
    <select id="getIsExit" resultType="java.lang.Long">
        SELECT id
        FROM dj_jdgz_track_record
        WHERE LEVEL3_NETWORK_ID = ${level3NetworkId}
          AND process_name = #{processName}
          AND is_delete = 0
          AND update_date = (
            SELECT MAX(update_date)
            FROM dj_jdgz_track_record
            WHERE LEVEL3_NETWORK_ID = ${level3NetworkId}
              AND process_name = #{processName}
              AND is_delete = 0
        )
    </select>
</mapper>