feat(ad): 添加ad域同步间隔字段到查询结果

- 在 getList 查询中新增 interval 字段
- 在 getInfo 查询中新增 interval 字段
- 格式化 SQL 语句缩进以提高可读性
This commit is contained in:
曹鹏飞 2026-06-17 08:32:51 +08:00
parent ac440cb861
commit 02fcea1350
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<mapper namespace="com.nflg.wms.repository.mapper.AdMapper">
<select id="getList" resultType="com.nflg.wms.common.pojo.dto.AdDTO">
select a.*,ac.map_from,ac.map_to,ac.next_sync_date,ac.enable as enableSync,ac.id as syncId,ac.type
select a.*,ac.map_from,ac.map_to,ac.next_sync_date,ac.enable as enableSync,ac.id as syncId,ac.type,ac.interval
from ad a
inner join ad_sync ac on a.id = ac.ad_id
where a.enable
@ -11,7 +11,7 @@
</select>
<select id="getInfo" resultType="com.nflg.wms.common.pojo.dto.AdDTO">
select a.*,ac.map_from,ac.map_to,ac.next_sync_date,ac.enable as enableSync,ac.id as syncId,ac.type
select a.*,ac.map_from,ac.map_to,ac.next_sync_date,ac.enable as enableSync,ac.id as syncId,ac.type,ac.interval
from ad a
inner join ad_sync ac on a.id = ac.ad_id
where a.enable and a.id = #{id}