|
@@ -47,13 +47,8 @@ public class CourseScheduleStudentPaymentServiceImpl extends ServiceImpl<CourseS
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<CourseScheduleStudentPayment> getByCourseId(Long courseId) {
|
|
public List<CourseScheduleStudentPayment> getByCourseId(Long courseId) {
|
|
- List<CourseScheduleEnum> courseScheduleEnumList = new ArrayList<>();
|
|
|
|
- courseScheduleEnumList.add(CourseScheduleEnum.PIANO_ROOM_CLASS);
|
|
|
|
- courseScheduleEnumList.add(CourseScheduleEnum.PRACTICE);
|
|
|
|
- courseScheduleEnumList.add(CourseScheduleEnum.VIP);
|
|
|
|
List<CourseScheduleStudentPayment> list = this.lambdaQuery()
|
|
List<CourseScheduleStudentPayment> list = this.lambdaQuery()
|
|
.eq(CourseScheduleStudentPayment::getCourseId, courseId)
|
|
.eq(CourseScheduleStudentPayment::getCourseId, courseId)
|
|
- .in(CourseScheduleStudentPayment::getCourseType,courseScheduleEnumList)
|
|
|
|
.isNotNull(CourseScheduleStudentPayment::getUserId)
|
|
.isNotNull(CourseScheduleStudentPayment::getUserId)
|
|
.list();
|
|
.list();
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
if (CollectionUtils.isEmpty(list)) {
|