2021与蓝度共同重构项目,服务端
liuhaonan
2022-05-05 1191ee2f17238364542ec93f53a201abadc619dc
dao/src/main/resources/mapper/LightTaskMapper.xml
@@ -39,4 +39,23 @@
            AND (t3.user_id = #{userid} OR t3.client_id = #{userid})
        </if>
    </select>
    <select id="listLightTaskByTaskId" resultType="com.sandu.ximon.dao.bo.PoleTaskLightPowerBo"
            parameterType="java.lang.Long">
        SELECT
        t1.id ,
        t2.task_id,
        t4.power1,
        t4.power2
        FROM
        pole t1
        LEFT JOIN light_task_pole_relation t2 ON t1.id = t2.pole_id
        LEFT JOIN pole_binding t3 ON t3.device_code = t1.device_code
        LEFT JOIN light t4 ON t4.device_code = t1.device_code
        WHERE
        t3.device_type=0
        <if test=" taskId != null">
            AND
            task_id = taskId
        </if>
    </select>
</mapper>