0
点赞
收藏
分享

微信扫一扫

比较时间先后

AbrahamW 2022-07-18 阅读 49
编程语言


if (startTime.compareTo(endTime)>0) {
return ResponseEntity.badRequest().body(Translator.toLocale("time.compare.failed.message"));
}

if (startTime.isAfter(endTime)) {
return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(Translator.toLocale("group.time.failed.message"));
}


举报

相关推荐

0 条评论