Commit ffd120d6 by wangqi

投票时间

parent 0e20ae80
...@@ -67,7 +67,7 @@ public class TpInfoServiceImpl implements ITpInfoService ...@@ -67,7 +67,7 @@ public class TpInfoServiceImpl implements ITpInfoService
@Override @Override
public AjaxResult insertTpInfo(TpInfo tpInfo) throws UnknownHostException { public AjaxResult insertTpInfo(TpInfo tpInfo) throws UnknownHostException {
Date nowDate = DateUtils.getNowDate(); Date nowDate = DateUtils.getNowDate();
Date date = DateUtils.dateTime("yyyy-MM-dd", "2024-10-22"); Date date = DateUtils.dateTime("yyyy-MM-dd HH:mm:ss", "2024-10-22 23:59:59");
if(nowDate.after(date)){ if(nowDate.after(date)){
return AjaxResult.error("已过投票日期,不允许投票!"); return AjaxResult.error("已过投票日期,不允许投票!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment