Commit 73c4e8c0 by 叶立庆

svn to git

0 parents
Showing 175 changed files with 4750 additions and 0 deletions
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.com.glsx.framework</groupId>
<artifactId>framework-rpc-api</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<groupId>cn.com.glsx.scrm</groupId>
<artifactId>rpc-scrm-clue-api</artifactId>
<version>5.3.0-SNAPSHOT</version>
<name>rpc-scrm-clue-api</name>
<properties>
<deploy.scanPackage>cn.com.glsx.clue.remote</deploy.scanPackage>
</properties>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>3.0.2</version>
<exclusions>
<exclusion>
<artifactId>poi-ooxml</artifactId>
<groupId>org.apache.poi</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>cn.com.glsx.framework</groupId>
<artifactId>rpc-api-deploy-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>cn.com.glsx.scrm</groupId>
<artifactId>rpc-scrm-clue-api</artifactId>
<version>5.3.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
package cn.com.glsx.scrm.clue.constants;
/**
* 公共常亮
* @author yangwei
* @version 1.0
* @since 2025/10/17 16:24
*/
public interface BurialPointConstants {
/** 展业助手 */
String SYSTEM_ID_PAD = "business_development_assistant";
}
package cn.com.glsx.scrm.clue.constants;
/**
* 符号常量接口
* @author yangwei
* @version 1.0
* @since 2025/10/15 18:54
*/
public interface SymbolConstants {
String MINUS = "-";
}
package cn.com.glsx.scrm.clue.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
@Data
public class BurialPointRecordDTO implements Serializable {
/**
* 登录账号名称
*/
@ApiModelProperty(name = "loginAccount", notes = "登录账号名称")
private String loginAccount;
@ApiModelProperty(name = "phoneNumber", notes = "手机号码,车生活助手-C端传递")
private String phoneNumber;
/**
* 账号类型
*/
@ApiModelProperty(name = "userType", notes = "账号类型")
private Integer userType;
/**
* 账号uuid
*/
@ApiModelProperty(name = "uuid", notes = "账号uuid")
private String uuid;
/**
* 系统来源
,0-小程序,1-pc端
*/
@NotNull(message = "系统来源不能为空")
@ApiModelProperty(name = "systemSource", notes = "系统来源,0-生意助手小程序,1-嘀加智享车生活(pc端),2-车生活助手C端-小程序,3-展业助手")
private Integer systemSource;
@ApiModelProperty(name = "scene", notes = "业务场景,0 会员权益升级 1 精品升级 3 售后众筹 ,2次新车转化")
private Integer scene;
/**
* 游客ID
,预留字段
*/
@ApiModelProperty(name = "visitorId", notes = "游客ID")
private String visitorId;
/**
* 触发时间
*/
@NotNull(message = "触发时间不能为空")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(name = "eventTime", notes = "触发时间")
private Date eventTime;
/**
* 动作类型
,0-点击,1-滚动,2-浏览
*/
@NotNull(message = "动作类型不能为空")
@ApiModelProperty(name = "eventType", notes = "动作类型,0-点击,1-滚动,2-浏览")
private Integer eventType;
/**
* 上一级页面路径
*/
@ApiModelProperty(name = "prePagePath", notes = "上一级页面路径")
private String prePagePath;
/**
* 当前页面路径
*/
@NotEmpty(message = "当前页面路径不能为空")
@ApiModelProperty(name = "pagePath", notes = "当前页面路径")
private String pagePath;
/**
* 事件别名
*/
@NotEmpty(message = "事件别名不能为空")
@ApiModelProperty(name = "eventCode", notes = "事件别名")
private String eventCode;
/**
* 浏览批次id
*/
@ApiModelProperty(name = "batchId", notes = "浏览批次id")
private String batchId;
/**
* 业务参数
*/
@ApiModelProperty(name = "businessParam", notes = "业务参数")
private String businessParam;
@ApiModelProperty(name = "businessId", notes = "业务id")
private String businessId;
}
package cn.com.glsx.scrm.clue.dto;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class BurialPointSummaryDTO implements Serializable {
@ExcelIgnore
private Integer scene;
@ExcelProperty(value = "场景")
private String sceneName;
@ExcelIgnore
private String eventCode;
@ExcelProperty(value = "模块名称")
private String eventName;
/**
* 点击次数
*/
@ExcelProperty(value = "点击次数")
private Integer clickCount;
/**
* 使用人数
*/
@ExcelProperty(value = "使用人数")
private Integer usersCount;
}
package cn.com.glsx.scrm.clue.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class BurialPointSummaryExcel implements Serializable {
@ExcelProperty(value = "场景")
private String scene;
@ExcelProperty(value = "模块名称")
private String eventName;
/**
* 点击次数
*/
@ExcelProperty(value = "点击次数")
private Integer clickCount;
/**
* 使用人数
*/
@ExcelProperty(value = "使用人数")
private Integer usersCount;
}
package cn.com.glsx.scrm.clue.dto;
import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class BurialPointSummaryParam implements Serializable {
/**
* 开始时间
*/
@ApiModelProperty(notes = "开始时间,yyyy-MM-dd HH:mm:ss")
private String startTime;
/**
* 结束时间
*/
@ApiModelProperty(notes = "结束时间,yyyy-MM-dd HH:mm:ss")
private String endTime;
/**
* 事件别名列表
*/
@ApiModelProperty(notes = "事件别名列表")
private List<String> codeList;
/**
* 业务场景,0 会员权益升级 1 精品升级 3 售后众筹 ,2次新车转化
*/
@ApiModelProperty(notes = "业务场景,0 会员权益升级 1 精品升级 3 售后众筹 ,2次新车转化")
private Integer scene;
/**
* 0-生意助手小程
* 序,1-嘀加智享
* 车生活(pC
* 端),2-车生活
* 助手C端-小程序,3-展业助手
*/
@ApiModelProperty(notes = "系统来源,0-生意助手小程序,1-嘀加智享车生活(pC端),2-车生活助手C端-小程序,3-展业助手")
private Integer systemSource;
@ApiModelProperty(notes = "动作类型,0-点击,1-滚动,2-浏览")
private Integer eventType = 0;
@ApiModelProperty(notes = "动作类型,0-点击,1-滚动,2-浏览")
private List<Integer> eventTypes = Lists.newArrayList(0);
}
package cn.com.glsx.scrm.clue.dto;
import cn.com.glsx.scrm.clue.model.ClueOrder;
import cn.com.glsx.scrm.clue.model.ClueOrderFollow;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;
@Data
@ToString
public class ClueOrderDTO extends ClueOrder {
@ApiModelProperty(name = "keyword", notes = "关键字", dataType = "String")
private String keyword;
@ApiModelProperty(name = "followTime", notes = "跟进时长", dataType = "String")
private String followTime;
@ApiModelProperty(name = "followList", notes = "跟进记录列表", dataType = "list")
private List<ClueOrderFollow> followList;
@ApiModelProperty(name = "carName", notes = "车辆名称", dataType = "String")
private String carName;
@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "appointDate", notes = "预约日期", dataType = "Date")
private Date appointDate;
@JsonFormat(pattern="HH:mm:ss",timezone = "GMT+8")
@DateTimeFormat(pattern = "HH:mm:ss")
@ApiModelProperty(name = "appointTime", notes = "预约时间", dataType = "Date")
private Date appointTime;
}
package cn.com.glsx.scrm.clue.dto;
import cn.com.glsx.scrm.clue.model.ClueOrder;
import cn.com.glsx.scrm.clue.model.ClueVehicle;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import javax.persistence.Column;
@Data
@ToString
public class ClueVehicleDTO extends ClueVehicle {
/**
* 最低指导价
*/
@ApiModelProperty(name = "guidePriceMin", notes = "最低指导价", dataType = "string")
private String guidePriceMin;
/**
* 最高指导价
*/
@ApiModelProperty(name = "guidePriceMax", notes = "最高指导价", dataType = "string")
private String guidePriceMax;
/**
* 品牌图片
*/
@ApiModelProperty(name = "logoUrl", notes = "品牌图片", dataType = "string")
private String logoUrl;
/**
* 首字母
*/
@ApiModelProperty(name = "letter", notes = "首字母", dataType = "string")
private String letter;
}
package cn.com.glsx.scrm.clue.dto;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class SceneMarketBurialPointExcel implements Serializable {
@ExcelIgnore
private Integer scene;
@ExcelProperty(value = "场景")
private String sceneName;
@ExcelProperty(value = "业务")
private String levelOneName;
@ExcelProperty(value = "子业务")
private String levelTwoName;
@ExcelProperty(value = "内容名称")
private String title;
@ExcelProperty(value = "内容ID")
private String businessId;
/**
* 点击次数
*/
@ExcelProperty(value = "点击次数")
private Integer clickCount;
@ExcelProperty(value = "AI对话对话轮次")
private Integer dialogueCount;
/**
* 使用人数
*/
@ExcelProperty(value = "使用人数")
private Integer usersCount;
}
package cn.com.glsx.scrm.clue.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
/**
* 智享车生活埋点统计DTO
* @author yangwei
* @version 1.0
* @since 2025/10/30 15:20
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class SmartCarLifeBurialPointStatisticsDTO {
@ExcelProperty(value = "一级模块", index = 0)
private String firstModule;
@ExcelProperty(value = "二级模块", index = 1)
private String secondModule;
@ExcelProperty(value = "模块名称", index = 2)
private String eventName;
@ExcelProperty(value = "点击次数", index = 3)
private Integer clickCount;
@ExcelProperty(value = "使用人数", index = 4)
private Integer usersCount;
}
package cn.com.glsx.scrm.clue.dto.collision;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CollisionAddressDTO implements Serializable {
/**
* 经纬度
*/
@ApiModelProperty(notes = "经纬度")
private Double[] lnglat;
/**
* 姓名
*/
@ApiModelProperty(notes = "name")
private String name;
/**
* 经度
*/
@ApiModelProperty(notes = "经度")
private Double x;
/**
* 纬度
*/
@ApiModelProperty(notes = "纬度")
private Double y;
/**
* 角度
*/
@ApiModelProperty(notes = "角度")
private Integer ag;
/**
* 时间
*/
@ApiModelProperty(notes = "时间")
private Long tm;
/**
* 速度
*/
@ApiModelProperty(notes = "速度")
private Integer sp;
/**
* 时间
*/
@ApiModelProperty(notes = "时间,HH:mm:ss")
private String time;
}
package cn.com.glsx.scrm.clue.dto.collision;
import cn.com.glsx.scrm.clue.enums.collision.DeviceTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import java.io.Serializable;
import java.util.Date;
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CollisionSnInfoDTO implements Serializable {
@ApiModelProperty(notes = "id")
private Integer id;
/**
* 设备号
*/
@ApiModelProperty(notes = "设备号")
private String sn;
/**
* 批次id
*/
@ApiModelProperty(notes = "批次id")
private Integer batchId;
/**
* 商户号
*/
@ApiModelProperty(notes = "商户号")
private Integer merchantId;
/**
* 商户名称
*/
@ApiModelProperty(notes = "商户名称")
private String merchantName;
/**
* 设备类型
* @see DeviceTypeEnum
*/
@ApiModelProperty(notes = "设备类型",example = "1:OBD\n" +
",2: DVD,\n" +
"3: 电子狗\n" +
",5 :TBOX(2G),\n" +
"6 行车记录仪\n" +
",7 :BBOX\n" +
",8: 追踪器\n" +
",9 :车载wifi\n" +
",12134 : 智能云镜\n" +
", 12499: AIBox\n" +
",12500: 小镜SOS记录仪,\n" +
"12501 : 智能定位车充\n" +
",12503: 数字车钥匙\n" +
",12514 :后视镜B300")
private Integer snType;
/**
* iccid
*/
@ApiModelProperty(notes = "iccid")
private String iccid;
/**
* 客户名称
*/
@ApiModelProperty(notes = "客户名称")
private String customerName;
/**
* 客户手机号
*/
@ApiModelProperty(notes = "客户手机号")
private String customerPhone;
/**
* 客户性别,0-男,1-女
*/
@ApiModelProperty(notes = "客户性别,0-男,1-女")
private Integer customerSex;
/**
* 车牌号
*/
@ApiModelProperty(notes = "车牌号")
private String licensePlate;
/**
* 车架号
*/
@ApiModelProperty(notes = "车架号")
private String standNo;
/**
* 设备安装时的初始里程
*/
@ApiModelProperty(notes = "设备安装时的初始里程")
private Long initialMileage;
/**
* 上次保养里程
*/
@ApiModelProperty(notes = "上次保养里程")
private Long lastMileage;
/**
* 上次保养时间
*/
@ApiModelProperty(notes = "上次保养时间")
private Date lastTime;
/**
* 下次保养里程
*/
@ApiModelProperty(notes = "下次保养里程")
private Long lowerMileage;
/**
* 下次保养时间
*/
@ApiModelProperty(notes = "下次保养时间")
private Date lowerTime;
/**
* 是否更换设备,0-保修更换-免费,1-维修更换,2-购买
* @see cn.com.glsx.scrm.clue.enums.collision.DeviceReplaceEnum
*/
@ApiModelProperty(notes = "是否更换设备,0-保修更换-免费,1-维修更换,2-购买")
private Integer replaceFlag;
/**
* 汽车品牌ID
*/
@ApiModelProperty(notes = "汽车品牌ID")
private Integer vehicleBrandId;
/**
* 汽车品牌
*/
@ApiModelProperty(notes = "汽车品牌")
private String vehicleBrandName;
/**
* 子品牌ID
*/
@ApiModelProperty(notes = "子品牌ID")
private Integer vehicleSubBrandId;
/**
* 子品牌名称
*/
@ApiModelProperty(notes = "子品牌名称")
private String vehicleSubBrandName;
/**
* 车系ID
*/
@ApiModelProperty(notes = "车系ID")
private Integer vehicleSeriesId;
/**
* 车系名称
*/
@ApiModelProperty(notes = "车系名称")
private String vehicleSeriesName;
/**
* 车型ID
*/
@ApiModelProperty(notes = "车型ID")
private Integer vehicleShapeId;
/**
* 车型名称
*/
@ApiModelProperty(notes = "车型名称")
private String vehicleShapeName;
/**
* 是否删除(0=正常,-1=删除)
*/
@ApiModelProperty(notes = "是否删除(0=正常,-1=删除)")
private Integer delFlag;
/**
* 创建人
*/
@ApiModelProperty(notes = "创建人")
private String createdBy;
/**
* 创建时间
*/
@ApiModelProperty(notes = "创建时间")
private Date createdTime;
/**
* 更新人
*/
@ApiModelProperty(notes = "更新人")
private String updatedBy;
/**
* 更新时间
*/
@ApiModelProperty(notes = "更新时间")
private Date updatedTime;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.dto.collision;
import cn.com.glsx.scrm.clue.enums.collision.DeviceTypeEnum;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import java.io.Serializable;
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CollisionSnInfoExportDTO implements Serializable {
/**
* 商户名称
*/
@ExcelProperty(value = "商户名称")
@ApiModelProperty(notes = "商户名称")
private String merchantName;
/**
* 商户号
*/
@ExcelProperty(value = "商户号")
@ApiModelProperty(notes = "商户号")
private Integer merchantId;
/**
* 设备类型
* @see DeviceTypeEnum
*/
@ExcelProperty(value = "设备类型")
@ApiModelProperty(notes = "设备类型",example = "1:OBD\n" +
",2: DVD,\n" +
"3: 电子狗\n" +
",5 :TBOX(2G),\n" +
"6 行车记录仪\n" +
",7 :BBOX\n" +
",8: 追踪器\n" +
",9 :车载wifi\n" +
",12134 : 智能云镜\n" +
", 12499: AIBox\n" +
",12500: 小镜SOS记录仪,\n" +
"12501 : 智能定位车充\n" +
",12503: 数字车钥匙\n" +
",12514 :后视镜B300")
private String snType;
/**
* 设备号
*/
@ExcelProperty(value = "IMEI/SN")
@ApiModelProperty(notes = "设备号")
private String sn;
/**
* iccid
*/
@ExcelProperty(value = "ICCID")
@ApiModelProperty(notes = "iccid")
private String iccid;
/**
* 客户手机号
*/
@ExcelProperty(value = "客户电话")
@ApiModelProperty(notes = "客户手机号")
private String customerPhone;
/**
* 客户名称
*/
@ExcelProperty(value = "客户姓名")
@ApiModelProperty(notes = "客户名称")
private String customerName;
/**
* 客户性别,0-男,1-女
*/
@ExcelProperty(value = "性别")
@ApiModelProperty(notes = "客户性别,0-男,1-女")
private String customerSex;
/**
* 车牌号
*/
@ExcelProperty(value = "车牌号")
@ApiModelProperty(notes = "车牌号")
private String licensePlate;
/**
* 车架号
*/
@ExcelProperty(value = "车架号")
@ApiModelProperty(notes = "车架号")
private String standNo;
@ExcelProperty(value = "车型")
@ApiModelProperty(notes = "车型名称")
private String vehicleShapeName;
/**
* 设备安装时的初始里程
*/
@ExcelProperty(value = "设备安装时的初始里程")
@ApiModelProperty(notes = "设备安装时的初始里程")
private Long initialMileage;
/**
* 上次保养里程
*/
@ExcelProperty(value = "上次保养里程")
@ApiModelProperty(notes = "上次保养里程")
private Long lastMileage;
/**
* 上次保养时间
*/
@ExcelProperty(value = "上次保养时间")
@ApiModelProperty(notes = "上次保养时间")
private String lastTime;
/**
* 下次保养里程
*/
@ExcelProperty(value = "下次保养里程")
@ApiModelProperty(notes = "下次保养里程")
private Long lowerMileage;
/**
* 下次保养时间
*/
@ExcelProperty(value = "下次保养时间")
@ApiModelProperty(notes = "下次保养时间")
private String lowerTime;
/**
* 是否更换设备,0-保修更换-免费,1-维修更换,2-购买
* @see cn.com.glsx.scrm.clue.enums.collision.DeviceReplaceEnum
*/
@ExcelProperty(value = "是否更换设备")
@ApiModelProperty(notes = "是否更换设备,0-保修更换-免费,1-维修更换,2-购买")
private String replaceFlag;
/**
* 更新时间
*/
@ExcelProperty(value = "操作时间")
@ApiModelProperty(notes = "更新时间")
private String updatedTime;
/**
* 更新人
*/
@ExcelProperty(value = "操作人")
@ApiModelProperty(notes = "更新人")
private String updatedBy;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.enums;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.List;
/**
* 埋点事件编码
* @author yangwei
* @version 1.0
* @since 2025/10/30 13:48
*/
@Getter
@AllArgsConstructor
public enum BurialPointEventCode {
ACTIVITY_MANAGEMENT_IMPORT("activity_management_export", "内容管理-活动管理-获奖名单导出", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
ACTIVITY_MANAGEMENT_DETAIL("activity_management_detail", "内容管理-活动管理-查看", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
ACTIVITY_MANAGEMENT_DEL("activity_management_del", "内容管理-活动管理-删除", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
ACTIVITY_MANAGEMENT_EDIT("activity_management_edit", "内容管理-活动管理-编辑", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
ACTIVITY_MANAGEMENT("activity_management", "内容管理-活动管理-页面浏览", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
FAILURE_TO_REPORT_RECEPTION("failure_to_report_reception", "预警管理-接待缺失报审核-页面浏览", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
FAILURE_TO_REPORT_RECEPTION_AUDIT("failure_to_report_reception_audit", "预警管理-接待缺失报审核-审核", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
FAILURE_TO_REPORT_RECEPTION_REJECT("failure_to_report_reception_reject", "预警管理-接待缺失报审核-重新审核", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
FAILURE_TO_REPORT_RECEPTION_PASS("failure_to_report_reception_pass", "预警管理-接待缺失报审核-批量通过", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
FAILURE_TO_REPORT_RECEPTION_ALL_REJECT("failure_to_report_reception_all_reject", "预警管理-接待缺失报审核-批量驳回", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
FAILURE_TO_REPORT_RECEPTION_ALL_EXPORT("failure_to_report_reception_export", "预警管理-接待缺失报审核-导出", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1), true),
MINI_PAD_MISSING_RECEPTION("mini_pad_missing_reception", "小程序-平板接待缺失报备", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_2), true),
MINI_ADD_PAD_MISSING_RECEPTION("mini_add_pad_missing_reception", "小程序-提交平板接待缺失报备", Lists.newArrayList(BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_2), true),
;
/** 埋点事件编码 */
private final String code;
/** 简单描述 */
private final String desc;
/** 埋点事件分组,用于判断那些代码需要进行查询 */
private final List<BurialPointEventCodeGroup> burialPointEventCodeGroups;
/** 是否启用 */
private final Boolean enable;
}
package cn.com.glsx.scrm.clue.enums;
/**
* 同一个服务,可能会生成多个文件,为后期维护性给 EventCode 设置分组
* @see BurialPointEventCode
* @author yangwei
* @version 1.0
* @since 2025/10/30 14:36
*/
public enum BurialPointEventCodeGroup {
DJ_SMART_CAR_LIFE_1, DJ_SMART_CAR_LIFE_2;
}
package cn.com.glsx.scrm.clue.enums;
import cn.com.glsx.framework.core.enums.BaseEnum;
/**
* 埋点动作类型枚举
*/
public enum BurialPointEventTypeEnum implements BaseEnum<BurialPointEventTypeEnum, Integer> {
CLICK(0, "点击"),
ROLL(1, "滚动"),
BROWSE(2, "浏览")
;
private final String text;
private final Integer value;
BurialPointEventTypeEnum(Integer value, String text) {
this.value = value;
this.text = text;
}
@Override
public Integer getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.text;
}
}
package cn.com.glsx.scrm.clue.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 埋点统计周期
* @author yangwei
* @version 1.0
* @since 2025/10/30 14:22
*/
@Getter
@AllArgsConstructor
public enum BurialPointStatisticsCycle {
LAST_WEEK,
LAST_MONTH,
LAST_QUARTER,
LAST_HALF_YEAR,
LAST_YEAR
}
package cn.com.glsx.scrm.clue.enums;
import cn.com.glsx.scrm.clue.dto.BurialPointSummaryDTO;
import cn.com.glsx.scrm.clue.dto.BurialPointSummaryParam;
import java.util.List;
import java.util.Map;
/**
* 埋点统计接口
* @author yangwei
* @version 1.0
* @since 2025/10/30 16:18
*/
public interface BurialPointStatisticsInter {
/**
* 获取埋点统计数据
* @param param 参数
* @return 数据
*/
List<? extends BurialPointSummaryDTO> fetch(BurialPointSummaryParam param);
/**
* 转换数据
* @param sourceList 数据源
* @param eventCodeMap 事件代码
* @return 转换后的数据
*/
List<?> convert(List<? extends BurialPointSummaryDTO> sourceList, Map<String, String> eventCodeMap);
}
package cn.com.glsx.scrm.clue.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 埋点系统来源
* @author yangwei
* @version 1.0
* @since 2025/10/30 14:02
*/
@Getter
@AllArgsConstructor
public enum BurialPointSystemSource {
BUSINESS_ASSISTANT("生意助手小程序", 0),
CAR_LIFE("嘀加智享车生活(pc端)", 1),
CAR_LIFE_APP("车生活助手C端-小程序", 2),
EXHIBITION_ASSISTANT("展业助手", 3),
MODEL("大模型", 4),
;
private final String source;
private final Integer code;
}
package cn.com.glsx.scrm.clue.enums;
import cn.com.glsx.framework.core.enums.BaseEnum;
public enum ClueChannelTypeEnum implements BaseEnum<ClueChannelTypeEnum, String> {
DJ("DJ","嘀加"),
GH("GH","广汇")
;
private final String text;
private final String value;
ClueChannelTypeEnum(String value, String text){
this.value = value;
this.text = text;
}
@Override
public String getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.text;
}
}
package cn.com.glsx.scrm.clue.enums;
import cn.com.glsx.framework.core.enums.BaseEnum;
public enum ClueFollowTypeEnum implements BaseEnum<ClueFollowTypeEnum, String> {
FOLLOW_RECORD("0","新增跟进记录"),
FOLLOW_SUCCESS("1","跟进完成")
;
private final String text;
private final String value;
ClueFollowTypeEnum(String value, String text){
this.value = value;
this.text = text;
}
@Override
public String getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.text;
}
}
package cn.com.glsx.scrm.clue.enums;
import cn.com.glsx.framework.core.enums.BaseEnum;
public enum ClueStaffTypeEnum implements BaseEnum<ClueStaffTypeEnum, String> {
BEFORE("1","售前专员"),
AFTER("2","售后专员"),
;
private final String text;
private final String value;
ClueStaffTypeEnum(String value, String text){
this.value = value;
this.text = text;
}
@Override
public String getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.text;
}
}
package cn.com.glsx.scrm.clue.enums;
import cn.com.glsx.framework.core.enums.BaseEnum;
public enum ClueStatusEnum implements BaseEnum<ClueStatusEnum, String> {
WAIT_DEALING("0","待跟进"),
DEALING("1","跟进中"),
SUCCESS("2","已完成")
;
private final String text;
private final String value;
ClueStatusEnum(String value, String text){
this.value = value;
this.text = text;
}
@Override
public String getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.text;
}
}
package cn.com.glsx.scrm.clue.enums;
import cn.com.glsx.framework.core.enums.BaseEnum;
public enum ClueTypeEnum implements BaseEnum<ClueTypeEnum, String> {
COMPLAINT("1","客户意见"),
USER_CAR("2","卖车询价"),
RESCUE("3","救援服务"),
NEW_CAR("4","新车询价"),
DRIVE("5","试驾预约"),
MAINTAIN("6","维保预约")
;
private final String text;
private final String value;
ClueTypeEnum(String value, String text){
this.value = value;
this.text = text;
}
@Override
public String getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.text;
}
}
package cn.com.glsx.scrm.clue.enums;
import cn.com.glsx.framework.core.enums.BaseEnum;
public enum ClueVehicleStatusEnum implements BaseEnum<ClueVehicleStatusEnum, String> {
OFFLINE("0","下架"),
ONLINE("1","上家")
;
private final String text;
private final String value;
ClueVehicleStatusEnum(String value, String text){
this.value = value;
this.text = text;
}
@Override
public String getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.text;
}
}
package cn.com.glsx.scrm.clue.enums.collision;
import cn.com.glsx.framework.core.enums.BaseEnum;
public enum CollisionEventTypeEnum implements BaseEnum<CollisionEventTypeEnum, String> {
/**
* 紧急求助
*/
SOS("SOS", "紧急求助"),
/**
* 碰撞
*/
COLLIDE("COLLIDE", "碰撞"),
/**
* 震动
*/
VIBRATION("VIBRATION", "震动"),
// 客户自提
CUSTOMER_SUBMIT("CUSTOMER_SUBMIT", "客户自提");
private String value;
private String displayName;
private CollisionEventTypeEnum(String value, String displayName){
this.value = value;
this.displayName = displayName;
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
public static CollisionEventTypeEnum getByValue(String value){
if(null == value){
return null;
}
for(CollisionEventTypeEnum e: CollisionEventTypeEnum.values()){
if(e.getValue().equals(value)){
return e;
}
}
return null;
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.scrm.clue.enums.collision;
import cn.com.glsx.framework.core.enums.BaseEnum;
import java.util.HashMap;
import java.util.Map;
/**
* 碰撞线索-媒体消息类型枚举
*/
public enum CollisionMediaTypeEnum implements BaseEnum<CollisionMediaTypeEnum, String> {
/**
* 图片
*/
IMAGE("IMAGE", "图片", 1),
/**
* 视频
*/
VIDEO("VIDEO", "视频", 2);
private String value;
private String displayName;
private Integer code;
private static Map<Integer, String> codeMap = new HashMap<Integer, String>(2);
static{
for(CollisionMediaTypeEnum e:CollisionMediaTypeEnum.values()){
codeMap.put(e.getCode(), e.getValue());
}
}
private CollisionMediaTypeEnum(String value, String displayName, Integer code){
this.value = value;
this.displayName = displayName;
this.code = code;
}
@Override
public String getValue() {
return value;
}
@Override
public String getDisplayName() {
return displayName;
}
public Integer getCode(){
return code;
}
public static String getValueByCode(Integer code){
return codeMap.get(code);
}
@Override
public String toString() {
return this.name().concat("[value:").concat(getValue()).concat(", displayName:").concat(getDisplayName()).concat("]");
}
}
package cn.com.glsx.scrm.clue.enums.collision;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.util.StringUtils;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Optional;
/**
* @Author yelq
* @Version 1.0
* @Description: 是否更换设备:支持填写“保修更换-免费”、“维修更换”、“购买”
* @Date 2023/10/11 18:12
*/
@Getter
@AllArgsConstructor
public enum DeviceReplaceEnum implements Serializable {
REPLACE_FREE(0, "保修更换-免费"),
MAINTENANCE_REPLACE(1, "维修更换"),
BUY(2, "购买");
private final Integer code;
private final String displayName;
public static Integer getCodeByDisplayName(String displayName) {
if (StringUtils.isEmpty(displayName)) return null;
Optional<DeviceReplaceEnum> first = Arrays.stream(DeviceReplaceEnum.values()).filter(s -> s.displayName.equals(displayName)).findFirst();
return first.map(deviceReplaceEnum -> deviceReplaceEnum.code).orElse(null);
}
public static String getDisplayNameByCode(Integer code) {
if (StringUtils.isEmpty(code)) return null;
Optional<DeviceReplaceEnum> first = Arrays.stream(DeviceReplaceEnum.values()).filter(s -> s.code.equals(code)).findFirst();
return first.map(deviceReplaceEnum -> deviceReplaceEnum.displayName).orElse(null);
}
}
package cn.com.glsx.scrm.clue.enums.collision;
import cn.com.glsx.framework.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Objects;
/**
* @Author yelq
* @Version 1.0
* @Description: 设备类型
* @Date 2023/10/11 17:04
*/
@Getter
@AllArgsConstructor
public enum DeviceTypeEnum implements BaseEnum<DeviceTypeEnum,Integer> {
OBD(1, "OBD"),
DVD(2, "DVD"),
ELECTRONIC_DOG(3, "电子狗"),
TBOX_2G(5, "TBOX(2G)"),
DRIVING_RECORDER(6, "行车记录仪"),
BBOX(7, "BBOX"),
TRACKER(8, "追踪器"),
CAR_WIFI(9, "车载WiFi"),
SMART_MIRROR(12134, "智能云镜"),
AIBOX(12499, "AIBox"),
SMALL_MIRROR_SOS_RECORDER(12500, "小镜SOS记录仪"),
SMART_POSITION_CAR_CHARGER(12501, "智能定位车充"),
DIGITAL_CAR_KEY(12503, "数字车钥匙"),
REARVIEW_MIRROR_B300(12514, "后视镜B300");
private final int value;
private final String displayName;
@Override
public Integer getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.displayName;
}
public static DeviceTypeEnum getEnumByValue(Integer value) {
DeviceTypeEnum[] var1 = values();
int var2 = var1.length;
for(int var3 = 0; var3 < var2; ++var3) {
DeviceTypeEnum activityParameterTypeEnum = var1[var3];
if (Objects.equals(value, activityParameterTypeEnum.getValue())) {
return activityParameterTypeEnum;
}
}
return null;
}
public static String getEnumDisplayByValue(Integer value) {
DeviceTypeEnum[] var1 = values();
int var2 = var1.length;
for(int var3 = 0; var3 < var2; ++var3) {
DeviceTypeEnum activityParameterTypeEnum = var1[var3];
if (Objects.equals(value, activityParameterTypeEnum.getValue())) {
return activityParameterTypeEnum.getDisplayName();
}
}
return null;
}
}
package cn.com.glsx.scrm.clue.enums.collision;
import cn.com.glsx.framework.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Objects;
/**
* 碰撞线索-回访结果
*/
@AllArgsConstructor
@Getter
public enum FollowResultEnum implements BaseEnum<FollowResultEnum,Integer> {
REAL_ACCIDENT(0, "真实事故"),
UNREAL_ACCIDENT(1, "非真实事故"),
UNABLE_TO_HANDLE(2, "无法处理");
private final int value;
private final String displayName;
@Override
public Integer getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.displayName;
}
public static String getEnumDisplayByValue(Integer value) {
FollowResultEnum[] var1 = values();
int var2 = var1.length;
for(int var3 = 0; var3 < var2; ++var3) {
FollowResultEnum activityParameterTypeEnum = var1[var3];
if (Objects.equals(value, activityParameterTypeEnum.getValue())) {
return activityParameterTypeEnum.getDisplayName();
}
}
return null;
}
}
package cn.com.glsx.scrm.clue.enums.collision;
import cn.com.glsx.framework.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Objects;
/**
* 碰撞线索-回访状态枚举
*/
@AllArgsConstructor
@Getter
public enum FollowStatusEnum implements BaseEnum<FollowStatusEnum,Integer> {
NO_FOLLOW(0, "未回访"),
ALREADY_FOLLOW(1, "已回访");
private final int value;
private final String displayName;
@Override
public Integer getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.displayName;
}
public static String getEnumDisplayByValue(Integer value) {
FollowStatusEnum[] var1 = values();
int var2 = var1.length;
for(int var3 = 0; var3 < var2; ++var3) {
FollowStatusEnum activityParameterTypeEnum = var1[var3];
if (Objects.equals(value, activityParameterTypeEnum.getValue())) {
return activityParameterTypeEnum.getDisplayName();
}
}
return null;
}
}
package cn.com.glsx.scrm.clue.enums.collision;
import cn.com.glsx.framework.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Objects;
/**
* 碰撞线索-推送配置类型枚举
*/
@AllArgsConstructor
@Getter
public enum PushConfigTypeEnum implements BaseEnum<PushConfigTypeEnum,Integer> {
MERCHANT(0, "门店提醒"),
CUSTOMER(1, "车主提醒");
private final int value;
private final String displayName;
@Override
public Integer getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.displayName;
}
public static String getEnumDisplayByValue(Integer value) {
PushConfigTypeEnum[] var1 = values();
int var2 = var1.length;
for(int var3 = 0; var3 < var2; ++var3) {
PushConfigTypeEnum activityParameterTypeEnum = var1[var3];
if (Objects.equals(value, activityParameterTypeEnum.getValue())) {
return activityParameterTypeEnum.getDisplayName();
}
}
return null;
}
}
package cn.com.glsx.scrm.clue.enums.collision;
import cn.com.glsx.framework.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Objects;
/**
* 碰撞线索-推送提醒开关枚举
*/
@AllArgsConstructor
@Getter
public enum PushFlagEnum implements BaseEnum<PushFlagEnum,Integer> {
OFF(0, "关"),
ON(1, "开");
private final int value;
private final String displayName;
@Override
public Integer getValue() {
return this.value;
}
@Override
public String getDisplayName() {
return this.displayName;
}
public static String getEnumDisplayByValue(Integer value) {
PushFlagEnum[] var1 = values();
int var2 = var1.length;
for(int var3 = 0; var3 < var2; ++var3) {
PushFlagEnum activityParameterTypeEnum = var1[var3];
if (Objects.equals(value, activityParameterTypeEnum.getValue())) {
return activityParameterTypeEnum.getDisplayName();
}
}
return null;
}
}
package cn.com.glsx.scrm.clue.enums.exception;
import cn.com.glsx.framework.core.enums.ErrorEnum;
public enum ClueExceptionEnum implements ErrorEnum{
IMPORT_FILE_HEAD_ERR("21100001","导入的格式错误,请检查后重试!"),
FIND_MERCHANT_EXCEPTION("21100002", "查询商户异常!"),
URL_NULL_ERR("2110003","上传文件为空!"),
FILE_SERVER_LOAD_ERR("2110004","文件服务器返回数据为空!"),
UPLOAD_EXCEL_ERR("2110005","模板类型不匹配,请上传.xls/.xlsx文件。"),
QUERY_MERCHANT_NAME_ERR("211006","门店名称查询失败!"),
;
public String getDescrible() {
return describle;
}
public void setDescrible(String describle) {
this.describle = describle;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
private String describle;
private String code;
private ClueExceptionEnum(String code, String describle){
this.describle = describle;
this.code = code;
}
@Override
public String getValue() {
return code;
}
@Override
public String getDisplayName() {
return describle;
}
}
package cn.com.glsx.scrm.clue.model;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
@Data
@Table(name = "clue_burial_point_event_info")
public class BurialPointEventInfo implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 事件编码
*/
@Column(name = "event_code")
private String eventCode;
/**
* 事件名称
*/
@Column(name = "event_name")
private String eventName;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import javax.persistence.*;
@Data
@Table(name = "clue_burial_point_record")
public class BurialPointRecord {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 登录账号名称
*/
@Column(name = "login_account")
private String loginAccount;
/**
* 账号类型
*/
@Column(name = "user_type")
private Integer userType;
/**
* 账号uuid
*/
@Column(name = "uuid")
private String uuid;
/**
* 系统来源
,0-小程序,1-pc端
*/
@Column(name = "system_source")
private Integer systemSource;
@Column(name = "scene")
private Integer scene;
@Column(name = "phone_number")
private String phoneNumber;
/**
* 游客ID
,预留字段
*/
@Column(name = "visitor_id")
private String visitorId;
/**
* 触发时间
*/
@Column(name = "event_time")
private Date eventTime;
/**
* 动作类型
,0-点击,1-滚动,2-浏览
*/
@Column(name = "event_type")
private Integer eventType;
/**
* 上一级页面路径
*/
@Column(name = "pre_page_path")
private String prePagePath;
/**
* 当前页面路径
*/
@Column(name = "page_path")
private String pagePath;
/**
* 事件别名
*/
@Column(name = "event_code")
private String eventCode;
/**
* 浏览批次id
*/
@Column(name = "batch_id")
private String batchId;
/**
* 创建时间
*/
@Column(name = "created_time")
private Date createdTime;
/**
* 删除标示:D 已删除;N 未删除
*/
@Column(name = "deleted_flag")
private String deletedFlag;
/**
* 业务参数
*/
@Column(name = "business_param")
private String businessParam;
@Column(name = "business_id")
private String businessId;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Table(name = "clue_order")
@Data
@ToString
public class ClueOrder implements Serializable {
private static final long serialVersionUID = -8778857964427278664L;
/**
* ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(name = "keyword", notes = "关键字", dataType = "String")
private Integer id;
/**
* 线索类型(1:客户意见,2:卖车询价,3:救援服务,4:新车询价,5:试驾预约,6:维保)
*/
@ApiModelProperty(name = "type", notes = "线索类型(1:客户意见,2:卖车询价,3:救援服务,4:新车询价,5:试驾预约,6:维保)", dataType = "String")
private String type;
/**
* 预约类型(1:保养,2:维修,3:快喷)
*/
@Column(name = "appointment_type")
@ApiModelProperty(name = "appointmentType", notes = "预约类型(1:保养,2:维修,3:快喷)", dataType = "String")
private String appointmentType;
/**
* 渠道(GH:广汇,DJ:嘀加)
*/
@Column(name = "channel_type")
@ApiModelProperty(name = "channelType", notes = "渠道(GH:广汇,DJ:嘀加)", dataType = "String")
private String channelType;
/**
* 单号
*/
@Column(name = "order_no")
@ApiModelProperty(name = "orderNo", notes = "单号", dataType = "String")
private String orderNo;
/**
* 门店ID
*/
@Column(name = "merchant_id")
@ApiModelProperty(name = "merchantId", notes = "门店ID", dataType = "String")
private Integer merchantId;
/**
* 门店名称
*/
@Column(name = "merchant_name")
@ApiModelProperty(name = "merchantName", notes = "门店名称", dataType = "String")
private String merchantName;
/**
* 门店联系方式
*/
@Column(name = "merchant_phone")
@ApiModelProperty(name = "merchantPhone", notes = "门店联系方式", dataType = "String")
private String merchantPhone;
/**
* 车牌号
*/
@Column(name = "plate_num")
@ApiModelProperty(name = "plateNum", notes = "车牌号", dataType = "String")
private String plateNum;
/**
* 内容
*/
@ApiModelProperty(name = "comment", notes = "内容", dataType = "String")
private String comment;
/**
* 反馈图片
*/
@Column(name = "feedback_img_url")
@ApiModelProperty(name = "feedbackImgUrl", notes = "反馈图片", dataType = "String")
private String feedbackImgUrl;
/**
* 客户名称
*/
@ApiModelProperty(name = "name", notes = "客户名称", dataType = "String")
private String name;
/**
* 客户联系方式
*/
@ApiModelProperty(name = "phone", notes = "客户联系方式", dataType = "String")
private String phone;
/**
* 上牌日期
*/
@Column(name = "plate_date")
@ApiModelProperty(name = "plateDate", notes = "上牌日期", dataType = "String")
private Date plateDate;
/**
* 公里数
*/
@ApiModelProperty(name = "mileage", notes = "公里数", dataType = "String")
private String mileage;
/**
* 救援时间
*/
@Column(name = "rescue_date")
@ApiModelProperty(name = "rescueDate", notes = "救援时间", dataType = "String")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date rescueDate;
/**
* 救援地点
*/
@Column(name = "rescue_address")
@ApiModelProperty(name = "rescueAddress", notes = "救援地点", dataType = "String")
private String rescueAddress;
/**
* 预约时间
*/
@Column(name = "appointment_date")
@ApiModelProperty(name = "appointmentDate", notes = "预约时间", dataType = "date")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date appointmentDate;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_date")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createdDate;
/**
* 修改人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 修改时间
*/
@Column(name = "updated_date")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatedDate;
/**
* 删除标示:D 已删除;N 未删除[默认]
*/
@Column(name = "deleted_flag")
private String deletedFlag;
@Column(name = "account_id")
@ApiModelProperty(name = "accountId", notes = "用户编号", dataType = "String")
private Integer accountId;
@Column(name = "user_id")
@ApiModelProperty(name = "userId", notes = "跟进员工ID", dataType = "String")
private String userId;
/**
* 跟进员工姓名
*/
@Column(name = "user_name")
@ApiModelProperty(name = "userName", notes = "跟进员工姓名", dataType = "String")
private String userName;
/**
* 跟进状态(1:跟进中,2:已完成)
*/
@ApiModelProperty(name = "status", notes = "跟进状态(0:待跟进,1:跟进中,2:已完成/0,1:受理中,2:已完成)", dataType = "String")
private String status;
/**
* 汽车品牌ID
*/
@Column(name = "vehicle_brand_id")
@ApiModelProperty(name = "vehicleBrandId", notes = "汽车品牌ID", dataType = "String")
private Integer vehicleBrandId;
/**
* 汽车品牌
*/
@Column(name = "vehicle_brand_name")
@ApiModelProperty(name = "vehicleBrandName", notes = "汽车品牌", dataType = "String")
private String vehicleBrandName;
/**
* 子品牌ID
*/
@Column(name = "vehicle_sub_brand_id")
@ApiModelProperty(name = "vehicleSubBrandId", notes = "子品牌ID", dataType = "int")
private Integer vehicleSubBrandId;
/**
* 子品牌名称
*/
@Column(name = "vehicle_sub_brand_name")
@ApiModelProperty(name = "vehicleSubBrandName", notes = "子品牌名称", dataType = "String")
private String vehicleSubBrandName;
/**
* 车系ID
*/
@Column(name = "vehicle_series_id")
@ApiModelProperty(name = "vehicleSeriesId", notes = "车系ID", dataType = "int")
private Integer vehicleSeriesId;
/**
* 车系名称
*/
@Column(name = "vehicle_series_name")
@ApiModelProperty(name = "vehicleSeriesName", notes = "车系名称", dataType = "String")
private String vehicleSeriesName;
/**
* 车型ID
*/
@Column(name = "vehicle_shape_id")
@ApiModelProperty(name = "vehicleShapeId", notes = "车型ID", dataType = "int")
private Integer vehicleShapeId;
/**
* 车型名称
*/
@Column(name = "vehicle_shape_name")
@ApiModelProperty(name = "vehicleShapeName", notes = "车型名称", dataType = "String")
private String vehicleShapeName;
/**
* 车型名称
*/
@Column(name = "rescue_type")
@ApiModelProperty(name = "rescueType", notes = "救援类型(0:紧急脱困,1:拖车,2:换胎,3:送油,4:搭电,5:事故救援)", dataType = "String")
private String rescueType;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Table(name = "clue_order_follow")
@Data
@ToString
public class ClueOrderFollow implements Serializable {
private static final long serialVersionUID = -8778857964427278664L;
/**
* 主键ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 门店ID
*/
@Column(name = "merchant_id")
private Integer merchantId;
/**
* 线索订单id
*/
@Column(name = "order_id")
private Integer orderId;
/**
* 跟进内容
*/
private String remark;
/**
* 跟进员工id
*/
@Column(name = "user_id")
private String userId;
/**
* 跟进员工姓名
*/
@Column(name = "user_name")
private String userName;
/**
* 提交时间
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Column(name = "follow_date")
private Date followDate;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_date")
private Date createdDate;
/**
* 修改人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 修改时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标示:D 已删除;N 未删除[默认]
*/
@Column(name = "deleted_flag")
private String deletedFlag;
/**
* 跟进内容
*/
private String type;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.model;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Data
@ToString
@Table(name = "clue_staff")
public class ClueStaff implements Serializable {
private static final long serialVersionUID = 4553654578595876723L;
/**
* 优惠券ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 门店ID
*/
@Column(name = "merchant_id")
private Integer merchantId;
/**
* 专员类型(1:售前,2:售后)
*/
private String type;
/**
* 跟进员工id
*/
@Column(name = "user_id")
private String userId;
/**
* 跟进员工uuid
*/
@Column(name = "user_uuid")
private String userUuid;
/**
* 跟进员工姓名
*/
@Column(name = "user_name")
private String userName;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_date")
private Date createdDate;
/**
* 修改人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 修改时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标示:D 已删除;N 未删除[默认]
*/
@Column(name = "deleted_flag")
private String deletedFlag;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.model;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Table(name = "clue_vehicle")
@Data
@ToString
public class ClueVehicle implements Serializable {
private static final long serialVersionUID = -8778857964427278664L;
/**
* ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 门店ID
*/
@Column(name = "merchant_id")
private Integer merchantId;
/**
* 汽车品牌ID
*/
@Column(name = "vehicle_brand_id")
private Integer vehicleBrandId;
/**
* 汽车品牌
*/
@Column(name = "vehicle_brand_name")
private String vehicleBrandName;
/**
* 子品牌ID
*/
@Column(name = "vehicle_sub_brand_id")
private Integer vehicleSubBrandId;
/**
* 子品牌名称
*/
@Column(name = "vehicle_sub_brand_name")
private String vehicleSubBrandName;
/**
* 车系ID
*/
@Column(name = "vehicle_series_id")
private Integer vehicleSeriesId;
/**
* 车系名称
*/
@Column(name = "vehicle_series_name")
private String vehicleSeriesName;
/**
* 车型ID
*/
@Column(name = "vehicle_shape_id")
private Integer vehicleShapeId;
/**
* 车型名称
*/
@Column(name = "vehicle_shape_name")
private String vehicleShapeName;
/**
* 指导价
*/
@Column(name = "guide_price")
private String guidePrice;
/**
* 车辆图片
*/
@Column(name = "show_image_url")
private String showImageUrl;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_date")
private Date createdDate;
/**
* 修改人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 修改时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 删除标示:D 已删除;N 未删除[默认]
*/
@Column(name = "deleted_flag")
private String deletedFlag;
/**
* 状态(0:下架,1:上架)
*/
@Column(name = "status")
private String status;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.model;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @author zhouhaibao
* @version 1.0
* @description: 登录信息
* @date 2021/7/16 16:50
*/
@Data
public class DefaultRequest implements Serializable {
/**
* 创建者
*/
private Integer createdBy;
/**
* 创建人
*/
private String createdAccount;
/**
* 系统来源
*/
private String source;
/**
* 商户号
*/
private Integer merchantId;
/**
* 当前账号数据权限
*/
private List<Integer> datalist;
/**
* ip
*/
private String ip;
private String entmicroId;
private String uuid;
/**
* 登录用户类型
*/
private Integer userType;
}
package cn.com.glsx.scrm.clue.model.request.collision;
import cn.com.glsx.scrm.clue.model.DefaultRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* 碰撞线索-查询条件
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CollisionInfoSearchRpcRequest extends DefaultRequest {
@ApiModelProperty(notes = "运营版调用:true,非运营版: false", name = "operate")
private boolean operate;
@NotNull
@ApiModelProperty(notes = "分页数", name = "pageSize", required = true)
private Integer pageSize;
@NotNull
@ApiModelProperty(notes = "当前页", name = "pageNum", required = true)
private Integer pageNum;
private Integer id;
@ApiModelProperty(notes = "设备号",name = "sn")
private String sn;
@ApiModelProperty(notes = "商户名称",name = "merchantName")
private String merchantName;
@ApiModelProperty(notes = "商户号",name = "merchantNo")
private Integer merchantNo;
@ApiModelProperty(notes = "设备类型,1:OBD\n" +
",2: DVD,\n" +
"3: 电子狗\n" +
",5 :TBOX(2G),\n" +
"6 行车记录仪\n" +
",7 :BBOX\n" +
",8: 追踪器\n" +
",9 :车载wifi\n" +
",12134 : 智能云镜\n" +
", 12499: AIBox\n" +
",12500: 小镜SOS记录仪,\n" +
"12501 : 智能定位车充\n" +
",12503: 数字车钥匙\n" +
",12514 :后视镜B300",name = "snType")
private Integer snType;
@ApiModelProperty(notes = "回访状态,0-未回访,1-已回访",name = "followStatus")
private Integer followStatus;
@ApiModelProperty(notes = "跟进起始时间",name = "beginFollowTime")
private Date beginFollowTime;
@ApiModelProperty(notes = "跟进结束时间",name = "endFollowTime")
private Date endFollowTime;
@ApiModelProperty(notes = "碰撞开始时间",name = "beginFollowTime")
private Date beginCollisionTime;
@ApiModelProperty(notes = "碰撞结束时间",name = "endFollowTime")
private Date endCollisionTime;
@ApiModelProperty(notes = "跟进结果,0-真实事故,1-非真实事故,2-无法处理",name = "followResult")
private Integer followResult;
@ApiModelProperty(notes = "客户手机号",name = "customerPhone")
private String customerPhone;
@ApiModelProperty(notes = "客户名称",name = "customerName")
private String customerName;
@ApiModelProperty(notes = "车牌号",name = "licensePlate")
private String licensePlate;
@ApiModelProperty(notes = "车架号",name = "standNo")
private String standNo;
}
package cn.com.glsx.scrm.clue.model.request.collision;
import cn.com.glsx.scrm.clue.model.DefaultRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class CollisionPushConfigRpcRequest extends DefaultRequest {
@ApiModelProperty(notes = "推送开关,0-关,1-开", name = "pushFlag", required = true)
private Integer pushFlag;
@ApiModelProperty(notes = "推送开始时间,格式:HH:mm", name = "startTime", required = true)
private String startTime;
@ApiModelProperty(notes = "推送结束时间, 格式:HH:mm", name = "endTime", required = true)
private String endTime;
@ApiModelProperty(notes = " 配置类型,0-门店提醒,1-车主提醒", name = "configType", required = true)
private Integer configType;
@ApiModelProperty(notes = "顾问电话,多个用逗号分割", name = "pushPhones", required = true)
private String pushPhones;
@ApiModelProperty(notes = "营销卖点", name = "pushContent")
private String pushContent;
}
package cn.com.glsx.scrm.clue.model.request.collision;
import cn.com.glsx.scrm.clue.model.DefaultRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CollisionSnInfoEditRpcRequest extends DefaultRequest {
@ApiModelProperty(notes = "id")
private Integer id;
// /**
// * 设备号
// */
// @ApiModelProperty(notes = "设备号")
// private String sn;
// /**
// * 批次id
// */
// @ApiModelProperty(notes = "批次id")
// private Integer batchId;
// /**
// * 商户号
// */
// @ApiModelProperty(notes = "商户号")
// private Integer merchantId;
// /**
// * 商户名称
// */
// @ApiModelProperty(notes = "商户名称")
// private String merchantName;
/**
* 设备类型
* @see DeviceTypeEnum
*/
// @ApiModelProperty(notes = "设备类型",example = "1:OBD\n" +
// ",2: DVD,\n" +
// "3: 电子狗\n" +
// ",5 :TBOX(2G),\n" +
// "6 行车记录仪\n" +
// ",7 :BBOX\n" +
// ",8: 追踪器\n" +
// ",9 :车载wifi\n" +
// ",12134 : 智能云镜\n" +
// ", 12499: AIBox\n" +
// ",12500: 小镜SOS记录仪,\n" +
// "12501 : 智能定位车充\n" +
// ",12503: 数字车钥匙\n" +
// ",12514 :后视镜B300")
// private Integer snType;
// /**
// * iccid
// */
// @ApiModelProperty(notes = "iccid")
// private String iccid;
/**
* 客户名称
*/
@ApiModelProperty(notes = "客户名称")
private String customerName;
/**
* 客户手机号
*/
@ApiModelProperty(notes = "客户手机号")
private String customerPhone;
/**
* 客户性别,0-男,1-女
*/
@ApiModelProperty(notes = "客户性别,0-男,1-女")
private Integer customerSex;
/**
* 车牌号
*/
@ApiModelProperty(notes = "车牌号")
private String licensePlate;
/**
* 车架号
*/
@ApiModelProperty(notes = "车架号")
private String standNo;
// /**
// * 设备安装时的初始里程
// */
// @ApiModelProperty(notes = "设备安装时的初始里程")
// private Long initialMileage;
//
// /**
// * 上次保养里程
// */
// @ApiModelProperty(notes = "上次保养里程")
// private Long lastMileage;
//
// /**
// * 上次保养时间
// */
// @ApiModelProperty(notes = "上次保养时间")
// private Date lastTime;
//
// /**
// * 下次保养里程
// */
// @ApiModelProperty(notes = "下次保养里程")
// private Long lowerMileage;
//
// /**
// * 下次保养时间
// */
// @ApiModelProperty(notes = "下次保养时间")
// private Date lowerTime;
/**
* 是否更换设备,0-保修更换-免费,1-维修更换,2-购买
* @see cn.com.glsx.scrm.clue.enums.collision.DeviceReplaceEnum
*/
@ApiModelProperty(notes = "是否更换设备,0-保修更换-免费,1-维修更换,2-购买")
private Integer replaceFlag;
/**
* 汽车品牌ID
*/
@ApiModelProperty(notes = "汽车品牌ID")
private Integer vehicleBrandId;
/**
* 汽车品牌
*/
@ApiModelProperty(notes = "汽车品牌")
private String vehicleBrandName;
/**
* 子品牌ID
*/
@ApiModelProperty(notes = "子品牌ID")
private Integer vehicleSubBrandId;
/**
* 子品牌名称
*/
@ApiModelProperty(notes = "子品牌名称")
private String vehicleSubBrandName;
/**
* 车系ID
*/
@ApiModelProperty(notes = "车系ID")
private Integer vehicleSeriesId;
/**
* 车系名称
*/
@ApiModelProperty(notes = "车系名称")
private String vehicleSeriesName;
/**
* 车型ID
*/
@ApiModelProperty(notes = "车型ID")
private Integer vehicleShapeId;
/**
* 车型名称
*/
@ApiModelProperty(notes = "车型名称")
private String vehicleShapeName;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.model.request.collision;
import cn.com.glsx.scrm.clue.model.DefaultRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
public class CollisionSnInfoSearchRpcRequest extends DefaultRequest {
@ApiModelProperty(notes = "运营版调用:true",name = "operate")
private boolean operate;
@ApiModelProperty(notes = "分页数", name = "pageSize", required = true)
private Integer pageSize;
@ApiModelProperty(notes = "当前页", name = "pageNum", required = true)
private Integer pageNum;
@ApiModelProperty(notes = "id,详情专用",name = "id")
private Integer id;
@ApiModelProperty(notes = "设备号",name = "sn")
private String sn;
@ApiModelProperty(notes = "商户名称",name = "merchantName")
private String merchantName;
@ApiModelProperty(notes = "商户号",name = "merchantNo")
private Integer merchantNo;
@ApiModelProperty(notes = "设备类型,1:OBD\n" +
",2: DVD,\n" +
"3: 电子狗\n" +
",5 :TBOX(2G),\n" +
"6 行车记录仪\n" +
",7 :BBOX\n" +
",8: 追踪器\n" +
",9 :车载wifi\n" +
",12134 : 智能云镜\n" +
", 12499: AIBox\n" +
",12500: 小镜SOS记录仪,\n" +
"12501 : 智能定位车充\n" +
",12503: 数字车钥匙\n" +
",12514 :后视镜B300",name = "snType")
private Integer snType;
@DateTimeFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(notes = "起始时间",name = "beginTime")
private Date beginTime;
@DateTimeFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(notes = "结束时间",name = "endTime")
private Date endTime;
@ApiModelProperty(notes = "操作人",name = "account")
private String account;
@ApiModelProperty(notes = "客户手机号")
private String customerPhone;
@ApiModelProperty(notes = "客户名称")
private String customerName;
@ApiModelProperty(notes = "车牌号")
private String licensePlate;
@ApiModelProperty(notes = "车架号")
private String standNo;
/**
* 是否更换设备,0-保修更换-免费,1-维修更换,2-购买
* @see cn.com.glsx.scrm.clue.enums.collision.DeviceReplaceEnum
*/
@ApiModelProperty(notes = "是否更换设备,0-保修更换-免费,1-维修更换,2-购买")
private Integer replaceFlag;
}
package cn.com.glsx.scrm.clue.model.request.collision;
import cn.com.glsx.scrm.clue.model.DefaultRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Author yelq
* @Version 1.0
* @Description: 客户设备导入
* @Date 2023/10/11 17:32
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CustomerDeviceImportRpcRequest extends DefaultRequest {
@ApiModelProperty(notes = "客户设备excel表url(xls/xlsx格式)")
private String url;
}
package cn.com.glsx.scrm.clue.model.request.collision;
import cn.com.glsx.scrm.clue.model.DefaultRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class FollowInfoRpcRequest extends DefaultRequest {
@ApiModelProperty(notes = "碰撞线索id", name = "id", required = true)
private Integer id;
@ApiModelProperty(notes = "跟进结果,0-真实事故,1-非真实事故,2-无法处理", name = "followResult", required = true)
private Integer followResult;
@ApiModelProperty(notes = "跟进备注", name = "followRemark")
private String followRemark;
}
package cn.com.glsx.scrm.clue.model.response.collision;
import cn.com.glsx.scrm.clue.dto.collision.CollisionAddressDTO;
import cn.com.glsx.scrm.clue.enums.collision.DeviceTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@Data
public class CollisionDetailInfoRpcResponse implements Serializable {
@ApiModelProperty(notes = "id",name = "id")
private Integer id;
/**
* 设备号
*/
@ApiModelProperty(notes = "设备号",name = "sn")
private String sn;
/**
* 商户号
*/
@ApiModelProperty(notes = "商户号",name = "merchantId")
private Integer merchantId;
/**
* 商户名称
*/
@ApiModelProperty(notes = "商户名称",name = "merchantName")
private String merchantName;
/**
* 设备类型,1:OBD
,2: DVD,
3: 电子狗
,5 :TBOX(2G),
6 行车记录仪
,7 :BBOX
,8: 追踪器
,9 :车载wifi
,12134 : 智能云镜
, 12499: AIBox
,12500: 小镜SOS记录仪,
12501 : 智能定位车充
,12503: 数字车钥匙
,12514 :后视镜B300
*/
/**
* @see DeviceTypeEnum
*/
@ApiModelProperty(notes = "设备类型,1:OBD\n" +
",2: DVD,\n" +
"3: 电子狗\n" +
",5 :TBOX(2G),\n" +
"6 行车记录仪\n" +
",7 :BBOX\n" +
",8: 追踪器\n" +
",9 :车载wifi\n" +
",12134 : 智能云镜\n" +
", 12499: AIBox\n" +
",12500: 小镜SOS记录仪,\n" +
"12501 : 智能定位车充\n" +
",12503: 数字车钥匙\n" +
",12514 :后视镜B300",name = "snType")
private Integer snType;
/**
* 客户名称
*/
@ApiModelProperty(notes = "客户名称",name = "customerName")
private String customerName;
/**
* 客户手机号
*/
@ApiModelProperty(notes = "客户手机号",name = "customerPhone")
private String customerPhone;
/**
* 车牌号
*/
@ApiModelProperty(notes = "车牌号",name = "licensePlate")
private String licensePlate;
/**
* 车架号
*/
@ApiModelProperty(notes = "车架号",name = "standNo")
private String standNo;
@ApiModelProperty(notes = "车型",name = "vehicleShapeName")
private String vehicleShapeName;
@ApiModelProperty(notes = "子品牌名称",name = "vehicleSubBrandName")
private String vehicleSubBrandName;
@ApiModelProperty(notes = "车系名称",name = "vehicleSeriesName")
private String vehicleSeriesName;
/**
* 碰撞时间
*/
@ApiModelProperty(notes = "碰撞时间",name = "collisionTime")
private Date collisionTime;
@ApiModelProperty(notes = "经度",name = "longitude")
private String longitude;
@ApiModelProperty(notes = "纬度",name = "latitude")
private String latitude;
/**
* 碰撞地点
*/
@ApiModelProperty(notes = "碰撞地点",name = "address")
private String address;
@ApiModelProperty(notes = "回访状态,0-未回访,1-已回访",name = "followStatus")
private Integer followStatus;
/**
* 跟进结果,0-真实事故,1-非真实事故,2-无法处理
*/
@ApiModelProperty(notes = "跟进结果,0-真实事故,1-非真实事故,2-无法处理",name = "followResult")
private Integer followResult;
/**
* 回访时间
*/
@ApiModelProperty(notes = "回访时间",name = "followTime")
private Date followTime;
@ApiModelProperty(notes = "回访备注",name = "followRemark")
private String followRemark;
@ApiModelProperty(notes = "回访人员",name = "updatedBy")
private String updatedBy;
private String taskId;
@ApiModelProperty(notes = "媒体信息列表",name = "mediaDetailList")
private List<CollisionMediaDetail> mediaDetailList;
@ApiModelProperty(notes = "碰撞时间是否超过3分钟,0-否,1-是",name = "collisionTimeOutFlag")
private int collisionTimeOutFlag;
@ApiModelProperty(notes = "车辆行车轨迹列表",name = "carAddressList")
List<CollisionAddressDTO> carAddressList;
}
package cn.com.glsx.scrm.clue.model.response.collision;
import cn.com.glsx.scrm.clue.enums.collision.DeviceTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class CollisionInfoRpcResponse implements Serializable {
@ApiModelProperty(notes = "id",name = "id")
private Integer id;
/**
* 设备号
*/
@ApiModelProperty(notes = "设备号",name = "sn")
private String sn;
/**
* 商户号
*/
@ApiModelProperty(notes = "商户号",name = "merchantId")
private Integer merchantId;
/**
* 商户名称
*/
@ApiModelProperty(notes = "商户名称",name = "merchantName")
private String merchantName;
/**
* 设备类型,1:OBD
,2: DVD,
3: 电子狗
,5 :TBOX(2G),
6 行车记录仪
,7 :BBOX
,8: 追踪器
,9 :车载wifi
,12134 : 智能云镜
, 12499: AIBox
,12500: 小镜SOS记录仪,
12501 : 智能定位车充
,12503: 数字车钥匙
,12514 :后视镜B300
*/
/**
* @see DeviceTypeEnum
*/
@ApiModelProperty(notes = "设备类型,1:OBD\n" +
",2: DVD,\n" +
"3: 电子狗\n" +
",5 :TBOX(2G),\n" +
"6 行车记录仪\n" +
",7 :BBOX\n" +
",8: 追踪器\n" +
",9 :车载wifi\n" +
",12134 : 智能云镜\n" +
", 12499: AIBox\n" +
",12500: 小镜SOS记录仪,\n" +
"12501 : 智能定位车充\n" +
",12503: 数字车钥匙\n" +
",12514 :后视镜B300",name = "snType")
private Integer snType;
/**
* 客户名称
*/
@ApiModelProperty(notes = "客户名称",name = "customerName")
private String customerName;
/**
* 客户手机号
*/
@ApiModelProperty(notes = "客户手机号",name = "customerPhone")
private String customerPhone;
/**
* 车牌号
*/
@ApiModelProperty(notes = "车牌号",name = "licensePlate")
private String licensePlate;
/**
* 车架号
*/
@ApiModelProperty(notes = "车架号",name = "standNo")
private String standNo;
@ApiModelProperty(notes = "车型",name = "vehicleShapeName")
private String vehicleShapeName;
/**
* 碰撞时间
*/
@ApiModelProperty(notes = "碰撞时间",name = "collisionTime")
private Date collisionTime;
/**
* 碰撞地点
*/
@ApiModelProperty(notes = "碰撞地点",name = "address")
private String address;
/**
* @see cn.com.glsx.scrm.clue.enums.collision.FollowStatusEnum
*/
@ApiModelProperty(notes = "回访状态,0-未回访,1-已回访",name = "followStatus")
private Integer followStatus;
/**
* 跟进结果,0-真实事故,1-非真实事故,2-无法处理
*/
@ApiModelProperty(notes = "跟进结果,0-真实事故,1-非真实事故,2-无法处理",name = "followResult")
private Integer followResult;
@ApiModelProperty(notes = "回访备注",name = "followRemark")
private String followRemark;
/**
* 回访时间
*/
@ApiModelProperty(notes = "回访时间",name = "followTime")
private Date followTime;
@ApiModelProperty(notes = "回访人员",name = "updatedBy")
private String updatedBy;
}
package cn.com.glsx.scrm.clue.model.response.collision;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class CollisionMediaDetail implements Serializable {
@ApiModelProperty(notes = "媒体类型(IMAGE:图片;VIDEO:视频)",name = "mediaType")
private String mediaType;
@ApiModelProperty(notes = "媒体地址链接",name = "fileUrl")
private String fileUrl;
}
package cn.com.glsx.scrm.clue.model.response.collision;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class CollisionPushConfigRpcResponse implements Serializable {
private Integer id;
@ApiModelProperty(notes = "商户号", name = "merchantId")
private Integer merchantId;
@ApiModelProperty(notes = "推送开关,0-关,1-开", name = "pushFlag")
private Integer pushFlag;
@ApiModelProperty(notes = "推送开始时间,格式:HH:mm", name = "startTime")
private String startTime;
@ApiModelProperty(notes = "推送结束时间, 格式:HH:mm", name = "endTime")
private String endTime;
@ApiModelProperty(notes = " 配置类型,0-门店提醒,1-车主提醒", name = "configType")
private Integer configType;
@ApiModelProperty(notes = "顾问电话,多个用逗号分割", name = "pushPhones")
private String pushPhones;
@ApiModelProperty(notes = "营销卖点", name = "pushContent")
private String pushContent;
}
package cn.com.glsx.scrm.clue.model.response.collision;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 客户设备信息导入返回
*/
@Data
public class CustomerDeviceImportRpcResponse implements Serializable {
@ApiModelProperty(notes = "校验标记,通过:true,不通过:false")
private Boolean checkFlag;
@ApiModelProperty(notes = "导入总数量")
private Integer count;
@ApiModelProperty(notes = "校验通过数量")
private Integer success;
@ApiModelProperty(notes = "校验不通过数量")
private Integer error;
@ApiModelProperty(notes = "校验不通过手机号excel表url地址")
private String errUrl;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.model.response.collision;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class FollowInfoRpcResponse implements Serializable {
@ApiModelProperty(notes = "碰撞线索id", name = "id")
private Integer id;
@ApiModelProperty(notes = "跟进结果,0-真实事故,1-非真实事故,2-无法处理", name = "followResult", required = true)
private Integer followResult;
@ApiModelProperty(notes = "跟进备注", name = "followRemark")
private String followRemark;
@ApiModelProperty(notes = "跟进时间", name = "followTime")
private Date followTime;
}
package cn.com.glsx.scrm.clue.remote;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.scrm.clue.dto.BurialPointRecordDTO;
import javax.validation.constraints.NotNull;
import java.util.List;
@ApiService(value = "埋点记录", version = "1.0.0", protocol = ApiService.ProtocolEnum.dubbo, type = ApiService.ApiTypeEnum.DUBBO, alias = "BurialPointRecordRemote", owner = "fanfr")
public interface BurialPointRecordRemote {
@ApiMethod("批量上报埋点记录")
@ApiResponse("上报结果")
@ApiParams({@ApiParam(name = "list", notes = "埋点记录列表", dataType = ApiParam.DataTypeEnum.LIST, required = true)})
RpcResponse<Boolean> batchInsert(@NotNull List<BurialPointRecordDTO> list);
}
package cn.com.glsx.scrm.clue.remote;
import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.scrm.clue.dto.ClueOrderDTO;
import cn.com.glsx.scrm.clue.model.ClueOrder;
import cn.com.glsx.scrm.clue.model.ClueOrderFollow;
import javax.validation.constraints.NotNull;
import java.util.List;
@ApiService(value = "线索-跟进记录", owner = "hexy")
public interface ClueFollowRemote {
@ApiMethod("新增或更新线索跟进记录")
@ApiParam(name = "record", notes = "线索", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("返回结果")
RpcResponse<ClueOrderFollow> insertOrUpdate(ClueOrderFollow info);
@ApiMethod("查询线索跟进记录列表")
@ApiParam(name = "orderId", notes = "线索单id", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)
@ApiResponse("返回线索跟进记录列表")
RpcResponse<List<ClueOrderFollow>> listWithOrderId(Integer orderId);
}
package cn.com.glsx.scrm.clue.remote;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.scrm.clue.dto.ClueOrderDTO;
import cn.com.glsx.scrm.clue.model.ClueOrder;
import com.github.pagehelper.Page;
import javax.validation.constraints.NotNull;
@ApiService(value = "线索-金刚区线索接口", owner = "hexy")
public interface ClueOrderRemote {
@ApiMethod("新增或更新金刚区线索")
@ApiParam(name = "record", notes = "线索", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("返回金刚区线索")
RpcResponse<ClueOrder> insertAndDeal(@NotNull ClueOrderDTO record);
@ApiMethod("查询金刚区线索列表")
@ApiParam(name = "pagination", notes = "查询条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("返回金刚区线索列表")
RpcResponse<RpcPagination<ClueOrderDTO>> listWithPage(RpcPagination<ClueOrderDTO> pagination);
@ApiMethod("根据ID查询金刚区线索")
@ApiParam(name = "id", notes = "线索编号", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)
@ApiResponse("返回金刚区线索")
RpcResponse<ClueOrder> getById(Integer id);
@ApiMethod("根据ID查询金刚区线索和跟进记录")
@ApiParam(name = "id", notes = "线索编号", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)
@ApiResponse("返回金刚区线索和跟进记录")
RpcResponse<ClueOrderDTO> getDetailById(Integer id);
@ApiMethod("根据ID查询金刚区线索和跟进记录并将状态更新为处理中")
@ApiParam(name = "id", notes = "线索编号", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)
@ApiResponse("返回金刚区线索和跟进记录")
RpcResponse<ClueOrderDTO> updateTaskStatus(Integer id);
}
package cn.com.glsx.scrm.clue.remote;
import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.scrm.clue.model.ClueStaff;
import com.github.pagehelper.Page;
import java.util.List;
@ApiService(value = "线索-金刚区线索接口", owner = "hexy")
public interface ClueStaffRemote {
@ApiMethod("新增或修改专员")
@ApiParam(name = "staffList", notes = "专员列表", dataType = ApiParam.DataTypeEnum.LIST, required = true)
@ApiResponse("新增或修改专员")
RpcResponse<Boolean> insertOrUpdateBatch(List<ClueStaff> staffList);
@ApiMethod("新增或修改专员")
@ApiParam(name = "staffList", notes = "查询条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("新增或修改专员")
RpcResponse<Page<ClueStaff>> listWithPage(RpcPagination<ClueStaff> pagination);
}
package cn.com.glsx.scrm.clue.remote;
import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.scrm.clue.dto.ClueOrderDTO;
import cn.com.glsx.scrm.clue.dto.ClueVehicleDTO;
import cn.com.glsx.scrm.clue.model.ClueStaff;
import cn.com.glsx.scrm.clue.model.ClueVehicle;
import com.github.pagehelper.Page;
import java.util.List;
@ApiService(value = "线索-金刚区车辆信息接口", owner = "hexy")
public interface ClueVehicleRemote {
@ApiMethod("获取品牌列表")
@ApiParam(name = "pagination", notes = "分页信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("品牌列表")
RpcResponse<RpcPagination<ClueVehicle>> getMerchantBrandList(RpcPagination<ClueVehicle> pagination);
@ApiMethod("获取子品牌列表")
@ApiParam(name = "pagination", notes = "分页信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("子品牌列表")
RpcResponse<RpcPagination<ClueVehicle>> getMerchantSubBrandList(RpcPagination<ClueVehicle> pagination);
@ApiMethod("获取车系列表")
@ApiParam(name = "pagination", notes = "分页信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("车系列表")
RpcResponse<RpcPagination<ClueVehicleDTO>> getMerchantSeriesList(RpcPagination<ClueVehicleDTO> pagination);
@ApiMethod("获取车型列表")
@ApiParam(name = "pagination", notes = "分页信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("车型列表")
RpcResponse<RpcPagination<ClueVehicleDTO>> getMerchantShapeList(RpcPagination<ClueVehicleDTO> pagination);
@ApiMethod("上下架车型")
@ApiParam(name = "info", notes = "车型信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("上下架车型")
RpcResponse<Integer> updateStatus(ClueVehicle info);
@ApiMethod("获取车型列表")
@ApiParam(name = "pagination", notes = "分页信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("获取车型列表")
RpcResponse<RpcPagination<ClueVehicleDTO>> listWithPage(RpcPagination<ClueVehicleDTO> pagination);
@ApiMethod("新增或更新车型")
@ApiParam(name = "info", notes = "车型信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("车型信息")
RpcResponse<ClueVehicle> insertOrUpdate(ClueVehicle info);
@ApiMethod("删除车型信息")
@ApiParam(name = "info", notes = "车型信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("删除结果")
RpcResponse<Boolean> delete(ClueVehicle info);
@ApiMethod("根据id获取车型信息")
@ApiParam(name = "id", notes = "id", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)
@ApiResponse("车型信息")
RpcResponse<ClueVehicle> getById(Integer id);
}
package cn.com.glsx.scrm.clue.remote;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.scrm.clue.dto.collision.CollisionSnInfoDTO;
import cn.com.glsx.scrm.clue.model.request.collision.*;
import cn.com.glsx.scrm.clue.model.response.collision.*;
import java.util.List;
@ApiService(value = "碰撞-碰撞线索信息", version = "1.0.0", protocol = ApiService.ProtocolEnum.dubbo, type = ApiService.ApiTypeEnum.DUBBO, alias = "CollisionInfoRemote", owner = "fanfr")
public interface CollisionInfoRemote {
@ApiMethod("客户设备信息导入")
@ApiResponse("导入结果")
@ApiParams({@ApiParam(name = "requestDTO", notes = "客户设备excel表url(xls/xlsx格式)", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<CustomerDeviceImportRpcResponse> customerDeviceImportRemote(CustomerDeviceImportRpcRequest requestDTO);
@ApiMethod("碰撞线索-分页查询")
@ApiResponse("分页线索信息结果")
@ApiParams({@ApiParam(name = "requestDTO", notes = "碰撞线索-分页查询条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<RpcPagination<CollisionInfoRpcResponse>> listCollisionInfoByPage(CollisionInfoSearchRpcRequest requestDTO);
@ApiMethod("碰撞线索-导出")
@ApiResponse("线索文件url")
@ApiParams({@ApiParam(name = "requestDTO", notes = "碰撞线索-导出查询条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<String> exportCollisionInfo(CollisionInfoSearchRpcRequest requestDTO);
@ApiMethod("碰撞线索-查询详情")
@ApiResponse("碰撞线索详情")
@ApiParams({@ApiParam(name = "requestDTO", notes = "碰撞线索-导出查询条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<CollisionDetailInfoRpcResponse> getCollisionDetail(CollisionInfoSearchRpcRequest requestDTO);
@ApiMethod("碰撞线索-门店回访")
@ApiResponse("回访详情")
@ApiParams({@ApiParam(name = "requestDTO", notes = "碰撞线索-回访信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<FollowInfoRpcResponse> followCollisionInfoByMerchant(FollowInfoRpcRequest requestDTO);
@ApiMethod("碰撞线索-员工回访")
@ApiResponse("回访详情")
@ApiParams({@ApiParam(name = "requestDTO", notes = "碰撞线索-回访信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<FollowInfoRpcResponse> followCollisionInfoByStaff(FollowInfoRpcRequest requestDTO);
@ApiMethod("碰撞线索-推送配置添加/修改")
@ApiResponse("推送配置信息")
@ApiParams({@ApiParam(name = "requestDTO", notes = "推送配置信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<CollisionPushConfigRpcResponse> addOrUpdatePushConfig(CollisionPushConfigRpcRequest requestDTO);
@ApiMethod("碰撞线索-查询推送配置详情")
@ApiResponse("推送配置详情")
@ApiParams({@ApiParam(name = "requestDTO", notes = "推送配置信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<List<CollisionPushConfigRpcResponse>> getPushConfigDetail(CollisionPushConfigRpcRequest requestDTO);
@ApiMethod("设备管理-客户设备信息详情查询")
@ApiResponse("客户设备信息详情")
@ApiParams({@ApiParam(name = "requestDTO", notes = "设备管理-客户设备信息详情查询", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<CollisionSnInfoDTO> getCustomerDeviceDetailRemote(CollisionSnInfoSearchRpcRequest requestDTO);
@ApiMethod("设备管理-编辑")
@ApiResponse("编辑结果")
@ApiParams({@ApiParam(name = "requestDTO", notes = "编辑", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<Boolean> customerDeviceEditRemote(CollisionSnInfoEditRpcRequest requestDTO);
@ApiMethod("设备管理-列表查询")
@ApiResponse("设备管理-列表查询结果")
@ApiParams({@ApiParam(name = "requestDTO", notes = "设备管理-列表查询", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<RpcPagination<CollisionSnInfoDTO>> getCustomerDeviceListRemote(RpcPagination<CollisionSnInfoSearchRpcRequest> requestDTO);
@ApiMethod("设备管理-列表查询导出")
@ApiResponse("设备管理-列表查询导出结果")
@ApiParams({@ApiParam(name = "requestDTO", notes = "设备管理-列表查询导出", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<String> exportCustomerDeviceListRemote(RpcPagination<CollisionSnInfoSearchRpcRequest> requestDTO);
}
# framework-archetype-rpc-api
RPC-API项目骨架
一、项目结构说明:
└─src
├─main
├─java
├─cn.com.glsx.shopmall.dto 数据传输模型层
├─cn.com.glsx.shopmall.enums 枚举定义
├─cn.com.glsx.shopmall.model 数据模型层
└─cn.com.glsx.shopmall.remote RPC暴露服务层
└─resources 资源文件目录
└─rpc
└─dubbo.xml dubbo接口配置
└─pom.xml pom文件
二、使用说明:
1、API改动后,请及时deploy到Maven仓库
三、注意事项:
1、rpc-api-deploy-maven-plugin api上报插件需配置当前api的jar包的引用。
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.com.glsx.framework</groupId>
<artifactId>framework-rpc</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<groupId>cn.com.glsx.scrm.clue</groupId>
<artifactId>rpc-scrm-clue</artifactId>
<version>5.2.0-SNAPSHOT</version>
<name>rpc-scrm-clue</name>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>cn.com.glsx.scrm</groupId>
<artifactId>rpc-scrm-clue-api</artifactId>
<version>5.3.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.oreframework.boot</groupId>
<artifactId>ore-boot-starter-distribute-lock</artifactId>
</dependency>
<dependency>
<groupId>cn.com.glsx</groupId>
<artifactId>rpc-scrm-wechat-api</artifactId>
<version>0.0.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.com.glsx</groupId>
<artifactId>rpc-scrm-system-api</artifactId>
<version>0.0.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.com.glsx.scrm</groupId>
<artifactId>rpc-scrm-proxy-api</artifactId>
<version>0.0.6-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.oreframework.boot</groupId>
<artifactId>ore-boot-starter-elasticjob</artifactId>
</dependency>
<dependency>
<groupId>cn.com.glsx.entmicro</groupId>
<artifactId>rpc-scrm-entmicro-api</artifactId>
<version>3.21.0-SNAPSHOT</version>
</dependency>
<!--alibabaExcel导入导出-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>3.0.2</version>
<exclusions>
<exclusion>
<artifactId>poi-ooxml</artifactId>
<groupId>org.apache.poi</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.glsx</groupId>
<artifactId>rest-admin-common</artifactId>
<version>2.0.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>org.oreframework</groupId>
<artifactId>ore-jms</artifactId>
</dependency>
<dependency>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-smartcarlife-api</artifactId>
<version>4.55.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.oreframework.boot</groupId>
<artifactId>ore-boot-starter-alioss</artifactId>
<version>2.2.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package cn.com.glsx.scrm.clue;
import org.oreframework.boot.main.AbsOreBootStarter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
/**
* @Title: Main.java
* @Description:
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2015
*/
@SpringBootApplication
@ServletComponentScan
public class Main extends AbsOreBootStarter {
@Override
public void run(String[] args)
{
SpringApplication.run(Main.class, args);
}
public static void main(String[] args)
{
Main main = new Main();
main.run(args);
}
}
package cn.com.glsx.scrm.clue.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* @Title: AmapProperty.java
* @Description:
* @author zengqi
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2017
*/
@Configuration
@ConfigurationProperties("amap")
public class AmapProperty {
/**
* 地图秘钥
*/
private String key;
/**
* 逆地址解析接口地址
*/
private String geocodeUrl;
/**
* 距离计算接口地址
*/
private String distanceUrl;
/**
* 百度地图秘钥
*/
private String baiduKey;
/**
* 百度坐标转换
*/
private String geoconvUrl;
/**
* 百度逆地址解析接口地址
*/
private String baiduGeocodeUrl;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getGeocodeUrl() {
return geocodeUrl;
}
public void setGeocodeUrl(String geocodeUrl) {
this.geocodeUrl = geocodeUrl;
}
public String getDistanceUrl() {
return distanceUrl;
}
public void setDistanceUrl(String distanceUrl) {
this.distanceUrl = distanceUrl;
}
public String getBaiduKey() {
return baiduKey;
}
public void setBaiduKey(String baiduKey) {
this.baiduKey = baiduKey;
}
public String getGeoconvUrl() {
return geoconvUrl;
}
public void setGeoconvUrl(String geoconvUrl) {
this.geoconvUrl = geoconvUrl;
}
public String getBaiduGeocodeUrl() {
return baiduGeocodeUrl;
}
public void setBaiduGeocodeUrl(String baiduGeocodeUrl) {
this.baiduGeocodeUrl = baiduGeocodeUrl;
}
}
package cn.com.glsx.scrm.clue.config;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;
/**
* 埋点细节
* @author yangwei
* @version 1.0
* @since 2025/10/17 14:07
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BurialPointDetail implements Serializable {
/** id 唯一即可,一个系统一个 */
private String id;
/** 事件名称 */
private String name;
/** 事件代码列表,这些列表就是默认统计的事件,如果数据量过大,可以搭配数据库 */
private List<String> eventCodes;
/** 触发的bean
* 如果没有调用默认的 handler
* @see cn.com.glsx.scrm.clue.service.BurialPointHandler
*/
private String bean;
/** 发送的方法,如果没有默认发送场景助手 */
private String invoke;
/** 是否启用 */
private boolean enable = false;
}
package cn.com.glsx.scrm.clue.config;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.List;
/**
* @author yangwei
* @version 1.0
* @since 2025/10/17 14:00
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Configuration
@ConfigurationProperties(prefix = "burial-point.summary")
public class BurialPointSummaryConfig {
/** 埋点详情 */
private List<BurialPointDetail> burialPointDetails;
}
package cn.com.glsx.scrm.clue.config;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
/**
* SpringContextHolder
* @author yangwei
* @since 2025/10/30 16:16
*/
@Component
public class SpringContextHolder implements ApplicationContextAware {
private static ApplicationContext applicationContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
SpringContextHolder.applicationContext = applicationContext;
}
public static <T> T getBean(Class<T> clazz) {
return applicationContext.getBean(clazz);
}
public static <T> T getBean(String name, Class<T> clazz) {
return applicationContext.getBean(name, clazz);
}
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* @Title: SystemProperty.java
* @Description:
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2017
*/
@Configuration
@ConfigurationProperties("system")
public class SystemProperty {
// 对应配置项:system.name
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
package cn.com.glsx.scrm.clue.config.dubbo;
import cn.com.glsx.dj.gop.remote.GopGpsLocationRemote;
import cn.com.glsx.dj.smartcarlife.remote.SceneMarketRemote;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Title: DubboConfig.java
* @Description: Dubbo服务注册配置
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Configuration
public class DubboConfig {
@Autowired
protected ReferenceBuilderFactory factory;
protected final boolean check = false;
protected final int timeout = 30000;
@Bean
public GopGpsLocationRemote gopGpsLocationRemote() {
return factory.builder(GopGpsLocationRemote.class).check(false).timeout(30000).build();
}
@Bean
public SceneMarketRemote sceneMarketRemote() {
return factory.builder(SceneMarketRemote.class).check(false).version("1.0.0").timeout(30000).build();
}
}
package cn.com.glsx.scrm.clue.config.dubbo;
import cn.com.glsx.entmicro.remote.EntmicroDepartmentRemote;
import cn.com.glsx.scrm.wechat.remote.WorkWechatMessageRemote;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Title: DubboConfig.java
* @Description: Dubbo服务注册配置
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Configuration
public class EntmicroDubboConfig extends DubboConfig{
@Autowired
private ReferenceBuilderFactory factory;
@Bean
public EntmicroDepartmentRemote EntmicroDepartmentRemote(){
return factory.builder(EntmicroDepartmentRemote.class).version("1.0.0").check(check).timeout(timeout).build();
}
}
package cn.com.glsx.scrm.clue.config.dubbo;
import cn.com.glsx.scrm.proxy.remote.cgacar.CgacarCommonRemote;
import cn.com.glsx.scrm.proxy.remote.merchant.MerchantRemote;
import cn.com.glsx.scrm.wechat.remote.WorkWechatMessageRemote;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Title: DubboConfig.java
* @Description: Dubbo服务注册配置
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Configuration
public class ProxyDubboConfig extends DubboConfig{
@Autowired
private ReferenceBuilderFactory factory;
@Bean
public MerchantRemote MerchantRemote(){
return factory.builder(MerchantRemote.class).check(check).timeout(timeout).build();
}
@Bean
public CgacarCommonRemote CgacarCommonRemote(){
return factory.builder(CgacarCommonRemote.class).version("1.0.0").check(check).timeout(timeout).build();
}
}
package cn.com.glsx.scrm.clue.config.dubbo;
import cn.com.glsx.scrm.system.remote.SystemUserTaskRemote;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Title: DubboConfig.java
* @Description: Dubbo服务注册配置
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Configuration
public class SystemDubboConfig extends DubboConfig{
@Autowired
private ReferenceBuilderFactory factory;
@Bean
public SystemUserTaskRemote SystemUserTaskRemote(){
return factory.builder(SystemUserTaskRemote.class).check(check).timeout(timeout).build();
}
}
package cn.com.glsx.scrm.clue.config.dubbo;
import cn.com.glsx.scrm.wechat.remote.WorkWechatMessageRemote;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Title: DubboConfig.java
* @Description: Dubbo服务注册配置
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Configuration
public class WechatDubboConfig extends DubboConfig{
@Autowired
private ReferenceBuilderFactory factory;
@Bean
public WorkWechatMessageRemote WorkWechatMessageRemote(){
return factory.builder(WorkWechatMessageRemote.class).version("1.0.0").check(check).timeout(timeout).build();
}
}
package cn.com.glsx.scrm.clue.constants;
public class Constants {
/**
* 数据标记 删除
*/
public static final Byte DEL_FLAG = -1;
/**
* 数据标记 正常
*/
public static final Byte NORMAL_FLAG = 0;
/**
* 碰撞-经纬度长度限制
*/
public static final Integer MAX_LONGITUDE_LENGTH = 16;
}
package cn.com.glsx.scrm.clue.constants;
/**
* @Author yelq
* @Version 1.0
* @Description: redis缓存键前缀
* @Date 2022/7/5 18:00
*/
public class RedisCacheKeyPreConstants {
private static final String projectPre = "rpc-scrm-clue:";
// 门店号查询商户详情
public static final String merchantDetailKey = projectPre+"merchant_detail_";
public static final long merchantDetailKeyTimeout = 60*60*24L;
}
package cn.com.glsx.scrm.clue.converter;
import cn.com.glsx.scrm.clue.dto.collision.CollisionSnInfoDTO;
import cn.com.glsx.scrm.clue.dto.collision.CollisionSnInfoExportDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
* @Author yelq
* @Version 1.0
* @Description:
* @Date 2023/10/13 17:11
*/
@Mapper
public interface CollisionSnInfoConvert {
CollisionSnInfoConvert INSTANCE = Mappers.getMapper(CollisionSnInfoConvert.class);
@Mappings({
@Mapping(target ="snType",expression = "java(cn.com.glsx.scrm.clue.enums.collision.DeviceTypeEnum.getEnumDisplayByValue(source.getSnType()))"),
@Mapping(target ="customerSex",expression = "java(source.getCustomerSex()==null?null:source.getCustomerSex()==1?\"男\":\"女\")"),
@Mapping(target ="lastTime",expression = "java(cn.com.glsx.scrm.clue.converter.CollisionSnInfoConvert.parseDate(source.getLastTime()))"),
@Mapping(target ="lowerTime",expression = "java(cn.com.glsx.scrm.clue.converter.CollisionSnInfoConvert.parseDate(source.getLowerTime()))"),
@Mapping(target ="updatedTime",expression = "java(cn.com.glsx.scrm.clue.converter.CollisionSnInfoConvert.parseDate(source.getUpdatedTime()))"),
@Mapping(target ="replaceFlag",expression = "java(cn.com.glsx.scrm.clue.enums.collision.DeviceReplaceEnum.getDisplayNameByCode(source.getReplaceFlag()))")
})
CollisionSnInfoExportDTO toCollisionSnInfoExportDTO(CollisionSnInfoDTO source);
List<CollisionSnInfoExportDTO> toCollisionSnInfoExportDTOList(List<CollisionSnInfoDTO> sourceList);
public static String parseDate(Date data){
if (data==null)return null;
return new SimpleDateFormat("yyyy/MM/dd").format(data);
}
}
package cn.com.glsx.scrm.clue.entity.collision;
import lombok.Data;
import lombok.ToString;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Data
@ToString
@Table(name = "scrm_collision_info")
public class CollisionInfo implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 设备号
*/
private String sn;
/**
* 碰撞时间
*/
@Column(name = "collision_time")
private Date collisionTime;
/**
* SOS : 紧急求助, COLLIDE : 碰撞, VIBRATION:震动,
CUSTOMER_SUBMIT:客户自提
*/
@Column(name = "collision_type")
private String collisionType;
/**
* 碰撞地点
*/
private String address;
/**
* 经度
*/
private String longitude;
/**
* 纬度
*/
private String latitude;
/**
* 回访状态,0-未回访,1-已回访
* @see cn.com.glsx.scrm.clue.enums.collision.FollowStatusEnum
*/
@Column(name = "follow_status")
private Integer followStatus;
/**
* 跟进结果,0-真实事故,1-非真实事故,2-无法处理
* @see cn.com.glsx.scrm.clue.enums.collision.FollowResultEnum
*/
@Column(name = "follow_result")
private Integer followResult;
/**
* 回访时间
*/
@Column(name = "follow_time")
private Date followTime;
/**
* 回访备注
*/
@Column(name = "follow_remark")
private String followRemark;
/**
* 任务id,关联碰撞线索-媒体信息
*/
@Column(name = "task_id")
private String taskId;
/**
* 是否删除(0=正常,-1=删除)
*/
@Column(name = "del_flag")
private Integer delFlag;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_time")
private Date createdTime;
/**
* 更新人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 更新时间
*/
@Column(name = "updated_time")
private Date updatedTime;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.entity.collision;
import lombok.Data;
import lombok.ToString;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Data
@ToString
@Table(name = "scrm_collision_media_info")
public class CollisionMediaInfo implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 任务id,关联碰撞线索-媒体信息
*/
@Column(name = "task_id")
private String taskId;
/**
* 媒体地址链接
*/
@Column(name = "file_url")
private String fileUrl;
/**
* 媒体类型(IMAGE:图片;VIDEO:视频)
* @see cn.com.glsx.entmicro.enums.collision.CollisionMediaTypeEnum
*/
@Column(name = "media_type")
private String mediaType;
/**
* 是否删除(0=正常,-1=删除)
*/
@Column(name = "del_flag")
private Integer delFlag;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_time")
private Date createdTime;
/**
* 更新人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 更新时间
*/
@Column(name = "updated_time")
private Date updatedTime;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.entity.collision;
import lombok.Data;
import lombok.ToString;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Data
@ToString
@Table(name = "scrm_collision_push_config")
public class CollisionPushConfig implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 商户号
*/
@Column(name = "merchant_id")
private Integer merchantId;
/**
* 商户名称
*/
@Column(name = "merchant_name")
private String merchantName;
/**
* 推送开关,0-关,1-开
*/
@Column(name = "push_flag")
private Integer pushFlag;
/**
* 推送开始时间,格式:HH:mm
*/
@Column(name = "start_time")
private String startTime;
/**
* 推送结束时间, 格式:HH:mm
*/
@Column(name = "end_time")
private String endTime;
/**
* 配置类型,0-门店提醒,1-车主提醒
*/
@Column(name = "config_type")
private Integer configType;
/**
* config_type为0时使用,顾问电话,多个用逗号分割
*/
@Column(name = "push_phones")
private String pushPhones;
/**
* config_type为1时使用,营销卖点
*/
@Column(name = "push_content")
private String pushContent;
/**
* 是否删除(0=正常,-1=删除)
*/
@Column(name = "del_flag")
private Integer delFlag;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_time")
private Date createdTime;
/**
* 更新人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 更新时间
*/
@Column(name = "updated_time")
private Date updatedTime;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.entity.collision;
import cn.com.glsx.scrm.clue.enums.collision.DeviceTypeEnum;
import lombok.Data;
import lombok.ToString;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Data
@ToString
@Table(name = "scrm_collision_sn_info")
public class CollisionSnInfo implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 设备号
*/
private String sn;
/**
* 批次id
*/
@Column(name = "batch_id")
private Integer batchId;
/**
* 商户号
*/
@Column(name = "merchant_id")
private Integer merchantId;
/**
* 商户名称
*/
@Column(name = "merchant_name")
private String merchantName;
/**
* 设备类型,1:OBD
,2: DVD,
3: 电子狗
,5 :TBOX(2G),
6 行车记录仪
,7 :BBOX
,8: 追踪器
,9 :车载wifi
,12134 : 智能云镜
, 12499: AIBox
,12500: 小镜SOS记录仪,
12501 : 智能定位车充
,12503: 数字车钥匙
,12514 :后视镜B300
*/
/**
* @see DeviceTypeEnum
*/
@Column(name = "sn_type")
private Integer snType;
/**
* iccid
*/
private String iccid;
/**
* 客户名称
*/
@Column(name = "customer_name")
private String customerName;
/**
* 客户手机号
*/
@Column(name = "customer_phone")
private String customerPhone;
/**
* 客户性别,0-男,1-女
*/
@Column(name = "customer_sex")
private Integer customerSex;
/**
* 车牌号
*/
@Column(name = "license_plate")
private String licensePlate;
/**
* 车架号
*/
@Column(name = "stand_no")
private String standNo;
/**
* 设备安装时的初始里程
*/
@Column(name = "initial_mileage")
private Long initialMileage;
/**
* 上次保养里程
*/
@Column(name = "last_mileage")
private Long lastMileage;
/**
* 上次保养时间
*/
@Column(name = "last_time")
private Date lastTime;
/**
* 下次保养里程
*/
@Column(name = "lower_mileage")
private Long lowerMileage;
/**
* 下次保养时间
*/
@Column(name = "lower_time")
private Date lowerTime;
/**
* 是否更换设备,0-保修更换-免费,1-维修更换,2-购买
*/
@Column(name = "replace_flag")
private Integer replaceFlag;
/**
* 汽车品牌ID
*/
@Column(name = "vehicle_brand_id")
private Integer vehicleBrandId;
/**
* 汽车品牌
*/
@Column(name = "vehicle_brand_name")
private String vehicleBrandName;
/**
* 子品牌ID
*/
@Column(name = "vehicle_sub_brand_id")
private Integer vehicleSubBrandId;
/**
* 子品牌名称
*/
@Column(name = "vehicle_sub_brand_name")
private String vehicleSubBrandName;
/**
* 车系ID
*/
@Column(name = "vehicle_series_id")
private Integer vehicleSeriesId;
/**
* 车系名称
*/
@Column(name = "vehicle_series_name")
private String vehicleSeriesName;
/**
* 车型ID
*/
@Column(name = "vehicle_shape_id")
private Integer vehicleShapeId;
/**
* 车型名称
*/
@Column(name = "vehicle_shape_name")
private String vehicleShapeName;
/**
* 是否删除(0=正常,-1=删除)
*/
@Column(name = "del_flag")
private Integer delFlag;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 创建时间
*/
@Column(name = "created_time")
private Date createdTime;
/**
* 更新人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 更新时间
*/
@Column(name = "updated_time")
private Date updatedTime;
}
\ No newline at end of file
package cn.com.glsx.scrm.clue.enums;
import cn.com.glsx.scrm.clue.config.SpringContextHolder;
import cn.com.glsx.scrm.clue.constants.SymbolConstants;
import cn.com.glsx.scrm.clue.dto.BurialPointSummaryDTO;
import cn.com.glsx.scrm.clue.dto.BurialPointSummaryParam;
import cn.com.glsx.scrm.clue.dto.SmartCarLifeBurialPointStatisticsDTO;
import cn.com.glsx.scrm.clue.mapper.BurialPointRecordMapper;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* 埋点统计分组,一个分组生成一个文件发送
* @see BurialPointEventCode 埋点事件枚举
* @author yangwei
* @version 1.0
* @since 2025/10/30 13:52
*/
@Getter
@AllArgsConstructor
public enum BurialPointStatisticsGroup implements BurialPointStatisticsInter {
/**
* 滴加智享车生活pc端埋点推送
*
*/
DJ_SMART_CAR_LIFE_PC_BURIAL_POINT1(
"智享车生活平台-埋点数据",
BurialPointSystemSource.CAR_LIFE,
Lists.newArrayList(BurialPointEventTypeEnum.CLICK),
BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_1,
BurialPointStatisticsCycle.LAST_WEEK,
SmartCarLifeBurialPointStatisticsDTO.class,
true),
/**
* 小程序埋点推送
*
*/
DJ_SMART_CAR_LIFE_MINI_APP_BURIAL_POINT1(
"生意助手小程-埋点数据",
BurialPointSystemSource.BUSINESS_ASSISTANT,
Lists.newArrayList(BurialPointEventTypeEnum.CLICK),
BurialPointEventCodeGroup.DJ_SMART_CAR_LIFE_2,
BurialPointStatisticsCycle.LAST_WEEK,
SmartCarLifeBurialPointStatisticsDTO.class,
true)
;
/** 文件名 */
private final String fileName;
/** 埋点系统来源 */
private final BurialPointSystemSource burialPointSystemSource;
/** 埋点事件类型 */
private final List<BurialPointEventTypeEnum> burialPointEventTypeEnums;
/** 埋点事件分组,用于确定发送那些 EventCode */
private final BurialPointEventCodeGroup burialPointEventCodeGroup;
/** 埋点统计周期 */
private final BurialPointStatisticsCycle burialPointStatisticsCycle;
/** excel导出的类 */
private final Class<?> excelExport;
/** 是否启用 */
private final Boolean enable;
@Override
public List<? extends BurialPointSummaryDTO> fetch(BurialPointSummaryParam param) {
BurialPointRecordMapper mapper = SpringContextHolder.getBean(BurialPointRecordMapper.class);
return mapper.summaryBurialPoint(param);
}
@Override
public List<Object> convert(List<? extends BurialPointSummaryDTO> sourceList, Map<String, String> eventCodeMap) {
return sourceList.stream().map(element -> {
SmartCarLifeBurialPointStatisticsDTO smartCarLifeBurialPointStatisticsDTO = BeanUtil.copyProperties(element, SmartCarLifeBurialPointStatisticsDTO.class);
String eventName = eventCodeMap.get(element.getEventCode());
List<String> eventNameList = StrUtil.split(eventName, SymbolConstants.MINUS);
if (CollUtil.isNotEmpty(eventNameList)) {
smartCarLifeBurialPointStatisticsDTO.setFirstModule(eventNameList.get(0));
}
if (eventNameList.size() >= 2) {
smartCarLifeBurialPointStatisticsDTO.setSecondModule(eventNameList.get(1));
}
if (eventNameList.size() >= 3) {
smartCarLifeBurialPointStatisticsDTO.setEventName(eventNameList.get(2));
}
return smartCarLifeBurialPointStatisticsDTO;
}).collect(Collectors.toList());
}
}
package cn.com.glsx.scrm.clue.job;
import cn.com.glsx.scrm.clue.service.BurialPointRecordService;
import cn.com.glsx.scrm.clue.util.LocalDateUtils;
import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf;
import org.springframework.beans.factory.annotation.Autowired;
import java.time.LocalDate;
@Slf4j
@ElasticJobConf(name = "BurialPointSummaryJob", cron = "0 0 8 ? * MON", description="埋点统计任务", overwrite = true)
public class BurialPointSummaryJob implements SimpleJob {
@Autowired
private BurialPointRecordService burialPointRecordService;
@Override
public void execute(ShardingContext shardingContext) {
try {
String jobParameter = shardingContext.getJobParameter();
log.info("埋点统计任务开始执行, 参数[{}]", jobParameter);
//获取当前时间,上一周日期范围
LocalDate currentDate = LocalDate.now();
String weekStartDate = LocalDateUtils.getLastWeekStartDate(currentDate);
String weekEndDate = LocalDateUtils.getLastWeekEndDate(currentDate);
String commonStartDate = null;
String commonEndDate = null;
if (StringUtils.isNotBlank(jobParameter)) {
String[] split = jobParameter.split(",");
weekStartDate = split[0];
weekEndDate = split[1];
commonStartDate = weekStartDate;
commonEndDate = weekEndDate;
}
burialPointRecordService.summaryBurialPointRecord(weekStartDate, weekEndDate);
burialPointRecordService.commonStatisticsBurialPointRecord(commonStartDate, commonEndDate);
log.info("埋点统计任务结束");
} catch (Exception e) {
log.error("埋点统计任务异常", e);
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!