From 3578b0ef674d6e356fb4ca11d534c2228cf37c4b Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期一, 15 八月 2022 18:23:18 +0800
Subject: [PATCH] changes
---
dao/src/main/resources/mapper/LightMapper.xml | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/dao/src/main/resources/mapper/LightMapper.xml b/dao/src/main/resources/mapper/LightMapper.xml
index 06dcc84..1cc69c0 100644
--- a/dao/src/main/resources/mapper/LightMapper.xml
+++ b/dao/src/main/resources/mapper/LightMapper.xml
@@ -23,7 +23,11 @@
<result property="poleId" column="pole_id" jdbcType="BIGINT"/>
<result property="poleCode" column="pole_code" jdbcType="VARCHAR"/>
<result property="poleName" column="pole_name" jdbcType="VARCHAR"/>
- <result property="taskName" column="task_name" jdbcType="VARCHAR"/>
+ <collection property="taskNameIdBos" ofType="com.sandu.ximon.dao.bo.LightTaskNameIdBo">
+ <result property="taskId" column="task_id" jdbcType="BIGINT"/>
+ <result property="taskName" column="task_name" jdbcType="VARCHAR"/>
+ <result property="lightAddress" column="light_address" jdbcType="VARCHAR"/>
+ </collection>
</resultMap>
@@ -33,7 +37,9 @@
t2.id AS pole_id,
t2.pole_code,
t2.pole_name,
- t4.task_name
+ t4.task_id AS task_id,
+ t4.task_name AS task_name,
+ t3.light_address AS light_address
FROM
light t1
LEFT JOIN pole t2 USING ( device_code )
@@ -50,7 +56,6 @@
)
</if>
</where>
- GROUP BY t1.device_code
</select>
<select id="listCode" resultType="java.lang.String">
SELECT
--
Gitblit v1.9.3