需求一:对每天的课设置预约次数的限制
需求二:对每周的预约次数进行次数限制 需求三:所有课程48小时内不能取消预约设置可配置
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
<result column="deleted" property="deleted"/>
|
||||
<result column="note" property="note"/>
|
||||
<result column="type" property="type"></result>
|
||||
<result column="order_limit" property="orderLimit"></result>
|
||||
</resultMap>
|
||||
<resultMap id="VenueLessonOrderDtoMap" type="com.sv.dto.api.VenueLessonDTO" extends="VenueLessonMap">
|
||||
<result column="address" property="address"/>
|
||||
@@ -70,7 +71,8 @@
|
||||
deleted,
|
||||
note,
|
||||
status,
|
||||
type
|
||||
type,
|
||||
order_limit
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
@@ -96,6 +98,7 @@
|
||||
#{deleted, jdbcType=TINYINT},
|
||||
#{note, jdbcType=VARCHAR},
|
||||
#{status, jdbcType=INTEGER}
|
||||
#{orderLimit, jdbcType=INTEGER}
|
||||
</sql>
|
||||
|
||||
<!-- 查询全部记录 -->
|
||||
@@ -177,6 +180,9 @@
|
||||
<if test="deleted != null">
|
||||
deleted,
|
||||
</if>
|
||||
<if test="orderLimit != null">
|
||||
order_limit,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@@ -242,6 +248,9 @@
|
||||
<if test="deleted != null">
|
||||
#{deleted},
|
||||
</if>
|
||||
<if test="orderLimit != null">
|
||||
#{orderLimit},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -333,6 +342,9 @@
|
||||
<if test="note != null">
|
||||
note = #{note},
|
||||
</if>
|
||||
<if test="orderLimit != null">
|
||||
order_limit = #{orderLimit},
|
||||
</if>
|
||||
</set>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
@@ -487,6 +499,7 @@
|
||||
ve.latitude,
|
||||
ve.longitude,
|
||||
le.type,
|
||||
le.order_limit,
|
||||
ve.`name` AS venueName
|
||||
FROM
|
||||
sv_venue_lesson AS le
|
||||
@@ -508,7 +521,8 @@
|
||||
vl.price,
|
||||
vl.num,
|
||||
vl.sale_num,
|
||||
vl.note
|
||||
vl.note,
|
||||
vl.order_limit
|
||||
FROM
|
||||
sv_venue_lesson AS vl
|
||||
LEFT JOIN sv_venue AS ue ON vl.venue_id = ue.id
|
||||
|
||||
Reference in New Issue
Block a user