标签:rap tst 数据 point format 类对象 datetime java 根据
后端:
实体:AppointmentDto中的 startDate、endDate
/** * 开始时间 */ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime startDate; /** * 结束时间 */ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime endDate;
appointmentDto作为实体类对象
if (appointmentDto.getStartDate() != null || appointmentDto.getEndDate() != null) { QueryWrapper<Appointment> queryWrapper = new QueryWrapper<>(); queryWrapper.ge("appointment_time", appointmentDto.getStartDate()); queryWrapper.le("appointment_time", appointmentDto.getEndDate()); }
标签:rap tst 数据 point format 类对象 datetime java 根据
原文地址:https://www.cnblogs.com/jjsir/p/13683769.html