17 changed files with 559 additions and 50 deletions
@ -0,0 +1,236 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.as.feign.yxtcrm; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmCustomerDto.java <br/> |
||||
|
* Class: com.yxt.crm.api.crmcustomer.CrmCustomerDto <br/> |
||||
|
* Description: 客户 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-03-15 17:06:09 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "客户 数据传输对象", description = "客户 数据传输对象") |
||||
|
public class CrmCustomerDto implements Dto { |
||||
|
|
||||
|
private static final long serialVersionUID = 793474187074718535L; |
||||
|
|
||||
|
@ApiModelProperty(value = "当前登录用户的sid") |
||||
|
private String userSid; |
||||
|
|
||||
|
@ApiModelProperty(value = "客户类型(1个人/2企业)", required = true) |
||||
|
@NotBlank(message = "客户类型为必选项") |
||||
|
private String customerType; |
||||
|
|
||||
|
@ApiModelProperty(value = "客户类型key", required = true) |
||||
|
@NotBlank(message = "客户类型为必选项") |
||||
|
private String customerTypeKey; |
||||
|
|
||||
|
@ApiModelProperty(value = "见面方式key", required = true) |
||||
|
@NotBlank(message = "见面方式为必选项") |
||||
|
private String visitWayKey; |
||||
|
|
||||
|
@ApiModelProperty(value = "见面方式(到店/电话/拜访)", required = true) |
||||
|
@NotBlank(message = "见面方式为必选项") |
||||
|
private String visitWay; |
||||
|
|
||||
|
@ApiModelProperty(value = "客户名称", required = true) |
||||
|
@NotBlank(message = "客户名称为必填项") |
||||
|
private String name; |
||||
|
|
||||
|
@ApiModelProperty("联系电话") |
||||
|
@NotBlank(message = "联系电话为必填项") |
||||
|
private String mobile; |
||||
|
|
||||
|
@ApiModelProperty("微信号码") |
||||
|
private String weixin; |
||||
|
|
||||
|
@ApiModelProperty("公司名称:个人客户时显示") |
||||
|
private String companyName; |
||||
|
|
||||
|
@ApiModelProperty("行政区划代码(省)") |
||||
|
private String address_province; |
||||
|
|
||||
|
@ApiModelProperty("行政区划代码(市)") |
||||
|
private String address_city; |
||||
|
@ApiModelProperty("行政区划代码(县)") |
||||
|
private String address_county; |
||||
|
@ApiModelProperty("客户地址:省") |
||||
|
private String province; |
||||
|
@ApiModelProperty("客户地址:市") |
||||
|
private String city; |
||||
|
@ApiModelProperty("客户地址:县") |
||||
|
private String county; |
||||
|
@ApiModelProperty("客户地址:详细地址") |
||||
|
private String address; |
||||
|
|
||||
|
@ApiModelProperty("客户级别(意向客户/准客户/成交客户/集团内销/黑名单客户)") |
||||
|
private String level; |
||||
|
@ApiModelProperty("客户级别key") |
||||
|
private String levelKey; |
||||
|
@ApiModelProperty("是否开启提醒(1开启,0不开启)") |
||||
|
private String isOnRemindkey; |
||||
|
@ApiModelProperty("是否开启提醒(1开启,0不开启)") |
||||
|
private String isOnRemind; |
||||
|
@ApiModelProperty("提醒日期") |
||||
|
private String remind_day; |
||||
|
@ApiModelProperty("提醒备注") |
||||
|
private String remind_remark; |
||||
|
//更多信息
|
||||
|
@ApiModelProperty("客户生日:个人客户时显示") |
||||
|
private String birthday; |
||||
|
@ApiModelProperty("性别:个人客户时显示") |
||||
|
private String sex; |
||||
|
@ApiModelProperty("性别key:个人客户时") |
||||
|
private String sexKey; |
||||
|
@ApiModelProperty("证件类型key") |
||||
|
private String certificateTypeKey; |
||||
|
@ApiModelProperty("证件类型(个人为身份证/企业为营业执照)") |
||||
|
private String certificateType; |
||||
|
@ApiModelProperty("证件号码(个人为身份证号/企业为统一社会信用代码)") |
||||
|
private String IDNumber; |
||||
|
@ApiModelProperty("证件有效期") |
||||
|
private String endDate; |
||||
|
@ApiModelProperty("电子邮箱") |
||||
|
private String e_mail; |
||||
|
@ApiModelProperty(value = "联系人") |
||||
|
private String contacts; |
||||
|
@ApiModelProperty("紧急联系人") |
||||
|
private String emergencyContact; |
||||
|
|
||||
|
@ApiModelProperty("紧急联系电话") |
||||
|
private String emergencyMobile; |
||||
|
|
||||
|
@ApiModelProperty("客户来源(公司资源/自主开发/交接客户/转介绍客户/集团内销)") |
||||
|
private String source; |
||||
|
|
||||
|
@ApiModelProperty("客户来源key") |
||||
|
private String sourceKey; |
||||
|
@ApiModelProperty("客户分类(个人:司机/个体老板/其他。企业:企业型客户/一级经销商/二级经销商/终端物流客户)") |
||||
|
private String customerClass; |
||||
|
@ApiModelProperty("客户分类key") |
||||
|
private String customerClassKey; |
||||
|
@ApiModelProperty(value = "备注") |
||||
|
private String remarks; |
||||
|
@ApiModelProperty("业务人员sid") |
||||
|
private String staffSid; |
||||
|
|
||||
|
// //运营信息
|
||||
|
// @ApiModelProperty(value = "运营信息")
|
||||
|
// private CrmBusinessDto crmBusinessDto = new CrmBusinessDto();
|
||||
|
// //见证材料集合
|
||||
|
// @ApiModelProperty(value = "见证材料的集合,编辑保存时无此字段")
|
||||
|
// private List<PcCrmVisitAppendixDto> crmVisitAppendixDtoList = new ArrayList<>();
|
||||
|
|
||||
|
|
||||
|
private String orgPath; |
||||
|
private String useOrgSid; |
||||
|
private String customerOrgSid; |
||||
|
private String customerOrgName; |
||||
|
|
||||
|
private String vinNo; |
||||
|
private String vehState; |
||||
|
private String saleOrgName; |
||||
|
private String saleDate; |
||||
|
private String sid; |
||||
|
|
||||
|
|
||||
|
//--------------------车辆信息----------------------
|
||||
|
|
||||
|
private String customerVehSid; // 客户车辆信息sid
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; // 车牌号
|
||||
|
@ApiModelProperty("发动机号") |
||||
|
private String engineNo; // 发动机号
|
||||
|
@ApiModelProperty("车型sid") |
||||
|
private String vehModelSid; // 车型sid
|
||||
|
@ApiModelProperty("车型") |
||||
|
private String vehModel; // 车型
|
||||
|
@ApiModelProperty("行驶里程") |
||||
|
private String mileage; // 行驶里程
|
||||
|
@ApiModelProperty("上次保养里程") |
||||
|
private String lastMileage; // 上次保养里程
|
||||
|
@ApiModelProperty("下次保养日期") |
||||
|
private String nextMaintainDate; // 下次保养日期
|
||||
|
@ApiModelProperty("购车日期") |
||||
|
private String buyDate; // 购车日期
|
||||
|
@ApiModelProperty("商业险到期日期") |
||||
|
private String commercialInsuranceEndDate; // 商业险到期日期
|
||||
|
@ApiModelProperty("交强险到期日期") |
||||
|
private String compulsoryInsuranceEndDate; // 交强险到期日期
|
||||
|
|
||||
|
@ApiModelProperty("行驶里程") |
||||
|
private String currentMileage; // 行驶里程
|
||||
|
@ApiModelProperty("每月公里") |
||||
|
private String MonthKm; // 每月公里
|
||||
|
@ApiModelProperty("滤芯到期公里") |
||||
|
private String filter_km; // 滤芯到期公里
|
||||
|
@ApiModelProperty("滤芯到期日期") |
||||
|
private String filter_date; // 滤芯到期日期
|
||||
|
@ApiModelProperty("机油到期公里") |
||||
|
private String engineoil_km; // 机油到期公里
|
||||
|
@ApiModelProperty("机油到期日期") |
||||
|
private String engineoil_date; // 机油到期日期
|
||||
|
@ApiModelProperty("齿轮油到期公里") |
||||
|
private String gearoil_km; // 齿轮油到期公里
|
||||
|
@ApiModelProperty("齿轮油到期日期") |
||||
|
private String gearoil_date; // 齿轮油到期日期
|
||||
|
@ApiModelProperty("宝轮到期公里") |
||||
|
private String treasurewheel_km; // 宝轮到期公里
|
||||
|
@ApiModelProperty("宝轮到期日期") |
||||
|
private String treasurewheel_date; // 宝轮到期日期
|
||||
|
@ApiModelProperty("风扇皮带到期公里") |
||||
|
private String fanbelt_km; // 风扇皮带到期公里
|
||||
|
@ApiModelProperty("风扇皮带到期日期") |
||||
|
private String fanbelt_date; // 风扇皮带到期日期
|
||||
|
@ApiModelProperty("刹车片到期公里") |
||||
|
private String brakepads_km; // 刹车片到期公里
|
||||
|
@ApiModelProperty("刹车片到期日期") |
||||
|
private String brakepads_date; // 刹车片到期日期
|
||||
|
|
||||
|
@ApiModelProperty("车辆备注") |
||||
|
private String carRemarks; |
||||
|
@ApiModelProperty("保养备注") |
||||
|
private String byRemarks; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package com.yxt.anrui.as.feign.yxtcrm; |
||||
|
|
||||
|
import com.yxt.anrui.as.feign.crm.CrmCustomerTemp; |
||||
|
import com.yxt.anrui.as.feign.crm.CrmCustomerTempDto; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/7/19 10:10 |
||||
|
*/ |
||||
|
@Api(tags = "潜在客户信息") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-yxt-CrmCustomer", |
||||
|
name = "yxt-crm", |
||||
|
path = "/apiadmin/v1/crmcustomer" |
||||
|
) |
||||
|
public interface YxtCrmCustomerTempFeign { |
||||
|
|
||||
|
/** |
||||
|
* pc端潜在客户新增保存 |
||||
|
* |
||||
|
* @param dto 客户信息及运行信息数据传输对象 |
||||
|
* @return |
||||
|
*/ |
||||
|
@ApiOperation("新增保存") |
||||
|
@PostMapping("/saveForQuickVeh") |
||||
|
public ResultBean<String> saveForQuickVeh(@Valid @RequestBody CrmCustomerDto dto); |
||||
|
|
||||
|
} |
Loading…
Reference in new issue