新疆后端项目

This commit is contained in:
DESKTOP-BLB5287\FP
2025-06-30 14:31:09 +08:00
commit 0e52aff1f1
2596 changed files with 261030 additions and 0 deletions
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>health-emergency</artifactId>
<groupId>com.renkang</groupId>
<version>2.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>health-emergency-api</artifactId>
<dependencies>
<dependency>
<groupId>org.jeecgframework.boot</groupId>
<artifactId>jeecg-boot-base-core</artifactId>
</dependency>
<!-- feign -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<!-- 控制openfeign中bcpkix依赖的版本 -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
</dependency>
<!-- sentinel限流熔断降级-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,83 @@
package com.renkang.emergency.api;
import com.renkang.emergency.api.fallback.EmergencyCloudFallback;
import com.renkang.emergency.bean.request.CallBack;
import com.renkang.emergency.bean.request.EmergencyCall;
import com.renkang.emergency.bean.response.Call;
import com.renkang.emergency.entity.EmergencyCenter;
import com.renkang.emergency.entity.TblBaseHospitalVo;
import org.jeecg.common.api.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author Junqiang Zhu
*/
@FeignClient(
value = "health-emergency",
url = "${renkang.service-url.emergency:}",
fallbackFactory = EmergencyCloudFallback.class
)
@Component
public interface EmergencyCloudApi {
/**
* 获取当前值班人员
*
* @return data
*/
@GetMapping("/api/emergency/officerOnDuty")
Result<Call> officerOnDuty();
/**
* 呼叫回调
*
* @param callBack data
* @return
*/
@PostMapping("/api/emergency/call/back")
Result<Boolean> callBack(@RequestBody @Validated CallBack callBack);
/**
* 应急呼叫
*
* @param emergencyCall data
* @return
*/
@PostMapping("/api/emergency/call")
Result<String> call(@RequestBody @Validated EmergencyCall emergencyCall);
/**
* 是否有正在进行的会话
*
* @return 没有返回空 有返回会话id
*/
@GetMapping("/api/emergency/order/sessionNow")
Result<String> sessionNow(@RequestParam String userId);
/**
* 获取所有资源
* @param lat
* @param lon
* @param type
* @param keys
* @return
*/
@GetMapping("/emergency/tblAmbulanceGps/getAllList")
Result<List<TblBaseHospitalVo>> getAllList(@RequestParam(name = "lat") String lat,
@RequestParam(name = "lon") String lon,
@RequestParam(name = "type", required = false) String type,
@RequestParam(name = "keys", required = false) String keys);
@DeleteMapping("/emergency/emergencyCenterResource/deleteResource")
Result<String> deleteResource(@RequestParam(name="id",required=true) String id);
@GetMapping("/emergency/center/getCenterIdByOrgCodeList")
Result<EmergencyCenter> getCenterIdByOrgCodeList(@RequestParam(name = "userOrgCode") String userOrgCode);
}
@@ -0,0 +1,24 @@
package com.renkang.emergency.api.fallback;
import com.renkang.emergency.api.EmergencyCloudApi;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
/**
* @author JeecgBoot
*/
@Slf4j
@Component
public class EmergencyCloudFallback implements FallbackFactory<EmergencyCloudApi> {
@Setter
private Throwable cause;
@Override
public EmergencyCloudApi create(Throwable throwable) {
log.error("微服务接口调用失败: {}", cause);
return null;
}
}
@@ -0,0 +1,14 @@
package com.renkang.emergency.bean.common;
import com.renkang.emergency.entity.Resource;
import lombok.Data;
/**
* @author Jiang Shunzhi
* @date 2022/12/8
*/
@Data
public class ResourceExt extends Resource {
private Double distance;
}
@@ -0,0 +1,19 @@
package com.renkang.emergency.bean.request;
import com.renkang.emergency.entity.EmergencyCenterAdmin;
import lombok.Getter;
import lombok.Setter;
import javax.validation.Valid;
import java.util.List;
/**
* @author Junqiang Zhu
* @since 2024-09-20 17:18
*/
@Getter
@Setter
public class AddBatchAdmin {
@Valid
List<EmergencyCenterAdmin> admins;
}
@@ -0,0 +1,38 @@
package com.renkang.emergency.bean.request;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @author Junqiang Zhu
* @date 2023-04-26 16:55
*/
@Data
public class CallBack {
/**
* 订单id
*/
@NotBlank(message = "应急单id为空")
private String orderId;
/**
* 会话id
*/
@NotBlank(message = "会话id为空")
private String sessionId;
/**
* 操作人员id
*/
@NotBlank(message = "操作人员id为空")
private String operationUserId;
/**
* 专业人员id
*/
@NotBlank(message = "应急人员id为空")
private String majorUserId;
/**
* 应急中心id
*/
private String centerId;
}
@@ -0,0 +1,17 @@
package com.renkang.emergency.bean.request;
import lombok.Getter;
import lombok.Setter;
/**
* 中心开放时间
*
* @author Junqiang Zhu
* @since 2024-09-29 09:26
*/
@Getter
@Setter
public class CenterOpenTime {
private String openTimeStart;
private String openTimeEnd;
}
@@ -0,0 +1,34 @@
package com.renkang.emergency.bean.request;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @author Junqiang Zhu
* @date 2023-04-28 14:45
*/
@Data
public class EmergencyCall {
/**
* 呼叫类型 (0:120 1: 应急就医)
*/
@NotBlank(message = "呼叫类型为空")
private String callType;
/**
* 资源id
*/
private String resourceId;
/**
* 经度
*/
// @NotNull(message = "经度为空")
private Double longitude;
/**
* 纬度
*/
// @NotNull(message = "纬度为空")
private Double latitude;
private String centerId;
}
@@ -0,0 +1,36 @@
package com.renkang.emergency.bean.request;
import com.renkang.emergency.entity.TblBaseHospitalVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import java.util.List;
/**
* @author TianZi
* @date 2023/12/8 14:58
*/
@Data
public class EmergencySocket {
private String userId;
private String phone;
private String realName;
private Double lon;
private Double lat;
@Dict(dicCode = "sex2")
private Integer sex;
private Integer age;
private String orgCode;
private String orgName;
private String departCode;
private String departName;
private List<TblBaseHospitalVo> hospitalList;
private String type;
private String centerId;
@Schema(title = "1:紧急求助 2:云坐席 3:终端报警")
private Integer popType;
private String queue;
private String noticeId;
}
@@ -0,0 +1,19 @@
package com.renkang.emergency.bean.request;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-07-10 14:58
*/
@Data
public class ListSession {
@NotEmpty(message = "sessions为空")
private List<String> sessions;
@NotBlank(message = "type为空")
private String type;
}
@@ -0,0 +1,20 @@
package com.renkang.emergency.bean.request;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @author Junqiang Zhu
* @date 2023-05-27 13:58
*/
@Data
public class OrderEvaluation {
@NotBlank(message = "未知订单")
private String orderId;
@NotNull(message = "评分为空")
private Double score;
@NotBlank(message = "评语为空")
private String evaluation;
}
@@ -0,0 +1,44 @@
package com.renkang.emergency.bean.request;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.renkang.emergency.bean.response.EmergencyUser;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-05-22 14:26
*/
@Data
public class ScheduleCustomDetail {
/**
* 日期
*/
@NotNull(message = "时间为空")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
private Date time;
/**
* 早上下午
*/
@NotBlank(message = "上下午为空")
private String amOrPm;
/**
* 操作人员
*/
@Valid
// @NotEmpty(message = "操作人员为空")
private List<EmergencyUser> operators;
/**
* 专业人员
*/
@Valid
// @NotEmpty(message = "专业人员为空")
private List<EmergencyUser> majors;
}
@@ -0,0 +1,40 @@
package com.renkang.emergency.bean.request;
import com.renkang.emergency.bean.response.EmergencyUser;
import lombok.Data;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-05-22 14:26
*/
@Data
public class ScheduleDetail {
/**
* 周几
*/
@NotNull(message = "周几为空")
private Integer week;
/**
* 早上下午
*/
@NotBlank(message = "上下午为空")
private String amOrPm;
/**
* 操作人员
*/
@Valid
@NotEmpty(message = "操作人员为空")
private List<EmergencyUser> operators;
/**
* 专业人员
*/
@Valid
@NotEmpty(message = "专业人员为空")
private List<EmergencyUser> majors;
}
@@ -0,0 +1,15 @@
package com.renkang.emergency.bean.request;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* @author Junqiang Zhu
* @date 2023-04-27 10:13
*/
@Data
public class SingleParam<T> {
@NotNull(message = "参数为空")
private T param;
}
@@ -0,0 +1,41 @@
package com.renkang.emergency.bean.request;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @author Junqiang Zhu
* @date 2023-05-27 10:12
*/
@Data
public class StationUpdateOrder {
/**
* 订单id
*/
@NotBlank(message = "未知订单")
private String orderId;
/**
* 订单状态 1:已接单 2:已拒单)
*/
@NotBlank(message = "订单状态为空")
private String orderStatus;
/**
* 原因
*/
private String cause;
/**
* 备注
*/
private String memo;
/**
* 医院
*/
@NotBlank(message = "医院为空")
private String hospital;
/**
* 派单业务
*/
@NotBlank(message = "业务为空")
private String business;
}
@@ -0,0 +1,141 @@
package com.renkang.emergency.bean.request;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Jiang Shunzhi
*/
@Data
@Schema(description = "紫云数据对象")
public class ZiYunData {
public static Map<Integer, String> mpdsMap = new HashMap<>();
static {
mpdsMap.put(1, "交通、运输事故");
mpdsMap.put(3, "高处坠落/跌倒");
mpdsMap.put(4, "暴力袭击/性侵犯");
mpdsMap.put(6, "动物咬伤/攻击");
mpdsMap.put(7, "烧伤(烫伤)/爆炸伤");
mpdsMap.put(8, "锐器刺伤/枪伤/贯通伤");
mpdsMap.put(9, "触电/雷击伤");
mpdsMap.put(10, "创伤(其他创伤)");
mpdsMap.put(35, "冬季运动损伤");
mpdsMap.put(36, "机械损伤");
}
@Schema(name = "patient_id", description = "患者姓名")
@JsonAlias("patient_id")
private String patientId;
@Schema(name = "patient_name", description = "患者姓名")
@JsonAlias("patient_name")
private String patientName;
@Schema(description = "性别 0-未知 1-男 2-女", allowableValues = {"0", "1", "2"})
private Integer gender;
@Schema(name = "IDCard_type", description = "身份证类型", allowableValues = {"1"})
@JsonAlias("IDCard_type")
private Integer idCardType;
@Schema(name = "IDCard_number", description = "身份证号码")
@JsonAlias("IDCard_number")
private String idCardNumber;
@Schema(name = "age_type", description = "年龄类型 1-年 2-月 3-天", allowableValues = {"1", "2", "3"})
@JsonAlias("age_type")
private Integer ageType;
@Schema(description = "年龄")
private Integer age;
@Schema(name = "mpds_category_id", description = "病人MPDS类型 0-默认值 1-创伤")
@JsonAlias("mpds_category_id")
private Integer mpdsCategoryId;
@Schema(name = "mpds_data", description = "创伤类型病人MPDS症状小类")
@JsonAlias("mpds_data")
private List<Integer> mpdsData;
@Schema(name = "attack_address", description = "发病地点")
@JsonAlias("attack_address")
private String attackAddress;
@Schema(name = "injury_level", description = "病情判断 0-默认 1-濒危 2-危重 3-急症 4-非急症 5-死亡")
@JsonAlias("injury_level")
private Integer injuryLevel;
@Schema(name = "start_time", description = "救护车出发时间")
@JsonAlias("start_time")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date startTime;
@Schema(name = "arrive_scene_time", description = "到达现场时间")
@JsonAlias("arrive_scene_time")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date arriveSceneTime;
@Schema(name = "leave_scene_time", description = "离开现场时间")
@JsonAlias("leave_scene_time")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date leaveSceneTime;
@Schema(name = "arrive_hospital_time", description = "到达医院时间")
@JsonAlias("arrive_hospital_time")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date arriveHospitalTime;
@Schema(name = "early_warning_time", description = "院前预警时间")
@JsonAlias("early_warning_time")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
private Date earlyWarningTime;
@Schema(name = "vital_signs_data", description = "生命体征")
@JsonAlias("vital_signs_data")
private VitalSigns vitalSignsData;
@Data
@Schema(description = "生命体征对象")
public static class VitalSigns {
@Schema(name = "diastolic_pressure", description = "舒张压")
@JsonAlias("diastolic_pressure")
private String diastolicPressure;
@Schema(name = "systolic_pressure", description = "收缩压")
@JsonAlias("systolic_pressure")
private String systolicPressure;
@Schema(name = "heart_rate", description = "心率")
@JsonAlias("heart_rate")
private String heartRate;
@Schema(name = "breathing_rate", description = "呼吸率")
@JsonAlias("breathing_rate")
private String breathingRate;
@Schema(name = "temperature", description = "体温")
@JsonAlias("temperature")
private String temperature;
@Schema(name = "blood_sugar", description = "血糖")
@JsonAlias("blood_sugar")
private String bloodSugar;
@Schema(name = "blood_oxygen_saturation", description = "血氧饱和度")
@JsonAlias("blood_oxygen_saturation")
private String bloodOxygenSaturation;
@Schema(name = "pulse", description = "脉搏")
@JsonAlias("pulse")
private String pulse;
}
}
@@ -0,0 +1,16 @@
package com.renkang.emergency.bean.response;
import com.renkang.emergency.entity.Aed;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author Junqiang Zhu
* @date 2023-11-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class AedGeo extends Aed {
// 距离
private double distance;
}
@@ -0,0 +1,21 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-04-26 10:52
*/
@Data
public class Call {
// 应急单id
private String orderId;
// 操作人员集合
private List<EmergencyUser> operators;
// 专业人员集合
private List<EmergencyUser> majors;
// 应急中心id
private String centerId;
}
@@ -0,0 +1,17 @@
package com.renkang.emergency.bean.response;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* @author Junqiang Zhu
* @since 2024-09-20 11:15
*/
@Getter
@Setter
public class CenterUser {
private String centerId;
private List<EmergencyUser> centerUsers;
}
@@ -0,0 +1,13 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
/**
* @author Junqiang Zhu
* @date 2023-08-22 13:10
*/
@Data
public class EmergencyHospital {
private String id;
private String name;
}
@@ -0,0 +1,25 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import javax.validation.constraints.NotBlank;
/**
* @author Junqiang Zhu
* @date 2023-04-26 14:43
*/
@Data
public class EmergencyUser {
@NotBlank(message = "用户id为空")
private String userId;
private String userName;
@Dict(dicCode = "sex2")
private String userSex;
private String userType;
/**
* 正在参加会话的数量
*/
private Integer num = 0;
}
@@ -0,0 +1,52 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import java.util.Date;
/**
* @author Junqiang Zhu
* @date 2023-08-02 15:27
*/
@Data
public class InitUserOrder {
/**
* 订单id
*/
private String id;
/**
* 会话id
*/
private String sessionId;
/**
* 发起人id
*/
private String initiatorUserId;
/**
* 发起人姓名
*/
private String initiatorUserName;
/**
* 发起人性别
*/
private String initiatorUserSex;
/**
* 创建时间
*/
private Date createTime;
/**
* 订单状态
*/
@Dict(dicCode = "emergency_order_status")
private String orderStatus;
/**
* 派单医院
*/
private java.lang.String sendOrderHospital;
/**
* 派单业务
*/
@Dict(dicCode = "emergency_send_order_type")
private java.lang.String stationBusiness;
}
@@ -0,0 +1,17 @@
package com.renkang.emergency.bean.response;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
/**
* @author Junqiang Zhu
* @since 2024-09-20 16:01
*/
@Getter
@Setter
public class OnDutyRecord {
private String userId;
private Date time;
}
@@ -0,0 +1,54 @@
package com.renkang.emergency.bean.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author Junqiang Zhu
* @date 2023-05-23 13:31
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderSimple extends UserSimple {
/**
* 订单id
*/
private String orderId;
/**
* 会话id
*/
private String sessionId;
/**
* 是否正在进行会话
*/
private Boolean sessionNow;
/**
* 经度
*/
private BigDecimal longitude;
/**
* 维度
*/
private BigDecimal latitude;
/**
* 发起时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
private Date createTime;
/**
* 订单状态
*/
private String orderStatus;
/**
* 派单医院
*/
private String hospital;
/**
* 救助意见
*/
private String salvageOpinion;
}
@@ -0,0 +1,69 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import java.util.Date;
/**
* @author Junqiang Zhu
* @date 2023-04-27 10:42
*/
@Data
public class OrderSimpleLetter {
private String orderId;
/**
* 会话id
*/
private String sessionId;
/**
* 求助时间 (应急单创建时间)
*/
private Date salvageTime;
/**
* 操作人员响应时间
*/
private Date resTime;
/**
* 被救助人
*/
private EmergencyUser salvage;
/**
* 操作人员
*/
private EmergencyUser operation;
/**
* 专业人员
*/
private EmergencyUser major;
/**
* 操作人员是否已经派单
*/
private Boolean sendOrder;
/**
* 是否已经接单
*/
private Boolean accept;
/**
* 接单时间
*/
private Date acceptTime;
/**
* 操作人员派单时间
*/
private Date sendOrderTime;
/**
* 派单医院
*/
private String sendOrderHospital;
/**
* 派单业务
*/
@Dict(dicCode = "emergency_send_order_type")
private String sendOrderType;
/**
* 应急小结
*/
private String through;
}
@@ -0,0 +1,15 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
/**
* @author Junqiang Zhu
* @date 2023-08-02 15:46
*/
@Data
public class OrderThrough {
// 经过
private String orderThrough;
// 结果
private String orderResult;
}
@@ -0,0 +1,28 @@
package com.renkang.emergency.bean.response;
import cn.hutool.core.util.StrUtil;
import com.renkang.emergency.bean.common.ResourceExt;
import lombok.Data;
import org.jeecg.common.system.vo.DictModel;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-04-25 18:42
*/
@Data
public class ResourceHome {
/**
* 会话id 如果不为空 表示有正在进行的会话
*/
private String sessionId = StrUtil.EMPTY;
/**
* 资源分类
*/
private List<DictModel> dicts;
/**
* 具体资源
*/
private List<ResourceExt> resources;
}
@@ -0,0 +1,14 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
/**
* @author Junqiang Zhu
* @date 2023-05-25 13:51
*/
@Data
public class ScheduleDay {
private Integer day;
private boolean am;
private boolean pm;
}
@@ -0,0 +1,27 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-05-22 10:09
*/
@Data
public class ScheduleDefaultCustom {
/**
* 日期
*/
private String time;
/**
* 周几
*/
@Dict(dicCode = "week")
private Integer week;
/**
* 数据
*/
private List<ScheduleDefaultDetail> detail;
}
@@ -0,0 +1,27 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-05-22 10:56
*/
@Data
public class ScheduleDefaultDetail {
/**
* 上下午 (0:上午 1:下午)
*/
@Dict(dicCode = "am_pm")
private String type;
/**
* 操作人员
*/
private List<EmergencyUser> operations;
/**
* 专业人员
*/
private List<EmergencyUser> majors;
}
@@ -0,0 +1,15 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-05-25 13:34
*/
@Data
public class ScheduleMonth {
private Integer month;
private List<ScheduleDay> days;
}
@@ -0,0 +1,15 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-05-25 13:33
*/
@Data
public class ScheduleRecordShow {
private Integer year;
private List<ScheduleMonth> months;
}
@@ -0,0 +1,23 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
/**
* @author Junqiang Zhu
* @date 2023-06-16 10:58
*/
@Data
public class SendIm {
/**
* 标题
*/
private String title;
/**
* 内容
*/
private String content;
/**
* 类型 1: 应急单
*/
private Integer type;
}
@@ -0,0 +1,31 @@
package com.renkang.emergency.bean.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import java.util.Date;
/**
* 会话发起人信息
*
* @author Junqiang Zhu
* @date 2023-07-07 14:14
*/
@Data
public class SessionOrderUser {
private String orderId;
private String userId;
private String userName;
private String avatar;
@Dict(dicCode = "sex2")
private String sex;
private Integer age;
private String depart;
private String sessionId;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
private Date initTime;
private String hospital;
@Dict(dicCode = "emergency_order_status")
private String orderStatus;
}
@@ -0,0 +1,15 @@
package com.renkang.emergency.bean.response;
import lombok.Getter;
import lombok.Setter;
/**
* @author Junqiang Zhu
* @since 2024-09-12 13:15
*/
@Getter
@Setter
public class SimpleCenter {
private String id;
private String centerName;
}
@@ -0,0 +1,29 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import java.math.BigDecimal;
/**
* @author Junqiang Zhu
* @date 2023-04-28 10:05
*/
@Data
public class Stat {
/**
* 总应急次数
*/
private Integer totalNum;
/**
* 及时率 (5分钟内接入应急次数/总次数。员工拨打120/应急帮助,应急专家必须5分钟内回应)
*/
private BigDecimal timelinessRate;
/**
* 完成率 (应急回复的次数/发生应急的次数)
*/
private BigDecimal completionRate;
/**
* 当前在线值班小组数量
*/
private Integer dutyTeamNum;
}
@@ -0,0 +1,29 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import java.math.BigDecimal;
/**
* @author Junqiang Zhu
* @date 2023-05-23 17:18
*/
@Data
public class StatSimple {
/**
* 正在应急的员工数
*/
private Integer emeNum;
/**
* 应急响应率
*/
private BigDecimal emeResRate;
/**
* 正在发起大病就医的员工数
*/
private Integer seriousNum;
/**
* 大病就医接单率
*/
private BigDecimal seriousRate;
}
@@ -0,0 +1,28 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
/**
* 用户简单信息
*
* @author Junqiang Zhu
* @date 2023-05-23 13:31
*/
@Data
public class UserSimple {
private String userId;
private String userName;
private Integer age;
private String sex;
private String phone;
private String avatar;
/**
* 当前部门
*/
private String depart;
/**
* 二级部门
*/
private String secondDepart;
}
@@ -0,0 +1,15 @@
package com.renkang.emergency.bean.response;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
/**
* @author stan
* @since 2024-10-21 10:18
*/
@Data
public class YcAmbulanceStat {
@Dict(dicCode = "yc_first_aid_type")
private String type;
private Integer count;
}
@@ -0,0 +1,142 @@
package com.renkang.emergency.constant;
import java.math.BigDecimal;
/**
* @author Junqiang Zhu
* @date 2023-04-26 10:11
*/
public interface EmergencyConstants {
// 120
String CALL_TYPE_0 = "0";
// 应急就医
String CALL_TYPE_1 = "1";
// 大屏管理员
int CENTER_ADMIN_TYPE_0 = 0;
// 大屏账号
int CENTER_ADMIN_TYPE_1 = 1;
// 中心状态0 正常
String CENTER_STATUS_0 = "0";
// 中心状态1 关闭
String CENTER_STATUS_1 = "1";
/**
* redis 缓存aed key
*/
String AED_REDIS_KEY = "emergency:aed";
// 中国 经纬度 范围
BigDecimal LONGITUDE_START = BigDecimal.valueOf(73);
BigDecimal LONGITUDE_END = BigDecimal.valueOf(136);
BigDecimal LATITUDE_START = BigDecimal.valueOf(3);
BigDecimal LATITUDE_END = BigDecimal.valueOf(54);
// 上下午(0:上午 1:下午)
String AM = "0";
String PM = "1";
/**
* 应急单类型 不是补单
*/
boolean ORDER_IS_FILL_0 = false;
/**
* 应急单类型 是补单
*/
boolean ORDER_IS_FILL_1 = true;
/**
* redis 缓存应急数据key
*/
String RESOURCE_REDIS_KEY = "emergency:resource";
/**
* 全部资源
*/
String RESOURCE_ALL = "0";
/**
* 资源类型redis key
*/
String EMERGENCY_RESOURCE_TYPE_DICT = "emergency_resource_type";
/**
* 操作人员
*/
String OPERATION = "0";
/**
* 专业人员
*/
String MAJOR = "1";
/**
* 操作人员
*/
String OPERATION_NEW = "5";
/**
* 专业人员
*/
String MAJOR_NEW = "6";
/**
* 救助人员
*/
String SALVAGE = "2";
/**
* 发起人员
*/
String INITIATOR = "3";
/**
* 驻场人员
*/
String STATION = "4";
/**
* 应急单状态
*/
// 待处理
String ORDER_STATUS_0_NEW = "0";
// 咨询中
String ORDER_STATUS_1_NEW = "1";
// 已派单
String ORDER_STATUS_2_NEW = "2";
// 待审核
String ORDER_STATUS_3_NEW = "3";
// 待就医
String ORDER_STATUS_4_NEW = "4";
// 已完成
String ORDER_STATUS_5_NEW = "5";
/**
* 会话状态
*/
String SESSION_NOW_1 = "1";
/**
* 会话状态
*/
String SESSION_NOW_0 = "0";
// 应急单派单状态
// 0:待处理 1:咨询中 2:待接单 3:驻场驳回 4:已接单 5: 已完成
String ORDER_SEND_STATUS_0 = "0";
String ORDER_SEND_STATUS_1 = "1";
String ORDER_SEND_STATUS_2 = "2";
String ORDER_SEND_STATUS_3 = "3";
String ORDER_SEND_STATUS_4 = "4";
String ORDER_SEND_STATUS_5 = "5";
// 派单记录状态
// 待处理
String SEND_ORDER_ACCEPT_0 = "0";
// 接单
String SEND_ORDER_ACCEPT_1 = "1";
// 拒绝
String SEND_ORDER_ACCEPT_2 = "2";
// 已完成 (已有别人接单)
String SEND_ORDER_ACCEPT_3 = "3";
// 通话记录code
String EMERGENCY_CALL_LOG_CODE = "emergencyCallLogCode";
// 导出中
String EMERGENCY_CALL_LOG_DOING = "7";
// 导出完成
String EMERGENCY_CALL_LOG_FINISH = "8";
// 导出失败
String EMERGENCY_CALL_LOG_ERR_CODE = "8";
}
@@ -0,0 +1,203 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author stan
* @date 2023-12-12
*/
@Data
@TableName("aed")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class Aed implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.AUTO)
@Schema(title = "主键")
private Integer id;
/**资源名称*/
@Excel(name = "资源名称", width = 15)
@Schema(title = "资源名称")
private String name;
/**经度*/
@Excel(name = "经度", width = 15)
@Schema(title = "经度")
private BigDecimal longitude;
/**纬度*/
@Excel(name = "纬度", width = 15)
@Schema(title = "纬度")
private BigDecimal latitude;
/**部门编码*/
@Excel(name = "部门编码", width = 15)
@Schema(title = "部门编码")
private String departCode;
/**主机型号*/
@Excel(name = "主机型号", width = 15)
@Schema(title = "主机型号")
private String hostModel;
/**主机序列号*/
@Excel(name = "主机序列号", width = 15)
@Schema(title = "主机序列号")
private String hostSerialNum;
/**电极片有效期*/
@Excel(name = "电极片有效期", width = 15, format = "yyyy-MM")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM")
@DateTimeFormat(pattern="yyyy-MM")
@Schema(title = "电极片有效期")
private Date electrodeSheetValidTime;
/**路由器型号*/
@Excel(name = "路由器型号", width = 15)
@Schema(title = "路由器型号")
private String routerModel;
/**路由器序列号*/
@Excel(name = "路由器序列号", width = 15)
@Schema(title = "路由器序列号")
private String routerSerialNum;
/**电池型号*/
@Excel(name = "电池型号", width = 15)
@Schema(title = "电池型号")
private String batteryModel;
/**电池电压*/
@Excel(name = "电池电压", width = 15)
@Schema(title = "电池电压")
private Double batteryVoltage;
/**质保开始时间*/
@Excel(name = "质保开始时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@Schema(title = "质保开始时间")
@TableField(updateStrategy = FieldStrategy.ALWAYS)
private Date warrantyStartDate;
/**质保结束时间*/
@Excel(name = "质保结束时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@Schema(title = "质保结束时间")
@TableField(updateStrategy = FieldStrategy.ALWAYS)
private Date warrantyEndDate;
/**设备图片 多个","分隔*/
@Excel(name = "设备图片 多个,分隔", width = 15)
@Schema(title = "设备图片 多个,分隔")
private String aedImg;
/**制造商名称*/
@Excel(name = "制造商名称", width = 15)
@Schema(title = "制造商名称")
private String mfrsName;
/**制造商联系电话*/
@Excel(name = "制造商联系电话", width = 15)
@Schema(title = "制造商联系电话")
private String mfrsMobile;
/**安装位置*/
@Excel(name = "安装位置", width = 15)
@Schema(title = "安装位置")
private String installAddress;
/**位置图片 多个","分隔*/
@Excel(name = "位置图片 多个,分隔", width = 15)
@Schema(title = "位置图片 多个,分隔")
private String installAddressImg;
/**管理人员id*/
@Excel(name = "管理人员id", width = 15)
@Schema(title = "管理人员id")
private String manageUserId;
/**管理人员*/
@Excel(name = "管理人员", width = 15)
@Schema(title = "管理人员")
private String manageUserName;
/**管理人员电话*/
@Excel(name = "管理人员电话", width = 15)
@Schema(title = "管理人员电话")
private String manageUserMobile;
/**自检查状态*/
@Excel(name = "自检查状态", width = 15)
@Schema(title = "自检查状态")
@Dict(dicCode = "aed_check_status")
private Integer checkStatus;
/**电极片状态*/
@Excel(name = "电极片状态", width = 15)
@Schema(title = "电极片状态")
@Dict(dicCode = "aed_electrode_sheet_status")
private Integer electrodeSheetStatus;
/**电池状态*/
@Excel(name = "电池状态", width = 15)
@Schema(title = "电池状态")
@Dict(dicCode = "aed_battery_status")
private Integer batteryStatus;
/**路由状态*/
@Excel(name = "路由状态", width = 15)
@Schema(title = "路由状态")
@Dict(dicCode = "aed_router_status")
private Integer routerStatus;
/**部门名*/
@TableField(exist = false)
@Excel(name = "部门名", width = 15)
@Schema(title = "部门名")
private String departName;
/**单位名*/
@TableField(exist = false)
@Excel(name = "单位名", width = 15)
@Schema(title = "单位名")
private String secondDepartName;
/**管理部门名*/
@TableField(exist = false)
private String manageDepartName;
@Excel(name = "管理部门", width = 15)
private String manageDepartCode;
@Excel(name = "负责人1", width = 15)
private String chargeFirst;
@Excel(name = "负责人1电话", width = 15)
private String chargeFirstMobile;
@Excel(name = "负责人2", width = 15)
private String chargeSecond;
@Excel(name = "负责人2电话", width = 15)
private String chargeSecondMobile;
@Excel(name = "附件", width = 15)
private String annex;
@Excel(name = "视频操作", width = 15)
private String videoHandle;
@Excel(name = "操作说明", width = 15)
private String handleExplain;
@Excel(name = "设备附件状态", width = 15)
private String aedAnnexStatus;
@Excel(name = "安装时间", width = 15)
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date installTime;
@Excel(name = "覆盖人数", width = 15)
private Integer coverUserNum;
/**删除(0:否 1:是)*/
private Integer delFlag;
/**创建者*/
private String createBy;
/**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date createTime;
/**更新者*/
private String updateBy;
/**更新时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date updateTime;
/**备注*/
@Excel(name = "备注", width = 15)
private String memo;
}
@@ -0,0 +1,159 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: aed_latest
* @Author: jeecg-boot
* @Date: 2023-12-12
* @Version: V1.0
*/
@Data
@TableName("aed_latest")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "aed_latest对象", description = "aed_latest")
public class AedLatest implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.AUTO)
@Schema(title = "主键")
private Integer id;
/**AED型号+序列号*/
@Excel(name = "AED型号+序列号", width = 15)
@Schema(title = "AED型号+序列号")
@JsonAlias("AED_ID")
private String aedId;
/**状态码*/
@Excel(name = "状态码", width = 15)
@Schema(title = "状态码")
@JsonAlias("status")
@Dict(dicCode = "aed_check_status")
private String aedStatus;
/**AED型号*/
@Excel(name = "AED型号", width = 15)
@Schema(title = "AED型号")
@JsonAlias("aedModel")
private String aedModel;
/**AED序列号*/
@Excel(name = "AED序列号", width = 15)
@Schema(title = "AED序列号")
@JsonAlias("aedNo")
private String aedNo;
/**电极片有效期*/
@Excel(name = "电极片有效期", width = 15, format = "yyyy-MM")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM")
@DateTimeFormat(pattern="yyyy-MM")
@Schema(title = "电极片有效期")
@JsonAlias("Pad_Expiration")
private Date padExpiration;
/**
* 电极片有效期
*/
@Dict(dicCode = "aed_electrode_sheet_status")
@TableField(exist = false)
private String padExpirationStatus;
/**AED剩余电量状态*/
@TableField(exist = false)
@Dict(dicCode = "aed_battery_status")
private String batteryPowerStatus;
/**电压状态*/
@TableField(exist = false)
@Dict(dicCode = "aed_router_status")
private String routerVoltageStatus;
/**AED剩余电量*/
@Excel(name = "AED剩余电量", width = 15)
@Schema(title = "AED剩余电量")
@JsonAlias("Battery_Power")
private String batteryPower;
/**AED自检报告*/
@Excel(name = "AED自检报告", width = 15)
@Schema(title = "AED自检报告")
@JsonAlias("AED_SelfReport")
private String aedSelfReport;
/**专用路由器型号*/
@Excel(name = "专用路由器型号", width = 15)
@Schema(title = "专用路由器型号")
@JsonAlias("Router_Model")
private String routerModel;
/**专用路由器序列号*/
@Excel(name = "专用路由器序列号", width = 15)
@Schema(title = "专用路由器序列号")
@JsonAlias("Router_SerialNo")
private String routerSerialNo;
/**物联卡号*/
@Excel(name = "物联卡号", width = 15)
@Schema(title = "物联卡号")
@JsonAlias("Router_ICCID")
private String routerIccid;
/**电压*/
@Excel(name = "电压", width = 15)
@Schema(title = "电压")
@JsonAlias("Router_Voltage")
private String routerVoltage;
/**蓝牙自检结果*/
@Excel(name = "蓝牙自检结果", width = 15)
@Schema(title = "蓝牙自检结果")
@JsonAlias("Router_BT")
private String routerBt;
/**专用路由器通讯自检结果*/
@Excel(name = "专用路由器通讯自检结果", width = 15)
@Schema(title = "专用路由器通讯自检结果")
@JsonAlias("Router_selfModel")
private String routerSelfModel;
/**专用路由器文件系统自检结果*/
@Excel(name = "专用路由器文件系统自检结果", width = 15)
@Schema(title = "专用路由器文件系统自检结果")
@JsonAlias("Router_FileSystem")
private String routerFileSystem;
/**专用路由器RTC自检结果*/
@Excel(name = "专用路由器RTC自检结果", width = 15)
@Schema(title = "专用路由器RTC自检结果")
@JsonAlias("Router_selfRTC")
private String routerSelfRtc;
/**时间开始*/
@TableField(exist = false)
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date timeStart;
/**时间结束*/
@TableField(exist = false)
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date timeEnd;
/**删除(0:否 1:是)*/
@TableLogic
private Integer delFlag;
/**创建者*/
private String createBy;
/**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date createTime;
/**更新者*/
private String updateBy;
/**更新时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date updateTime;
/**备注*/
@Excel(name = "备注", width = 15)
private String memo;
}
@@ -0,0 +1,111 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: aed_warn_info
* @Author: jeecg-boot
* @Date: 2023-12-12
* @Version: V1.0
*/
@Data
@TableName("aed_warn_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "aed_warn_info对象", description = "aed_warn_info")
public class AedWarnInfo implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.AUTO)
@Schema(title = "主键")
private Integer id;
/**aed id*/
@Excel(name = "aed id", width = 15)
@Schema(title = "aed id")
private Integer latestId;
/**aed型号*/
@Excel(name = "aed型号", width = 15)
@Schema(title = "aed型号")
private String aedModel;
/**aed序列号*/
@Excel(name = "aed序列号", width = 15)
@Schema(title = "aed序列号")
private String aedNo;
/**报警模块*/
@Excel(name = "报警模块", width = 15)
@Schema(title = "报警模块")
@Dict(dicCode = "aed_module")
private String module;
/**报警类型*/
@Excel(name = "报警类型", width = 15)
@Schema(title = "报警类型")
private String type;
/**报警值*/
@Excel(name = "报警值", width = 15)
@Schema(title = "报警值")
private String value;
/**报警描述*/
@Excel(name = "报警描述", width = 15)
@Schema(title = "报警描述")
private String warnDesc;
/**报警状态(0:待处理 1:已解除)*/
@Excel(name = "报警状态(0:待处理 1:已解除)", width = 15)
@Schema(title = "报警状态(0:待处理 1:已解除)")
@Dict(dicCode = "aed_warn_handle_type")
private String warnStatus;
/**处理信息*/
@Excel(name = "处理信息", width = 15)
@Schema(title = "处理信息")
private String warnHandleInfo;
/**时间开始*/
@TableField(exist = false)
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date timeStart;
/**时间结束*/
@TableField(exist = false)
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date timeEnd;
/**删除状态(0-正常,1-已删除)*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private Integer delFlag;
/**创建人*/
@Schema(title = "创建人")
private String createBy;
/**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "创建时间")
private Date createTime;
/**更新人*/
@Schema(title = "更新人")
private String updateBy;
/**更新时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "更新时间")
private Date updateTime;
/**备注*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private String memo;
}
@@ -0,0 +1,183 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.renkang.emergency.bean.request.CenterOpenTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.experimental.FieldNameConstants;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* @Name 应急中心
* @Data 2024/8/19下午4:15
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@FieldNameConstants
@TableName(value = "emergency_center", autoResultMap = true)
public class EmergencyCenter implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Excel(name = "中心名称", width = 15)
@NotBlank(message = "中心名称为空")
@Schema(title = "中心名称")
private String centerName;
@Excel(name = "中心简称", width = 15)
@NotBlank(message = "中心简称为空")
@Schema(title = "中心简称")
@Size(min = 1, max = 4, message = "中心简称长度为1-4")
private String simpleName;
@Schema(title = " 是否默认中心")
@TableField("is_default_center")
private Boolean defaultCenter;
// @Excel(name = "管理单位", width = 15)
@NotBlank(message = "管理单位为空")
@Schema(title = "管理单位")
private String orgCode;
// 管理部门
@TableField(exist = false)
@Excel(name = "管理单位", width = 15)
private String secondDepart;
// 服务范围
@TableField(exist = false)
@Excel(name = "服务范围", width = 30)
private String serviceScopeTr;
// 服务范围
@TableField(exist = false)
private List<String> serviceScopeList;
// @Excel(name = "经度", width = 15)
@Schema(title = "经度")
@NotNull(message = "经度为空")
@Min(value = 73, message = "经度值不合法")
@Max(value = 136, message = "经度值不合法")
private BigDecimal longitude;
// @Excel(name = "纬度", width = 15)
@Schema(title = "纬度")
@NotNull(message = "纬度为空")
@Min(value = 3, message = "维度值不合法")
@Max(value = 54, message = "维度值不合法")
private BigDecimal latitude;
@Excel(name = "详细地址", width = 25)
@NotBlank(message = "详细地址为空")
@Schema(title = "详细地址")
private String address;
@Excel(name = "中心电话", width = 15)
// @Pattern(regexp = "(\\d{10,12})|(\\d{3,4}-\\d{7,8})|(^1[3-9]\\d{9}$)", message = "中心电话格式不正确")
@NotBlank(message = "中心电话为空")
@Schema(title = "中心电话")
private String centerTel;
@Excel(name = "负责人", width = 15)
@Schema(title = "负责人")
private String centerHeadName;
@Excel(name = "负责人电话", width = 15)
@Pattern(regexp = "(\\d{10,12})|(\\d{3,4}-\\d{7,8})|(^1[3-9]\\d{9}$)", message = "负责人电话格式不正确")
@Schema(title = "负责人电话")
private String centerHeadTel;
@Excel(name = "建成日期", format = "yyyy-MM-dd", width = 15)
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "建造时间")
private Date completionTime;
@Excel(name = "投用时间", format = "yyyy-MM-dd", width = 15)
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "投用时间")
private Date commissioningTime;
@Excel(name = "配置金额(万元)", width = 15)
@Min(value = 0, message = "配置金额不能小于0")
@Schema(title = "配置金额(万元)")
private BigDecimal equipmentAmount;
// @Excel(name = "服务范围", width = 15)
@NotNull(message = "服务范围为空")
@Schema(title = "服务范围")
private String serviceScope;
@Schema(title = "大屏路由")
private String screenPath;
@Schema(title = "大屏标题")
private String screenTitle;
// @Schema(title = "位置信息")
// @TableField(value = "geo_point",typeHandler = MpGeoPointTypeHandler.class)
// private MpGeoPoint geoPoint;
@TableField(exist = false)
@Excel(name = "操作人员数量", width = 15)
@Schema(title = "操作人员数量")
private Integer operatorsNum;
@TableField(exist = false)
@Excel(name = "专业人员数量", width = 15)
@Schema(title = "专业人员数量")
private Integer professionalsNum;
@Schema(title = "状态: 0:开启 1:关闭")
@Dict(dicCode = "center_status")
private String status;
@TableLogic
@Schema(title = "删除状态(0-正常,1-已删除)")
private Integer delFlag;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private Date createTime;
@Schema(title = "创建人")
private String createBy;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private Date updateTime;
@Schema(title = "更新人")
private String updateBy;
@Schema(title = "备注")
private String memo;
@Schema(title = "值班电话(多个:使用','分隔)")
private String dutyPhone;
// 值班时间
@TableField(exist = false)
private List<CenterOpenTime> openTimes;
}
@@ -0,0 +1,73 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
* @author
* @Name EmergencyCenterAdmin
* @Data 2024/8/19下午4:19
*/
@Data
@TableName("emergency_center_admin")
public class EmergencyCenterAdmin implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Schema(title = "人员id")
private String userId;
@Schema(title = "账号")
@NotBlank(message = "账号为空")
private String username;
@Schema(title = "姓名")
@NotBlank(message = "姓名为空")
private String realname;
@Schema(title = "中心id")
@NotBlank(message = "中心为空")
private String centerId;
@Schema(title = "管理员类型(0:大屏管理员,1:大屏账号)")
@NotNull(message = "管理员类型为空")
private Integer adminType;
@Schema(title = "创建人")
private String createBy;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private Date createTime;
@Schema(title = "更新人")
private String updateBy;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private Date updateTime;
@TableLogic
@Schema(title = "删除状态(0-正常,1-已删除)")
private Integer delFlag;
@Schema(title = "备注")
private String memo;
@TableField(exist = false)
private String password;
}
@@ -0,0 +1,70 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* (EmergencyCenterOpenTime)
*
* @author stan
* @since 2024-09-29 09:15:15
*/
@Data
@TableName("emergency_center_open_time")
public class EmergencyCenterOpenTime implements Serializable {
private static final long serialVersionUID = -40932379994360081L;
/**
* 主键
*/
@TableId(type = IdType.AUTO)
private Integer id;
/**
* 中心id
*/
private String centerId;
/**
* 开启时间
*/
private String openTimeStart;
/**
* 关闭时间
*/
private String openTimeEnd;
/**
* 创建人
*/
private String createBy;
/**
* 创建时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
/**
* 更新时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime;
/**
* 更新人
*/
private String updateBy;
/**
* 软删除:0.未删除,1.已删除
*/
private Integer delFlag;
/**
* 备注
*/
private String memo;
}
@@ -0,0 +1,78 @@
package com.renkang.emergency.entity;
import java.io.Serializable;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: 应急医疗点
* @Author: jeecg-boot
* @Date: 2024-09-19
* @Version: V1.0
*/
@Data
@TableName("emergency_center_resource")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title="emergency_center_resource对象", description="应急医疗点")
public class EmergencyCenterResource implements Serializable {
private static final long serialVersionUID = 1L;
/**id*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "id")
private String id;
/**应急中心id*/
@Excel(name = "应急中心id", width = 15)
@Schema(title = "应急中心id")
private String emergencyCenterId;
/**医疗点id*/
@Excel(name = "医疗点id", width = 15)
@Schema(title = "医疗点id")
private String medicalResourceId;
/**删除状态(0-正常,1-已删除)*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private Integer delFlag;
/**创建人*/
@Schema(title = "创建人")
private String createBy;
/**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "创建时间")
private java.util.Date createTime;
/**更新人*/
@Schema(title = "更新人")
private String updateBy;
/**更新时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "更新时间")
private java.util.Date updateTime;
/**备注*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private String memo;
@TableField(exist = false)
@Schema(title = "单位")
private String orgCode;
@TableField(exist = false)
@Schema(title = "医疗点名称")
private String name;
@TableField(exist = false)
@Schema(title = "医疗点ids")
private List<String> resources;
}
@@ -0,0 +1,81 @@
package com.renkang.emergency.entity;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import com.github.yulichang.annotation.EntityMapping;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.experimental.FieldNameConstants;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import lombok.experimental.Accessors;
/**
* @Description: 分组管理表
* @Author: jeecg-boot
* @Date: 2024-09-09
* @Version: V1.0
*/
@Data
@Builder
@FieldNameConstants
@NoArgsConstructor
@AllArgsConstructor
@TableName("emergency_grouped")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title="emergency_grouped对象", description="分组管理表")
public class EmergencyGrouped implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private java.lang.String id;
/**坐席工号*/
@Excel(name = "坐席工号", width = 15)
@Schema(title = "坐席工号")
private java.lang.String seatId;
/**中心id*/
@Excel(name = "中心id", width = 15)
@Schema(title = "中心id")
private java.lang.String centerId;
/**中心名称*/
@Excel(name = "中心名称", width = 15)
@Schema(title = "中心名称")
private java.lang.String centerName;
/**应急中心信息*/
@Schema(title = "应急中心信息")
@TableField(exist = false)
@EntityMapping(thisField =Fields.centerId,joinField = EmergencyCenter.Fields.id)
private EmergencyCenter emergencyCenter;
/**坐席状态:0:未知1:忙碌2:小休3:正在通话4:离线5:空闲*/
@Excel(name = "坐席状态: 0:未知 1:忙碌 2:小休 3:正在通话 4:离线 5:空闲", width = 15)
@Schema(title = "坐席状态: 0:未知 1:忙碌 2:小休 3:正在通话 4:离线 5:空闲")
@Dict(dicCode = "seat_status")
private java.lang.Integer seatStatus;
/**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "创建时间")
private java.util.Date createTime;
/**创建人*/
@Schema(title = "创建人")
private java.lang.String createBy;
/**更新时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "更新时间")
private java.util.Date updateTime;
/**更新人*/
@Schema(title = "更新人")
private java.lang.String updateBy;
/**软删除:0.未删除,1.已删除*/
@Excel(name = "软删除:0.未删除,1.已删除", width = 15)
@Schema(title = "软删除:0.未删除,1.已删除")
@TableLogic
private java.lang.Integer delFlag;
}
@@ -0,0 +1,129 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* (EmergencyProfessionUser)
*
* @author stan
* @since 2024-09-12 09:38:00
*/
@Data
@TableName("emergency_profession_user")
public class EmergencyProfessionUser implements Serializable {
private static final long serialVersionUID = -83227744569667346L;
/**
* 用户id
*/
@TableId(type = IdType.ASSIGN_ID)
private String userId;
/**
* 账号 冗余字段 不可修改
*/
@NotBlank(message = "账号为空")
private String username;
/**
* 姓名 冗余字段
*/
@NotBlank(message = "姓名为空")
private String realname;
/**
* 头像 冗余字段
*/
private String avatar;
/**
* 人员类型 5: 操作 6:专业
*/
@NotNull(message = "人员类型为空")
private String type;
/**
* 中心id
*/
@NotBlank(message = "中心为空")
private String centerId;
/**
* 职称
*/
@Dict(dicCode = "z_doct_lev")
private String post;
/**
* 毕业院校
*/
private String school;
/**
* 学历
*/
@Dict(dicCode = "education")
private String edu;
/**
* 擅长
*/
private String goodAt;
/**
* 创建时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
/**
* 创建人
*/
private String createBy;
/**
* 更新时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime;
/**
* 更新人
*/
private String updateBy;
/**
* 删除标记:0:否,1: 是
*/
private Integer delFlag;
/**
* 备注
*/
private String memo;
// 密码
@TableField(exist = false)
@NotBlank(message = "密码为空")
private String password;
// 中心名称
@TableField(exist = false)
private String centerName;
// 中心名称
@TableField(exist = false)
private List<String> schedule = new ArrayList<>();
// 值班时间
@TableField(exist = false)
private String duty;
// 操作人员
@TableField(exist = false)
private Integer operatorNum;
// 专业人员
@TableField(exist = false)
private Integer professionNum;
}
@@ -0,0 +1,14 @@
package com.renkang.emergency.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class EmergencyResourceDO {
@Schema(title = "主键")
private String id;
@Schema(title = "资源名称")
private String name;
}
@@ -0,0 +1,61 @@
package com.renkang.emergency.entity;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.yulichang.annotation.EntityMapping;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.experimental.FieldNameConstants;
import org.springframework.format.annotation.DateTimeFormat;
/**
* @Name 新排班计划表
* @Data 2024/8/19下午4:23
*/
@Data
@TableName("emergency_new_schedules")
@FieldNameConstants
public class EmergencySchedules {
@TableId(type = IdType.ASSIGN_UUID)
@Schema(title = "主键")
private String id;
@Schema(title = "中心id")
private String centerId;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "排班时间")
private Date schedulesTime;
@Schema(title = "创建人")
private String createBy;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private Date createTime;
@Schema(title = "更新人")
private String updateBy;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private Date updateTime;
@TableLogic
@Schema(title = "删除状态(0-正常,1-已删除)")
private Integer delFlag;
@Schema(title = "排班人员集合")
@TableField(exist = false)
@EntityMapping(thisField = EmergencySchedules.Fields.id, joinField = EmergencySchedulesItem.Fields.schedulesId)
private List<EmergencySchedulesItem> emergencySchedulesItemList;
}
@@ -0,0 +1,34 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.FieldNameConstants;
/**
* @Name 排班人员表
* @Data 2024/8/19下午4:23
*/
@Data
@TableName("emergency_schedules_new_item")
@FieldNameConstants
public class EmergencySchedulesItem {
@TableId(type = IdType.ASSIGN_UUID)
@Schema(title = "主键")
private String id;
@Schema(title = "排班计划id")
private String schedulesId;
@Schema(title = "人员类型(人员类型0:操作人员 1:专业人员)")
private String userType;
@Schema(title = "人员Id")
private String userId;
@Schema(title = "人员姓名")
private String userName;
}
@@ -0,0 +1,260 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 大病就医
* @Author: jeecg-boot
* @Date: 2023-04-23
* @Version: V1.0
*/
@Data
@TableName("emergency_serious_disease")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "emergency_serious_disease对象", description = "大病就医")
public class EmergencySeriousDisease implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 大病就医录入
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "大病就医录入")
private String id;
/**
* 就医人员
*/
// @Excel(name = "就医人员id", width = 15)
@Schema(title = "就医人员")
private String userId;
/**
* 是否补单
*/
@Schema(title = "是否补单")
private java.lang.Boolean isFill;
/**
* 医院
*/
@Schema(title = "医院")
@NotBlank(message = "请选择医院")
private String hospitalId;
/**
* 就诊卡号
*/
@Excel(name = "就诊卡号", width = 15)
@Schema(title = "就诊卡号")
private String medicalCardNo;
/**
* 挂号类别
*/
@Excel(name = "挂号类别", width = 15, dicCode = "category")
@Dict(dicCode = "category")
@Schema(title = "挂号类别 ")
@NotBlank(message = "请选择挂号类型")
private String registerCategory;
/**
* 驻场人员预约到的时间
*/
@Excel(name = "驻场人员预约到的时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(title = "驻场人员预约到的时间")
private Date reservationTime;
/**
* 患者填写的期望预约到的时间
*/
@Excel(name = "患者填写的期望预约到的时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(title = "患者填写的期望预约到的时间")
@NotNull(message = "请选择预约时间")
private Date desireTime;
/**
* 预约科室
*/
@Excel(name = "预约科室", width = 15)
@Schema(title = "预约科室")
private String reservationOffice;
/**
* 患者预约医生
*/
@Excel(name = "患者预约医生", width = 15)
@Schema(title = "患者预约医生")
private String reservationDoctor;
/**
* 病情描述
*/
@Excel(name = "病情描述", width = 15)
@Schema(title = "病情描述")
private String diseaseDescribe;
/**
* 特殊要求
*/
@Excel(name = "特殊要求", width = 15)
@Schema(title = "特殊要求")
private String specialRequirements;
/**
* 性别
*/
@Dict(dicCode = "sex2")
@Excel(name = "性别", width = 15, dicCode = "sex2")
@Schema(title = "性别")
private Integer sex;
/**
* 真实姓名
*/
@Excel(name = "真实姓名", width = 15)
@Schema(title = "真实姓名")
private String realname;
/**
* 驻场人员
*/
@Schema(title = "驻场人员")
private String stationUserId;
/**
* 预约号
*/
@Excel(name = "预约号", width = 15)
@Schema(title = "预约号")
private String reservationNo;
/**
* 身份证号
*/
@Excel(name = "身份证号", width = 15)
@Schema(title = "身份证号")
private String idNo;
/**
* 手机号
*/
@Excel(name = "手机号", width = 15)
@Schema(title = "手机号")
private String telPhone;
/**
* 年龄
*/
@Excel(name = "年龄", width = 15)
@Schema(title = "年龄")
private Integer age;
/**
* 删除状态(0-正常,1-已删除)
*/
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private Integer delFlag;
/**
* 状态 1未派单 2已派单 3已完成 4已驳回 5申请转单
*/
@Dict(dicCode = "emergency_serious_state")
@Excel(name = "状态", width = 15)
@Schema(title = "状态 1未派单 2已派单 3已完成 4已驳回 5申请转单 ")
private String state;
/**
* 状态(1-正常,2-冻结)
*/
@Schema(title = "状态(1-正常,2-冻结)")
private Integer status;
/**
* 操作人员
*/
@Schema(title = "操作人员")
private String operatorId;
/**
* 创建人
*/
@Schema(title = "创建人")
private String createBy;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyyy-MM-dd HH:mm:ss")
@Schema(title = "创建时间")
private Date createTime;
/**
* 更新人
*/
@Schema(title = "更新人")
private String updateBy;
/**
* 更新时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(title = "更新时间")
private Date updateTime;
/**
* 备注
*/
@Schema(title = "备注")
private String memo;
/**
* 驳回原因
*/
@Excel(name = "驳回原因", width = 15)
@Schema(title = "驳回原因")
private String rejectionReason;
/**
* 驳回时间
*/
@Excel(name = "驳回时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(title = "驳回时间")
private Date rejectionTime;
/**
* 派单时间
*/
@Excel(name = "派单时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "派单时间")
private Date sendOrderTime;
// @Excel(name = "部门", width = 15)
@Schema(title = "部门")
private String userDepart;
@Schema(title = "职场驳回原因")
private String stationRejectionReason;
@Schema(title = "驻场驳回时间")
private Date stationRejectionTime;
@Schema(title = "驻场接单时间")
private Date acceptStationTime;
@Schema(title = "预约完成时间")
private Date desireFinishTime;
@Schema(title = "医院名称")
private String hospitalName;
@Schema(title = "驻场人员名称")
private String stationUserName;
@Schema(title = "医疗中心id")
private String centerId;
}
@@ -0,0 +1,73 @@
package com.renkang.emergency.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import java.util.Date;
@Data
@Schema(title = "就医对象", description = "就医对象")
public class EmergencySeriousDiseaseDO {
@Schema(title = "id")
private String id;
@Schema(title = "医院id")
private String hospitalId;
@Schema(title = "医院")
private String hospitalName;
@Schema(title = "就诊卡号")
private String medicalCardNo;
@Dict(dicCode = "category")
@Schema(title = "挂号类型")
private String registerCategory;
// @Dict(dicCode = "category")
@Schema(title = "状态")
private String state;
@Schema(title = "状态")
private String newState;
@Schema(title = "预约时间")
private Date desireTime;
@Schema(title = "发起时间")
private Date createTime;
@Schema(title = "科室")
private String reservationOffice;
@Schema(title = "医生")
private String reservationDoctor;
@Schema(title = "病情描述")
private String diseaseDescribe;
@Schema(title = "驳回原因")
private String rejectionReason;
@Schema(title = "预约人")
private String realname;
@Schema(title = "身份证号")
private String idNo;
@Schema(title = "手机号")
private String telPhone;
@Schema(title = "预约单号")
private String reservationNo;
@Schema(title = "驳回时间")
private Date rejectionTime;
}
@@ -0,0 +1,10 @@
package com.renkang.emergency.entity;
import lombok.Data;
@Data
public class HospitalIdAndName {
private String hospitalId;
private String hospitalName;
private int userCount; // 用于存放统计的数量
}
@@ -0,0 +1,494 @@
package com.renkang.emergency.entity;
import cn.hutool.core.util.IdcardUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.List;
/**
* @Description: emergency_order
* @Author: jeecg-boot
* @Date: 2023-04-28
* @Version: V1.0
*/
@Data
@TableName("emergency_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "emergency_order对象", description = "emergency_order")
public class Order implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键(应急单号)
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键(应急单号)")
private java.lang.String id;
/**
* 发起类型(0:120 1: 应急就医)
*/
@Excel(name = "发起类型(0:120 1: 应急就医)", width = 15)
@Schema(title = "发起类型(0:120 1: 应急就医 2:急救联动)")
private java.lang.String initiatorType;
/**
* 是否补单
*/
@Excel(name = "是否补单", width = 15)
@Schema(title = "是否补单")
private java.lang.Boolean isFill;
/**
* 应急资源id(医院 aed 医疗点)
*/
@Excel(name = "应急资源id(医院 aed 医疗点)", width = 15)
@Schema(title = "应急资源id(医院 aed 医疗点)")
private java.lang.String resourceId;
/**
* 救助信息描述
*/
@Excel(name = "救助信息描述", width = 15)
@Schema(title = "救助信息描述")
private java.lang.String infoDesc;
/**
* im会话id
*/
@Excel(name = "im会话id", width = 15)
@Schema(title = "im会话id")
private java.lang.String sessionId;
/**
* im会话结束时间
*/
@Excel(name = "im会话结束时间", width = 15)
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "im会话结束时间")
private java.util.Date sessionOverTime;
/**
* 订单结束时间
*/
@Excel(name = "订单结束时间", width = 15)
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "订单结束时间")
private java.util.Date orderOverTime;
/**
* 是否正在会话(0:否 1:是)
*/
@Excel(name = "是否正在会话(0:否 1:是)", width = 15)
@Schema(title = "是否正在会话(0:否 1:是)")
private java.lang.Boolean sessionNow;
/**
* 发起人id
*/
@Excel(name = "发起人id", width = 15)
@Schema(title = "发起人id")
private java.lang.String initiatorUserId;
/**
* 发起人姓名
*/
@Excel(name = "发起人姓名", width = 15)
@Schema(title = "发起人姓名")
private java.lang.String initiatorUserName;
/**
* 发起人性别
*/
@Excel(name = "发起人性别", width = 15)
@Schema(title = "发起人性别")
private java.lang.String initiatorUserSex;
/**
* 发起人电话
*/
@Excel(name = "发起人电话", width = 15)
@Schema(title = "发起人电话")
private java.lang.String initiatorUserMobile;
/**
* 发起人身份证号码
*/
@Excel(name = "发起人身份证号码", width = 15)
@Schema(title = "发起人身份证号码")
private java.lang.String initiatorUserIdCard;
/**
* 发起人部门code
*/
@Excel(name = "发起人部门code", width = 15)
@Schema(title = "发起人部门code")
private java.lang.String initiatorUserDepart;
/**
* 发起人头像
*/
@Excel(name = "发起人头像", width = 15)
@Schema(title = "发起人头像")
private java.lang.String initiatorUserAvatar;
/**
* 发起人经度
*/
@Excel(name = "发起人经度", width = 15)
@Schema(title = "发起人经度")
private java.math.BigDecimal initiatorLongitude;
/**
* 发起人纬度
*/
@Excel(name = "发起人纬度", width = 15)
@Schema(title = "发起人纬度")
private java.math.BigDecimal initiatorLatitude;
/**
* 救助人人id
*/
@Excel(name = "救助人人id", width = 15)
@Schema(title = "救助人人id")
private java.lang.String salvageUserId;
/**
* 救助人姓名
*/
@Excel(name = "救助人姓名", width = 15)
@Schema(title = "救助人姓名")
private java.lang.String salvageUserName;
/**
* 救助人性别
*/
@Excel(name = "救助人性别", width = 15)
@Schema(title = "救助人性别")
private java.lang.String salvageUserSex;
/**
* 救助人电话
*/
@Excel(name = "救助人电话", width = 15)
@Schema(title = "救助人电话")
private java.lang.String salvageUserMobile;
/**
* 救助人身份证号码
*/
@Excel(name = "救助人身份证号码", width = 15)
@Schema(title = "救助人身份证号码")
private java.lang.String salvageUserIdCard;
/**
* 救助人部门code
*/
@Excel(name = "救助人部门code", width = 15)
@Schema(title = "救助人部门code")
private java.lang.String salvageUserDepart;
/**
* 救助人头像
*/
@Excel(name = "救助人头像", width = 15)
@Schema(title = "救助人头像")
private java.lang.String salvageUserAvatar;
/**
* 操作人员id
*/
@Excel(name = "操作人员id", width = 15)
@Schema(title = "操作人员id")
private java.lang.String operationUserId;
/**
* 操作人员姓名
*/
@Excel(name = "操作人员姓名", width = 15)
@Schema(title = "操作人员姓名")
private java.lang.String operationUserName;
/**
* 操作人员性别
*/
@Excel(name = "操作人员性别", width = 15)
@Schema(title = "操作人员性别")
private java.lang.String operationUserSex;
/**
* 操作人员电话
*/
@Excel(name = "操作人员电话", width = 15)
@Schema(title = "操作人员电话")
private java.lang.String operationUserMobile;
/**
* 操作人头像
*/
@Excel(name = "操作人头像", width = 15)
@Schema(title = "操作人头像")
private java.lang.String operationUserAvatar;
/**
* 专业人员id
*/
@Excel(name = "专业人员id", width = 15)
@Schema(title = "专业人员id")
private java.lang.String majorUserId;
/**
* 专业人员姓名
*/
@Excel(name = "专业人员姓名", width = 15)
@Schema(title = "专业人员姓名")
private java.lang.String majorUserName;
/**
* 专业人员性别
*/
@Excel(name = "专业人员性别", width = 15)
@Schema(title = "专业人员性别")
private java.lang.String majorUserSex;
/**
* 专业人员电话
*/
@Excel(name = "专业人员电话", width = 15)
@Schema(title = "专业人员电话")
private java.lang.String majorUserMobile;
/**
* 专业人头像
*/
@Excel(name = "专业人头像", width = 15)
@Schema(title = "专业人头像")
private java.lang.String majorUserAvatar;
/**
* 驻场人员id
*/
@Excel(name = "驻场人员id", width = 15)
@Schema(title = "驻场人员id")
private java.lang.String stationUserId;
/**
* 驻场人员姓名
*/
@Excel(name = "驻场人员姓名", width = 15)
@Schema(title = "驻场人员姓名")
private java.lang.String stationUserName;
/**
* 驻场人员性别
*/
@Excel(name = "驻场人员性别", width = 15)
@Schema(title = "驻场人员性别")
private java.lang.String stationUserSex;
/**
* 驻场人员电话
*/
@Excel(name = "驻场人员电话", width = 15)
@Schema(title = "驻场人员电话")
private java.lang.String stationUserMobile;
/**
* 驻场人员部门:二级-三级(使用','隔开)
*/
@Excel(name = "驻场人员部门code", width = 15)
@Schema(title = "驻场人员部门code")
private java.lang.String stationUserDepart;
/**
* 驻场人头像
*/
@Excel(name = "驻场人头像", width = 15)
@Schema(title = "驻场人头像")
private java.lang.String stationUserAvatar;
/**
* 驻场人员派单业务
*/
@Excel(name = "驻场人员派单业务", width = 15)
@Schema(title = "驻场人员派单业务")
@Dict(dicCode = "emergency_send_order_type")
private java.lang.String stationBusiness;
/**
* 操作人员响应时间
*/
@Excel(name = "操作人员响应时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "操作人员响应时间")
private java.util.Date operationResponseTime;
/**
* 操作人员派单时间
*/
@Excel(name = "操作人员派单时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "操作人员派单时间")
private java.util.Date operationSendOrderTime;
/**
* 专业人员响应时间
*/
@Excel(name = "专业人员响应时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "专业人员响应时间")
private java.util.Date majorResponseTime;
/**
* 驻场人员响应时间
*/
@Excel(name = "驻场人员响应时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "驻场人员响应时间")
private java.util.Date stationResponseTime;
/**
* 驻场人员拒单时间
*/
@Excel(name = "驻场人员拒单时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "驻场人员拒单时间")
private java.util.Date stationRejectionTime;
/**
* 专业人员救助意见
*/
@Excel(name = "专业人员救助意见", width = 15)
@Schema(title = "专业人员救助意见")
private java.lang.String majorSalvageOpinion;
/**
* 派单医院
*/
@Excel(name = "派单医院", width = 15)
@Schema(title = "派单医院")
private java.lang.String sendOrderHospital;
/**
* 应急单状态(0:待处理 1:操作/专业人员 2:驻场人员 3:已完成)
*/
@Excel(name = "应急单状态( 0: 待处理 1:咨询中 2:已派单 3:待审核 4: 待就医 5: 已完成)", width = 15)
@Schema(title = "应急单状态( 0: 待处理 1:咨询中 2:已派单 3:待审核 4: 待就医 5: 已完成)")
@Dict(dicCode = "emergency_order_status")
private java.lang.String orderStatus;
/**
* 派单状态 0:待处理 1:咨询中 2:待接单 3:驻场驳回 4:已接单 5: 已完成
*/
@Excel(name = "派单状态 0:待处理 1:咨询中 2:待接单 3:驻场驳回 4:已接单 5: 已完成", width = 15)
@Schema(title = "派单状态 0:待处理 1:咨询中 2:待接单 3:驻场驳回 4:已接单 5: 已完成")
@Dict(dicCode = "emergency_order_send_status")
private java.lang.String isDispatch;
/**
* 应急小结 标题
*/
@Excel(name = "应急小结 标题", width = 15)
@Schema(title = "应急小结 标题")
private java.lang.String detailTitle;
/**
* 状态(1-正常,2-冻结)
*/
@Excel(name = "状态(1-正常,2-冻结)", width = 15)
@Schema(title = "状态(1-正常,2-冻结)")
private java.lang.Integer status;
/**
* 删除状态(0-正常,1-已删除)
*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private java.lang.Integer delFlag;
/**
* 创建人
*/
@Schema(title = "创建人")
private java.lang.String createBy;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private java.util.Date createTime;
/**
* 更新人
*/
@Schema(title = "更新人")
private java.lang.String updateBy;
/**
* 更新时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private java.util.Date updateTime;
/**
* 备注
*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private java.lang.String memo;
/**
* 应急单详情
*/
@TableField(exist = false)
@Excel(name = "应急单详情", width = 15)
@Schema(title = "应急单详情")
private OrderDetail orderDetail;
/**
* 派单记录
*/
@TableField(exist = false)
@Excel(name = "派单记录", width = 15)
@Schema(title = "派单记录")
private List<OrderSendRecord> orderSendRecordList;
/**
* 资源名
*/
@TableField(exist = false)
@Excel(name = "资源名", width = 15)
@Schema(title = "资源名")
private String resourceName;
/**
* 发起人二级部门
*/
@TableField(exist = false)
@Excel(name = "发起人二级部门", width = 15)
@Schema(title = "发起人二级部门")
private String initiatorUserSecondDepart;
/**
* 救助人二级部门
*/
@TableField(exist = false)
@Excel(name = "救助人二级部门", width = 15)
@Schema(title = "救助人二级部门")
private String salvageUserSecondDepart;
/**
* 时间段开始
*/
@TableField(exist = false)
@Excel(name = "时间段开始", width = 15)
@Schema(title = "时间段开始")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private java.util.Date createTimeStart;
/**
* 时间段结束
*/
@TableField(exist = false)
@Excel(name = "时间段结束", width = 15)
@Schema(title = "时间段结束")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private java.util.Date createTimeEnd;
/**
* 应急中心id
*/
private String centerId;
/**
* 应急名
*/
@TableField(exist = false)
private String centerName;
/**
* 单位code
*/
@TableField(exist = false)
private String orgCode;
public Integer getInitiatorUserAge() {
if (StrUtil.isBlank(this.initiatorUserIdCard)) {
return null;
}
return IdcardUtil.getAgeByIdCard(this.initiatorUserIdCard);
}
public Integer getSalvageUserAge() {
if (StrUtil.isBlank(this.salvageUserIdCard)) {
return null;
}
return IdcardUtil.getAgeByIdCard(this.salvageUserIdCard);
}
}
@@ -0,0 +1,268 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* @Description: emergency_order_detail
* @Author: jeecg-boot
* @Date: 2023-05-24
* @Version: V1.0
*/
@Data
@TableName("emergency_order_detail")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "emergency_order_detail对象", description = "emergency_order_detail")
public class OrderDetail implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键(应急单号)
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键(应急单号)")
private java.lang.String id;
/**
* 评分
*/
@Excel(name = "评分", width = 15)
@Schema(title = "评分")
private java.lang.Double orderScore;
/**
* 评价
*/
@Excel(name = "评价", width = 15)
@Schema(title = "评价")
private java.lang.String orderEvaluation;
/**
* 用户评价时间
*/
@Excel(name = "用户评价时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "用户评价时间")
private java.util.Date orderEvaluationTime;
/**
* 事件经过
*/
@Excel(name = "事件经过", width = 15)
@Schema(title = "事件经过")
private java.lang.String orderThrough;
/**
* 事件结果
*/
@Excel(name = "事件结果", width = 15)
@Schema(title = "事件结果")
private java.lang.String orderResult;
/**
* 病情记录
*/
@Excel(name = "病情记录", width = 15)
@Schema(title = "病情记录")
private java.lang.String orderRecord;
/**
* 现场照片(使用,分隔)
*/
@Excel(name = "现场照片(使用,分隔)", width = 15)
@Schema(title = "现场照片(使用,分隔)")
private java.lang.String imgs;
/**
* 救护车车牌号
*/
@Excel(name = "救护车车牌号", width = 15)
@Schema(title = "救护车车牌号")
private java.lang.String ambCarNum;
/**
* 救护车车辆到达现场时间
*/
@Excel(name = "救护车车辆到达现场时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "救护车车辆到达现场时间")
private java.util.Date ambCarArriveTime;
/**
* 救护车车辆送达时间
*/
@Excel(name = "救护车车辆送达时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "救护车车辆送达时间")
private java.util.Date ambCarServeTime;
/**
* 救护车联系人id
*/
@Excel(name = "救护车联系人id", width = 15)
@Schema(title = "救护车联系人id")
private java.lang.String ambContactUserId;
/**
* 救护车联系人姓名
*/
@Excel(name = "救护车联系人姓名", width = 15)
@Schema(title = "救护车联系人姓名")
private java.lang.String ambContactUserName;
/**
* 救护车联系人电话
*/
@Excel(name = "救护车联系人电话", width = 15)
@Schema(title = "救护车联系人电话")
private java.lang.String ambContactUserPhone;
/**
* 救护车跟车人id
*/
@Excel(name = "救护车跟车人id", width = 15)
@Schema(title = "救护车跟车人id")
private java.lang.String ambFollowUserId;
/**
* 救护车跟车人姓名
*/
@Excel(name = "救护车跟车人姓名", width = 15)
@Schema(title = "救护车跟车人姓名")
private java.lang.String ambFollowUserName;
/**
* 救护车跟车人电话
*/
@Excel(name = "救护车跟车人电话", width = 15)
@Schema(title = "救护车跟车人电话")
private java.lang.String ambFollowUserPhone;
/**
* 单位车牌号
*/
@Excel(name = "单位车牌号", width = 15)
@Schema(title = "单位车牌号")
private java.lang.String comCarNum;
/**
* 单位车辆派出时间
*/
@Excel(name = "单位车辆派出时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "单位车辆派出时间")
private java.util.Date comCarArriveTime;
/**
* 单位车辆送达时间
*/
@Excel(name = "单位车辆送达时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "单位车辆送达时间")
private java.util.Date comCarServeTime;
/**
* 单位车联系人id
*/
@Excel(name = "单位车联系人id", width = 15)
@Schema(title = "单位车联系人id")
private java.lang.String comContactUserId;
/**
* 单位车联系人姓名
*/
@Excel(name = "单位车联系人姓名", width = 15)
@Schema(title = "单位车联系人姓名")
private java.lang.String comContactUserName;
/**
* 单位车联系人电话
*/
@Excel(name = "单位车联系人电话", width = 15)
@Schema(title = "单位车联系人电话")
private java.lang.String comContactUserPhone;
/**
* 救助时间
*/
@Excel(name = "救助时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "救助时间")
private java.util.Date salvageTime;
/**
* 救助医院
*/
@Excel(name = "救助医院", width = 15)
@Schema(title = "救助医院")
private java.lang.String salvageHospital;
/**
* 救助科室
*/
@Excel(name = "救助科室", width = 15)
@Schema(title = "救助科室")
private java.lang.String salvageDepart;
/**
* 救助医生
*/
@Excel(name = "救助医生", width = 15)
@Schema(title = "救助医生")
private java.lang.String salvageDoctor;
/**
* 挂号时间
*/
@Excel(name = "挂号时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "挂号时间")
private java.util.Date salvageRegisterTime;
/**
* 住院协调
*/
@Excel(name = "住院协调", width = 15)
@Schema(title = "住院协调")
private java.lang.String salvageCoordinate;
/**
* 手术时间(文字描述)
*/
@Excel(name = "手术时间(文字描述)", width = 15)
@Schema(title = "手术时间(文字描述)")
private java.lang.String salvageOperation;
/**
* 状态(1-正常,2-冻结)
*/
@Excel(name = "状态(1-正常,2-冻结)", width = 15)
@Schema(title = "状态(1-正常,2-冻结)")
private java.lang.Integer status;
/**
* 删除状态(0-正常,1-已删除)
*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private java.lang.Integer delFlag;
/**
* 创建人
*/
@Schema(title = "创建人")
private java.lang.String createBy;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private java.util.Date createTime;
/**
* 更新人
*/
@Schema(title = "更新人")
private java.lang.String updateBy;
/**
* 更新时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private java.util.Date updateTime;
/**
* 备注
*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private java.lang.String memo;
}
@@ -0,0 +1,293 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description: emergency_order_intervene
* @Author: jeecg-boot
* @Date: 2023-09-25
* @Version: V1.0
*/
@Data
@TableName("emergency_order_intervene")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "emergency_order_intervene对象", description = "emergency_order_intervene")
public class OrderIntervene implements Serializable {
private static final long serialVersionUID = 1L;
/**主键(应急单号)*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键(应急单号)")
private String id;
/**类型(0:图文 1:视频) */
@Excel(name = "类型(0:图文 1:视频) ", width = 15)
@Schema(title = "类型(0:图文 1:视频) ")
private String type;
/**是否补单 (0:否 1:是)*/
@Excel(name = "是否补单 (0:否 1:是)", width = 15)
@Schema(title = "是否补单 (0:否 1:是)")
private Boolean isFill;
/**发起类型(0:120 1: 应急就医)*/
@Excel(name = "发起类型(0:120 1: 应急就医)", width = 15)
@Schema(title = "发起类型(0:120 1: 应急就医)")
private String initiatorType;
/**应急资源id(医院 aed 医疗点)*/
@Excel(name = "应急资源id(医院 aed 医疗点)", width = 15)
@Schema(title = "应急资源id(医院 aed 医疗点)")
private String resourceId;
/**救助信息描述*/
@Excel(name = "救助信息描述", width = 15)
@Schema(title = "救助信息描述")
private String infoDesc;
/**im会话id*/
@Excel(name = "im会话id", width = 15)
@Schema(title = "im会话id")
private String sessionId;
/**是否正在会话(0:否 1:是)*/
@Excel(name = "是否正在会话(0:否 1:是)", width = 15)
@Schema(title = "是否正在会话(0:否 1:是)")
private Boolean sessionNow;
/**会话结束时间*/
@Excel(name = "会话结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "会话结束时间")
private Date sessionOverTime;
/**发起人id*/
@Excel(name = "发起人id", width = 15)
@Schema(title = "发起人id")
private String initiatorUserId;
/**发起人姓名*/
@Excel(name = "发起人姓名", width = 15)
@Schema(title = "发起人姓名")
private String initiatorUserName;
/**发起人性别*/
@Excel(name = "发起人性别", width = 15)
@Schema(title = "发起人性别")
private String initiatorUserSex;
/**发起人电话*/
@Excel(name = "发起人电话", width = 15)
@Schema(title = "发起人电话")
private String initiatorUserMobile;
/**发起人身份证号*/
@Excel(name = "发起人身份证号", width = 15)
@Schema(title = "发起人身份证号")
private String initiatorUserIdCard;
/**发起人部门code*/
@Excel(name = "发起人部门code", width = 15)
@Schema(title = "发起人部门code")
private String initiatorUserDepart;
/**发起人头像*/
@Excel(name = "发起人头像", width = 15)
@Schema(title = "发起人头像")
private String initiatorUserAvatar;
/**发起人经度*/
@Excel(name = "发起人经度", width = 15)
@Schema(title = "发起人经度")
private BigDecimal initiatorLongitude;
/**发起人纬度*/
@Excel(name = "发起人纬度", width = 15)
@Schema(title = "发起人纬度")
private BigDecimal initiatorLatitude;
/**被救助人id*/
@Excel(name = "被救助人id", width = 15)
@Schema(title = "被救助人id")
private String salvageUserId;
/**被救助人姓名*/
@Excel(name = "被救助人姓名", width = 15)
@Schema(title = "被救助人姓名")
private String salvageUserName;
/**被救助人性别*/
@Excel(name = "被救助人性别", width = 15)
@Schema(title = "被救助人性别")
private String salvageUserSex;
/**被救助人电话*/
@Excel(name = "被救助人电话", width = 15)
@Schema(title = "被救助人电话")
private String salvageUserMobile;
/**救助人身份证号*/
@Excel(name = "救助人身份证号", width = 15)
@Schema(title = "救助人身份证号")
private String salvageUserIdCard;
/**发起人部门code*/
@Excel(name = "发起人部门code", width = 15)
@Schema(title = "发起人部门code")
private String salvageUserDepart;
/**救助人头像*/
@Excel(name = "救助人头像", width = 15)
@Schema(title = "救助人头像")
private String salvageUserAvatar;
/**操作人员id*/
@Excel(name = "操作人员id", width = 15)
@Schema(title = "操作人员id")
private String operationUserId;
/**操作人员姓名*/
@Excel(name = "操作人员姓名", width = 15)
@Schema(title = "操作人员姓名")
private String operationUserName;
/**操作人员性别*/
@Excel(name = "操作人员性别", width = 15)
@Schema(title = "操作人员性别")
private String operationUserSex;
/**操作人员电话*/
@Excel(name = "操作人员电话", width = 15)
@Schema(title = "操作人员电话")
private String operationUserMobile;
/**操作人头像*/
@Excel(name = "操作人头像", width = 15)
@Schema(title = "操作人头像")
private String operationUserAvatar;
/**专业人员id*/
@Excel(name = "专业人员id", width = 15)
@Schema(title = "专业人员id")
private String majorUserId;
/**专业人员姓名*/
@Excel(name = "专业人员姓名", width = 15)
@Schema(title = "专业人员姓名")
private String majorUserName;
/**专业人员性别*/
@Excel(name = "专业人员性别", width = 15)
@Schema(title = "专业人员性别")
private String majorUserSex;
/**专业人员电话*/
@Excel(name = "专业人员电话", width = 15)
@Schema(title = "专业人员电话")
private String majorUserMobile;
/**专业人头像*/
@Excel(name = "专业人头像", width = 15)
@Schema(title = "专业人头像")
private String majorUserAvatar;
/**驻场人员id*/
@Excel(name = "驻场人员id", width = 15)
@Schema(title = "驻场人员id")
private String stationUserId;
/**驻场人员姓名*/
@Excel(name = "驻场人员姓名", width = 15)
@Schema(title = "驻场人员姓名")
private String stationUserName;
/**驻场人员性别*/
@Excel(name = "驻场人员性别", width = 15)
@Schema(title = "驻场人员性别")
private String stationUserSex;
/**驻场人员电话*/
@Excel(name = "驻场人员电话", width = 15)
@Schema(title = "驻场人员电话")
private String stationUserMobile;
/**发起人部门code*/
@Excel(name = "发起人部门code", width = 15)
@Schema(title = "发起人部门code")
private String stationUserDepart;
/**驻场人头像*/
@Excel(name = "驻场人头像", width = 15)
@Schema(title = "驻场人头像")
private String stationUserAvatar;
/**驻场人员派单业务*/
@Excel(name = "驻场人员派单业务", width = 15)
@Schema(title = "驻场人员派单业务")
private String stationBusiness;
/**操作人员响应时间*/
@Excel(name = "操作人员响应时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "操作人员响应时间")
private Date operationResponseTime;
/**操作人员派单时间*/
@Excel(name = "操作人员派单时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "操作人员派单时间")
private Date operationSendOrderTime;
/**专业人员响应时间*/
@Excel(name = "专业人员响应时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "专业人员响应时间")
private Date majorResponseTime;
/**驻场人员响应时间*/
@Excel(name = "驻场人员响应时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "驻场人员响应时间")
private Date stationResponseTime;
/**驻场人员拒单时间*/
@Excel(name = "驻场人员拒单时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "驻场人员拒单时间")
private Date stationRejectionTime;
/**专业人员救助意见*/
@Excel(name = "专业人员救助意见", width = 15)
@Schema(title = "专业人员救助意见")
private String majorSalvageOpinion;
/**订单结束时间*/
@Excel(name = "订单结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "订单结束时间")
private Date orderOverTime;
/**派单医院*/
@Excel(name = "派单医院", width = 15)
@Schema(title = "派单医院")
private String sendOrderHospital;
/**应急单状态 0: 待处理 1:咨询中 2:已派单 3:待审核 4: 待就医 5: 已完成*/
@Excel(name = "应急单状态 0: 待处理 1:咨询中 2:已派单 3:待审核 4: 待就医 5: 已完成", width = 15)
@Schema(title = "应急单状态 0: 待处理 1:咨询中 2:已派单 3:待审核 4: 待就医 5: 已完成")
private String orderStatus;
/**派单状态 0:待处理 1:咨询中 2:待接单 3:驻场驳回 4:已接单 5: 已完成*/
@Excel(name = "派单状态 0:待处理 1:咨询中 2:待接单 3:驻场驳回 4:已接单 5: 已完成", width = 15)
@Schema(title = "派单状态 0:待处理 1:咨询中 2:待接单 3:驻场驳回 4:已接单 5: 已完成")
private String isDispatch;
/**应急小结 标题*/
@Excel(name = "应急小结 标题", width = 15)
@Schema(title = "应急小结 标题")
private String detailTitle;
/**状态(1-正常,2-冻结)*/
@Excel(name = "状态(1-正常,2-冻结)", width = 15)
@Schema(title = "状态(1-正常,2-冻结)")
private Integer status;
/**删除状态(0-正常,1-已删除)*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private Integer delFlag;
/**创建人*/
@Schema(title = "创建人")
private String createBy;
/**创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "创建时间")
private Date createTime;
/**更新人*/
@Schema(title = "更新人")
private String updateBy;
/**更新时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Schema(title = "更新时间")
private Date updateTime;
/**备注*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private String memo;
/**
* 应急中心id
*/
private String centerId;
}
@@ -0,0 +1,151 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* @Description: emergency_order_send_record
* @Author: jeecg-boot
* @Date: 2023-04-27
* @Version: V1.0
*/
@Data
@TableName("emergency_order_send_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "emergency_order_send_record对象", description = "emergency_order_send_record")
public class OrderSendRecord implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private java.lang.String id;
/**
* 应急单id
*/
@Excel(name = "应急单id", width = 15)
@Schema(title = "应急单id")
private java.lang.String orderId;
/**
* 驻场人员id
*/
@Excel(name = "驻场人员id", width = 15)
@Schema(title = "驻场人员id")
private java.lang.String stationUserId;
/**
* 驻场人员姓名
*/
@Excel(name = "驻场人员姓名", width = 15)
@Schema(title = "驻场人员姓名")
private java.lang.String stationUserName;
/**
* 驻场人员性别
*/
@Excel(name = "驻场人员性别", width = 15)
@Schema(title = "驻场人员性别")
private java.lang.String stationUserSex;
/**
* 驻场人员部门:二级-三级(使用','隔开)
*/
@Excel(name = "驻场人员部门:二级-三级(使用','隔开)", width = 15)
@Schema(title = "驻场人员部门:二级-三级(使用','隔开)")
private java.lang.String stationUserDepart;
/**
* 是否接单(0:否 1:是)
*/
@Excel(name = "是否接单(0:待处理 1:已接单 2:已拒单 3:已完成(其他人接单))", width = 15)
@Schema(title = "是否接单(0:待处理 1:已接单 2:已拒单 3:已完成(其他人接单))")
@Dict(dicCode = "emergency_order_send_accept")
private java.lang.String accept;
/**
* 派单医院
*/
@Excel(name = "派单医院", width = 15)
@Schema(title = "派单医院")
private java.lang.String sendOrderHospital;
/**
* 驻场人员派单业务
*/
@Excel(name = "驻场人员派单业务", width = 15, dicCode = "emergency_send_order_type")
@Schema(title = "驻场人员派单业务")
@Dict(dicCode = "emergency_send_order_type")
private java.lang.String stationBusiness;
/**
* 转单时间
*/
@Excel(name = "操作时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "操作时间")
private java.util.Date transferOrderTime;
/**
* 拒单原因
*/
@Excel(name = "拒单原因", width = 15)
@Schema(title = "拒单原因")
private java.lang.String refuseCause;
/**
* 状态(1-正常,2-冻结)
*/
@Excel(name = "状态(1-正常,2-冻结)", width = 15)
@Schema(title = "状态(1-正常,2-冻结)")
private java.lang.Integer status;
/**
* 删除状态(0-正常,1-已删除)
*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private java.lang.Integer delFlag;
/**
* 创建人
*/
@Schema(title = "创建人")
private java.lang.String createBy;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private java.util.Date createTime;
/**
* 更新人
*/
@Schema(title = "更新人")
private java.lang.String updateBy;
/**
* 更新时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private java.util.Date updateTime;
/**
* 备注
*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private java.lang.String memo;
/**
* 应急单基础信息
*/
@Excel(name = "应急单基础信息", width = 15)
@Schema(title = "应急单基础信息")
@TableField(exist = false)
private Order order;
}
@@ -0,0 +1,292 @@
package com.renkang.emergency.entity;
public class QimoVo implements java.io.Serializable {
private String CallNo;//主叫号码
private String CalledNo;//被叫号码
private String CallSheetID;//通话记录ID,CallSheetID 是这条通话记录再DB中的唯一id
private String refCallSheetId;//转接前通话的CallSheetID,可以用来定位转接电话的上一通通话
private String CallID;//通话ID,通话连接的在系统中的唯一标识。CallID 是在通话进行中channel的id,可以用这个id来挂断通话之类的操作。一个channel有一个CallID,但一个call可能会出现在多个通话中,比如呼入转接。
private String CallType;//通话类型:dialout外呼通话,normal普通来电,transfer呼入转接,dialTransfer外呼转接
private String Ring;//通话振铃时间(话务进入呼叫中心系统的时间)
private String RingingDate;//被叫振铃开始时间(呼入是按座席振铃的时间,外呼按用户振铃的时间)
private String Begin;//通话接通时间(双方开始通话的时间,如果被叫没接听的话为空)
private String End;//通话结束时间
private String QueueTime;//来电进入技能组时间
private String Exten;//处理坐席的工号,历史原因该字段与Agent相同
private String AgentName;//处理坐席的姓名
private String Queue;//通话进入的技能组名称
private String State;//接听状态:dealing(已接),notDeal(振铃未接听),leakivr放弃),queueLeak(排队放弃),blackList(黑名单),voicemail(留言),limit(并发限制)
private String CallState;//事件状态:Ring, Ringing, Link, Hangup(Unlink也当成Hangup处理)
private String ActionID;//通过调用外呼接口时,该字段会保存请求的actionID,其它情况下该字段为空
private String WebcallActionID;//通过调用webcall接口,该字段会保存请求的actionID,其它情况下该字段为空
private String RecordFile;//通话录音文件名:用户要访问录音时,在该文件名前面加上服务器路径即可,如:FileServer/RecordFile
private String FileServer;//通过FileServer中指定的地址加上RecordFile的值可以获取录音(建议字段长度内容设置为100个字符)
private String Province;//目标号码的省,例如北京市。呼入为来电号码,呼出为去电号码
private String District;//目标号码的市,例如北京市。呼入为来电号码,呼出为去电号码
private String IVRKEY;//通话在系统中选择的按键菜单,10004@0。格式为:按键菜单的节点编号@选择的菜单按键。如果为多级菜单则为:10004@0-10005@1。
private String AccountId;//账户编号字段,默认不推送有需求的用户对接时联系七陌技术支持人员进行开通
private String AccountName;//账户名称字段,默认不推送有需求的用户对接时联系七陌技术支持人员进行开通
private String CdrVar;//软电话条中的自定义参数,只有在软电话条中用CdrVar自定义id后才会有该字段。
private String DialoutStrVar;//外呼接口和小号外呼接口中的自定义参数,只有在这两个接口中使用DialoutStrVar参数才会有该字段。
private String HangupPart;//挂机方,字段值解释 :agent 坐席挂机, customer 用户挂机,system 系统挂机
private String RealCalled;//如果使用的是小号接口外呼或者CallCenter小号模式外呼,这里存放的是真实被叫,CalledNo存放的是小号。
private String MonitorFilename;//录音文件地址,只有 State = dealing 时才有该字段
private String Account;//账户编号字段
private String RingingTimestamp;//被叫振铃开始时间时间戳
public String getCallNo() {
return CallNo;
}
public void setCallNo(String callNo) {
CallNo = callNo;
}
public String getCalledNo() {
return CalledNo;
}
public void setCalledNo(String calledNo) {
CalledNo = calledNo;
}
public String getCallSheetID() {
return CallSheetID;
}
public void setCallSheetID(String callSheetID) {
CallSheetID = callSheetID;
}
public String getRefCallSheetId() {
return refCallSheetId;
}
public void setRefCallSheetId(String refCallSheetId) {
this.refCallSheetId = refCallSheetId;
}
public String getCallID() {
return CallID;
}
public void setCallID(String callID) {
CallID = callID;
}
public String getCallType() {
return CallType;
}
public void setCallType(String callType) {
CallType = callType;
}
public String getRing() {
return Ring;
}
public void setRing(String ring) {
Ring = ring;
}
public String getRingingDate() {
return RingingDate;
}
public void setRingingDate(String ringingDate) {
RingingDate = ringingDate;
}
public String getBegin() {
return Begin;
}
public void setBegin(String begin) {
Begin = begin;
}
public String getEnd() {
return End;
}
public void setEnd(String end) {
End = end;
}
public String getQueueTime() {
return QueueTime;
}
public void setQueueTime(String queueTime) {
QueueTime = queueTime;
}
public String getExten() {
return Exten;
}
public void setExten(String exten) {
Exten = exten;
}
public String getAgentName() {
return AgentName;
}
public void setAgentName(String agentName) {
AgentName = agentName;
}
public String getQueue() {
return Queue;
}
public void setQueue(String queue) {
Queue = queue;
}
public String getState() {
return State;
}
public void setState(String state) {
State = state;
}
public String getCallState() {
return CallState;
}
public void setCallState(String callState) {
CallState = callState;
}
public String getActionID() {
return ActionID;
}
public void setActionID(String actionID) {
ActionID = actionID;
}
public String getWebcallActionID() {
return WebcallActionID;
}
public void setWebcallActionID(String webcallActionID) {
WebcallActionID = webcallActionID;
}
public String getRecordFile() {
return RecordFile;
}
public void setRecordFile(String recordFile) {
RecordFile = recordFile;
}
public String getFileServer() {
return FileServer;
}
public void setFileServer(String fileServer) {
FileServer = fileServer;
}
public String getProvince() {
return Province;
}
public void setProvince(String province) {
Province = province;
}
public String getDistrict() {
return District;
}
public void setDistrict(String district) {
District = district;
}
public String getIVRKEY() {
return IVRKEY;
}
public void setIVRKEY(String IVRKEY) {
this.IVRKEY = IVRKEY;
}
public String getAccountId() {
return AccountId;
}
public void setAccountId(String accountId) {
AccountId = accountId;
}
public String getAccountName() {
return AccountName;
}
public void setAccountName(String accountName) {
AccountName = accountName;
}
public String getCdrVar() {
return CdrVar;
}
public void setCdrVar(String cdrVar) {
CdrVar = cdrVar;
}
public String getDialoutStrVar() {
return DialoutStrVar;
}
public void setDialoutStrVar(String dialoutStrVar) {
DialoutStrVar = dialoutStrVar;
}
public String getHangupPart() {
return HangupPart;
}
public void setHangupPart(String hangupPart) {
HangupPart = hangupPart;
}
public String getRealCalled() {
return RealCalled;
}
public void setRealCalled(String realCalled) {
RealCalled = realCalled;
}
public String getMonitorFilename() {
return MonitorFilename;
}
public void setMonitorFilename(String monitorFilename) {
MonitorFilename = monitorFilename;
}
public String getAccount() {
return Account;
}
public void setAccount(String account) {
Account = account;
}
public String getRingingTimestamp() {
return RingingTimestamp;
}
public void setRingingTimestamp(String ringingTimestamp) {
RingingTimestamp = ringingTimestamp;
}
}
@@ -0,0 +1,172 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description: 应急资源
* @Author: jeecg-boot
* @Date: 2023-04-24
* @Version: V1.0
*/
@Data
@TableName("emergency_resource")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "emergency_resource对象", description = "应急资源")
public class Resource implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
/**
* 资源名称
*/
@Excel(name = "资源名称", width = 15)
@Schema(title = "资源名称")
private String name;
/**
* 详细地址
*/
@Excel(name = "详细地址", width = 15)
@Schema(title = "详细地址")
private String address;
/**
* 联系电话
*/
@Excel(name = "联系电话", width = 15)
@Schema(title = "联系电话")
private String mobile;
/**
* 经度
*/
@Excel(name = "经度", width = 15)
@Schema(title = "经度")
private BigDecimal longitude;
/**
* 纬度
*/
@Excel(name = "纬度", width = 15)
@Schema(title = "纬度")
private BigDecimal latitude;
/**
* 资源类型(1:油田医院 2:合作医院 3:医疗点 4: )
*/
@Excel(name = "资源类型(1:油田医院 2:合作医院 3:医疗点 4: )", width = 15)
@Schema(title = "资源类型(1:油田医院 2:合作医院 3:医疗点 4: )")
private String type;
/**
* 救治范围
*/
@Excel(name = "救治范围", width = 15)
@Schema(title = "救治范围")
private String aidrange;
/**
* 高德地图数据id
*/
@Excel(name = "高德地图数据id", width = 15)
@Schema(title = "高德地图数据id")
private String gdId;
/**
* 网址
*/
@Excel(name = "网址", width = 15)
@Schema(title = "网址")
private String url;
/**
* 省
*/
@Excel(name = "", width = 15)
@Schema(title = "")
private String province;
/**
* 市
*/
@Excel(name = "", width = 15)
@Schema(title = "")
private String city;
/**
* 区
*/
@Excel(name = "", width = 15)
@Schema(title = "")
private String area;
/**
* 医院等级
*/
@Excel(name = "医院等级", width = 15)
@Schema(title = "医院等级")
private String level;
/**
* 图片
*/
@Excel(name = "图片", width = 15)
@Schema(title = "图片")
private String img;
/**
* 简介
*/
@Excel(name = "简介", width = 15)
@Schema(title = "简介")
private String resourceDesc;
/**
* 状态(1-正常,2-冻结)
*/
@Excel(name = "状态(1-正常,2-冻结)", width = 15)
@Schema(title = "状态(1-正常,2-冻结)")
private Integer status;
/**
* 删除状态(0-正常,1-已删除)
*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private Integer delFlag;
/**
* 创建人
*/
@Schema(title = "创建人")
private String createBy;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private Date createTime;
/**
* 更新人
*/
@Schema(title = "更新人")
private String updateBy;
/**
* 更新时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private Date updateTime;
/**
* 备注
*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private String memo;
}
@@ -0,0 +1,120 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: emergency_schedule_custom
* @Author: jeecg-boot
* @Date: 2023-04-26
* @Version: V1.0
*/
@Data
@TableName("emergency_schedule_custom")
@Accessors(chain = true)
@Deprecated
@EqualsAndHashCode(callSuper = false)
@Schema(title = "emergency_schedule_custom对象", description = "emergency_schedule_custom")
public class ScheduleCustom implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
/**
* 排班时间
*/
@Excel(name = "排班时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "排班时间")
private Date scheduleTime;
/**
* 类型(0:上午 1:下午)
*/
@Excel(name = "类型(0:上午 1:下午)", width = 15)
@Schema(title = "类型(0:上午 1:下午)")
private String type;
/**
* 人员类型(0:操作人员 1:专业人员)
*/
@Excel(name = "人员类型(0:操作人员 1:专业人员)", width = 15)
@Schema(title = "人员类型(0:操作人员 1:专业人员)")
private String userType;
/**
* 操作人员id
*/
@Excel(name = "人员id", width = 15)
@Schema(title = "人员id")
private String userId;
/**
* 操作人员姓名
*/
@Excel(name = "人员姓名", width = 15)
@Schema(title = "人员姓名")
private String userName;
/**
* 操作人员性别
*/
@Excel(name = "人员性别", width = 15)
@Schema(title = "人员性别")
private String userSex;
/**
* 状态(1-正常,2-冻结)
*/
@Excel(name = "状态(1-正常,2-冻结)", width = 15)
@Schema(title = "状态(1-正常,2-冻结)")
private Integer status;
/**
* 删除状态(0-正常,1-已删除)
*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private Integer delFlag;
/**
* 创建人
*/
@Schema(title = "创建人")
private String createBy;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private Date createTime;
/**
* 更新人
*/
@Schema(title = "更新人")
private String updateBy;
/**
* 更新时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private Date updateTime;
/**
* 备注
*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private String memo;
}
@@ -0,0 +1,116 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: emergency_schedule_default
* @Author: jeecg-boot
* @Date: 2023-04-26
* @Version: V1.0
*/
@Data
@TableName("emergency_schedule_default")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Deprecated
@Schema(title = "emergency_schedule_default对象", description = "emergency_schedule_default")
public class ScheduleDefault implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键(应急单号)
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键(应急单号)")
private String id;
/**
* 周几
*/
@Excel(name = "周几", width = 15)
@Schema(title = "周几")
private Integer week;
/**
* 类型(0:上午 1:下午)
*/
@Excel(name = "类型(0:上午 1:下午)", width = 15)
@Schema(title = "类型(0:上午 1:下午)")
private String type;
/**
* 人员类型(0:操作人员 1:专业人员)
*/
@Excel(name = "人员类型(0:操作人员 1:专业人员)", width = 15)
@Schema(title = "人员类型(0:操作人员 1:专业人员)")
private String userType;
/**
* 专业人员id
*/
@Excel(name = "人员id", width = 15)
@Schema(title = "人员id")
private String userId;
/**
* 专业人员姓名
*/
@Excel(name = "人员姓名", width = 15)
@Schema(title = "人员姓名")
private String userName;
/**
* 专业人员性别
*/
@Excel(name = "人员性别", width = 15)
@Schema(title = "人员性别")
private String userSex;
/**
* 状态(1-正常,2-冻结)
*/
@Excel(name = "状态(1-正常,2-冻结)", width = 15)
@Schema(title = "状态(1-正常,2-冻结)")
private Integer status;
/**
* 删除状态(0-正常,1-已删除)
*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
private Integer delFlag;
/**
* 创建人
*/
@Schema(title = "创建人")
private String createBy;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private Date createTime;
/**
* 更新人
*/
@Schema(title = "更新人")
private String updateBy;
/**
* 更新时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private Date updateTime;
/**
* 备注
*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private String memo;
}
@@ -0,0 +1,132 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: emergency_schedule_record
* @Author: jeecg-boot
* @Date: 2023-05-25
* @Version: V1.0
*/
@Data
@TableName("emergency_schedule_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "emergency_schedule_record对象", description = "emergency_schedule_record")
public class ScheduleRecord implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
/**
* 排班时间
*/
@Excel(name = "排班时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "排班时间")
private Date scheduleTime;
/**
* 类型(0:上午 1:下午)
*/
@Excel(name = "类型(0:上午 1:下午)", width = 15)
@Schema(title = "类型(0:上午 1:下午)")
private String type;
/**
* 人员类型(0:操作人员 1: 专业人员)
*/
@Excel(name = "人员类型(0:操作人员 1: 专业人员)", width = 15)
@Schema(title = "人员类型(0:操作人员 1: 专业人员)")
private String userType;
/**
* 人员id
*/
@Excel(name = "人员id", width = 15)
@Schema(title = "人员id")
private String userId;
/**
* 人员姓名
*/
@Excel(name = "人员姓名", width = 15)
@Schema(title = "人员姓名")
private String userName;
/**
* 人员性别
*/
@Excel(name = "人员性别", width = 15)
@Schema(title = "人员性别")
private String userSex;
/**
* 状态(1-正常,2-冻结)
*/
@Excel(name = "状态(1-正常,2-冻结)", width = 15)
@Schema(title = "状态(1-正常,2-冻结)")
private Integer status;
/**
* 删除状态(0-正常,1-已删除)
*/
@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
@Schema(title = "删除状态(0-正常,1-已删除)")
@TableLogic
private Integer delFlag;
/**
* 创建人
*/
@Schema(title = "创建人")
private String createBy;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private Date createTime;
/**
* 更新人
*/
@Schema(title = "更新人")
private String updateBy;
/**
* 更新时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private Date updateTime;
/**
* 备注
*/
@Excel(name = "备注", width = 15)
@Schema(title = "备注")
private String memo;
/**
* 月
*/
@Excel(name = "", width = 15)
@Schema(title = "")
@TableField(exist = false)
private String month;
/**
* 日
*/
@Excel(name = "", width = 15)
@Schema(title = "")
@TableField(exist = false)
private String day;
}
@@ -0,0 +1,29 @@
package com.renkang.emergency.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* @author TianZi
* @date 2023/12/1 15:52
*/
@Data
@Schema(title = "SearchVo对象", description = "搜索条件")
public class SearchVo {
@Schema(title = "医院名称")
private String hospitalName;
@Schema(title = "医院类型")
private String type;
@Schema(title = "")
private String province;
@Schema(title = "")
private String city;
@Schema(title = "医院等级")
private String level;
@Schema(title = "查询关键字")
private String searchText;
@Schema(title = "排序类型")
private String orderType;
@Schema(title = "合作医生数量")
private Integer doctorNum;
}
@@ -0,0 +1,76 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Setter;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable;
/**
* @author onlineGenerator
* @version V1.0
* @Title: Entity
* @Description: 接收短信手机号配置
* @date 2023-06-06 17:29:38
*/
@Setter
@TableName("sys_notify_sms_phone")
@Data
public class SysNotifySmsPhone implements Serializable {
/**
* 主键
* -- SETTER --
* 方法: 设置java.lang.String
*/
@Schema(title = "主键", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String id;
/**
* 短信通知手机号
* -- SETTER --
* 方法: 设置java.lang.String
*/
@Schema(title = "短信通知手机号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "短信通知手机号", width = 15)
private String phoneNumbers;
/**
* 有效标志
* -- SETTER --
* 方法: 设置java.lang.String
*/
@Schema(title = "有效标志", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "有效标志", width = 15, dicCode = "valid_status")
private String validStatus;
/**
* 业务类型
* -- SETTER --
* 方法: 设置java.lang.String
*/
@Schema(title = "业务类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "业务类型", width = 15, dicCode = "busi_type")
private String busiType;
/**
* 备注
* -- SETTER --
* 方法: 设置java.lang.String
*/
@Schema(title = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "备注", width = 15)
private String remark;
/**
* 创建日期
* -- SETTER --
* 方法: 设置java.util.Date
*/
@Schema(title = "创建日期", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private java.util.Date createDate;
/**
* 更新日期
* -- SETTER --
* 方法: 设置java.util.Date
*/
@Schema(title = "更新日期", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private java.util.Date updateDate;
}
@@ -0,0 +1,92 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable;
/**
* @author onlineGenerator
* @version V1.0
* @Title: Entity
* @Description: 消息发送记录表
* @date 2014-09-18 00:01:53
*/
@Data
@TableName("t_s_sms")
public class TSSms implements Serializable {
/**
* 主键
*/
private String id;
/**
* 创建人名称
*/
private String createName;
/**
* 创建人登录名称
*/
private String createBy;
/**
* 创建日期
*/
private java.util.Date createDate;
/**
* 更新人名称
*/
private String updateName;
/**
* 更新人登录名称
*/
private String updateBy;
/**
* 更新日期
*/
private java.util.Date updateDate;
/**
* 消息标题
*/
@Excel(name = "消息标题")
private String esTitle;
/**
* 消息类型
*/
@Excel(name = "消息类型")
private String esType;
/**
* 发送人
*/
@Excel(name = "发送人")
private String esSender;
/**
* 接收人
*/
@Excel(name = "接收人")
private String esReceiver;
/**
* 内容
*/
@Excel(name = "内容")
private String esContent;
/**
* 发送时间
*/
@Excel(name = "发送时间")
private java.util.Date esSendtime;
/**
* 发送状态
*/
@Excel(name = "发送状态")
private String esStatus;
/**
* 备注
*/
@Excel(name = "备注")
private String remark;
private String noticeId;
private String esReceiverId;
private String templateCode;
private Integer isRead;//是否已经阅读(默认值未阅读)
}
@@ -0,0 +1,69 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable;
/**
* @author onlineGenerator
* @version V1.0
* @Title: Entity
* @Description: 消息模本表
* @date 2014-09-17 23:52:46
*/
@Data
@TableName("t_s_sms_template")
public class TSSmsTemplate implements Serializable {
/**
* 主键
*/
private String id;
/**
* 创建人名称
*/
private String createName;
/**
* 创建人登录名称
*/
private String createBy;
/**
* 创建日期
*/
private java.util.Date createDate;
/**
* 更新人名称
*/
private String updateName;
/**
* 更新人登录名称
*/
private String updateBy;
/**
* 更新日期
*/
private java.util.Date updateDate;
/**
* 模板类型
*/
@Excel(name = "模板类型")
private String templateType;
/**
* 模板CODE
*/
@Excel(name = "模板CODE")
private String templateCode;
/**
* 模板名称
*/
@Excel(name = "模板名称")
private String templateName;
/**
* 模板内容
*/
@Excel(name = "模板内容")
private String templateContent;
private String templateTestJson;
}
@@ -0,0 +1,124 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author wanghao
*/
@Data
@TableName("tbl_ambulance_gps")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "TblAmbulanceGps对象", description = "tbl_ambulance_gps")
public class TblAmbulanceGps implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Schema(title = "车牌号码")
private String vehicleNumber;
@Schema(title = "车牌颜色代码")
private String vehicleColorNumber;
@Schema(title = "车牌颜色")
private String vehicleColor;
@Schema(title = "车辆行驶速度")
private Integer vehicleSpeed;
@Schema(title = "车辆行驶记录速度")
private Integer vehicleGpsSpeed;
@Schema(title = "车辆记录时间")
private Date vehicleGpsTime;
@Schema(title = "车辆是否在线")
private String vehicleOnline;
@Schema(title = "车辆状态")
private String vehicleState;
@Schema(title = "车辆状态维持时间")
private String vehicleStateTime;
@Schema(title = "车辆经度")
private BigDecimal vehicleLan;
@Schema(title = "车辆维度")
private BigDecimal vehicleLon;
@Schema(title = "车辆当前里程")
private Integer vehicleTotalMileage;
@Schema(title = "车辆是否发动")
private String vehicleIsStartUp;
@Schema(title = "车辆是否定位")
private String vehicleIsLocation;
@Schema(title = "车辆是否超速")
private String vehicleIsSpeeding;
@Schema(title = "车辆是否疲劳")
private String vehicleIsFatigue;
@Schema(title = "车辆方向")
private Integer vehicleDirection;
@Schema(title = "车辆方向描述")
private String vehicleDirectionDesc;
@Schema(title = "车辆在线时间")
private Date vehicleOnlineTime;
@Schema(title = "车辆离线时间")
private Date vehicleOfflineTime;
@Schema(title = "创建时间")
private Date createDate;
@Schema(title = "speedZeroTime")
private String speedZeroTime;
@Schema(title = "speedBigZeroTime")
private String speedBigZeroTime;
@Schema(title = "医院id")
private String hospitalId;
@Schema(title = "司机名称")
private String driver;
@Schema(title = "司机电话")
private String driverPhone;
@Schema(title = "车辆类别")
private String vehicleType;
@Schema(title = "医院")
@TableField(exist = false)
private java.lang.String hospitalName;
@TableField(exist = false)
private java.lang.String type;
public TblAmbulanceGps() {
type = "4";
}
}
@@ -0,0 +1,97 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
@TableName("tbl_base_gps")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "TblBaseGps对象", description = "tbl_base_gps")
public class TblBaseGps implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Schema(title = "车牌号码")
private String vehicleNumber;
@Schema(title = "车辆经度")
private BigDecimal vehicleLan;
@Schema(title = "车辆维度")
private BigDecimal vehicleLon;
@Schema(title = "车牌颜色")
private String vehicleColor;
@Schema(title = "车辆当前里程")
private Integer vehicleTotalMileage;
@Schema(title = "speedBigZeroTime")
private String speedBigZeroTime;
@Schema(title = "车辆行驶速度")
private Integer vehicleSpeed;
@Schema(title = "车辆是否疲劳")
private String vehicleIsFatigue;
@Schema(title = "车辆是否超速")
private String vehicleIsSpeeding;
@Schema(title = "车辆记录时间")
private Date vehicleGpsTime;
@Schema(title = "车辆状态")
private String vehicleState;
@Schema(title = "车牌颜色代码")
private String vehicleColorNumber;
@Schema(title = "车辆离线时间")
private Date vehicleOfflineTime;
@Schema(title = "车辆是否在线")
private String vehicleOnline;
@Schema(title = "车辆行驶记录速度")
private Integer vehicleGpsSpeed;
@Schema(title = "车辆状态维持时间")
private String vehicleStateTime;
@Schema(title = "车辆是否定位")
private String vehicleIsLocation;
@Schema(title = "speedZeroTime")
private String speedZeroTime;
@Schema(title = "车辆是否发动")
private String vehicleIsStartUp;
@Schema(title = "车辆方向")
private Integer vehicleDirection;
@Schema(title = "车辆方向描述")
private String vehicleDirectionDesc;
@Schema(title = "车辆在线时间")
private Date vehicleOnlineTime;
@Schema(title = "创建时间")
private Date createDate;
}
@@ -0,0 +1,99 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author wanghao
*/
@Data
@TableName("tbl_base_hospital")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "TblBaseHospital对象", description = "tbl_base_hospital")
public class TblBaseHospital implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Schema(title = "医院名称")
private String name;
@Schema(title = "纬度")
private BigDecimal lat;
@Schema(title = "经度")
private BigDecimal lon;
@Schema(title = "医院状态")
private String status;
@Schema(title = "医院类型")
private String type;
@Schema(title = "救治范围")
private String aidrange;
@Schema(title = "创建人名称")
private String createName;
@Schema(title = "创建人登录名称")
private String createBy;
@Schema(title = "创建日期")
private Date createDate;
@Schema(title = "更新人名称")
private String updateName;
@Schema(title = "更新人登录名称")
private String updateBy;
@Schema(title = "更新日期")
private Date updateDate;
@Schema(title = "删除日期")
private Date delDate;
@Schema(title = "删除标记")
private Integer delFlag;
@Schema(title = "高德地图数据id")
private String gdId;
@Schema(title = "挂号网址")
private String url;
@Schema(title = "")
private String province;
@Schema(title = "")
private String city;
@Schema(title = "")
private String area;
@Schema(title = "医院等级")
private String level;
@Schema(title = "医院图片")
private String img;
@Schema(title = "医院简介")
private String introduction;
@Schema(title = "排序序号")
private Double orderNo;
}
@@ -0,0 +1,32 @@
package com.renkang.emergency.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
/**
* @author TianZi
* @date 2023/12/1 16:05
*/
@Data
public class TblBaseHospitalVo {
@Schema(title = "主键")
private String id;
@Schema(title = "医院名称")
private String name;
@Schema(title = "纬度")
private BigDecimal lat;
@Schema(title = "经度")
private BigDecimal lon;
@Schema(title = "类别")
private String type;
@Schema(title = "中心医疗点标识")
private boolean centerResource=false;
private String ambulance;
private String docNum;
private String nurseNum;
private String expertNum;
private String distance;
}
@@ -0,0 +1,69 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* @author TianZi
* @date 2023/11/30 17:17
*/
@Data
@TableName("tbl_health_data")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "tbl_health_data对象", description = "tbl_health_data")
public class TblHealthData implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Schema(title = "职工医院")
private Integer zhigong;
@Schema(title = "燕鸽湖医院")
private Integer yangehu;
@Schema(title = "西京医院")
private Integer xijing;
@Schema(title = "延安市人民医院")
private Integer yananshi;
@Schema(title = "长安医院")
private Integer changan;
@Schema(title = "唐都医院")
private Integer tangdu;
@Schema(title = "其他")
private Integer other;
@Schema(title = "高血压")
private Integer hypertension;
@Schema(title = "糖尿病")
private Integer diabetes;
@Schema(title = "高血脂")
private Integer hyperlipidemia;
@Schema(title = "超重")
private Integer overweight;
@Schema(title = "消化系统专项检查")
private Integer xiaohua;
@Schema(title = "死亡员工")
private Integer dead;
}
@@ -0,0 +1,16 @@
package com.renkang.emergency.entity;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
/**
* @author TianZi
* @date 2023/12/5 14:48
*/
@Data
public class TblHealthDataVo {
private String name;
private String count;
@Dict(dicCode = "archives_ill_status")
private String type;
}
@@ -0,0 +1,78 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
@TableName("tbl_help_center")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "TblHelpCenter对象", description = "tbl_help_center")
public class TblHelpCenter implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Schema(title = "员工名称")
private String userId;
@Schema(title = "接待人员")
private String receiveUserId;
@Schema(title = "接待人员类型")
private String receiveType;
@Schema(title = "员工纬度")
private BigDecimal lat;
@Schema(title = "员工经度")
private BigDecimal lon;
@Schema(title = "病种类型")
private String sicknessType;
@Schema(title = "病情记录")
private String sicknessRecord;
@Schema(title = "现场照片")
private String img;
@Schema(title = "自救信息_知识库ID")
private String knowledgeId;
@Schema(title = "自救信息推送状态")
private String status;
@Schema(title = "专家意见")
private String suggest;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(title = "受理时间")
private Date receiveTime;
@Schema(title = "帮助类型")
private String helpType;
@Schema(title = "求助ID")
private String userHelpId;
@Schema(title = "处理专家Id")
private String dealExpertId;
@Schema(title = "是否已读(0未读 1已读)")
private String isRead;
}
@@ -0,0 +1,16 @@
package com.renkang.emergency.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* @author TianZi
* @date 2023/12/1 11:19
*/
@Data
@Schema(title = "tbl_help_centorVo对象", description = "tbl_help_centorVo对象")
public class TblHelpCentorVo {
private Integer count;
private String name;
private String type;
}
@@ -0,0 +1,209 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable;
/**
* @author onlineGenerator
* @version V1.0
* @Title: Entity
* @Description: 七陌推送信息
* @date 2018-12-12 14:51:19
*/
@Data
@TableName("tbl_qimo_notice")
public class TblQimoNotice implements Serializable {
/**
* 主键
*/
@Schema(title = "主键", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String id;
/**
* 主叫号码
*/
@Schema(title = "主叫号码", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "主叫号码", width = 15)
private String callNo;
/**
* 被叫号码
*/
@Schema(title = "被叫号码", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "被叫号码", width = 15)
private String calledNo;
/**
* 通话记录ID
*/
@Schema(title = "通话记录ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通话记录ID", width = 15)
private String callSheetId;
/**
* 转接前通话的CallSheetID
*/
@Schema(title = "转接前通话的CallSheetID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "转接前通话的CallSheetID", width = 15)
private String refCallSheetid;
/**
* 通话ID
*/
@Schema(title = "通话ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通话ID", width = 15)
private String callId;
/**
* 通话类型
*/
@Schema(title = "通话类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通话类型", width = 15, dicCode = "qimo_call_type")
private String callType;
/**
* 通话振铃时间
*/
@Schema(title = "通话振铃时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通话振铃时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
private java.util.Date ring;
/**
* 被叫振铃开始时间
*/
@Schema(title = "被叫振铃开始时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "被叫振铃开始时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
private java.util.Date ringingDate;
/**
* 被叫振铃开始时间
*/
@Schema(title = "被叫振铃开始时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String ringingTimestamp;
/**
* 通话接通时间
*/
@Schema(title = "通话接通时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通话接通时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
private java.util.Date begin;
/**
* 通话结束时间
*/
@Schema(title = "通话结束时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通话结束时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
private java.util.Date end;
/**
* 来电进入技能组时间
*/
@Schema(title = "来电进入技能组时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "来电进入技能组时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
private java.util.Date queueTime;
/**
* 处理坐席的工号
*/
@Schema(title = "处理坐席的工号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "处理坐席的工号", width = 15)
private String agent;
/**
* 处理坐席的工号
*/
@Schema(title = "处理坐席的工号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "处理坐席的工号", width = 15)
private String exten;
/**
* 处理坐席的姓名
*/
@Schema(title = "处理坐席的姓名", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "处理坐席的姓名", width = 15)
private String agentName;
/**
* 通话进入的技能组名称
*/
@Schema(title = "通话进入的技能组名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通话进入的技能组名称", width = 15)
private String queue;
/**
* 接听状态
*/
@Schema(title = "接听状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "接听状态", width = 15, dicCode = "qimo_state")
private String state;
/**
* 事件状态
*/
@Schema(title = "事件状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "事件状态", width = 15, dicCode = "qimo_call_state")
private String callState;
/**
* 通过接口调用时
*/
@Schema(title = "通过接口调用时", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通过接口调用时", width = 15)
private String actionId;
/**
* 通过调用webcall接口
*/
@Schema(title = "通过调用webcall接口", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通过调用webcall接口", width = 15)
private String webcallActionId;
/**
* 通话录音文件名
*/
@Schema(title = "通话录音文件名", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通话录音文件名", width = 15)
private String recordFile;
/**
* 录音服务器
*/
@Schema(title = "录音服务器", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "录音服务器", width = 15)
private String fileServer;
/**
* 目标号码的省
*/
@Schema(title = "目标号码的省", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "目标号码的省", width = 15)
private String province;
/**
* 目标号码的市
*/
@Schema(title = "目标号码的市", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "目标号码的市", width = 15)
private String district;
/**
* 通话在系统中选择的按键菜单
*/
@Schema(title = "通话在系统中选择的按键菜单", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "通话在系统中选择的按键菜单", width = 15)
private String ivrkey;
/**
* 账户编号字段
*/
@Schema(title = "账户编号字段", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "账户编号字段", width = 15)
private String accountId;
/**
* 账户名称字段
*/
@Schema(title = "账户名称字段", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "账户名称字段", width = 15)
private String accountName;
/**
* 创建时间
*/
@Schema(title = "创建时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private java.util.Date createDate;
/**
* 创建人
*/
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String createBy;
/**
* 操作人员ID
*/
@Schema(title = "操作人员ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "操作人员ID", width = 15)
private String receiveUserId;
/**
* 是否已读
*/
@Schema(title = "是否已读", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "是否已读", width = 15)
private String isRead;
}
@@ -0,0 +1,38 @@
package com.renkang.emergency.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
public class TblQimoNoticeVo {
@Schema(title = "id")
private String id;
@Schema(title = "用户id")
private String userId;
@Schema(title = "姓名")
private String realName;
@Schema(title = "单位Code")
private String departCode;
@Schema(title = "单位名称")
private String departName;
@Schema(title = "部门Code")
private String orgCode;
@Schema(title = "部门名称")
private String orgName;
@Schema(title = "性别")
@Dict(dicCode = "sex2")
private Integer sex;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(title = "时间")
private Date time;
@Schema(title = "电话")
private String phone;
@Schema(title = "应急分中心名称")
private String centerName;
}
@@ -0,0 +1,68 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* @author TianZi
* @date 2023/12/1 10:06
*/
@Data
@TableName("tbl_service_data")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "TblServiceData对象", description = "tbl_service_data")
public class TblServiceData implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Schema(title = "呼入电话")
private Integer gross;
@Schema(title = "受理电话")
private Integer alerdyreceive;
@Schema(title = "突发重大伤病应急")
private Integer jqqz;
@Schema(title = "重大伤病应急就医")
private Integer dbjy;
@Schema(title = "创伤")
private Integer chuangshang;
@Schema(title = "心血管")
private Integer xinxueguan;
@Schema(title = "脑血管")
private Integer naoxueguan;
@Schema(title = "中毒类")
private Integer zhongdu;
@Schema(title = "其他")
private Integer other;
@Schema(title = "心神")
private Integer xinshen;
@Schema(title = "呼吸")
private Integer huxi;
@Schema(title = "消化")
private Integer xiaohua;
@Schema(title = "肿瘤")
private Integer zhongliu;
}
@@ -0,0 +1,58 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable;
/**
* @author onlineGenerator
* @version V1.0
* @Title: Entity
* @Description: 紧急联系人
* @date 2018-09-10 14:11:32
*/
@Data
@TableName("tbl_user_contact")
public class TblUserContact implements Serializable {
/**
* 主键
*/
@Schema(title = "主键", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String id;
/**
* 员工名称
*/
@Schema(title = "员工名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "员工名称", width = 15, dictTable = "t_s_base_user", dicCode = "id", dicText = "realname")
private String userId;
/**
* 员工名称
*/
@TableField(exist = false)
private String userName;
@TableField(exist = false)
private String departName;
/**
* 紧急联系人名称
*/
@Schema(title = "紧急联系人名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "紧急联系人名称", width = 15)
private String contactName;
/**
* 紧急联系人电话
*/
@Schema(title = "紧急联系人电话", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "紧急联系人电话", width = 15)
private String contactMoile;
/**
* 与本人关系
*/
@Schema(title = "与本人关系", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@Excel(name = "与本人关系", width = 15)
private String relation;
}
@@ -0,0 +1,116 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author TianZi
* @date 2023/11/30 17:17
*/
@Data
@TableName("tbl_user_help")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "tbl_user_help对象", description = "tbl_user_help")
public class TblUserHelp implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Schema(title = "用户ID")
private String userId;
@Schema(title = "求助纬度")
private BigDecimal lat;
@Schema(title = "求助经度")
private BigDecimal lon;
@Schema(title = "求助方式")
private String type;
@Schema(title = "受理状态")
private String status;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "求助时间")
private Date helpTime;
@Schema(title = "求助录音")
private String voiceUrl;
@Schema(title = "就医类型")
private String treatType;
@Schema(title = "咨询开始时间")
private Date startTime;
@Schema(title = "咨询结束时间")
private Date endTime;
@Schema(title = "用户评分")
private Integer score;
@Schema(title = "评分时间")
private Date scoreTime;
@Schema(title = "受理人")
private String receiveUserId;
@Schema(title = "是否评分")
private String scoreStatus;
@Schema(title = "评价")
private String evaluate;
@Schema(title = "接受时间")
private Date updateDate;
@Schema(title = "外部电话呼入")
private String outMobile;
@Schema(title = "大屏弹出状态")
private String screenStatus;
@Schema(title = "大屏类型,1西安2银川")
private String screenType;
@Schema(title = "1:女 2:男")
private Integer sex;
@Schema(title = "通知id")
@TableField(exist = false)
private String noticeId;
@Schema(title = "应急中心id")
private String centerId;
@Schema(title = "realName")
@TableField(exist = false)
private String realName;
@Schema(title = "orgCode")
@TableField(exist = false)
private String orgCode;
@Schema(title = "坐席号")
@TableField(exist = false)
private String Exten;
@TableField(exist = false)
private String queue;
}
@@ -0,0 +1,35 @@
package com.renkang.emergency.entity;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* @author TianZi
* @date 2023/12/1 9:29
*/
@Data
@Schema(title = "tbl_user_helpVo对象", description = "tbl_user_helpVo对象")
public class TblUserHelpVo {
@Parameter(description = "受理电话")
private Integer alerdyreceive;
@Parameter(description = "重大伤病应急就医")
private Integer dbjy;
@Parameter(description = "呼入电话")
private Integer gross;
@Parameter(description = "突发重大伤病应急")
private Integer jqqz;
@Parameter(description = "预约")
private Integer preappointment;
@Parameter(description = "累计处置")
private Integer totalacceptance;
@Parameter(description = "交易")
private Integer totaldeal;
}
@@ -0,0 +1,67 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @author TianZi
* @date 2023/11/30 17:17
*/
@Data
@TableName("tbl_video_mac")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "tbl_video_mac对象", description = "tbl_video_mac")
public class TblVideoMac implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.ASSIGN_ID)
@Schema(title = "主键")
private String id;
@Schema(title = "采集点名称")
private String videoName;
@Schema(title = "采集点MAC地址")
private String videoMac;
@Schema(title = "排序")
private String orderNo;
@Schema(title = "创建人")
private String createBy;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "创建时间")
private Date createDate;
@Schema(title = "更新人")
private String updateBy;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@Schema(title = "更新时间")
private Date updateDate;
@Schema(title = "采集点描述")
private String videoDes;
@Schema(title = "是否默认")
private String isDefault;
@TableField(exist = false)
private VideoInfoVo videoInfoVo;
}
@@ -0,0 +1,13 @@
package com.renkang.emergency.entity;
import lombok.Data;
/**
* @author TianZi
* @date 2023/11/30 17:35
*/
@Data
public class VideoInfoVo {
private String url;
private String liveUrl;
}
@@ -0,0 +1,248 @@
package com.renkang.emergency.entity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecg.common.aspect.annotation.Dict;
import java.io.Serializable;
import java.util.Date;
/**
* @author Shunzhi Jiang
* @since 2024/10/18
*/
/**
* 紫云救护车数据表
*/
@Schema(description = "紫云救护车数据表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "zy_ambulance_data")
public class ZyAmbulanceData implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@TableId(value = "id", type = IdType.ASSIGN_ID)
@Schema(description = "主键ID")
private String id;
/**
* 患者姓名
*/
@TableField(value = "patient_id")
@Schema(description = "患者姓名")
private String patientId;
/**
* 患者姓名
*/
@TableField(value = "patient_name")
@Schema(description = "患者姓名")
private String patientName;
/**
* 性别 0-未知 1-男 2-女
*/
@TableField(value = "gender")
@Schema(description = "性别 0-未知 1-男 2-女")
@Dict(dicCode = "zy_sex")
private Integer gender;
/**
* 证件类型 1-身份证
*/
@TableField(value = "id_card_type")
@Schema(description = "证件类型 1-身份证")
private Integer idCardType;
/**
* 证件号码
*/
@TableField(value = "id_card_number")
@Schema(description = "证件号码")
private String idCardNumber;
/**
* 用户ID(如果可以匹配到)
*/
@TableField(value = "user_id")
@Schema(description = "用户ID(如果可以匹配到)")
private String userId;
/**
* 部门Code(如果可以匹配到)
*/
@TableField(value = "org_code")
@Schema(description = "部门Code(如果可以匹配到)")
private String orgCode;
/**
* 联系电话
*/
@TableField(value = "phone")
@Schema(description = "联系电话")
private String phone;
/**
* 年龄类型 1-年 2-月 3-天
*/
@TableField(value = "age_type")
@Schema(description = "年龄类型 1-年 2-月 3-天")
private Integer ageType;
/**
* 年龄
*/
@TableField(value = "age")
@Schema(description = "年龄")
private Integer age;
/**
* 病人MPDS类型 0-默认值 1-创伤
*/
@TableField(value = "mpds_category_id")
@Schema(description = "病人MPDS类型 0-默认值 1-创伤")
@Dict(dicCode = "yc_mpds_type")
private Integer mpdsCategoryId;
/**
* 创伤类型病人MPDS症状小类 多个小类逗号隔开 1-交通、运输事故 3-高处坠落 4,-暴力袭击/性侵犯 6,-动物咬伤/攻击 7-烧伤(烫伤)/爆炸伤 8,-锐器刺伤/枪伤/贯通伤 9,-触电/雷击伤 10,-创伤(其他创伤) 35,-冬季运动损伤 36-机械损伤
*/
@TableField(value = "mpds_data")
@Schema(description = "创伤类型病人MPDS症状小类 多个小类逗号隔开 1-交通、运输事故 3-高处坠落 4,-暴力袭击/性侵犯 6,-动物咬伤/攻击 7-烧伤(烫伤)/爆炸伤 8,-锐器刺伤/枪伤/贯通伤 9,-触电/雷击伤 10,-创伤(其他创伤) 35,-冬季运动损伤 36-机械损伤")
private String mpdsData;
@TableField(exist = false)
@Schema(description = "mpdsData 翻译字段")
private String mpdsData_dictText;
/**
* 发病地点
*/
@TableField(value = "attack_address")
@Schema(description = "发病地点")
private String attackAddress;
/**
* 病情判断 0-默认 1-濒危 2-危重 3-急症 4-非急症 5-死亡
*/
@TableField(value = "injury_level")
@Schema(description = "病情判断 0-默认 1-濒危 2-危重 3-急症 4-非急症 5-死亡")
@Dict(dicCode = "yc_first_aid_type")
private Integer injuryLevel;
/**
* 救护车出发时间
*/
@TableField(value = "start_time")
@Schema(description = "救护车出发时间")
private Date startTime;
/**
* 到达现场时间
*/
@TableField(value = "arrive_scene_time")
@Schema(description = "到达现场时间")
private Date arriveSceneTime;
/**
* 离开现场时间
*/
@TableField(value = "leave_scene_time")
@Schema(description = "离开现场时间")
private Date leaveSceneTime;
/**
* 到达医院时间
*/
@TableField(value = "arrive_hospital_time")
@Schema(description = "到达医院时间")
private Date arriveHospitalTime;
/**
* 院前预警时间
*/
@TableField(value = "early_warning_time")
@Schema(description = "院前预警时间")
private Date earlyWarningTime;
/**
* 舒张压
*/
@TableField(value = "diastolic_pressure")
@Schema(description = "舒张压")
private String diastolicPressure;
/**
* 收缩压
*/
@TableField(value = "systolic_pressure")
@Schema(description = "收缩压")
private String systolicPressure;
/**
* 心率
*/
@TableField(value = "heart_rate")
@Schema(description = "心率")
private String heartRate;
/**
* 呼吸率
*/
@TableField(value = "breathing_rate")
@Schema(description = "呼吸率")
private String breathingRate;
/**
* 体温
*/
@TableField(value = "temperature")
@Schema(description = "体温")
private String temperature;
/**
* 血糖
*/
@TableField(value = "blood_sugar")
@Schema(description = "血糖")
private String bloodSugar;
/**
* 血氧饱和度
*/
@TableField(value = "blood_oxygen_saturation")
@Schema(description = "血氧饱和度")
private String bloodOxygenSaturation;
/**
* 脉搏
*/
@TableField(value = "pulse")
@Schema(description = "脉搏")
private String pulse;
/**
* 创建时间
*/
@TableField(value = "create_time")
@Schema(description = "创建时间")
private Date createTime;
/**
* 创建人
*/
@TableField(value = "create_by")
@Schema(description = "创建人")
private String createBy;
/**
* 更新时间
*/
@TableField(value = "update_time")
@Schema(description = "更新时间")
private Date updateTime;
/**
* 更新人
*/
@TableField(value = "update_by")
@Schema(description = "更新人")
private String updateBy;
/**
* 软删除:0.未删除,1.已删除
*/
@TableField(value = "del_flag")
@Schema(description = "软删除:0.未删除,1.已删除")
@TableLogic
private Boolean delFlag;
/**
* 备注
*/
@TableField(value = "memo")
@Schema(description = "备注")
private String memo;
@TableField(exist = false)
private String secondDepart;
@TableField(exist = false)
private String thirdDepart;
}
@@ -0,0 +1,16 @@
package com.renkang.emergency.entity.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class CallLogDTO {
@Schema(description = "姓名")
private String realName;
@Schema(description = "呼叫中心")
private String centerId;
@Schema(description = "坐席工号")
private String seatId;
@Schema(description = "单位 or 部门")
private String orgCode;
}
@@ -0,0 +1,14 @@
package com.renkang.emergency.entity.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class EmergencyGroupedDTO {
@Schema(title = "所属应急中心")
private String centerId;
@Schema(title = "坐席状态 0:未知 1:忙碌 2:小休 3:正在通话 4:离线 5:空闲")
private Integer seatStatus;
@Schema(title = "坐席工号")
private String seatId;
}
@@ -0,0 +1,44 @@
package com.renkang.emergency.entity.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.yulichang.annotation.EntityMapping;
import com.renkang.emergency.entity.EmergencySchedules;
import com.renkang.emergency.entity.EmergencySchedulesItem;
import com.renkang.emergency.entity.vo.WeekDataVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;
@Data
public class EmergencySchedulesDTO {
@Schema(title = "中心id")
private String centerId;
@Schema(title = "星期一")
private WeekDataVO monday;
@Schema(title = "星期二")
private WeekDataVO tuesday;
@Schema(title = "星期三")
private WeekDataVO wednesday;
@Schema(title = "星期四")
private WeekDataVO thursday;
@Schema(title = "星期五")
private WeekDataVO friday;
@Schema(title = "星期六")
private WeekDataVO saturday;
@Schema(title = "星期日")
private WeekDataVO sunday;
@Schema(title = "开始时间")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date startTime;
@Schema(title = "结束时间")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date endTime;
}
@@ -0,0 +1,10 @@
package com.renkang.emergency.entity.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class MedicalCenterDTO {
@Schema(title = "应急中心id")
private String centerId;
}
@@ -0,0 +1,38 @@
package com.renkang.emergency.entity.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class PhoneListDTO {
/**
* 应急中心id
*/
@Schema(description = "应急中心id")
private String centerId;
/**
* 0:呼入 1:受理 2:突发重大伤病应急 3:重大伤病应急
*/
@Schema(description = "0:呼入 1:受理 2:突发重大伤病应急 3:重大伤病应急")
private String phoneType;
/**
* 0:全部 1:女 2:男
*/
@Schema(description = "0:全部 1:女 2:男")
private String sex;
/**
* 0:默认 1:按部门
*/
@Schema(description = "0:默认 1:按部门")
private String showType;
/**
* pageNo
*/
@Schema(description = "pageNo")
private Integer pageNo=1;
/**
* pageSize
*/
@Schema(description = "pageSize")
private Integer pageSize=10;
}
@@ -0,0 +1,18 @@
package com.renkang.emergency.entity.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class ResourcesAllDTO {
@Schema(title = "纬度:34")
private String lat="34";
@Schema(title = "经度:108")
private String lon="108";
@Schema(title = "空串:全部资源,1:油田医院,2:合作医院,3:医疗点")
private String type;
@Schema(title = "搜索关键字")
private String keys;
@Schema(title = "应急中心id")
private String centerId;
}
@@ -0,0 +1,16 @@
package com.renkang.emergency.entity.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class StatisticsDTO {
/**
* 1:全部,2:年,3:月,4:周
*/
@Schema(description = "1:全部,2:年,3:月,4:周")
private String condition;
@Schema(description = "应急中心id")
private String centerId;
}
@@ -0,0 +1,17 @@
package com.renkang.emergency.entity.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class TblQimoNoticeDTO {
@Schema(title = "坐席工号")
private String seatId;
@Schema(title = "姓名")
private String realName;
@Schema(title = "所属应急中心")
private String centerId;
@Schema(title = "orgCode")
private String orgCode;
}
@@ -0,0 +1,13 @@
package com.renkang.emergency.entity.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotNull;
@Data
public class UserHealthCenterDTO {
@Schema(title = "应急中心id")
@NotNull(message = "应急中心id不可为空")
private String centerId;
}
@@ -0,0 +1,26 @@
package com.renkang.emergency.entity.vo;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
@Data
public class CallLogExportVO {
@Excel(name = "单位名称", width = 15, orderNum = "1")
private String orgName;
@Excel(name = "部门名称", width = 15, orderNum = "2")
private String departName;
@Excel(name = "员工", width = 15, orderNum = "3")
private String realName;
@Excel(name = "性别", width = 15, dicCode = "sex2", orderNum = "4")
private Integer sex;
@Excel(name = "呼叫中心", width = 15, orderNum = "5")
private String centerName;
@Excel(name = "坐席工号", width = 15, orderNum = "6")
private String seatId;
@Excel(name = "电话", width = 15, orderNum = "7")
private String phone;
@Excel(name = "通话时长(秒)", width = 15, orderNum = "8")
private String callDuration;
@Excel(name = "通话时间", width = 20, format = "yyyy-MM-dd HH:mm:ss", orderNum = "9")
private String callTime;
}
@@ -0,0 +1,4 @@
package com.renkang.emergency.entity.vo;
public class EmergencyGroupedVO {
}
@@ -0,0 +1,27 @@
package com.renkang.emergency.entity.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
public class EmergencySchedulesVO {
@Schema(title = "中心id")
private String centerId;
@Schema(title = "星期一")
private WeekDataVO monday;
@Schema(title = "星期二")
private WeekDataVO tuesday;
@Schema(title = "星期三")
private WeekDataVO wednesday;
@Schema(title = "星期四")
private WeekDataVO thursday;
@Schema(title = "星期五")
private WeekDataVO friday;
@Schema(title = "星期六")
private WeekDataVO saturday;
@Schema(title = "星期日")
private WeekDataVO sunday;
}
@@ -0,0 +1,74 @@
package com.renkang.emergency.entity.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.yulichang.annotation.EntityMapping;
import com.renkang.emergency.entity.EmergencyCenter;
import com.renkang.emergency.entity.EmergencyGrouped;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.experimental.FieldNameConstants;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@FieldNameConstants
public class TblQimoNoticeVO {
private String id;
/**呼叫中心*/
@Excel(name = "呼叫中心", width = 15)
@Schema(title = "呼叫中心")
private String centerName;
/**坐席工号*/
@Excel(name = "坐席工号", width = 15)
@Schema(title = "坐席工号")
private String seatId;
/**姓名*/
@Excel(name = "姓名", width = 15)
@Schema(title = "姓名")
private String realName;
/**性别*/
@Excel(name = "性别", width = 15)
@Schema(title = "性别")
@Dict(dicCode = "sex2")
private Integer sex;
/**单位*/
@Excel(name = "单位", width = 15)
@Schema(title = "单位")
private String orgName;
/**部门*/
@Excel(name = "部门", width = 15)
@Schema(title = "部门")
private String deptName;
/**电话*/
@Excel(name = "电话", width = 15)
@Schema(title = "电话")
private String phone;
/**通话时长*/
@Excel(name = "通话时长", width = 15)
@Schema(title = "通话时长")
private Long callDuration;
/**通话时间*/
@Excel(name = "通话时间", width = 15, format = "yyyy-MM-dd HH:mm")
@Schema(title = "通话时间")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
private Date callTime;
}
@@ -0,0 +1,38 @@
package com.renkang.emergency.entity.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.renkang.emergency.entity.EmergencySchedulesItem;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
@Data
public class WeekDataVO {
@Schema(title ="排班计划id")
private String schedulesId;
@Schema(title ="日期")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date time;
@Schema(title ="操作人员集合")
private List<EmergencySchedulesItem> operationUserList;
@Schema(title ="专业人员集合")
private List<EmergencySchedulesItem> professionalUserList;
public List<EmergencySchedulesItem> getOperationUserList(List<EmergencySchedulesItem> itemList) {
return itemList.stream().filter(item -> "0".equals(item.getUserType())).collect(Collectors.toList());
}
public List<EmergencySchedulesItem> getProfessionalUserList(List<EmergencySchedulesItem> itemList) {
return itemList.stream().filter(item -> "1".equals(item.getUserType())).collect(Collectors.toList());
}
}
@@ -0,0 +1,185 @@
package com.renkang.emergency.util;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import java.text.ParseException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.time.DayOfWeek;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
/**
* @author Junqiang Zhu
* @date 2023-04-26 14:14
*/
public class DateUtils {
private DateUtils() {
}
/**
* 查询当下是上午还是下午
*
* @param date 时间
* @return 0:上午 1:下午 -1:未知
*/
public static int amOrPm(Date date) {
int hour = DateUtil.hour(date, true);
return hour > 12 ? 1 : 0;
}
public static int weekDay(Date date) {
int week = DateUtil.dayOfWeek(date);
return week == 1 ? 7 : week - 1;
}
/**
* 时间2 是否比 时间1 小 how 分钟
*
* @param date1 时间1
* @param date2 时间2
* @param how 多少分钟
* @return true/false
*/
public static boolean ltFixedMinute(Date date1, Date date2, int how) {
long result = DateUtils.timeDifferenceMinutes(date1, date2);
return result <= 1000L * 60 * how;
}
/**
* 时间2 是否比 时间1 大 how 分钟
*
* @param date1 时间1
* @param date2 时间2
* @param how 多少分钟
* @return true/false
*/
public static boolean gtFixedMinute(Date date1, Date date2, int how) {
return !ltFixedMinute(date1, date2, how);
}
public static long timeDifferenceMinutes(Date date1, Date date2) {
if (ObjectUtil.isNull(date1)) {
return -1;
}
if (ObjectUtil.isNull(date2)) {
return date1.getTime();
}
return date2.getTime() - date1.getTime();
}
/**
* 字符串时间格式转为 Date格式
*
* @param str 字符串日期
* @param pattern 转换的格式 例:yyyy-MM-dd
* @return
*/
public static Date strConverDate(String str, String pattern) {
if (str == null) {
return null;
}
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
//从第一个字符开始解析
ParsePosition pos = new ParsePosition(0);
return sdf.parse(str, pos);
}
public static List<LocalDate> getAllDatesForDayOfWeek(int year, int month, DayOfWeek dayOfWeek) {
List<LocalDate> dates = new ArrayList<>();
LocalDate date = LocalDate.of(year, month, 1);
while (date.getMonthValue() == month) {
if (date.getDayOfWeek() == dayOfWeek) {
dates.add(date);
}
date = date.plusDays(1);
}
return dates;
}
public static List<Integer> monthAllDayOfTheWeek(int year, int month, int week) {
DayOfWeek dayOfWeek = DateUtils.convertToDayOfWeek(week);
List<LocalDate> allDatesForDayOfWeek = DateUtils.getAllDatesForDayOfWeek(year, month, dayOfWeek);
List<Integer> result = new ArrayList<>();
for (LocalDate date : allDatesForDayOfWeek) {
result.add(date.getDayOfMonth());
}
return result;
}
public static DayOfWeek convertToDayOfWeek(int dayNumber) {
// 将数字转换为合法的星期几值
int normalizedDayNumber = (dayNumber + 6) % 7;
// 使用DayOfWeek枚举的of方法转换为DayOfWeek对象
return DayOfWeek.of(normalizedDayNumber + 1);
}
/**
* 两个日期相差的月份
* @param one 参数1
* @param two 参数2
* @return int
*/
public static int numOfMonthsThatDiffer(Date one, Date two) {
Calendar calendarOne = Calendar.getInstance();
calendarOne.setTime(one);
Calendar calendarTwo = Calendar.getInstance();
calendarTwo.setTime(two);
int yearDiff = calendarTwo.get(Calendar.YEAR) - calendarOne.get(Calendar.YEAR);
int monthDiff = calendarTwo.get(Calendar.MONTH) - calendarOne.get(Calendar.MONTH);
return (yearDiff * 12 + monthDiff) * -1;
// return yearDiff * 12 + monthDiff;
}
public static void main(String[] args) {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM");
try {
Date date1 = dateFormat.parse("2023-9");
Date date2 = new Date();
int monthsDiff = numOfMonthsThatDiffer(date1, date2);
System.out.println("相差的月份数: " + monthsDiff);
} catch (ParseException e) {
throw new RuntimeException(e);
}
}
/**
* 根据指定的格式将字符串转换成Date 如输入:2003-11-19 11:20:20将按照这个转成时间
*
* @param src 将要转换的原始字符窜
* @param pattern 转换的匹配格式
* @return 如果转换成功则返回转换后的日期
* @throws ParseException 转换失败则抛出异常
*/
public static Date parseDate(String src, String pattern)
throws ParseException {
if (src == null || "".equals(src)) {
return null;
}
return getSDFormat(pattern).parse(src);
}
// 指定模式的时间格式
private static SimpleDateFormat getSDFormat(String pattern) {
return new SimpleDateFormat(pattern);
}
}

Some files were not shown because too many files have changed in this diff Show More