Commit 35162478 by 叶立庆

Merge branch 'v5.7.3' into 'master'

上线合并

See merge request !2
2 parents a917ee5b 5e81e1bc
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx</groupId> <groupId>cn.com.glsx</groupId>
<artifactId>rpc-dj-mindworkplate-api</artifactId> <artifactId>rpc-dj-mindworkplate-api</artifactId>
<version>${api-version}</version> <version>5.7.1-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.com.glsx.scrm</groupId> <groupId>cn.com.glsx.scrm</groupId>
......
package cn.com.glsx.dj.script.config; package cn.com.glsx.dj.script.config;
import cn.com.glsx.dj.mindworkplate.remote.AiAgentAccountInfoRemote; import cn.com.glsx.dj.mindworkplate.remote.AiAgentAccountInfoRemote;
import cn.com.glsx.dj.mindworkplate.remote.ReceptionCustomerFileRemote;
import cn.com.glsx.dj.mindworkplate.remote.ScriptExtractRemote; import cn.com.glsx.dj.mindworkplate.remote.ScriptExtractRemote;
import cn.com.glsx.dj.smartcarlife.remote.ExcelAsyncExportRemote; import cn.com.glsx.dj.smartcarlife.remote.ExcelAsyncExportRemote;
import cn.com.glsx.scrm.proxy.remote.merchant.MerchantRemote; import cn.com.glsx.scrm.proxy.remote.merchant.MerchantRemote;
...@@ -48,4 +49,9 @@ public class DubboConfig { ...@@ -48,4 +49,9 @@ public class DubboConfig {
return factory.builder(AiAgentAccountInfoRemote.class)/*.url("dubbo://localhost:20880")*/.check(check).timeout(timeout).build(); return factory.builder(AiAgentAccountInfoRemote.class)/*.url("dubbo://localhost:20880")*/.check(check).timeout(timeout).build();
} }
@Bean
public ReceptionCustomerFileRemote receptionCustomerFileRemote(){
return factory.builder(ReceptionCustomerFileRemote.class).check(check).timeout(timeout).build();
}
} }
package cn.com.glsx.dj.script.controller;
import cn.com.glsx.dj.mindworkplate.dto.ReceptionCustomerFileDetailDTO;
import cn.com.glsx.dj.mindworkplate.dto.ReceptionCustomerFileUpdateRequestDTO;
import cn.com.glsx.dj.mindworkplate.remote.ReceptionCustomerFileRemote;
import cn.com.glsx.dj.script.request.customer.ReceptionCustomerFileIdRequest;
import cn.com.glsx.dj.script.request.customer.ReceptionCustomerFileUpdateRequest;
import cn.com.glsx.dj.script.utils.CommonUtil;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
/**
* 客户档案管理
*/
@Slf4j
@Api("客户档案管理")
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.NO)
public class ReceptionCustomerFileController {
@Autowired
private ReceptionCustomerFileRemote receptionCustomerFileRemote;
@ApiOperation("查询客户档案详情")
@ServiceMethod(method = "dj.api.script.customer.file.detail", needInSession = NeedInSessionType.NO)
public RopResponse<ReceptionCustomerFileDetailDTO> findDetailByReceptionId(ReceptionCustomerFileIdRequest request) {
try {
return CommonUtil.convertRopResponse(receptionCustomerFileRemote.findDetailByReceptionId(request.getReceptionId()));
} catch (RpcServiceException e) {
log.error("=====查询客户档案详情 rpcServiceException:{}", e.getMessage(), e);
return RopResponse.error(e);
} catch (Exception e) {
log.error("=====查询客户档案详情 exception:{}", e.getMessage(), e);
return RopResponse.error("查询客户档案详情失败");
}
}
@ApiOperation("更新客户档案")
@ServiceMethod(method = "dj.api.script.customer.file.update", needInSession = NeedInSessionType.NO)
public RopResponse<Boolean> updateCustomerFile(ReceptionCustomerFileUpdateRequest request) {
ReceptionCustomerFileUpdateRequestDTO dto = CommonUtil.convertRequest(ReceptionCustomerFileUpdateRequestDTO.class);
try {
return CommonUtil.convertRopResponse(receptionCustomerFileRemote.updateCustomerFile(dto));
} catch (RpcServiceException e) {
log.error("=====更新客户档案 rpcServiceException:{}", e.getMessage(), e);
return RopResponse.error(e);
} catch (Exception e) {
log.error("=====更新客户档案 exception:{}", e.getMessage(), e);
return RopResponse.error("更新客户档案失败");
}
}
}
package cn.com.glsx.dj.script.request.customer;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 客户档案ID请求对象
*/
@Data
@ApiModel("客户档案ID请求对象")
@EqualsAndHashCode(callSuper = true)
public class ReceptionCustomerFileIdRequest extends AbstractRopRequest implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "录音接待id", required = true)
private Integer receptionId;
}
package cn.com.glsx.dj.script.request.customer;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 客户档案更新请求对象
*/
@Data
@ApiModel("客户档案更新请求对象")
@EqualsAndHashCode(callSuper = true)
public class ReceptionCustomerFileUpdateRequest extends AbstractRopRequest implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "录音接待id", required = true)
private Integer receptionId;
@ApiModelProperty(notes = "接待结果, 0-成交, 1-战败")
private Integer receptionResult;
@ApiModelProperty(notes = "成交归因(接待结果=0时填写), 0-自然成交, 1-活动成交, 2-对比成交, 3-引导成交, 4-口碑成交, 5-培育成交")
private Integer dealAttribution;
@ApiModelProperty(notes = "战败归因(接待结果=1时填写), 0-价格战败, 1-竞品战败, 2-产品战败, 3-需求战败, 4-决策战败, 5-服务战败, 6-其他战败")
private Integer loseReason;
@ApiModelProperty(notes = "用车人, 0-主人本人, 1-公司户, 2-代办, 3-决策者")
private Integer carUserType;
@ApiModelProperty(notes = "客户背景, 0-企业老板, 1-老师, 2-医生, 3-建筑, 4-个体, 5-自由职业, 6-其他")
private Integer customerBackground;
@ApiModelProperty(notes = "是否好沟通, 0-是, 1-否")
private Integer easyCommunication;
@ApiModelProperty(notes = "是否按揭, 0-是, 1-否")
private Integer isMortgage;
@ApiModelProperty(notes = "首付比例, 0-全款, 1-50%, 2-零首付")
private Integer downPaymentRatio;
@ApiModelProperty(notes = "购车背景, 0-首购, 1-增购")
private Integer purchaseBackground;
@ApiModelProperty(notes = "是否本地用车, 0-本地, 1-外地")
private Integer isLocalUse;
@ApiModelProperty(notes = "购车用途, 0-公司车, 1-家庭用车")
private Integer purchasePurpose;
@ApiModelProperty(notes = "购车时加装项目(多选,英文逗号分隔保存int编码), 0-零重力座椅, 1-轮毂, 2-内饰, 3-玻璃")
private String installItems;
@ApiModelProperty(notes = "赠送精品项目(多选,英文逗号分隔保存int编码), 0-脚垫, 1-车衣, 2-底盘护板, 3-电动踏板, 4-小桌板,5-窗膜")
private String giftItems;
@ApiModelProperty(notes = "贴膜品牌(手填文本)")
private String filmBrand;
@ApiModelProperty(notes = "是否了解其它品牌精品, 0-是, 1-否")
private Integer knowOtherBrandGoods;
@ApiModelProperty(notes = "修改人")
private String updatedBy;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!