From d26f7ebb76c03225d4b596c5d146c721fd028a71 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Thu, 17 Jun 2021 16:03:52 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/examplan/impl/ExamPlanServiceImpl.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/cn/com/tenlion/service/examplan/impl/ExamPlanServiceImpl.java b/src/main/java/cn/com/tenlion/service/examplan/impl/ExamPlanServiceImpl.java index db70a6b..204b71d 100644 --- a/src/main/java/cn/com/tenlion/service/examplan/impl/ExamPlanServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/examplan/impl/ExamPlanServiceImpl.java @@ -335,17 +335,4 @@ public class ExamPlanServiceImpl extends DefaultBaseService implements IExamPlan contentService.updatePublishStatus(params.get("contentId").toString(), Integer.valueOf(params.get("isSend").toString())); } - public static void main(String[] args) throws ParseException { - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - String nowTime = simpleDateFormat.format(new Date()); - String endTime = "2021-06-10 14:47:29"; - Date nowDate = simpleDateFormat.parse(nowTime); - Date endDate = simpleDateFormat.parse(endTime); - if(nowDate.getTime() <= endDate.getTime()) { - System.out.println("报名截至"); - }else { - System.out.println("报名继续"); - } - } - } \ No newline at end of file