fuliqi
2025-01-21 f59d7f75a997872935d55288d37cd80b3acb6dff
ycl-server/src/main/resources/mapper/zgyw/WorkOrderErrorTypeMapper.xml
@@ -97,12 +97,15 @@
        </foreach>
    </insert>
    <select id="getErrorList" resultType="com.ycl.system.entity.SysDictData">
        SELECT da.dict_value, da.dict_label
    <select id="getErrorListByNumbers" resultMap="com.ycl.platform.domain.vo.WorkOrderVO">
        SELECT oer.serial_number,oer.ip,da.dict_value as errorType
        FROM t_work_order_error_type oer
            INNER JOIN sys_dict_data da ON oer.error_name = da.dict_value
        WHERE oer.work_order_no = #{workOrderNo}
        INNER JOIN sys_dict_data da ON oer.error_name = da.dict_value
        WHERE oer.work_order_no in
        <foreach collection="workOrderNos" separator="," open="(" close=")" item="workOrderNo">
            #{workOrderNo}
        </foreach>
        ORDER BY oer.create_time
    </select>
</mapper>