需求一:对每天的课设置预约次数的限制
需求二:对每周的预约次数进行次数限制 需求三:所有课程48小时内不能取消预约设置可配置
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.sv.mapper;
|
||||
|
||||
import com.sv.annotation.NoPlatform;
|
||||
import com.sv.annotation.PlatformKey;
|
||||
import com.sv.entity.MemberLessonTicket;
|
||||
import com.sv.entity.VenueLessonTicket;
|
||||
@@ -108,4 +109,20 @@ public interface VenueLessonTicketMapper {
|
||||
*/
|
||||
@PlatformKey
|
||||
Integer findNum(Integer venueId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检验是否满足公益课当天预约限制
|
||||
* @param memberId
|
||||
* @param venueId
|
||||
*/
|
||||
@NoPlatform
|
||||
Integer countFreeDayLimit(@Param("memberId") Integer memberId,@Param("venueId") Integer venueId);
|
||||
|
||||
/**
|
||||
* 检验是否满足公益课当周预约限制
|
||||
* @param memberId
|
||||
* @param venueId
|
||||
*/
|
||||
@NoPlatform
|
||||
Integer countFreeWeekLimit(@Param("memberId") Integer memberId,@Param("venueId") Integer venueId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user