parent
0522ba8482
commit
084e5198aa
@ -0,0 +1,85 @@ |
||||
package com.cjy.back.ybsjAppointment.entity.vo; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import com.fasterxml.jackson.annotation.JsonInclude; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author liangjiawei |
||||
* @createDate 2023/7/28 |
||||
*/ |
||||
@JsonInclude(JsonInclude.Include.NON_DEFAULT) |
||||
public class AppointmentDocumentsDetails { |
||||
//预约单号
|
||||
private String appointmentNumber; |
||||
//景区名称
|
||||
private String scenicName; |
||||
//预约日期
|
||||
private String appointmentDate; |
||||
//预约时间段
|
||||
private String appointmentSlot; |
||||
//预约人数
|
||||
private String appointmentCount; |
||||
//提交日期
|
||||
private String submissionDate; |
||||
//预约人集合
|
||||
private List<AppointmentPersonVO> list=new ArrayList<>(); |
||||
|
||||
public String getAppointmentNumber() { |
||||
return appointmentNumber; |
||||
} |
||||
|
||||
public void setAppointmentNumber(String appointmentNumber) { |
||||
this.appointmentNumber = appointmentNumber; |
||||
} |
||||
|
||||
public String getScenicName() { |
||||
return scenicName; |
||||
} |
||||
|
||||
public void setScenicName(String scenicName) { |
||||
this.scenicName = scenicName; |
||||
} |
||||
|
||||
public String getAppointmentDate() { |
||||
return appointmentDate; |
||||
} |
||||
|
||||
public void setAppointmentDate(String appointmentDate) { |
||||
this.appointmentDate = appointmentDate; |
||||
} |
||||
|
||||
public String getAppointmentSlot() { |
||||
return appointmentSlot; |
||||
} |
||||
|
||||
public void setAppointmentSlot(String appointmentSlot) { |
||||
this.appointmentSlot = appointmentSlot; |
||||
} |
||||
|
||||
public String getAppointmentCount() { |
||||
return appointmentCount; |
||||
} |
||||
|
||||
public void setAppointmentCount(String appointmentCount) { |
||||
this.appointmentCount = appointmentCount; |
||||
} |
||||
|
||||
public String getSubmissionDate() { |
||||
return submissionDate; |
||||
} |
||||
|
||||
public void setSubmissionDate(String submissionDate) { |
||||
this.submissionDate = submissionDate; |
||||
} |
||||
|
||||
public List<AppointmentPersonVO> getList() { |
||||
return list; |
||||
} |
||||
|
||||
public void setList(List<AppointmentPersonVO> list) { |
||||
this.list = list; |
||||
} |
||||
} |
@ -0,0 +1,42 @@ |
||||
package com.cjy.back.ybsjAppointment.task; |
||||
|
||||
import com.cjy.back.ybsjAppointment.entity.vo.AppointmentPersonVO; |
||||
import com.cjy.back.ybsjAppointment.service.YbsjyAppointmentRecordService; |
||||
import com.cjy.back.ybsjAppointment.utils.DateUtil; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author liangjiawei |
||||
* @createDate 2023/7/28 |
||||
*/ |
||||
@Component("handleExpiredAppointmentsTask") |
||||
public class HandleExpiredAppointmentsTask { |
||||
|
||||
@Autowired |
||||
YbsjyAppointmentRecordService ybsjyAppointmentRecordService; |
||||
|
||||
/** |
||||
* 处理过期预约人信息 |
||||
* |
||||
*/ |
||||
public void handleExpiredAppointments() { |
||||
// 第一步先获取到 当天 未核销的数据
|
||||
List<AppointmentPersonVO> list = ybsjyAppointmentRecordService.getAppointmentNotWrittenOffRecord(); |
||||
list.stream().forEach(item -> { |
||||
//如果当前时间大于结束时间
|
||||
if (DateUtil.isAfterEndTime(item.getEndTime())) { |
||||
//就将该数据修改取消 且是过期的
|
||||
ybsjyAppointmentRecordService.updateAppointmentRecordSate(item.getId()); |
||||
// List<AppointmentPersonVO> appointmentPersonVOList=ybsjyAppointmentRecordService.getAppointmentRecordByAppointmentDocumentsId(item.getAppointmentDocumentsId());
|
||||
|
||||
|
||||
} |
||||
}); |
||||
} |
||||
/** |
||||
* 处理过期预约单 |
||||
*/ |
||||
} |
Loading…
Reference in new issue