bug修改。
This commit is contained in:
parent
b8d77f35e7
commit
d26f7ebb76
@ -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("报名继续");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user