Explorar el Código

修改获取问题分布接口代码

tags/v1.2.0^2^2
wanjing hace 1 año
padre
commit
98256b6f86
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java

+ 3
- 2
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java Ver fichero

@@ -126,11 +126,12 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio
@Override
public List<Question> distributed(QuestionQuery query) {
List<ThMission> thMissions = missionMapper.selectList(new LambdaQueryWrapper<ThMission>()
.eq(ThMission::getTenantId, ShiroUtils.getTenantId())//xz
.eq(ThMission::getTenantId, ShiroUtils.getTenantId())
.eq(ThMission::getType, AccidentTaskEnum.INSPECTION_TASK.getCode())
.eq(ThMission::getMark, MarkTypeEnum.VALID.getCode())
.in(ThMission::getStatus, Arrays.asList(TaskStatusEnum.FLIGHT.getCode(), TaskStatusEnum.FAIL.getCode(), TaskStatusEnum.COMPLETE.getCode()))
.orderByDesc(ThMission::getUpdateTime));
return getQuestions(query, thMissions);
return this.getQuestions(query, thMissions);
}

private List<Question> getQuestions(QuestionQuery query, List<ThMission> thMissions) {

Cargando…
Cancelar
Guardar