|
|
@@ -120,21 +120,21 @@ public class StoreBookingSettingsController {
|
|
|
}
|
|
|
|
|
|
// 验证特殊营业时间列表
|
|
|
- if (dto.getSpecialBusinessHoursList() != null && !dto.getSpecialBusinessHoursList().isEmpty()) {
|
|
|
- for (StoreBookingBusinessHoursDTO specialHours : dto.getSpecialBusinessHoursList()) {
|
|
|
- if (specialHours.getBookingTimeType() == null) {
|
|
|
- return R.fail("特殊营业时间的预订时间类型不能为空");
|
|
|
- }
|
|
|
- if (specialHours.getBookingTimeType() == 0) {
|
|
|
- if (!StringUtils.hasText(specialHours.getStartTime())) {
|
|
|
- return R.fail("特殊营业时间非全天时必须填写开始时间");
|
|
|
- }
|
|
|
- if (!StringUtils.hasText(specialHours.getEndTime())) {
|
|
|
- return R.fail("特殊营业时间非全天时必须填写结束时间");
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+// if (dto.getSpecialBusinessHoursList() != null && !dto.getSpecialBusinessHoursList().isEmpty()) {
|
|
|
+// for (StoreBookingBusinessHoursDTO specialHours : dto.getSpecialBusinessHoursList()) {
|
|
|
+// if (specialHours.getBookingTimeType() == null) {
|
|
|
+// return R.fail("特殊营业时间的预订时间类型不能为空");
|
|
|
+// }
|
|
|
+// if (specialHours.getBookingTimeType() == 0) {
|
|
|
+// if (!StringUtils.hasText(specialHours.getStartTime())) {
|
|
|
+// return R.fail("特殊营业时间非全天时必须填写开始时间");
|
|
|
+// }
|
|
|
+// if (!StringUtils.hasText(specialHours.getEndTime())) {
|
|
|
+// return R.fail("特殊营业时间非全天时必须填写结束时间");
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
// 编辑校验:如果是编辑操作,检查正常营业时间的id是否有值
|
|
|
// 注意:特殊营业时间列表中的项可以部分有id(编辑)部分没有id(新增)
|