Bläddra i källkod

Merge branch 'develop' of gitadmin/tuoheng_lc into release

tags/v1.2.0^2
chengwang 1 år sedan
förälder
incheckning
cff7cb21a3
1 ändrade filer med 6 tillägg och 4 borttagningar
  1. +6
    -4
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java

+ 6
- 4
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java Visa fil

@@ -30,6 +30,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;

@@ -340,13 +341,14 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio
//获取当前飞行坐标,存问题的经纬度
List<ThInspection> flightDataList = getThInspections(mission);
List<Question> questionList = getQuestionList(mission, questionFiles, flightDataList);
//保存问题数据时调用saveWarningData方法保存预警数据入库
Boolean aBoolean = saveWarningData(mission, questionFiles, flightDataList);
log.info("预警表数据入库结束, {}", aBoolean);
if (questionList.size() == 0) {
return true;
}
return saveBatch(questionList);
boolean flag = this.saveBatch(questionList);
//保存问题数据时调用saveWarningData方法保存预警数据入库
flag = this.saveWarningData(mission, questionFiles, flightDataList);
log.info("预警表数据入库结束, {}", flag);
return flag;
}

private List<ThInspection> getThInspections(ThMission mission) {

Laddar…
Avbryt
Spara