|
|
@@ -75,6 +75,8 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio |
|
|
|
//.eq(Question::getTenantId, ShiroUtils.getTenantId()) |
|
|
|
.eq(Question::getMark, MarkTypeEnum.VALID.getCode()).orderByDesc(Question::getCreateTime); |
|
|
|
if(ObjectUtil.isNotEmpty(query.getStartTime()) && ObjectUtil.isNotEmpty(query.getEndTime())){ |
|
|
|
query.setStartTime(query.getStartTime()+" 00:00:00"); |
|
|
|
query.setEndTime(query.getEndTime()+" 59:59:59"); |
|
|
|
questionLambdaQueryWrapper.between(Question::getCreateTime, dateformat.parse(query.getStartTime()), dateformat.parse(query.getEndTime())); |
|
|
|
} |
|
|
|
pageData = questionMapper.selectPage(page, questionLambdaQueryWrapper); |
|
|
@@ -109,6 +111,8 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio |
|
|
|
//.eq(Question::getTenantId, ShiroUtils.getTenantId()) |
|
|
|
.eq(Question::getMark, MarkTypeEnum.VALID.getCode()).orderByDesc(Question::getCreateTime); |
|
|
|
if(ObjectUtil.isNotEmpty(query.getStartTime()) && ObjectUtil.isNotEmpty(query.getEndTime())){ |
|
|
|
query.setStartTime(query.getStartTime()+" 00:00:00"); |
|
|
|
query.setEndTime(query.getEndTime()+" 23:59:59"); |
|
|
|
questionLambdaQueryWrapper.between(Question::getCreateTime, dateformat.parse(query.getStartTime()), dateformat.parse(query.getEndTime())); |
|
|
|
} |
|
|
|
return questionMapper.selectList(questionLambdaQueryWrapper); |