课程自动复制
This commit is contained in:
@@ -157,4 +157,6 @@ public interface VenueLessonMapper {
|
||||
List<VenueLesson> getCopyLesson(@Param("venueId") Integer venueId,@Param("date") Date date);
|
||||
|
||||
void copyImg(@Param("id") Integer id,@Param("nId") Integer nId);
|
||||
|
||||
List<VenueLesson> findAllForCopy(@Param("leftTime") String leftTime, @Param("rightTime") String rightTime);
|
||||
}
|
||||
|
||||
@@ -156,4 +156,11 @@ public class DateUtilCard {
|
||||
return calendar.getTime(); //这个时间就是日期往后推一天的结果
|
||||
}
|
||||
|
||||
public static Date addDays(Date date,int days){
|
||||
Calendar calendar = new GregorianCalendar();
|
||||
calendar.setTime(date);
|
||||
calendar.add(calendar.DATE,days); //把日期往后增加一天,整数 往后推,负数往前移动
|
||||
return calendar.getTime(); //这个时间就是日期往后推一天的结果
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -290,6 +290,15 @@ public class VenueLessonService extends BaseServiceImpl {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询场馆课程
|
||||
*
|
||||
* @return 需要拷贝的场馆课程
|
||||
*/
|
||||
public List<VenueLesson> findAllForCopy(String leftTime, String rightTime) {
|
||||
return venueLessonMapper.findAllForCopy(leftTime, rightTime);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看教练有多少课程
|
||||
* @param id
|
||||
|
||||
Reference in New Issue
Block a user