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