首页-国家列表-后台-参数-日期格式化-再格式化

This commit is contained in:
2025-08-08 14:02:17 +08:00
parent 821ae3aafe
commit f47c2d23e9

View File

@@ -154,8 +154,8 @@ public class RoomTabRegionAdminService {
}
dbEntity.setSeq(seq);
// 判断置顶时间
Date startDate = DateTimeUtil.convertStrToDate(topStart, DateTimeUtil.UTC_DEFAULT_DATETIME_PATTERN);
Date endDate = DateTimeUtil.convertStrToDate(topEnd, DateTimeUtil.UTC_DEFAULT_DATETIME_PATTERN);
Date startDate = DateTimeUtil.convertStrToDate(topStart, DateTimeUtil.DEFAULT_DATETIME_PATTERN);
Date endDate = DateTimeUtil.convertStrToDate(topEnd, DateTimeUtil.DEFAULT_DATETIME_PATTERN);
if (startDate != null && endDate != null && endDate.getTime() > startDate.getTime()) {
dbEntity.setTopStart(startDate);
dbEntity.setTopEnd(endDate);