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