划线价显示在订单详情内、设备关闭时,不输出对应设备的视频内容(已关联的不管)

This commit is contained in:
2025-02-12 21:17:41 +08:00
parent 9c13d7261c
commit 3ee762f5bb
10 changed files with 41 additions and 26 deletions

View File

@ -2,8 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ycwl.basic.mapper.ScenicMapper">
<insert id="add">
insert into scenic(id, `name`, introduction, phone, cover_url, longitude, latitude, radius, province, city, area, address, price, kf_code_url, kf_phone, logo_url)
values (#{id}, #{name}, #{introduction}, #{phone}, #{coverUrl},#{longitude}, #{latitude}, #{radius}, #{province}, #{city}, #{area}, #{address}, #{price}, #{kfCodeUrl}, #{kfPhone}, #{logoUrl})
insert into scenic(id, `name`, introduction, phone, cover_url, longitude, latitude, radius, province, city, area, address, price, kf_code_url, kf_phone, logo_url, source_video_price, source_image_price)
values (#{id}, #{name}, #{introduction}, #{phone}, #{coverUrl},#{longitude}, #{latitude}, #{radius}, #{province}, #{city}, #{area}, #{address}, #{price}, #{kfCodeUrl}, #{kfPhone}, #{logoUrl}, #{sourceVideoPrice}, #{sourceImagePrice})
</insert>
<insert id="addConfig">
insert into scenic_config(id, scenic_id, create_time)
@ -58,6 +58,12 @@
<if test="price!=null">
price=#{price},
</if>
<if test="sourceVideoPrice!=null">
source_video_price=#{sourceVideoPrice},
</if>
<if test="sourceImagePrice!=null">
source_image_price=#{sourceImagePrice},
</if>
</set>
where id = #{id}
</update>
@ -109,6 +115,7 @@
</delete>
<select id="list" resultMap="scenic">
select s.id, `name`, `phone`, introduction,logo_url,cover_url, longitude, latitude, radius, province, city, area, address, `status`, s.create_time, update_time, kf_code_url, kf_phone,
s.price, s.source_video_price, s.source_image_price,
(select scenic_account.account from scenic_account where scenic_account.scenic_id = s.id and scenic_account.is_super = 1 limit 1) as account,
s.price
from scenic s
@ -138,7 +145,7 @@
</select>
<select id="getById" resultMap="scenic">
select s.id, `name`, `phone`, introduction, logo_url,cover_url, longitude, latitude, radius, province, city, area, address, `status`, s.create_time, update_time,
s.price
s.price, s.source_video_price, s.source_image_price, kf_code_url, kf_phone
from scenic s
where s.id = #{id}
</select>