You've already forked FrameTour-BE
refactor(mapper): 移除订单和资源相关 mapper 中的 scenicName 字段
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
- 从 OrderMapper.xml 中移除了多个 resultMap 中的 scenicName 字段 -从 SourceMapper.xml 中移除了多个 SQL 查询中的 scenicName 字段- 这些更改可能是为了减少冗余数据或优化数据库查询性能
This commit is contained in:
@@ -88,14 +88,14 @@
|
||||
order by so.create_time desc
|
||||
</select>
|
||||
<select id="userGetById" resultType="com.ycwl.basic.model.pc.source.resp.SourceRespVO">
|
||||
select so.id, ms.scenic_id, device_id, ms.member_id, url, ms.is_free, so.create_time, so.update_time,sc.`name` as scenicName
|
||||
select so.id, ms.scenic_id, device_id, ms.member_id, url, ms.is_free, so.create_time, so.update_time
|
||||
from member_source ms
|
||||
left join source so on ms.source_id = so.id
|
||||
|
||||
where so.id = #{id} and ms.member_id = #{userId} and so.id is not null
|
||||
</select>
|
||||
<select id="getById" resultType="com.ycwl.basic.model.pc.source.resp.SourceRespVO">
|
||||
select so.id, scenic_id, device_id, url, video_url, so.create_time, so.update_time,sc.`name` as scenicName
|
||||
select so.id, scenic_id, device_id, url, video_url, so.create_time, so.update_time
|
||||
from source so
|
||||
|
||||
where so.id = #{id}
|
||||
@@ -138,7 +138,7 @@
|
||||
limit 1
|
||||
</select>
|
||||
<select id="listUser" resultType="com.ycwl.basic.model.pc.source.resp.SourceRespVO">
|
||||
select so.id, ms.scenic_id, device_id, url, ms.is_free, so.create_time, so.update_time,sc.`name` as scenicName, ms.is_buy, video_url
|
||||
select so.id, ms.scenic_id, device_id, url, ms.is_free, so.create_time, so.update_time, ms.is_buy, video_url
|
||||
from member_source ms
|
||||
left join source so on ms.source_id = so.id
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
</select>
|
||||
|
||||
<select id="listUserOne" resultType="com.ycwl.basic.model.pc.source.resp.SourceRespVO">
|
||||
select so.id, ms.scenic_id, device_id, url, ms.is_free, video_url, so.create_time, so.update_time,sc.`name` as scenicName, ms.is_buy
|
||||
select so.id, ms.scenic_id, device_id, url, ms.is_free, video_url, so.create_time, so.update_time,ms.is_buy
|
||||
from member_source ms
|
||||
left join source so on ms.source_id = so.id
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
limit 1
|
||||
</select>
|
||||
<select id="queryByRelation" resultType="com.ycwl.basic.model.pc.source.resp.SourceRespVO">
|
||||
select so.id, ms.face_id, ms.scenic_id, ms.type, so.url, ms.is_free, so.create_time, so.update_time,sc.`name` as scenicName, ms.is_buy
|
||||
select so.id, ms.face_id, ms.scenic_id, ms.type, so.url, ms.is_free, so.create_time, so.update_time,ms.is_buy
|
||||
from member_source ms
|
||||
left join source so on ms.source_id = so.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user