|
|
|
@ -79,12 +79,20 @@ public class HygienePlanServiceImpl extends ServiceImpl<HygienePlanMapper, Hygie
|
|
|
|
|
QueryWrapper<HygienePlanEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
String startTime = String.valueOf(param.get("scheduledStartTime")); |
|
|
|
|
String endTime = String.valueOf(param.get("scheduledEndTime")); |
|
|
|
|
String unit = String.valueOf(param.get("unit")); |
|
|
|
|
String name = String.valueOf(param.get("name")); |
|
|
|
|
if (!startTime.equals("null") && !startTime.equals("")) { |
|
|
|
|
queryWrapper.lambda().ge(HygienePlanEntity::getScheduledStartTime, startTime); |
|
|
|
|
} |
|
|
|
|
if (!endTime.equals("null") && !endTime.equals("")) { |
|
|
|
|
queryWrapper.lambda().le(HygienePlanEntity::getScheduledEndTime, endTime); |
|
|
|
|
} |
|
|
|
|
if (!unit.equals("null") && !unit.equals("")) { |
|
|
|
|
queryWrapper.lambda().like(HygienePlanEntity::getUnit, unit); |
|
|
|
|
} |
|
|
|
|
if (!name.equals("null") && !name.equals("")) { |
|
|
|
|
queryWrapper.lambda().like(HygienePlanEntity::getName, name); |
|
|
|
|
} |
|
|
|
|
queryWrapper.lambda().orderByDesc(HygienePlanEntity::getCreateTime); |
|
|
|
|
return this.page(Condition.getPage(query), queryWrapper); |
|
|
|
|
} |
|
|
|
|