You've already forked FrameTour-BE
feat(service): 批量获取景区和设备信息
- 在 DeviceRepository 中添加批量获取设备信息的方法 - 在 ScenicRepository 中添加批量获取景区信息的方法 - 修改 OrderServiceImpl,使用批量方法获取景区名称 - 移除多个 mapper 文件中冗余的景区信息查询
This commit is contained in:
@@ -34,14 +34,12 @@
|
||||
</delete>
|
||||
|
||||
<select id="getById" resultType="com.ycwl.basic.model.pc.price.resp.PriceConfigRespVO">
|
||||
select p.*, s.name as scenic_name from price_config p
|
||||
left join scenic s on s.id = p.scenic_id
|
||||
select p.* from price_config p
|
||||
where p.id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="listByCondition" resultType="com.ycwl.basic.model.pc.price.resp.PriceConfigRespVO">
|
||||
select p.*, s.name as scenic_name from price_config p
|
||||
left join scenic s on s.id = p.scenic_id
|
||||
select p.* from price_config p
|
||||
<where>
|
||||
<if test="req.scenicId != null">
|
||||
and p.scenic_id = #{req.scenicId}
|
||||
|
Reference in New Issue
Block a user