需求一:对每天的课设置预约次数的限制

需求二:对每周的预约次数进行次数限制
需求三:所有课程48小时内不能取消预约设置可配置
This commit is contained in:
limqhz
2021-05-22 22:19:57 +08:00
parent 3d922c6776
commit 0e9a4b676c
13 changed files with 251 additions and 31 deletions

View File

@@ -28,6 +28,8 @@
<result column="modified_time" property="modifiedTime"/>
<result column="code_url" property="codeUrl"></result>
<result column="deleted" property="deleted"/>
<result column="limit_day" property="limitDay"/>
<result column="limit_week" property="limitWeek"/>
</resultMap>
<resultMap id="VenueDtoMap" type="com.sv.dto.api.VenueDTO">
@@ -50,6 +52,8 @@
<result column="created_time" property="createdTime"/>
<result column="modified_time" property="modifiedTime"/>
<result column="deleted" property="deleted"/>
<result column="limit_day" property="limitDay"/>
<result column="limit_week" property="limitWeek"/>
<result column="code_url" property="codeUrl"></result>
<association property="cards" select="com.sv.mapper.VenueCardMapper.findByVenueId"
column="{venueId = id,venueType=type}"></association>
@@ -105,7 +109,9 @@
created_time,
modified_time,
code_url,
deleted
deleted,
limit_day,
limit_week
</sql>
<!-- 字段值 -->
@@ -129,6 +135,8 @@
#{createdTime, jdbcType=TIMESTAMP},
#{modifiedTime, jdbcType=TIMESTAMP},
#{deleted, jdbcType=TINYINT}
#{limit_day, jdbcType=TINYINT}
#{limit_week, jdbcType=TINYINT}
</sql>
<!-- 查询全部记录 -->
@@ -251,6 +259,12 @@
<if test="deleted != null">
deleted,
</if>
<if test="limitDay != null">
limit_day,
</if>
<if test="limitWeek != null">
limit_week,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@@ -325,6 +339,12 @@
<if test="deleted != null">
#{deleted},
</if>
<if test="limitDay != null">
#{limitDay},
</if>
<if test="limitWeek != null">
#{limitWeek},
</if>
</trim>
</insert>
@@ -430,6 +450,12 @@
<if test="codeUrl != null">
code_url = #{codeUrl},
</if>
<if test="limitDay != null">
limit_day = #{limitDay},
</if>
<if test="limitWeek != null">
limit_week = #{limitWeek},
</if>
</set>
WHERE id = #{id}
</update>
@@ -465,7 +491,9 @@
description,
longitude,
latitude,
card_content
card_content,
limit_day,
limit_week
FROM
sv_venue
WHERE
@@ -535,4 +563,4 @@
<delete id="deleteMember">
delete from sv_venue_member where member_id = #{memberId} and venue_id = #{venueId}
</delete>
</mapper>
</mapper>