bug修改。

This commit is contained in:
Renpc-kilig 2021-06-17 16:03:52 +08:00
parent b8d77f35e7
commit d26f7ebb76

View File

@ -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("报名继续");
}
}
}