Browse Source

修改问题分布接口

tags/v1.1.0
wanghaoran 2 years ago
parent
commit
d1c34945c5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java

+ 1
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java View File



if((ObjectUtil.isNotEmpty(query.getStartTime()) && ObjectUtil.isNotEmpty(query.getEndTime())) if((ObjectUtil.isNotEmpty(query.getStartTime()) && ObjectUtil.isNotEmpty(query.getEndTime()))
|| StringUtils.isNotEmpty(query.getMissionName())){ || StringUtils.isNotEmpty(query.getMissionName())){
questionLambdaQueryWrapper.like(Question::getMissionName, query.getMissionName());
questionLambdaQueryWrapper.like(StringUtils.isNotEmpty(query.getMissionName()), Question::getMissionName, query.getMissionName());
}else { }else {
//只需要取最上面的那一条 //只需要取最上面的那一条
questionLambdaQueryWrapper.eq(Question::getMissionId, thMissions.get(0).getId()); questionLambdaQueryWrapper.eq(Question::getMissionId, thMissions.get(0).getId());

Loading…
Cancel
Save