| | |
| | | <id property="id" column="id" jdbcType="BIGINT"/> |
| | | <result property="taskId" column="task_id" jdbcType="BIGINT"/> |
| | | <result property="poleId" column="pole_id" jdbcType="BIGINT"/> |
| | | <result property="issueStatus" column="issue_status" jdbcType="INTEGER"/> |
| | | <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id,task_id,pole_id, |
| | | create_time,update_time |
| | | issue_status,create_time,update_time |
| | | </sql> |
| | | <select id="listPoleAndStatusIdByTaskId" resultType="com.sandu.ximon.dao.bo.LightTaskStatusAndPole"> |
| | | SELECT |
| | | t1.issue_status, |
| | | t2.* |
| | | FROM |
| | | light_task_pole_relation t1 |
| | | LEFT JOIN pole t2 ON t1.pole_id = t2.id |
| | | <where> |
| | | AND t1.task_id = #{taskId} |
| | | </where> |
| | | </select> |
| | | </mapper> |