feat(ad): 添加ad域同步间隔字段到查询结果
- 在 getList 查询中新增 interval 字段 - 在 getInfo 查询中新增 interval 字段 - 格式化 SQL 语句缩进以提高可读性
This commit is contained in:
parent
ac440cb861
commit
02fcea1350
|
|
@ -3,7 +3,7 @@
|
||||||
<mapper namespace="com.nflg.wms.repository.mapper.AdMapper">
|
<mapper namespace="com.nflg.wms.repository.mapper.AdMapper">
|
||||||
|
|
||||||
<select id="getList" resultType="com.nflg.wms.common.pojo.dto.AdDTO">
|
<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
|
from ad a
|
||||||
inner join ad_sync ac on a.id = ac.ad_id
|
inner join ad_sync ac on a.id = ac.ad_id
|
||||||
where a.enable
|
where a.enable
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getInfo" resultType="com.nflg.wms.common.pojo.dto.AdDTO">
|
<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
|
from ad a
|
||||||
inner join ad_sync ac on a.id = ac.ad_id
|
inner join ad_sync ac on a.id = ac.ad_id
|
||||||
where a.enable and a.id = #{id}
|
where a.enable and a.id = #{id}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue