Browse Source

报告核实提示

tags/v1.1.0
qiujinyang 2 years ago
parent
commit
e599065dd0
3 changed files with 3 additions and 4 deletions
  1. +1
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/MissionServiceImpl.java
  2. +1
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java
  3. +1
    -2
      tuoheng-admin/src/main/resources/mapper/QuestionMapper.xml

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

@@ -128,6 +128,7 @@ public class MissionServiceImpl extends BaseServiceImpl<ThMissionMapper, ThMissi
//如果调用DSP失败就直接失败!
log.error("调用DSP数据失败:{}",e.getMessage());
thMissionUpdate.setStatus(TaskStatusEnum.FAIL.getCode());
thMissionMapper.updateById(thMissionUpdate);
throw new ServiceException(HttpStatus.BAD_REQUEST.value(),"任务分析失败!");
}
return thMissionMapper.updateById(thMissionUpdate) > 0;
@@ -202,7 +203,6 @@ public class MissionServiceImpl extends BaseServiceImpl<ThMissionMapper, ThMissi
}else {
log.error("dsp实时调用失败:{}", responseJson);
thMissionUpdate.setAnalyseStatus(AiAnalyseStatusEnum.FAILED.getCode());
result=false;
thMissionMapper.updateById(thMissionUpdate);
}
return result;

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

@@ -86,7 +86,7 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio
.like(ObjectUtil.isNotEmpty(query.getMissionName()), Question::getMissionName, query.getMissionName())
.between((ObjectUtil.isNotEmpty(query.getStartTime()) && ObjectUtil.isNotEmpty(query.getEndTime())), Question::getCreateTime, query.getStartTime(), query.getEndTime())
.eq(ObjectUtil.isNotEmpty(query.getType()), Question::getType, query.getType())
.eq(ObjectUtil.isNotEmpty(query.getStatus()), Question::getStatus, query.getStatus())
.eq(Question::getStatus, QuestionStatusEnum.CONFIRM.getCode())
//.eq(Question::getTenantId, ShiroUtils.getTenantId())
.eq(Question::getMark, MarkTypeEnum.VALID.getCode()).orderByDesc(Question::getCreateTime));
}

+ 1
- 2
tuoheng-admin/src/main/resources/mapper/QuestionMapper.xml View File

@@ -4,8 +4,7 @@
<select id="analyze" resultType="com.tuoheng.admin.entity.vo.QuestionCountVO">
select q.status,count(q.id) as quantity
from th_question q
left join th_question_type qt on q.type=qt.id
where q.mission_id=#{missionId} and q.tenant_id=#{tenantId}
where q.mission_id=#{missionId}
group by q.status;
</select>
<select id="analyzeType" resultType="com.tuoheng.admin.entity.vo.QuestionTypeCountVO">

Loading…
Cancel
Save