|
|
|
@ -275,7 +275,8 @@ public class RehearsalPlanServiceImpl extends ServiceImpl<RehearsalPlanMapper, R
|
|
|
|
|
QueryWrapper<RehearsalPlanEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
String unit = String.valueOf(param.get("unit")); |
|
|
|
|
String startTime = String.valueOf(param.get("scheduledStartTime")); |
|
|
|
|
String endTime = String.valueOf((param.get("scheduledEndTime"))); |
|
|
|
|
String endTime = String.valueOf(param.get("scheduledEndTime")); |
|
|
|
|
String rehearsalStatus = String.valueOf(param.get("rehearsalStatus")); |
|
|
|
|
if (!unit.equals("null") && !unit.equals("")) { |
|
|
|
|
queryWrapper.lambda().like(RehearsalPlanEntity::getUnit, unit); |
|
|
|
|
} |
|
|
|
@ -285,6 +286,9 @@ public class RehearsalPlanServiceImpl extends ServiceImpl<RehearsalPlanMapper, R
|
|
|
|
|
if (!endTime.equals("null") && !endTime.equals("")) { |
|
|
|
|
queryWrapper.lambda().le(RehearsalPlanEntity::getScheduledEndTime, endTime); |
|
|
|
|
} |
|
|
|
|
if (!rehearsalStatus.equals("null") && !rehearsalStatus.equals("")) { |
|
|
|
|
queryWrapper.lambda().eq(RehearsalPlanEntity::getRehearsalStatus, rehearsalStatus); |
|
|
|
|
} |
|
|
|
|
queryWrapper.lambda().orderByDesc(RehearsalPlanEntity::getCreateTime); |
|
|
|
|
return this.page(Condition.getPage(query), queryWrapper); |
|
|
|
|
} |
|
|
|
|