From e3cd3dd72600b60afbb93594a69a993a6724a272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= <18222067976@163.com> Date: Mon, 11 Oct 2021 09:13:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=82=AC=E6=AC=BE=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=AE=E6=94=B9#40310?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jero/system/controller/SystemRemindersController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/system/controller/SystemRemindersController.java b/jero-boot-incoming-payment/src/main/java/com/jero/system/controller/SystemRemindersController.java index f052c953..47c13c50 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/system/controller/SystemRemindersController.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/system/controller/SystemRemindersController.java @@ -13,6 +13,7 @@ import com.jero.system.vo.SystemRemindersVO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.quartz.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -62,7 +63,7 @@ public class SystemRemindersController { if(Objects.isNull(systemRemindersVO.getFrequency())){ return Result.error("频率不能为空"); } - if(Objects.isNull(systemRemindersVO.getTime())){ + if(StringUtils.isEmpty(systemRemindersVO.getTime())){ return Result.error("催款时间不能为空"); } String cron = "";