|
|
@@ -104,20 +104,20 @@ public class StoreBookingSettingsController {
|
|
|
// }
|
|
|
|
|
|
// 验证正常营业时间
|
|
|
- if (dto.getNormalBusinessHours() != null) {
|
|
|
- StoreBookingBusinessHoursDTO normalHours = dto.getNormalBusinessHours();
|
|
|
- if (normalHours.getBookingTimeType() == null) {
|
|
|
- return R.fail("正常营业时间的预订时间类型不能为空");
|
|
|
- }
|
|
|
- if (normalHours.getBookingTimeType() == 0) {
|
|
|
- if (!StringUtils.hasText(normalHours.getStartTime())) {
|
|
|
- return R.fail("正常营业时间非全天时必须填写开始时间");
|
|
|
- }
|
|
|
- if (!StringUtils.hasText(normalHours.getEndTime())) {
|
|
|
- return R.fail("正常营业时间非全天时必须填写结束时间");
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+// if (dto.getNormalBusinessHours() != null) {
|
|
|
+// StoreBookingBusinessHoursDTO normalHours = dto.getNormalBusinessHours();
|
|
|
+// if (normalHours.getBookingTimeType() == null) {
|
|
|
+// return R.fail("正常营业时间的预订时间类型不能为空");
|
|
|
+// }
|
|
|
+// if (normalHours.getBookingTimeType() == 0) {
|
|
|
+// if (!StringUtils.hasText(normalHours.getStartTime())) {
|
|
|
+// return R.fail("正常营业时间非全天时必须填写开始时间");
|
|
|
+// }
|
|
|
+// if (!StringUtils.hasText(normalHours.getEndTime())) {
|
|
|
+// return R.fail("正常营业时间非全天时必须填写结束时间");
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
// 验证特殊营业时间列表
|
|
|
// if (dto.getSpecialBusinessHoursList() != null && !dto.getSpecialBusinessHoursList().isEmpty()) {
|