Commit 2a5cb4ce by lzxry

getDate测试时间

parent 4f8d1121
...@@ -725,6 +725,17 @@ public class ContractController { ...@@ -725,6 +725,17 @@ public class ContractController {
return ResultModel.OK(service.getBarrioCities()); return ResultModel.OK(service.getBarrioCities());
} }
@GetMapping("/getDate")
@ResponseBody
public ResultModel getDate(){
HashMap<String, Object> map = new HashMap<>();
map.put("new date",new Date().getTime());
map.put("getBeforeDays(1)",DateUtil.getBeforeDays(1));
map.put("getBeforeDays(0)",DateUtil.getBeforeDays(0));
map.put("getCurrentDateStr",DateUtil.getCurrentDateStr());
return ResultModel.OK(map);
}
} }
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