api-显示当前场馆的预订信息
This commit is contained in:
@@ -2,6 +2,7 @@ package com.sv.mapper;
|
||||
|
||||
import com.sv.annotation.PlatformKey;
|
||||
import com.sv.dto.api.VenueLessonDTO;
|
||||
import com.sv.dto.app.VenueLessonStatus;
|
||||
import com.sv.dto.oms.VenueLessonOmsDTO;
|
||||
import com.sv.entity.MemberLessonTicket;
|
||||
import com.sv.entity.VenueLesson;
|
||||
@@ -131,4 +132,13 @@ public interface VenueLessonMapper {
|
||||
* api 修改库存
|
||||
*/
|
||||
void updateSaleNumBy(@Param("num")Integer num,@Param("lessonId") Integer lessonId);
|
||||
|
||||
/**
|
||||
* APP获取当前预订情况
|
||||
* @param venueId
|
||||
* @param searchDate
|
||||
* and b.date = #{searchDate} and b.venue_id = #{venueId}
|
||||
* @return
|
||||
*/
|
||||
List<VenueLessonStatus> getLessonStatus(@Param("venueId") Integer venueId,@Param("searchDate") String searchDate);
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package com.sv.service.api;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.sv.dto.api.VenueLessonDTO;
|
||||
import com.sv.dto.app.VenueLessonStatus;
|
||||
import com.sv.entity.Member;
|
||||
import com.sv.entity.MemberLessonTicket;
|
||||
import com.sv.entity.VenueLesson;
|
||||
@@ -322,5 +323,12 @@ public class VenueLessonService extends BaseServiceImpl {
|
||||
public void updateSaleNum(Integer num,Integer lessonId){
|
||||
venueLessonMapper.updateSaleNumBy(num,lessonId);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public List<VenueLessonStatus> getLessonOrder(Integer venueId,String searchDate){
|
||||
// 校验场馆是否存在 TODO
|
||||
return venueLessonMapper.getLessonStatus(venueId,searchDate);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user