Commit 410ebf11 authored by 王明生's avatar 王明生

fixed: 修复日期参数校验错误

parent 214207bf
......@@ -137,7 +137,7 @@ public class BydOpenController extends BaseController{
}
Optional<String> statsStartStr = Optional.ofNullable(request.getParameter("stats_start_date"));
Optional<String> statsEndStr = Optional.ofNullable(request.getParameter("stats_start_date"));
Optional<String> statsEndStr = Optional.ofNullable(request.getParameter("stats_end_date"));
if (statsStartStr.isPresent() && statsEndStr.isPresent()) {
try {
LocalDate statsStart = LocalDate.parse(statsStartStr.get());
......@@ -162,7 +162,7 @@ public class BydOpenController extends BaseController{
}
Optional<String> pubStartStr = Optional.ofNullable(request.getParameter("publish_start_date"));
Optional<String> pubEndStr = Optional.ofNullable(request.getParameter("publish_start_date"));
Optional<String> pubEndStr = Optional.ofNullable(request.getParameter("publish_end_date"));
if (pubStartStr.isPresent() && pubEndStr.isPresent()) {
try {
LocalDate pubStart = LocalDate.parse(pubStartStr.get());
......
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