代码调整

This commit is contained in:
tiger_zhou 2023-09-19 15:28:14 +08:00
parent af851922a8
commit fe7fa3da8a

View File

@ -68,7 +68,7 @@ public class TipTimeConfigService {
}
public void saveOrUpdate(AlertTipTimeConfig timeConfig) {
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(StringUtils.isNotEmpty(timeConfig.getTimeName()), "高峰期名称不能为空");
// BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(StringUtils.isNotEmpty(timeConfig.getTimeName()), "高峰期名称不能为空");
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(StringUtils.isNotEmpty(timeConfig.getTimeType()), "高峰期类型不能为空");
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(Objects.nonNull(timeConfig.getStartHour()), "高峰期开始时间不能为空");
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(Objects.nonNull(timeConfig.getEndHour()), "高峰期结束不能为空");