nili 10 months ago
parent
commit
5216d18057
  1. 2
      game-service/src/main/java/awesome/group/game/service/AdminService.java

2
game-service/src/main/java/awesome/group/game/service/AdminService.java

@ -76,7 +76,7 @@ public class AdminService {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
try { try {
Date begin = format.parse(param.createdAt.get(0)), end = format.parse(param.createdAt.get(1)); Date begin = format.parse(param.createdAt.get(0)), end = format.parse(param.createdAt.get(1));
wrapper.between(MatrixAdvRecord::getCreatedAt, new Timestamp(begin.getTime()), new Timestamp(end.getTime())); wrapper.between(MatrixAdvRecord::getCreatedAt, new Timestamp(begin.getTime()), new Timestamp(end.getTime() + 86400_000 - 1000));
} catch (ParseException e) { } catch (ParseException e) {
throw new PaganiException(PaganiExceptionCode.ILLEGAL_REQUEST, "时间范围有误"); throw new PaganiException(PaganiExceptionCode.ILLEGAL_REQUEST, "时间范围有误");
} }

Loading…
Cancel
Save