|
@@ -18,10 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="businessHours" column="business_hours" />
|
|
|
<result property="address" column="address" />
|
|
|
<result property="phoneNumber" column="phone_number" />
|
|
|
+ <result property="cameraIndexCode" column="camera_index_code" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBeilvSiteVo">
|
|
|
- select id, name, site_type, cover, intro, price, warm_reminder, site_status, venue_id from beilv_site
|
|
|
+ select id, name, site_type, cover, intro, price, warm_reminder, site_status, venue_id, camera_index_code from beilv_site
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectBeilvSiteList" parameterType="BeilvSite" resultMap="BeilvSiteResult">
|
|
@@ -35,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
bs.warm_reminder,
|
|
|
bs.site_status,
|
|
|
bs.venue_id,
|
|
|
+ bs.camera_index_code,
|
|
|
bv.venue_name,
|
|
|
bv.business_hours,
|
|
|
bv.address,
|
|
@@ -60,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
bs.warm_reminder,
|
|
|
bs.site_status,
|
|
|
bs.venue_id,
|
|
|
+ bs.camera_index_code,
|
|
|
bv.venue_name
|
|
|
FROM
|
|
|
beilv_site bs
|
|
@@ -78,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="warmReminder != null">warm_reminder,</if>
|
|
|
<if test="siteStatus != null">site_status,</if>
|
|
|
<if test="venueId != null">venue_id,</if>
|
|
|
+ <if test="cameraIndexCode != null">camera_index_code,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="name != null">#{name},</if>
|
|
@@ -88,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="warmReminder != null">#{warmReminder},</if>
|
|
|
<if test="siteStatus != null">#{siteStatus},</if>
|
|
|
<if test="venueId != null">#{venueId},</if>
|
|
|
+ <if test="cameraIndexCode != null">#{venueId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -102,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="warmReminder != null">warm_reminder = #{warmReminder},</if>
|
|
|
<if test="siteStatus != null">site_status = #{siteStatus},</if>
|
|
|
<if test="venueId != null">venue_id = #{venueId},</if>
|
|
|
+ <if test="cameraIndexCode != null">camera_index_code = #{cameraIndexCode},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|