qushaowei
2024-03-13 c127accdddb76d11847f41b5685f5ef5e9e988d7
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/InspectionOrderMapper.xml
@@ -33,8 +33,7 @@
            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,
@@ -48,7 +47,6 @@
        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}-->
@@ -56,6 +54,24 @@
        <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 &gt;= #{params.inspectionStartTime}
        </if>
        <if test="params.inspectionEndTime != null">
            and t1.actual_end_time &lt;= #{params.inspectionEndTime}
        </if>
        ORDER BY t1.create_time desc
    </select>