| | |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <select id="getErrorList" resultType="com.ycl.system.entity.SysDictData"> |
| | | SELECT da.dict_value, da.dict_label |
| | | |
| | | <select id="getErrorListByNumbers" resultType="com.ycl.platform.domain.vo.WorkOrderVO"> |
| | | SELECT m.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 |
| | | left join t_work_order wo on oer.work_order_no = wo.work_order_no |
| | | left join t_monitor m on m.serial_number = wo.serial_number |
| | | WHERE oer.work_order_no in |
| | | <foreach collection="workOrderNos" separator="," open="(" close=")" item="workOrderNo"> |
| | | #{workOrderNo} |
| | | </foreach> |
| | | ORDER BY oer.create_time |
| | | </select> |
| | | |
| | | <select id="getErrorList" resultType="com.ycl.system.entity.SysDictData"> |
| | | SELECT da.dict_value, da.dict_label |
| | | 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} |
| | | ORDER BY oer.create_time |
| | | </select> |
| | | </mapper> |