门禁开门计费逻辑调整
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
<result column="copy_time" property="copyTime"/>
|
||||
<result column="copy_target" property="copyTarget"/>
|
||||
<result column="copy_control" property="copyControl"/>
|
||||
<result column="pay_style" property="payStyle"/>
|
||||
<result column="time_pay_hour" property="timePayHour"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="VenueDtoMap" type="com.sv.dto.api.VenueDTO">
|
||||
@@ -67,6 +69,8 @@
|
||||
<result column="copy_time" property="copyTime"/>
|
||||
<result column="copy_target" property="copyTarget"/>
|
||||
<result column="copy_control" property="copyControl"/>
|
||||
<result column="pay_style" property="payStyle"/>
|
||||
<result column="time_pay_hour" property="timePayHour"/>
|
||||
<result column="code_url" property="codeUrl"></result>
|
||||
<association property="cards" select="com.sv.mapper.VenueCardMapper.findByVenueId"
|
||||
column="{venueId = id,venueType=type}"></association>
|
||||
@@ -130,7 +134,9 @@
|
||||
copy_week,
|
||||
copy_time,
|
||||
copy_target,
|
||||
copy_control
|
||||
copy_control,
|
||||
pay_style,
|
||||
time_pay_hour
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
@@ -162,6 +168,8 @@
|
||||
#{copy_time, jdbcType=TIMESTAMP},
|
||||
#{copy_target, jdbcType=TINYINT},
|
||||
#{copy_control, jdbcType=TINYINT}
|
||||
#{pay_style, jdbcType=TINYINT}
|
||||
#{time_pay_hour, jdbcType=TINYINT}
|
||||
</sql>
|
||||
|
||||
<!-- 查询全部记录 -->
|
||||
@@ -308,6 +316,12 @@
|
||||
<if test="copyControl != null">
|
||||
copy_control,
|
||||
</if>
|
||||
<if test="payStyle != null">
|
||||
pay_style,
|
||||
</if>
|
||||
<if test="timePayHour != null">
|
||||
time_pay_hour,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@@ -406,6 +420,12 @@
|
||||
<if test="copyControl != null">
|
||||
#{copyControl},
|
||||
</if>
|
||||
<if test="payStyle != null">
|
||||
#{payStyle},
|
||||
</if>
|
||||
<if test="timePayHour != null">
|
||||
#{timePayHour},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -535,6 +555,12 @@
|
||||
<if test="copyControl != null">
|
||||
copy_control = #{copyControl},
|
||||
</if>
|
||||
<if test="payStyle != null">
|
||||
pay_style = #{payStyle},
|
||||
</if>
|
||||
<if test="timePayHour != null">
|
||||
time_pay_hour = #{timePayHour},
|
||||
</if>
|
||||
</set>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
@@ -579,7 +605,9 @@
|
||||
copy_time,
|
||||
copy_target,
|
||||
copy_control,
|
||||
status
|
||||
status,
|
||||
pay_style,
|
||||
time_pay_hour
|
||||
FROM
|
||||
sv_venue
|
||||
WHERE
|
||||
@@ -634,13 +662,13 @@
|
||||
select count(0) from sv_venue_member where member_id = #{memberId} and venue_id = #{venueId}
|
||||
</select>
|
||||
|
||||
<insert id="addNumber">
|
||||
<update id="addNumber">
|
||||
update sv_venue set number = number + #{number} where id = #{venueId}
|
||||
</insert>
|
||||
</update>
|
||||
|
||||
<insert id="updateNumber">
|
||||
<update id="updateNumber">
|
||||
update sv_venue set number = #{number} where id = #{venueId}
|
||||
</insert>
|
||||
</update>
|
||||
|
||||
<insert id="addMember">
|
||||
INSERT INTO sv_venue_member (`member_id`, `venue_id`) VALUES (#{memberId},#{venueId})
|
||||
|
||||
Reference in New Issue
Block a user