| | |
| | | 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}%' |
| | |
| | | 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 |
| | |
| | | AND b.REQUIRED_COMPLETION_TIME > 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> |