|
@@ -437,12 +437,22 @@ public class TrainingDemandServiceImpl implements TrainingDemandService {
|
|
|
List<DemandSurveyContentDo> saveDemandSurveyContentDos,
|
|
|
List<TrainingDemandTempBackupsDo> saveDemandTempBackupsDo,
|
|
|
TrainingDemandSurveyDo trainingDemandSurveyDo) {
|
|
|
- trainingDemandQuestionBackupsServiceImpl.saveOrUpdateBatch(saveDemandQuestionBackupsDos);
|
|
|
- trainingDemandQuestionOptionBackupsServiceImpl.saveOrUpdateBatch(saveDemandQuestionOptionBackupsDos);
|
|
|
+ if (!saveDemandQuestionBackupsDos.isEmpty()) {
|
|
|
+ trainingDemandQuestionBackupsServiceImpl.saveOrUpdateBatch(saveDemandQuestionBackupsDos);
|
|
|
+ }
|
|
|
+ if (!saveDemandQuestionOptionBackupsDos.isEmpty()) {
|
|
|
+ trainingDemandQuestionOptionBackupsServiceImpl.saveOrUpdateBatch(saveDemandQuestionOptionBackupsDos);
|
|
|
+ }
|
|
|
trainingDemandSurveyBackupsServiceImpl.saveOrUpdate(saveDemandSurveyBackupsDo);
|
|
|
- trainingDemandSurveyCustomDetailBackupsServiceImpl.saveOrUpdateBatch(saveDemandSurveyCustomDetailBackupsDos);
|
|
|
- trainingDemandTempBackupsServiceImpl.saveOrUpdateBatch(saveDemandTempBackupsDo);
|
|
|
- demandSurveyContentServiceImpl.saveOrUpdateBatch(saveDemandSurveyContentDos);
|
|
|
+ if (!saveDemandSurveyCustomDetailBackupsDos.isEmpty()) {
|
|
|
+ trainingDemandSurveyCustomDetailBackupsServiceImpl.saveOrUpdateBatch(saveDemandSurveyCustomDetailBackupsDos);
|
|
|
+ }
|
|
|
+ if (!saveDemandTempBackupsDo.isEmpty()) {
|
|
|
+ trainingDemandTempBackupsServiceImpl.saveOrUpdateBatch(saveDemandTempBackupsDo);
|
|
|
+ }
|
|
|
+ if (!saveDemandSurveyContentDos.isEmpty()) {
|
|
|
+ demandSurveyContentServiceImpl.saveOrUpdateBatch(saveDemandSurveyContentDos);
|
|
|
+ }
|
|
|
trainingDemandSurveyDo.setState(RELEASE);
|
|
|
trainingDemandSurveyDo.setReleasetime(new Date());
|
|
|
trainingDemandSurveyDao.updateById(trainingDemandSurveyDo);
|