parent
28172d88a0
commit
a090092251
@ -1,35 +1,140 @@
|
|||||||
package com.yingji.entity;
|
package com.yingji.entity;
|
||||||
|
|
||||||
|
import cn.hutool.core.annotation.Alias;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 受理调度信息(Accept)表实体类
|
||||||
|
*
|
||||||
* @author wu
|
* @author wu
|
||||||
* @since 2024/4/30 下午4:17
|
* @since 2024-05-10 17:10:32
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@ApiModel("受理调度信息实体类")
|
||||||
|
@TableName(value = "accept")
|
||||||
public class AcceptEvents implements Serializable {
|
public class AcceptEvents implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 2498572602663676559L;
|
private static final long serialVersionUID = 817570017991202657L;
|
||||||
|
/**
|
||||||
private String AlarmTelephone;
|
* 受理编码 主键
|
||||||
private String DiseaseJudge;
|
*/
|
||||||
private String PatientName;
|
@ApiModelProperty(value = "受理编码 主键")
|
||||||
private String PatientSex;
|
@Alias("AcceptId")
|
||||||
private String PatientAge;
|
@TableId
|
||||||
private String AcceptType;
|
private String acceptId;
|
||||||
private String ResponsibleRecipient;
|
/**
|
||||||
private String WaitAddress;
|
* 呼救电话
|
||||||
private String SendAddress;
|
*/
|
||||||
private String RingDateTime;
|
@ApiModelProperty(value = "呼救电话")
|
||||||
private Date StartAcceptDateTime;
|
@Alias("AlarmTelephone")
|
||||||
private Date EndAcceptDateTime;
|
private String alarmTelephone;
|
||||||
private Date SendOrderDateTime;
|
/**
|
||||||
private String EventAddress;
|
* 病种判断
|
||||||
private String AcceptId;
|
*/
|
||||||
private String EventId;
|
@ApiModelProperty(value = "病种判断")
|
||||||
private String AcceptOrder;
|
@Alias("DiseaseJudge")
|
||||||
|
private String diseaseJudge;
|
||||||
|
/**
|
||||||
|
* 患者姓名
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "患者姓名")
|
||||||
|
@Alias("PatientName")
|
||||||
|
private String patientName;
|
||||||
|
/**
|
||||||
|
* 患者性别
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "患者性别")
|
||||||
|
@Alias("PatientSex")
|
||||||
|
private String patientSex;
|
||||||
|
/**
|
||||||
|
* 患者年龄
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "患者年龄")
|
||||||
|
@Alias("PatientAge")
|
||||||
|
private String patientAge;
|
||||||
|
/**
|
||||||
|
* 受理类型
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "受理类型")
|
||||||
|
@Alias("AcceptType")
|
||||||
|
private String acceptType;
|
||||||
|
/**
|
||||||
|
* 责任受理人
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "责任受理人")
|
||||||
|
@Alias("ResponsibleRecipient")
|
||||||
|
private String responsibleRecipient;
|
||||||
|
/**
|
||||||
|
* 现场地址
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "现场地址")
|
||||||
|
@Alias("EventAddress")
|
||||||
|
private String eventAddress;
|
||||||
|
/**
|
||||||
|
* 等车地点
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "等车地点")
|
||||||
|
@Alias("WaitAddress")
|
||||||
|
private String waitAddress;
|
||||||
|
/**
|
||||||
|
* 送往地点
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "送往地点")
|
||||||
|
@Alias("SendAddress")
|
||||||
|
private String sendAddress;
|
||||||
|
/**
|
||||||
|
* 电话振铃时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "电话振铃时刻")
|
||||||
|
@Alias("RingDateTime")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime ringDateTime;
|
||||||
|
/**
|
||||||
|
* 开始受理时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "开始受理时刻")
|
||||||
|
@Alias("StartAcceptDateTime")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime startAcceptDateTime;
|
||||||
|
/**
|
||||||
|
* 结束受理时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "结束受理时刻")
|
||||||
|
@Alias("EndAcceptDateTime")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime endAcceptDateTime;
|
||||||
|
/**
|
||||||
|
* 发送指令时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "发送指令时刻")
|
||||||
|
@Alias("SendOrderDateTime")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime sendOrderDateTime;
|
||||||
|
/**
|
||||||
|
* 事件编码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "事件编码")
|
||||||
|
@Alias("EventId")
|
||||||
|
private String eventId;
|
||||||
|
/**
|
||||||
|
* 受理序号
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "受理序号")
|
||||||
|
@Alias("AcceptOrder")
|
||||||
|
private String acceptOrder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,22 +1,75 @@
|
|||||||
package com.yingji.entity;
|
package com.yingji.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.annotation.Alias;
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 任务车辆(Amb)表实体类
|
||||||
|
*
|
||||||
* @author wu
|
* @author wu
|
||||||
* @since 2024/4/30 下午4:18
|
* @since 2024-05-10 17:10:32
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@ApiModel("任务车辆实体类")
|
||||||
|
@TableName(value = "amb")
|
||||||
public class Amb implements Serializable {
|
public class Amb implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = -9140135874884043915L;
|
private static final long serialVersionUID = -69012811106234254L;
|
||||||
|
/**
|
||||||
private String PlateNumber;
|
* 主键id
|
||||||
private String RealSign;
|
*/
|
||||||
private String AmbCode;
|
@ApiModelProperty(value = "主键id")
|
||||||
private String StationName;
|
@TableId(type = IdType.AUTO)
|
||||||
private String AmbType;
|
private Long id;
|
||||||
private String AmbPhone;
|
/**
|
||||||
|
* 任务id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "任务id")
|
||||||
|
private String taskId;
|
||||||
|
/**
|
||||||
|
* 车牌号码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "车牌号码")
|
||||||
|
@Alias("PlateNumber")
|
||||||
|
private String plateNumber;
|
||||||
|
/**
|
||||||
|
* 实际标识
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "实际标识")
|
||||||
|
@Alias("RealSign")
|
||||||
|
private String realSign;
|
||||||
|
/**
|
||||||
|
* 车辆编码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "车辆编码")
|
||||||
|
@Alias("AmbCode")
|
||||||
|
private String ambCode;
|
||||||
|
/**
|
||||||
|
* 分站
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "分站")
|
||||||
|
@Alias("StationName")
|
||||||
|
private String stationName;
|
||||||
|
/**
|
||||||
|
* 车辆类型
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "车辆类型")
|
||||||
|
@Alias("AmbType")
|
||||||
|
private String ambType;
|
||||||
|
/**
|
||||||
|
* 随车电话
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "随车电话")
|
||||||
|
@Alias("AmbPhone")
|
||||||
|
private String ambPhone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,37 +1,172 @@
|
|||||||
package com.yingji.entity;
|
package com.yingji.entity;
|
||||||
|
|
||||||
|
import cn.hutool.core.annotation.Alias;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 任务信息(Task)表实体类
|
||||||
|
*
|
||||||
* @author wu
|
* @author wu
|
||||||
* @since 2024/4/30 下午4:23
|
* @since 2024-05-10 17:10:33
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@ApiModel("任务信息实体类")
|
||||||
|
@TableName(value = "task")
|
||||||
public class Task implements Serializable {
|
public class Task implements Serializable {
|
||||||
private static final long serialVersionUID = 4118581272605160572L;
|
|
||||||
|
|
||||||
private Boolean IsOver;
|
private static final long serialVersionUID = 148870996673219596L;
|
||||||
private String RealSendAddress;
|
/**
|
||||||
private Date TaskCreatedDateTime;
|
* 主键id
|
||||||
private Date AcceptOrderDateTime;
|
*/
|
||||||
private Date OutAmbDateTime;
|
@ApiModelProperty(value = "主键id")
|
||||||
private Date ArriveSceneDateTime;
|
@Alias("TaskId")
|
||||||
private Date LeaveSceneDateTime;
|
@TableId
|
||||||
private Date ArriveHospitalDateTime;
|
private String taskId;
|
||||||
private Date ComplatedDateTime;
|
/**
|
||||||
private Date ReturnStationDateTime;
|
* 是否结束
|
||||||
private Boolean IsNormalOver;
|
*/
|
||||||
private String AbnormalReason;
|
@ApiModelProperty(value = "是否结束")
|
||||||
private String Driver;
|
@Alias("IsOver")
|
||||||
private String Doctor;
|
private Boolean isOver;
|
||||||
private String Stretcher;
|
/**
|
||||||
private String Nurse;
|
* 送往地点
|
||||||
private String StationName;
|
*/
|
||||||
private String TaskId;
|
@ApiModelProperty(value = "送往地点")
|
||||||
private String AcceptOrder;
|
@Alias("RealSendAddress")
|
||||||
private String AcceptId;
|
private String realSendAddress;
|
||||||
private String EventId;
|
/**
|
||||||
|
* 生成任务时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "生成任务时刻")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Alias("TaskCreatedDateTime")
|
||||||
|
private LocalDateTime taskCreatedDateTime;
|
||||||
|
/**
|
||||||
|
* 接受命令时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "接受命令时刻")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Alias("AcceptOrderDateTime")
|
||||||
|
private LocalDateTime acceptOrderDateTime;
|
||||||
|
/**
|
||||||
|
* 出车时间
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "出车时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Alias("OutAmbDateTime")
|
||||||
|
private LocalDateTime outAmbDateTime;
|
||||||
|
/**
|
||||||
|
* 到达现场时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "到达现场时刻")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Alias("ArriveSceneDateTime")
|
||||||
|
private LocalDateTime arriveSceneDateTime;
|
||||||
|
/**
|
||||||
|
* 离开现场时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "离开现场时刻")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Alias("LeaveSceneDateTime")
|
||||||
|
private LocalDateTime leaveSceneDateTime;
|
||||||
|
/**
|
||||||
|
* 到达医院时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "到达医院时刻")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Alias("ArriveHospitalDateTime")
|
||||||
|
private LocalDateTime arriveHospitalDateTime;
|
||||||
|
/**
|
||||||
|
* 完成任务时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "完成任务时刻")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Alias("ComplatedDateTime")
|
||||||
|
private LocalDateTime complatedDateTime;
|
||||||
|
/**
|
||||||
|
* 返回站中时刻
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "返回站中时刻")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@Alias("ReturnStationDateTime")
|
||||||
|
private LocalDateTime returnStationDateTime;
|
||||||
|
/**
|
||||||
|
* 是否正常结束
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "是否正常结束")
|
||||||
|
@Alias("IsNormalOver")
|
||||||
|
private Boolean isNormalOver;
|
||||||
|
/**
|
||||||
|
* 异常原因
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "异常原因")
|
||||||
|
@Alias("AbnormalReason")
|
||||||
|
private String abnormalReason;
|
||||||
|
/**
|
||||||
|
* 司机
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "司机")
|
||||||
|
@Alias("Driver")
|
||||||
|
private String driver;
|
||||||
|
/**
|
||||||
|
* 医生
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "医生")
|
||||||
|
@Alias("Doctor")
|
||||||
|
private String doctor;
|
||||||
|
/**
|
||||||
|
* 担架工
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "担架工")
|
||||||
|
@Alias("Stretcher")
|
||||||
|
private String stretcher;
|
||||||
|
/**
|
||||||
|
* 担架工
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "担架工")
|
||||||
|
@Alias("Nurse")
|
||||||
|
private String nurse;
|
||||||
|
/**
|
||||||
|
* 出车分站
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "出车分站")
|
||||||
|
@Alias("StationName")
|
||||||
|
private String stationName;
|
||||||
|
/**
|
||||||
|
* 受理序号
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "受理序号")
|
||||||
|
@Alias("AcceptOrder")
|
||||||
|
private String acceptOrder;
|
||||||
|
/**
|
||||||
|
* 受理编码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "受理编码")
|
||||||
|
@Alias("AcceptId")
|
||||||
|
private String acceptId;
|
||||||
|
/**
|
||||||
|
* 事件编码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "事件编码")
|
||||||
|
@Alias("EventId")
|
||||||
|
private String eventId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.yingji.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yingji.entity.AcceptEvents;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 受理调度信息(Accept)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:32
|
||||||
|
*/
|
||||||
|
public interface AcceptMapper extends BaseMapper<AcceptEvents> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.yingji.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yingji.entity.Amb;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务车辆(Amb)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:32
|
||||||
|
*/
|
||||||
|
public interface AmbMapper extends BaseMapper<Amb> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.yingji.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yingji.entity.Event;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 事故(Event)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:32
|
||||||
|
*/
|
||||||
|
public interface EventMapper extends BaseMapper<Event> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.yingji.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yingji.entity.Task;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务信息(Task)表数据库访问层
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:33
|
||||||
|
*/
|
||||||
|
public interface TaskMapper extends BaseMapper<Task> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,32 @@
|
|||||||
|
package com.yingji.quartz;
|
||||||
|
|
||||||
|
import com.yingji.service.AccidentService;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 120定时任务保存数据
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024/5/10 上午10:05
|
||||||
|
*/
|
||||||
|
//@Configuration
|
||||||
|
//@Transactional(rollbackFor = Exception.class)
|
||||||
|
public class AccidentQuartz {
|
||||||
|
|
||||||
|
public static final Logger log = LoggerFactory.getLogger(AccidentQuartz.class);
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private AccidentService accidentService;
|
||||||
|
|
||||||
|
// @Async
|
||||||
|
// @Scheduled(cron = "*/10 * * * * ? ")
|
||||||
|
public void savaData() {
|
||||||
|
accidentService.getAuthorizeValidate();
|
||||||
|
String accessToken = accidentService.getAuthorizeToken();
|
||||||
|
accidentService.getAccidentUrl(accessToken);
|
||||||
|
log.info("=================120定时任务结束===============");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.yingji.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.yingji.entity.AcceptEvents;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 受理调度信息(Accept)表服务接口
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:32
|
||||||
|
*/
|
||||||
|
public interface AcceptService extends IService<AcceptEvents> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
package com.yingji.service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 120获取数据
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024/5/10 上午10:38
|
||||||
|
*/
|
||||||
|
public interface AccidentService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取token校验
|
||||||
|
*/
|
||||||
|
String getAuthorizeValidate();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取token
|
||||||
|
*/
|
||||||
|
String getAuthorizeToken();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存数据
|
||||||
|
*
|
||||||
|
* @param accessToken token
|
||||||
|
*/
|
||||||
|
void getAccidentUrl(String accessToken);
|
||||||
|
|
||||||
|
|
||||||
|
void text();
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.yingji.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.yingji.entity.Amb;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务车辆(Amb)表服务接口
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:32
|
||||||
|
*/
|
||||||
|
public interface AmbService extends IService<Amb> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.yingji.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.yingji.entity.Event;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 事故(Event)表服务接口
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:33
|
||||||
|
*/
|
||||||
|
public interface EventService extends IService<Event> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.yingji.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.yingji.entity.Task;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务信息(Task)表服务接口
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:33
|
||||||
|
*/
|
||||||
|
public interface TaskService extends IService<Task> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.yingji.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yingji.entity.AcceptEvents;
|
||||||
|
import com.yingji.mapper.AcceptMapper;
|
||||||
|
import com.yingji.service.AcceptService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 受理调度信息(Accept)表服务实现类
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:32
|
||||||
|
*/
|
||||||
|
@Service("acceptService")
|
||||||
|
public class AcceptServiceImpl extends ServiceImpl<AcceptMapper, AcceptEvents> implements AcceptService {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,19 @@
|
|||||||
|
package com.yingji.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yingji.entity.Amb;
|
||||||
|
import com.yingji.mapper.AmbMapper;
|
||||||
|
import com.yingji.service.AmbService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务车辆(Amb)表服务实现类
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:32
|
||||||
|
*/
|
||||||
|
@Service("ambService")
|
||||||
|
public class AmbServiceImpl extends ServiceImpl<AmbMapper, Amb> implements AmbService {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.yingji.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yingji.entity.Event;
|
||||||
|
import com.yingji.mapper.EventMapper;
|
||||||
|
import com.yingji.service.EventService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 事故(Event)表服务实现类
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:33
|
||||||
|
*/
|
||||||
|
@Service("eventService")
|
||||||
|
public class EventServiceImpl extends ServiceImpl<EventMapper, Event> implements EventService {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.yingji.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yingji.entity.Task;
|
||||||
|
import com.yingji.mapper.TaskMapper;
|
||||||
|
import com.yingji.service.TaskService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务信息(Task)表服务实现类
|
||||||
|
*
|
||||||
|
* @author wu
|
||||||
|
* @since 2024-05-10 17:10:33
|
||||||
|
*/
|
||||||
|
@Service("taskService")
|
||||||
|
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in new issue