|
|
|
@ -39,10 +39,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.util.Assert; |
|
|
|
|
|
|
|
|
|
import javax.validation.Valid; |
|
|
|
|
import java.time.LocalDate; |
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
import java.time.Year; |
|
|
|
|
import java.time.YearMonth; |
|
|
|
|
import java.time.*; |
|
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
@ -119,12 +116,8 @@ public class MessagePushRecordServiceImpl extends BaseServiceImpl<MessagePushRec
|
|
|
|
|
*/ |
|
|
|
|
private LambdaQueryWrapper<MessagePushRecordEntity> getQueryWrapper(MessagePushRecordEntity request) { |
|
|
|
|
LambdaQueryWrapper<MessagePushRecordEntity> lambda = Condition.getQueryWrapper(request).lambda(); |
|
|
|
|
if (Func.isNotEmpty(request.getStartTime())) { |
|
|
|
|
lambda.ge(MessagePushRecordEntity::getPushTime, request.getStartTime()); |
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(request.getEndTime())) { |
|
|
|
|
lambda.le(MessagePushRecordEntity::getPushTime, request.getEndTime()); |
|
|
|
|
} |
|
|
|
|
lambda.ge(Func.isNotEmpty(request.getStartTime()),MessagePushRecordEntity::getPushTime, LocalDateTime.of(request.getStartTime(), LocalTime.MIN)); |
|
|
|
|
lambda.le(Func.isNotEmpty(request.getEndTime()),MessagePushRecordEntity::getPushTime, LocalDateTime.of(request.getEndTime(), LocalTime.MAX)); |
|
|
|
|
lambda.orderByDesc(MessagePushRecordEntity::getPushTime); |
|
|
|
|
return lambda; |
|
|
|
|
} |
|
|
|
|