Commit 83384a4e by ThomasAdv

定义客户旅程分页查询、详情接口

1 parent 2aa4b0c7
Showing 44 changed files with 1886 additions and 21 deletions
package cn.com.glsx.cdp.api; package cn.com.glsx.cdp.api;
import cn.com.glsx.cdp.modules.model.UserDTO; import cn.com.glsx.cdp.modules.model.user.UserDTO;
import com.glsx.plat.core.web.Result; import com.glsx.plat.core.web.Result;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
......
package cn.com.glsx.cdp.api.customer;
import cn.com.glsx.cdp.modules.model.customer.CustomerSopJourneyDTO;
import cn.com.glsx.cdp.modules.model.customer.CustomerSopJourneyDetailDTO;
import cn.com.glsx.cdp.modules.model.customer.CustomerSopJourneySearch;
import com.github.pagehelper.PageInfo;
import com.glsx.plat.core.web.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @Title: CustomerSopJourneyFeignClient.java
* @Description: 客户sop旅程
* @author caiym
* @date 2023年09月13日 11:12:51
* @version V1.0.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2021
*/
@FeignClient(name = "platform-cdp", contextId = "customerSopJourney", path = "/api/customerSopJourney", decode404 = true)
public interface CustomerSopJourneyFeignClient {
@Operation(description = "分页查询客户旅程信息")
@PostMapping("/page")
Result<PageInfo<CustomerSopJourneyDTO>> pageCustomerSopJourney(@RequestBody CustomerSopJourneySearch request);
@Operation(description = "获取客户旅程详情")
@GetMapping("/detail")
Result<CustomerSopJourneyDetailDTO> detail(@RequestParam("orgId") String orgId, @RequestParam("customerPhone") String customerPhone);
}
package cn.com.glsx.cdp.modules.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Table(name = "cdp_car")
public class Car implements Serializable {
private static final long serialVersionUID = 6742792058614900414L;
/**
* ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 组织ID
*/
@Column(name = "org_id")
private String orgId;
/**
* 车辆id
*/
@Column(name = "car_id")
private String carId;
/**
* 车牌号
*/
@Column(name = "car_number")
private String carNumber;
/**
* 车架号
*/
@Column(name = "car_vin")
private String carVin;
/**
* 车架号后六位
*/
@Column(name = "car_vin_six")
private String carVinSix;
/**
* 发动机号
*/
@Column(name = "car_engine_num")
private String carEngineNum;
/**
* 车辆品牌
*/
@Column(name = "car_brand")
private String carBrand;
/**
* 车型
*/
@Column(name = "car_model")
private String carModel;
/**
* 车系
*/
@Column(name = "car_series")
private String carSeries;
/**
* 车辆颜色
*/
@Column(name = "car_color")
private String carColor;
/**
* 购车日期
*/
@Column(name = "car_buy_date")
private Date carBuyDate;
/**
* 车辆价格
*/
@Column(name = "car_price")
private BigDecimal carPrice;
/**
* 座位数
*/
@Column(name = "car_seats_num")
private String carSeatsNum;
/**
* 三包有效期
*/
@Column(name = "car_warranty_valid")
private String carWarrantyValid;
/**
* 车辆分类
*/
@Column(name = "car_classification")
private String carClassification;
/**
* 车辆性质
*/
@Column(name = "car_nature")
private String carNature;
/**
* 车辆经销商
*/
@Column(name = "car_dealer")
private String carDealer;
/**
* 工厂
*/
@Column(name = "car_factory")
private String carFactory;
/**
* 注册日期
*/
@Column(name = "car_register_date")
private Date carRegisterDate;
/**
* 车辆年款
*/
@Column(name = "car_model_year")
private Integer carModelYear;
/**
* 当前里程
*/
@Column(name = "car_mileage")
private String carMileage;
/**
* 日平均行驶里程
*/
@Column(name = "car_average_daily_mileage")
private String carAverageDailyMileage;
/**
* 来源
*/
@Column(name = "add_way")
private Integer addWay;
/**
* 创建人
*/
@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;
/**
* 0正常,-1已删除
*/
@Column(name = "del_flag")
private Integer delFlag;
/**
* 扩展字段json
*/
@Column(name = "ex_json")
private String exJson;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Table(name = "cdp_car_maintenance_insurance")
public class CarMaintenanceInsurance implements Serializable {
private static final long serialVersionUID = -3242496221952147081L;
/**
* ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 组织ID
*/
@Column(name = "org_id")
private String orgId;
/**
* 车辆id
*/
@Column(name = "car_id")
private String carId;
/**
* 商业险订单号
*/
@Column(name = "car_ins_no")
private String carInsNo;
/**
* 交强险订单号
*/
@Column(name = "car_cpy_ins_no")
private String carCpyInsNo;
/**
* 交强险生效时间
*/
@Column(name = "car_cpy_ins_start_time")
private Date carCpyInsStartTime;
/**
* 交强险失效时间
*/
@Column(name = "car_cpy_ins_end_time")
private Date carCpyInsEndTime;
/**
* 首保日期
*/
@Column(name = "car_first_maintenance_date")
private Date carFirstMaintenanceDate;
/**
* 最后保养时间
*/
@Column(name = "car_last_maintenance_time")
private Date carLastMaintenanceTime;
/**
* 上次保养日期
*/
@Column(name = "car_previous_maintenance_date")
private Date carPreviousMaintenanceDate;
/**
* 通知保养日期
*/
@Column(name = "car_maintenance_notification_date")
private Date carMaintenanceNotificationDate;
/**
* 维修工时
*/
@Column(name = "car_maintenance_hour")
private String carMaintenanceHour;
/**
* 累计金额
*/
@Column(name = "car_maintenance_amount")
private String carMaintenanceAmount;
/**
* 累计维修次数
*/
@Column(name = "car_maintenance_time")
private Integer carMaintenanceTime;
/**
* 保养次数
*/
@Column(name = "car_maintenance_frequency")
private Integer carMaintenanceFrequency;
/**
* 免费维修次数
*/
@Column(name = "car_free_maintenance_time")
private Integer carFreeMaintenanceTime;
/**
* 平均保养天数
*/
@Column(name = "car_average_maintenance_day")
private String carAverageMaintenanceDay;
/**
* 本公司售车
*/
@Column(name = "car_sold_by_company")
private String carSoldByCompany;
/**
* 来源
*/
@Column(name = "add_way")
private Integer addWay;
/**
* 创建人
*/
@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;
/**
* 0正常,-1已删除
*/
@Column(name = "del_flag")
private Integer delFlag;
/**
* 扩展字段json
*/
@Column(name = "ex_json")
private String exJson;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Table(name = "cdp_customer")
public class Customer implements Serializable {
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 组织ID
*/
@Column(name = "org_id")
private String orgId;
/**
* 客户oneID
*/
@Column(name = "one_id")
private String oneId;
/**
* 客户姓名
*/
@Column(name = "customer_name")
private String customerName;
/**
* 性别
*/
private String gender;
/**
* 出生日期
*/
private Date birthday;
/**
* 年龄
*/
private Integer age;
/**
* 电话号码
*/
@Column(name = "customer_phone")
private String customerPhone;
/**
* 电子邮箱
*/
@Column(name = "customer_email")
private String customerEmail;
/**
* 证件类型
*/
@Column(name = "id_type")
private String idType;
/**
* 证件号码
*/
@Column(name = "id_number")
private String idNumber;
/**
* 国籍
*/
private String nationality;
/**
* 省份
*/
private String province;
/**
* 市
*/
private String city;
/**
* 区域
*/
private String region;
/**
* 地址
*/
private String address;
/**
* 婚姻状况
*/
@Column(name = "marital_status")
private String maritalStatus;
/**
* 职业
*/
private String occupation;
/**
* 年收入
*/
@Column(name = "customer_annual_income")
private BigDecimal customerAnnualIncome;
/**
* 公司
*/
@Column(name = "customer_company")
private String customerCompany;
/**
* 教育水平
*/
@Column(name = "education_level")
private String educationLevel;
/**
* 备注
*/
private String notes;
/**
* 来源
*/
@Column(name = "add_way")
private Integer addWay;
/**
* 创建人
*/
@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;
/**
* 是否删除:0=正常,-1=删除
*/
@Column(name = "del_flag")
private Integer delFlag;
/**
* 扩展字段
*/
@Column(name = "ex_json")
private String exJson;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Table(name = "cdp_customer_car_relation")
public class CustomerCarRelation implements Serializable {
private static final long serialVersionUID = 7758828325578933433L;
/**
* 编号
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 组织ID
*/
@Column(name = "org_id")
private String orgId;
/**
* 客户oneId
*/
@Column(name = "one_id")
private String oneId;
/**
* 车辆oneId
*/
@Column(name = "car_id")
private String carId;
/**
* 创建人
*/
@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;
/**
* 0正常,-1删除
*/
@Column(name = "del_flag")
private Integer delFlag;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Table(name = "cdp_customer_event")
public class CustomerEvent implements Serializable {
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 组织ID
*/
@Column(name = "org_id")
private String orgId;
/**
* 客户oneID
*/
@Column(name = "one_id")
private String oneId;
/**
* 事件发生时间
*/
@Column(name = "event_time")
private Date eventTime;
/**
* 事件类型
*/
@Column(name = "event_type")
private String eventType;
/**
* 系统来源: scrm,dj,..
*/
@Column(name = "system_source")
private String systemSource;
/**
* 事件平台(小程序、H5、App等)
*/
private String platform;
/**
* 事件扩展字段
*/
private String extra;
/**
* 扩展字段
*/
@Column(name = "ex_json")
private String exJson;
/**
* 来源
*/
@Column(name = "add_way")
private Integer addWay;
/**
* 创建人
*/
@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;
/**
* 是否删除:0=正常,-1=删除
*/
@Column(name = "del_flag")
private Integer delFlag;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Table(name = "cdp_customer_sop_journey")
public class CustomerSopJourney implements Serializable {
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 组织ID
*/
@Column(name = "org_id")
private String orgId;
/**
* 客户oneID
*/
@Column(name = "one_id")
private String oneId;
/**
* sop旅程ID
*/
@Column(name = "sop_journey_id")
private String sopJourneyId;
/**
* sop旅程阶段
*/
@Column(name = "sop_journey_stage")
private String sopJourneyStage;
/**
* 进入sop旅程时间
*/
@Column(name = "sop_journey_enter_time")
private Date sopJourneyEnterTime;
/**
* 进入当前sop旅程阶段开始时间
*/
@Column(name = "sop_journey_stage_enter_time")
private Date sopJourneyStageEnterTime;
/**
* 跟进人
*/
@Column(name = "sop_follow_up_person")
private String sopFollowUpPerson;
/**
* 来源
*/
@Column(name = "add_way")
private Integer addWay;
/**
* 创建人
*/
@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;
/**
* 是否删除:0=正常,-1=删除
*/
@Column(name = "del_flag")
private Integer delFlag;
/**
* 扩展字段
*/
@Column(name = "ex_json")
private String exJson;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Table(name = "cdp_field")
public class Field implements Serializable {
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 字段序号
*/
@Column(name = "field_index")
private Integer fieldIndex;
/**
* 属性的字段
*/
@Column(name = "field_name")
private String fieldName;
/**
* 字段类型
*/
@Column(name = "field_type")
private String fieldType;
/**
* 字段长度
*/
@Column(name = "field_length")
private Integer fieldLength;
/**
* 属性的字段名
*/
@Column(name = "field_describe")
private String fieldDescribe;
/**
* 字段规则
*/
@Column(name = "field_rule")
private String fieldRule;
/**
* 字段别名
*/
@Column(name = "field_alias")
private String fieldAlias;
/**
* 备注
*/
private String remark;
/**
* 创建人
*/
@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;
/**
* 是否删除:-1已删除,0正常
*/
@Column(name = "del_flag")
private Integer delFlag;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Table(name = "cdp_model")
public class Model implements Serializable {
private static final long serialVersionUID = -6054904971227801924L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 模型表名
*/
@Column(name = "model_name")
private String modelName;
/**
* 是否事事件表(1-是)
*/
@Column(name = "event_flag")
private Integer eventFlag;
/**
* 实体归属 1.客户
*/
@Column(name = "oneid_belong")
private Byte oneidBelong;
/**
* 备注说明
*/
private String remark;
/**
* 创建时间
*/
@Column(name = "created_time")
private Date createdTime;
/**
* 创建人
*/
@Column(name = "created_by")
private String createdBy;
/**
* 更新时间
*/
@Column(name = "updated_time")
private Date updatedTime;
/**
* 更新人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 是否删除:0=正常,-1=删除
*/
@Column(name = "del_flag")
private Integer delFlag;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Table(name = "cdp_model_field_mapping")
public class ModelFieldMapping implements Serializable {
private static final long serialVersionUID = 8972832964043406363L;
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 模型表名
*/
@Column(name = "model_name")
private String modelName;
/**
* 字段序号
*/
@Column(name = "field_index")
private Integer fieldIndex;
/**
* 合并规则 (1-非空优先2-最后一次入库优先3-第一次入库优先4-时间最小5-时间最大)
*/
@Column(name = "union_rule")
private Integer unionRule;
/**
* 模型识别标识:1
*/
@Column(name = "model_flag")
private Integer modelFlag;
/**
* 是否oneid识别字段:1
*/
@Column(name = "oneid_flag")
private Boolean oneidFlag;
/**
* 是否是扩展字段:1
*/
@Column(name = "expand_flag")
private Integer expandFlag;
/**
* 是否是唯一值:1
*/
@Column(name = "unique_flag")
private Integer uniqueFlag;
/**
* 创建人
*/
@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;
/**
* 是否删除:0=正常,-1=删除
*/
@Column(name = "del_flag")
private Integer delFlag;
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.CarMaintenanceInsurance;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
public interface CarMaintenanceInsuranceMapper extends CommonBaseMapper<CarMaintenanceInsurance> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.Car;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
public interface CarMapper extends CommonBaseMapper<Car> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.CustomerCarRelation;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
public interface CustomerCarRelationMapper extends CommonBaseMapper<CustomerCarRelation> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.CustomerEvent;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
public interface CustomerEventMapper extends CommonBaseMapper<CustomerEvent> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.Customer;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
public interface CustomerMapper extends CommonBaseMapper<Customer> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.CustomerSopJourney;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
public interface CustomerSopJourneyMapper extends CommonBaseMapper<CustomerSopJourney> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.Field;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
public interface FieldMapper extends CommonBaseMapper<Field> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.ModelFieldMapping;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
public interface ModelFieldMappingMapper extends CommonBaseMapper<ModelFieldMapping> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.Model;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
public interface ModelMapper extends CommonBaseMapper<Model> {
}
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.cdp.modules.model.customer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Schema(description = "车辆维保信息")
@Data
public class CarMaintenanceInsuranceDTO implements Serializable {
private static final long serialVersionUID = 734253580989420799L;
@Schema(description = "车牌号")
private String carNumber;
@Schema(description = "车架号")
private String carVin;
@Schema(description = "车架号后六位")
private String carVinSix;
@Schema(description = "发动机号")
private String carEngineNum;
@Schema(description = "车辆品牌")
private String carBrand;
@Schema(description = "车型")
private String carModel;
@Schema(description = "车系")
private String carSeries;
@Schema(description = "车辆颜色")
private String carColor;
@Schema(description = "购车日期")
private Date carBuyDate;
@Schema(description = "车辆价格")
private BigDecimal carPrice;
@Schema(description = "座位数")
private String carSeatsNum;
@Schema(description = "三包有效期")
private String carWarrantyValid;
@Schema(description = "车辆分类")
private String carClassification;
@Schema(description = "车辆性质")
private String carNature;
@Schema(description = "车辆经销商")
private String carDealer;
@Schema(description = "工厂")
private String carFactory;
@Schema(description = "注册日期")
private Date carRegisterDate;
@Schema(description = "车辆年款")
private Integer carModelYear;
@Schema(description = "当前里程")
private String carMileage;
@Schema(description = "日平均行驶里程")
private String carAverageDailyMileage;
@Schema(description = "车辆其他信息(json)")
private String carExtra;
@Schema(description = "商业险订单号")
private String carInsNo;
@Schema(description = "交强险订单号")
private String carCpyInsNo;
@Schema(description = "交强险生效时间")
private Date carCpyInsStartTime;
@Schema(description = "交强险失效时间")
private Date carCpyInsEndTime;
@Schema(description = "首保日期")
private Date carFirstMaintenanceDate;
@Schema(description = "最后保养时间")
private Date carLastMaintenanceTime;
@Schema(description = "上次保养日期")
private Date carPreviousMaintenanceDate;
@Schema(description = "通知保养日期")
private Date carMaintenanceNotificationDate;
@Schema(description = "维修工时")
private String carMaintenanceHour;
@Schema(description = "累计金额")
private String carMaintenanceAmount;
@Schema(description = "累计维修次数")
private Integer carMaintenanceTime;
@Schema(description = "保养次数")
private Integer carMaintenanceFrequency;
@Schema(description = "免费维修次数")
private Integer carFreeMaintenanceTime;
@Schema(description = "平均保养天数")
private String carAverageMaintenanceDay;
@Schema(description = "本公司售车")
private String carSoldByCompany;
}
package cn.com.glsx.cdp.modules.model.customer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
import java.util.Date;
@Schema(description = "客户sop旅程信息")
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class CustomerSopJourneyDTO implements Serializable {
private static final long serialVersionUID = 7567563160036214791L;
@Schema(description = "组织ID")
private String orgId;
@Schema(description = "客户姓名")
private String customerName;
@Schema(description = "客户电话")
private String customerPhone;
@Schema(description = "客户性别")
private String gender;
@Schema(description ="客户生日")
private Date birthday;
@Schema(description ="客户年龄")
private Integer age;
@Schema(description = "客户额外信息json(微信昵称、头像等)")
private String customerExtra;
@Schema(description = "sop旅程ID")
private String sopJourneyId;
@Schema(description = "sop旅程阶段")
private String sopJourneyStage;
@Schema(description = "进入sop旅程时间")
private Date sopJourneyEnterTime;
@Schema(description = "进入当前sop旅程阶段时间")
private Date sopJourneyStageEnterTime;
@Schema(description = "跟进人")
private String sopFollowUpPerson;
}
package cn.com.glsx.cdp.modules.model.customer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.util.List;
@Schema(description = "客户sop旅程信息")
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class CustomerSopJourneyDetailDTO extends CustomerSopJourneyDTO{
private static final long serialVersionUID = 1864271167672001213L;
private List<CarMaintenanceInsuranceDTO> carMaintenanceInsurances;
}
package cn.com.glsx.cdp.modules.model.customer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
@Data
public class CustomerSopJourneySearch implements Serializable {
private static final long serialVersionUID = 3461654553135024523L;
@Schema(description = "页码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull
private Integer pageNum;
@Schema(description = "分页大小", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull
private Integer pageSize;
@Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull
private String orgId;
@Schema(description = "客户旅程id列表")
private List<String> sopJourneyIds;
@Schema(description = "客户旅程阶段列表")
private List<String> sopJourneyStages;
@Schema(description = "客户手机号列表")
private List<String> customerPhones;
@Schema(description = "客户姓名")
private String customerName;
@Schema(description = "客户微信昵称")
private String customerWechatNickname;
@Schema(description = "客户旅程跟进人列表")
private List<String> sopFollowUpPersons;
@Schema(description = "进入sop旅程时间-开始")
private String sopJourneyEnterTimeBegin;
@Schema(description = "进入sop旅程时间-结束")
private String sopJourneyEnterTimeEnd;
}
package cn.com.glsx.cdp.modules.model; package cn.com.glsx.cdp.modules.model.user;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
......
package cn.com.glsx.cdp.modules.model; package cn.com.glsx.cdp.modules.model.user;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
......
package cn.com.glsx.cdp.modules.model; package cn.com.glsx.cdp.modules.model.user;
import cn.hutool.db.Page; import cn.hutool.db.Page;
import lombok.Data; import lombok.Data;
......
...@@ -3,7 +3,7 @@ package cn.com.glsx.cdp.modules.api; ...@@ -3,7 +3,7 @@ package cn.com.glsx.cdp.modules.api;
import cn.com.glsx.cdp.api.UserCenterFeignClient; import cn.com.glsx.cdp.api.UserCenterFeignClient;
import cn.com.glsx.cdp.modules.converter.UserConverter; import cn.com.glsx.cdp.modules.converter.UserConverter;
import cn.com.glsx.cdp.modules.entity.User; import cn.com.glsx.cdp.modules.entity.User;
import cn.com.glsx.cdp.modules.model.UserDTO; import cn.com.glsx.cdp.modules.model.user.UserDTO;
import cn.com.glsx.cdp.modules.service.UserDemoService; import cn.com.glsx.cdp.modules.service.UserDemoService;
import cn.com.glsx.echocenter.api.EchoCenterFeignClient; import cn.com.glsx.echocenter.api.EchoCenterFeignClient;
import com.glsx.plat.core.annotation.ResponseResultBody; import com.glsx.plat.core.annotation.ResponseResultBody;
...@@ -11,7 +11,6 @@ import com.glsx.plat.core.web.Result; ...@@ -11,7 +11,6 @@ import com.glsx.plat.core.web.Result;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
......
package cn.com.glsx.cdp.modules.api.customer;
import cn.com.glsx.cdp.api.customer.CustomerSopJourneyFeignClient;
import cn.com.glsx.cdp.modules.model.customer.CustomerSopJourneyDTO;
import cn.com.glsx.cdp.modules.model.customer.CustomerSopJourneyDetailDTO;
import cn.com.glsx.cdp.modules.model.customer.CustomerSopJourneySearch;
import com.github.pagehelper.PageInfo;
import com.glsx.plat.core.annotation.ResponseResultBody;
import com.glsx.plat.core.web.Result;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Tag(name = "客户sop旅程")
@RestController
@RequestMapping(value = "/api/customerSopJourney")
@ResponseResultBody
public class CustomerSopJourneyController implements CustomerSopJourneyFeignClient {
@Override
public Result<PageInfo<CustomerSopJourneyDTO>> pageCustomerSopJourney(CustomerSopJourneySearch request) {
return null;
}
@Override
public Result<CustomerSopJourneyDetailDTO> detail(String orgId, String customerPhone) {
return null;
}
}
...@@ -3,9 +3,9 @@ package cn.com.glsx.cdp.modules.controller; ...@@ -3,9 +3,9 @@ package cn.com.glsx.cdp.modules.controller;
import cn.com.glsx.cdp.modules.BaseController; import cn.com.glsx.cdp.modules.BaseController;
import cn.com.glsx.cdp.modules.converter.UserConverter; import cn.com.glsx.cdp.modules.converter.UserConverter;
import cn.com.glsx.cdp.modules.entity.User; import cn.com.glsx.cdp.modules.entity.User;
import cn.com.glsx.cdp.modules.model.UserBO; import cn.com.glsx.cdp.modules.model.user.UserBO;
import cn.com.glsx.cdp.modules.model.UserDTO; import cn.com.glsx.cdp.modules.model.user.UserDTO;
import cn.com.glsx.cdp.modules.model.UserSearch; import cn.com.glsx.cdp.modules.model.user.UserSearch;
import cn.com.glsx.cdp.modules.service.UserDemoService; import cn.com.glsx.cdp.modules.service.UserDemoService;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
......
package cn.com.glsx.cdp.modules.converter; package cn.com.glsx.cdp.modules.converter;
import cn.com.glsx.cdp.modules.model.UserBO; import cn.com.glsx.cdp.modules.model.user.UserBO;
import cn.com.glsx.cdp.modules.model.UserDTO; import cn.com.glsx.cdp.modules.model.user.UserDTO;
import cn.com.glsx.cdp.modules.entity.User; import cn.com.glsx.cdp.modules.entity.User;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mapping; import org.mapstruct.Mapping;
......
package cn.com.glsx.cdp.modules.mapper; package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.User; import cn.com.glsx.cdp.modules.entity.User;
import cn.com.glsx.cdp.modules.model.UserSearch; import cn.com.glsx.cdp.modules.model.user.UserSearch;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
......
...@@ -3,8 +3,8 @@ package cn.com.glsx.cdp.modules.service; ...@@ -3,8 +3,8 @@ package cn.com.glsx.cdp.modules.service;
import cn.com.glsx.cdp.modules.converter.UserConverter; import cn.com.glsx.cdp.modules.converter.UserConverter;
import cn.com.glsx.cdp.modules.entity.User; import cn.com.glsx.cdp.modules.entity.User;
import cn.com.glsx.cdp.modules.mapper.UserMapper; import cn.com.glsx.cdp.modules.mapper.UserMapper;
import cn.com.glsx.cdp.modules.model.UserDTO; import cn.com.glsx.cdp.modules.model.user.UserDTO;
import cn.com.glsx.cdp.modules.model.UserSearch; import cn.com.glsx.cdp.modules.model.user.UserSearch;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.glsx.plat.common.utils.ObjectUtils; import com.glsx.plat.common.utils.ObjectUtils;
import com.glsx.plat.common.utils.StringUtils; import com.glsx.plat.common.utils.StringUtils;
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.cdp.modules.mapper.CarMaintenanceInsuranceMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.cdp.modules.entity.CarMaintenanceInsurance">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="car_id" jdbcType="VARCHAR" property="carId" />
<result column="car_ins_no" jdbcType="VARCHAR" property="carInsNo" />
<result column="car_cpy_ins_no" jdbcType="VARCHAR" property="carCpyInsNo" />
<result column="car_cpy_ins_start_time" jdbcType="TIMESTAMP" property="carCpyInsStartTime" />
<result column="car_cpy_ins_end_time" jdbcType="TIMESTAMP" property="carCpyInsEndTime" />
<result column="car_first_maintenance_date" jdbcType="TIMESTAMP" property="carFirstMaintenanceDate" />
<result column="car_last_maintenance_time" jdbcType="TIMESTAMP" property="carLastMaintenanceTime" />
<result column="car_previous_maintenance_date" jdbcType="TIMESTAMP" property="carPreviousMaintenanceDate" />
<result column="car_maintenance_notification_date" jdbcType="TIMESTAMP" property="carMaintenanceNotificationDate" />
<result column="car_maintenance_hour" jdbcType="VARCHAR" property="carMaintenanceHour" />
<result column="car_maintenance_amount" jdbcType="VARCHAR" property="carMaintenanceAmount" />
<result column="car_maintenance_time" jdbcType="INTEGER" property="carMaintenanceTime" />
<result column="car_maintenance_frequency" jdbcType="INTEGER" property="carMaintenanceFrequency" />
<result column="car_free_maintenance_time" jdbcType="INTEGER" property="carFreeMaintenanceTime" />
<result column="car_average_maintenance_day" jdbcType="VARCHAR" property="carAverageMaintenanceDay" />
<result column="car_sold_by_company" jdbcType="VARCHAR" property="carSoldByCompany" />
<result column="ex_json" jdbcType="LONGVARCHAR" property="exJson" />
<result column="add_way" jdbcType="INTEGER" property="addWay" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, org_id, car_id, car_ins_no, car_cpy_ins_no, car_cpy_ins_start_time, car_cpy_ins_end_time,
car_first_maintenance_date, car_last_maintenance_time, car_previous_maintenance_date,
car_maintenance_notification_date, car_maintenance_hour, car_maintenance_amount,
car_maintenance_time, car_maintenance_frequency, car_free_maintenance_time, car_average_maintenance_day,
car_sold_by_company, add_way, created_by, created_time, updated_by, updated_time,
del_flag
</sql>
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
-->
ex_json
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.cdp.modules.mapper.CarMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.cdp.modules.entity.Car">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="car_id" jdbcType="VARCHAR" property="carId" />
<result column="car_number" jdbcType="VARCHAR" property="carNumber" />
<result column="car_vin" jdbcType="VARCHAR" property="carVin" />
<result column="car_vin_six" jdbcType="VARCHAR" property="carVinSix" />
<result column="car_engine_num" jdbcType="VARCHAR" property="carEngineNum" />
<result column="car_brand" jdbcType="VARCHAR" property="carBrand" />
<result column="car_model" jdbcType="VARCHAR" property="carModel" />
<result column="car_series" jdbcType="VARCHAR" property="carSeries" />
<result column="car_color" jdbcType="VARCHAR" property="carColor" />
<result column="car_buy_date" jdbcType="TIMESTAMP" property="carBuyDate" />
<result column="car_price" jdbcType="DECIMAL" property="carPrice" />
<result column="car_seats_num" jdbcType="VARCHAR" property="carSeatsNum" />
<result column="car_warranty_valid" jdbcType="VARCHAR" property="carWarrantyValid" />
<result column="car_classification" jdbcType="VARCHAR" property="carClassification" />
<result column="car_nature" jdbcType="VARCHAR" property="carNature" />
<result column="car_dealer" jdbcType="VARCHAR" property="carDealer" />
<result column="car_factory" jdbcType="VARCHAR" property="carFactory" />
<result column="car_register_date" jdbcType="TIMESTAMP" property="carRegisterDate" />
<result column="car_model_year" jdbcType="INTEGER" property="carModelYear" />
<result column="car_mileage" jdbcType="VARCHAR" property="carMileage" />
<result column="car_average_daily_mileage" jdbcType="VARCHAR" property="carAverageDailyMileage" />
<result column="ex_json" jdbcType="LONGVARCHAR" property="exJson" />
<result column="add_way" jdbcType="INTEGER" property="addWay" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, org_id, car_id, car_number, car_vin, car_vin_six, car_engine_num, car_brand,
car_model, car_series, car_color, car_buy_date, car_price, car_seats_num, car_warranty_valid,
car_classification, car_nature, car_dealer, car_factory, car_register_date, car_model_year,
car_mileage, car_average_daily_mileage, add_way, created_by, created_time, updated_by,
updated_time, del_flag
</sql>
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
-->
ex_json
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.cdp.modules.mapper.CustomerCarRelationMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.cdp.modules.entity.CustomerCarRelation">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="one_id" jdbcType="VARCHAR" property="oneId" />
<result column="car_id" jdbcType="VARCHAR" property="carId" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, org_id, one_id, car_id, created_by, created_time, updated_by, updated_time, del_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.cdp.modules.mapper.CustomerEventMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.cdp.modules.entity.CustomerEvent">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="one_id" jdbcType="VARCHAR" property="oneId" />
<result column="event_time" jdbcType="TIMESTAMP" property="eventTime" />
<result column="event_type" jdbcType="VARCHAR" property="eventType" />
<result column="system_source" jdbcType="VARCHAR" property="systemSource" />
<result column="platform" jdbcType="CHAR" property="platform" />
<result column="extra" jdbcType="VARCHAR" property="extra" />
<result column="ex_json" jdbcType="LONGVARCHAR" property="exJson" />
<result column="add_way" jdbcType="INTEGER" property="addWay" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, org_id, one_id, event_time, event_type, system_source, platform, extra, add_way,
created_by, created_time, updated_by, updated_time, del_flag
</sql>
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
-->
ex_json
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.cdp.modules.mapper.CustomerMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.cdp.modules.entity.Customer">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="one_id" jdbcType="VARCHAR" property="oneId" />
<result column="customer_name" jdbcType="VARCHAR" property="customerName" />
<result column="gender" jdbcType="CHAR" property="gender" />
<result column="birthday" jdbcType="TIMESTAMP" property="birthday" />
<result column="age" jdbcType="INTEGER" property="age" />
<result column="customer_phone" jdbcType="VARCHAR" property="customerPhone" />
<result column="customer_email" jdbcType="VARCHAR" property="customerEmail" />
<result column="id_type" jdbcType="CHAR" property="idType" />
<result column="id_number" jdbcType="VARCHAR" property="idNumber" />
<result column="nationality" jdbcType="VARCHAR" property="nationality" />
<result column="province" jdbcType="VARCHAR" property="province" />
<result column="city" jdbcType="VARCHAR" property="city" />
<result column="region" jdbcType="VARCHAR" property="region" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="marital_status" jdbcType="CHAR" property="maritalStatus" />
<result column="occupation" jdbcType="VARCHAR" property="occupation" />
<result column="customer_annual_income" jdbcType="DECIMAL" property="customerAnnualIncome" />
<result column="customer_company" jdbcType="VARCHAR" property="customerCompany" />
<result column="education_level" jdbcType="CHAR" property="educationLevel" />
<result column="notes" jdbcType="VARCHAR" property="notes" />
<result column="ex_json" jdbcType="LONGVARCHAR" property="exJson" />
<result column="add_way" jdbcType="INTEGER" property="addWay" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, org_id, one_id, customer_name, gender, birthday, age, customer_phone, customer_email,
id_type, id_number, nationality, province, city, region, address, marital_status,
occupation, customer_annual_income, customer_company, education_level, notes, add_way,
created_by, created_time, updated_by, updated_time, del_flag
</sql>
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
-->
ex_json
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.cdp.modules.mapper.CustomerSopJourneyMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.cdp.modules.entity.CustomerSopJourney">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="one_id" jdbcType="VARCHAR" property="oneId" />
<result column="sop_journey_id" jdbcType="VARCHAR" property="sopJourneyId" />
<result column="sop_journey_stage" jdbcType="VARCHAR" property="sopJourneyStage" />
<result column="sop_journey_enter_time" jdbcType="TIMESTAMP" property="sopJourneyEnterTime" />
<result column="sop_journey_stage_enter_time" jdbcType="TIMESTAMP" property="sopJourneyStageEnterTime" />
<result column="sop_follow_up_person" jdbcType="VARCHAR" property="sopFollowUpPerson" />
<result column="ex_json" jdbcType="LONGVARCHAR" property="exJson" />
<result column="add_way" jdbcType="INTEGER" property="addWay" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, org_id, one_id, sop_journey_id, sop_journey_stage, sop_journey_enter_time, sop_journey_stage_enter_time,
sop_follow_up_person, add_way, created_by, created_time, updated_by, updated_time,
del_flag
</sql>
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
-->
ex_json
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.cdp.modules.mapper.FieldMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.cdp.modules.entity.Field">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="field_index" jdbcType="INTEGER" property="fieldIndex" />
<result column="field_name" jdbcType="VARCHAR" property="fieldName" />
<result column="field_type" jdbcType="VARCHAR" property="fieldType" />
<result column="field_length" jdbcType="INTEGER" property="fieldLength" />
<result column="field_describe" jdbcType="VARCHAR" property="fieldDescribe" />
<result column="field_rule" jdbcType="VARCHAR" property="fieldRule" />
<result column="field_alias" jdbcType="VARCHAR" property="fieldAlias" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, field_index, field_name, field_type, field_length, field_describe, field_rule,
field_alias, remark, created_by, created_time, updated_by, updated_time, del_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.cdp.modules.mapper.ModelFieldMappingMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.cdp.modules.entity.ModelFieldMapping">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="model_name" jdbcType="VARCHAR" property="modelName" />
<result column="field_index" jdbcType="INTEGER" property="fieldIndex" />
<result column="union_rule" jdbcType="INTEGER" property="unionRule" />
<result column="model_flag" jdbcType="INTEGER" property="modelFlag" />
<result column="oneid_flag" jdbcType="BIT" property="oneidFlag" />
<result column="expand_flag" jdbcType="INTEGER" property="expandFlag" />
<result column="unique_flag" jdbcType="INTEGER" property="uniqueFlag" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, model_name, field_index, union_rule, model_flag, oneid_flag, expand_flag, unique_flag,
created_by, created_time, updated_by, updated_time, del_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.cdp.modules.mapper.ModelMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.cdp.modules.entity.Model">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="model_name" jdbcType="VARCHAR" property="modelName" />
<result column="event_flag" jdbcType="INTEGER" property="eventFlag" />
<result column="oneid_belong" jdbcType="TINYINT" property="oneidBelong" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="created_by" jdbcType="VARCHAR" property="createdBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, model_name, event_flag, oneid_belong, remark, created_time, created_by, updated_time,
updated_by, del_flag
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
...@@ -37,20 +37,20 @@ ...@@ -37,20 +37,20 @@
</commentGenerator> </commentGenerator>
<!-- jdbc连接--> <!-- jdbc连接-->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" <jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://192.168.0.39:3306/seata_storage?serverTimeZone=Shanghai&amp;useUnicode=true&amp;characterEncoding=utf8&amp;useSSL=false" connectionURL="jdbc:mysql://192.168.3.227:3306/platform_cdp?serverTimeZone=Shanghai&amp;useUnicode=true&amp;characterEncoding=utf8&amp;useSSL=false"
userId="root" userId="dev_admin"
password="123456"> password="1f7e1ed2">
<!--防止生成其他库同名表--> <!--防止生成其他库同名表-->
<property name="nullCatalogMeansCurrent" value="true"/> <property name="nullCatalogMeansCurrent" value="true"/>
</jdbcConnection> </jdbcConnection>
<!-- 类型转换 --> <!-- 类型转换 -->
<javaTypeResolver> <javaTypeResolver>
<!-- 是否使用bigDecimal, false可自动转化以下类型(Long, Integer, Short, etc.) --> <!-- 是否使用bigDecimal, false可自动转化以下类型(Long, Integer, Short, etc.) -->
<property name="forceBigDecimals" value="false"/> <!-- <property name="forceBigDecimals" value="false"/>-->
</javaTypeResolver> </javaTypeResolver>
<!-- 生成实体类地址 --> <!-- 生成实体类地址 -->
<javaModelGenerator targetPackage="cn.com.payu.modules.entity" targetProject="src/main/java"> <javaModelGenerator targetPackage="cn.com.glsx.cdp.modules.entity" targetProject="../platform-cdp-api/src/main/java">
<!-- 是否让schema作为包的后缀 --> <!-- 是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="true"/> <property name="enableSubPackages" value="true"/>
<!-- 从数据库返回的值去掉前后空格 --> <!-- 从数据库返回的值去掉前后空格 -->
...@@ -63,11 +63,39 @@ ...@@ -63,11 +63,39 @@
</sqlMapGenerator> </sqlMapGenerator>
<!-- 生成接口dao type="ANNOTATEDMAPPER",生成Java Model 和基于注解的Mapper对象 type="MIXEDMAPPER",生成基于注解的Java Model 和相应的Mapper对象 type="XMLMAPPER",生成SQLMap XML文件和独立的Mapper接口 --> <!-- 生成接口dao type="ANNOTATEDMAPPER",生成Java Model 和基于注解的Mapper对象 type="MIXEDMAPPER",生成基于注解的Java Model 和相应的Mapper对象 type="XMLMAPPER",生成SQLMap XML文件和独立的Mapper接口 -->
<javaClientGenerator targetPackage="cn.com.payu.modules.mapper" targetProject="src/main/java" type="XMLMAPPER"> <javaClientGenerator targetPackage="cn.com.glsx.cdp.modules.mapper" targetProject="../platform-cdp-api/src/main/java" type="XMLMAPPER">
<property name="enableSubPackages" value="false"/> <property name="enableSubPackages" value="false"/>
</javaClientGenerator> </javaClientGenerator>
<!-- table可以有多个,每个数据库中的表都可以写一个table,tableName表示要匹配的数据库表,也可以在tableName属性中通过使用%通配符来匹配所有数据库表,只有匹配的表才会自动生成文件 enableSelectByPrimaryKey相应的配置表示是否生成相应的接口 --> <!-- table可以有多个,每个数据库中的表都可以写一个table,tableName表示要匹配的数据库表,也可以在tableName属性中通过使用%通配符来匹配所有数据库表,只有匹配的表才会自动生成文件 enableSelectByPrimaryKey相应的配置表示是否生成相应的接口 -->
<table tableName="t_storage" domainObjectName="Storage" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/> <!-- <table tableName="cdp_field" domainObjectName="Field" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="cdp_model" domainObjectName="Model" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="cdp_model_field_mapping" domainObjectName="ModelFieldMapping" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="cdp_customer" domainObjectName="Customer" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="cdp_customer_car_relation" domainObjectName="CustomerCarRelation" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<table tableName="cdp_customer_event" domainObjectName="CustomerEvent" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
<columnOverride column="extra" javaType="java.lang.String" jdbcType="VARCHAR" />
<columnOverride column="exJson" javaType="java.lang.String" jdbcType="VARCHAR" />
</table>
<!-- <table tableName="cdp_customer_sop_journey" domainObjectName="CustomerSopJourney" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="cdp_car" domainObjectName="Car" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="cdp_car_maintenance_insurance" domainObjectName="CarMaintenanceInsurance" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
</context> </context>
</generatorConfiguration> </generatorConfiguration>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!