<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="com.multictrl.modules.business.dao.MaintenanceDao">
    <resultMap type="com.multictrl.modules.business.entity.MaintenanceEntity" id="busMaintenanceMap">
        <result property="id" column="id"/>
        <result property="dockSn" column="dock_sn"/>
        <result property="content" column="content"/>
        <result property="operator" column="operator"/>
        <result property="operationDate" column="operation_date"/>
        <result property="creator" column="creator"/>
        <result property="createDate" column="create_date"/>
        <result property="updater" column="updater"/>
        <result property="updateDate" column="update_date"/>
    </resultMap>

    <select id="pageList" resultType="com.multictrl.modules.business.entity.MaintenanceEntity">
        SELECT m.*, d.dock_name, d.dock_model
        FROM bus_maintenance m
                 LEFT JOIN bus_dock d on m.dock_sn = d.dock_sn
            ${ew.customSqlSegment}
    </select>
</mapper>