zoujiajian 3 лет назад
Родитель
Сommit
8768540532

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/user/impl/UserServiceImpl.java

@@ -262,7 +262,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
 		Integer update = 0;
 		String showId = null;
 		while (update != 1) {
-			showId = StringUtil.randomString(5);
+			showId = StringUtil.randomString(6);
 			update = userMapper.update(null, Wrappers.lambdaUpdate(User.class)
 					.set(User::getShowId, showId)
 					.eq(User::getId, userId));

+ 0 - 12
netflix-web/src/main/java/com/cyksj/web/controller/manage/form/FormController.java

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