| | |
| | | t7.name as teamName, |
| | | t4.assign_mode as assignMode, |
| | | t8.item_text as assignModeName, |
| | | t1.inspection_user_id as inspectionUserId, |
| | | t9.realname as inspectionUserName, |
| | | t1.inspection_order_uda2 as inspectionUserName, |
| | | t1.actual_end_time as actualEndTime, |
| | | t1.actual_start_time as actualStartTime, |
| | | t1.inspection_order_uda1 AS repairConfirmPerson, |
| | |
| | | left join sys_depart t6 on t2.use_id = t6.id |
| | | left join mom_base_team t7 on t2.team_id = t7.id |
| | | left join ( SELECT * FROM v_sys_dict WHERE dict_code = 'assign_mode' ) t8 on t8.item_value = t4.assign_mode |
| | | left join sys_user t9 on t1.inspection_user_id = t9.id |
| | | WHERE t1.del_flag = 0 and t2.del_flag = 0 and t3.del_flag = 0 and t4.del_flag = 0 |
| | | <!-- <if test="params.dailyInspectionStandardId != null and params.dailyInspectionStandardId != ''">--> |
| | | <!-- and t1.daily_inspection_standard_id = #{params.dailyInspectionStandardId}--> |
| | |
| | | <if test="params.num != null and params.num != ''"> |
| | | and t1.num like concat('%',#{params.num},'%') |
| | | </if> |
| | | <if test="params.equipmentNum != null and params.equipmentNum != ''"> |
| | | and t2.num like concat('%',#{params.equipmentNum},'%') |
| | | </if> |
| | | <if test="params.useDepartId != null and params.useDepartId != ''"> |
| | | and t2.use_id = #{params.useDepartId} |
| | | </if> |
| | | <if test="params.status != null and params.status != ''"> |
| | | and t1.status = #{params.status} |
| | | </if> |
| | | <if test="params.teamId != null and params.teamId != ''"> |
| | | and t2.team_id = #{params.teamId} |
| | | </if> |
| | | <if test="params.inspectionStartTime != null"> |
| | | and t1.actual_end_time >= #{params.inspectionStartTime} |
| | | </if> |
| | | <if test="params.inspectionEndTime != null"> |
| | | and t1.actual_end_time <= #{params.inspectionEndTime} |
| | | </if> |
| | | ORDER BY t1.create_time desc |
| | | </select> |
| | | |