| | |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | <result property="errorMsg" column="error_msg" jdbcType="VARCHAR"/> |
| | | </resultMap> |
| | | |
| | | <select id="listReportError" resultType="com.sandu.ximon.dao.bo.C3ReportErrorBo"> |
| | | SELECT |
| | | t1.*, |
| | | t4.pole_name as pole_name, |
| | | t4.id as pole_id |
| | | FROM |
| | | c3m_report_error t1 |
| | | LEFT JOIN c3m_charging t2 ON t1.c3_mac = t2.c3_mac |
| | | LEFT JOIN pole_binding t3 ON t2.mcu_udid = t3.device_code |
| | | AND t3.device_type = 2 |
| | | LEFT JOIN pole t4 ON t4.id = t3.pole_id |
| | | <where> |
| | | <if test="userid != null"> |
| | | AND (t4.user_id = #{userid} OR t4.client_id = #{userid}) |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |