|
@@ -140,12 +140,6 @@ public class FormController {
|
|
|
if (endTime != null) {
|
|
if (endTime != null) {
|
|
|
endDate = DateUtil.date(endTime);
|
|
endDate = DateUtil.date(endTime);
|
|
|
}
|
|
}
|
|
|
- if (startDate == null) {
|
|
|
|
|
- startDate = DateUtil.beginOfDay(DateTime.now());
|
|
|
|
|
- }
|
|
|
|
|
- if (endDate == null) {
|
|
|
|
|
- endDate = DateUtil.offsetDay(startDate, 1);
|
|
|
|
|
- }
|
|
|
|
|
if (promotionId != null) {
|
|
if (promotionId != null) {
|
|
|
QuestionnairePromotion byId = promotionService.getById(promotionId);
|
|
QuestionnairePromotion byId = promotionService.getById(promotionId);
|
|
|
if (byId == null) throw BusinessRuntimeException.getInstance("问卷不存在");
|
|
if (byId == null) throw BusinessRuntimeException.getInstance("问卷不存在");
|
|
@@ -186,12 +180,6 @@ public class FormController {
|
|
|
if (endTime != null) {
|
|
if (endTime != null) {
|
|
|
endDate = DateUtil.date(endTime);
|
|
endDate = DateUtil.date(endTime);
|
|
|
}
|
|
}
|
|
|
- if (startDate == null) {
|
|
|
|
|
- startDate = DateUtil.beginOfDay(DateTime.now());
|
|
|
|
|
- }
|
|
|
|
|
- if (endDate == null) {
|
|
|
|
|
- endDate = DateUtil.offsetDay(startDate, 1);
|
|
|
|
|
- }
|
|
|
|
|
formService.exportQuestionInfo(promotionId, startDate, endDate, response);
|
|
formService.exportQuestionInfo(promotionId, startDate, endDate, response);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|