删除回调接口。

dev_0531
kevin jiang 5 years ago
parent 4f16cdecc1
commit d4a8c6a5b7

@ -205,6 +205,26 @@ public class CustomerService {
* @param turnBackDTOS
*/
private void handleCustomer(TurnBackDTO turnBackDTOS) throws Exception {
// 判断是1添加、2、删除
if(null == turnBackDTOS.getOpType()){
turnBackDTOS.setOpType(1);
}
if(TurnBackDTO.OP_TYPE_DEL.equals(turnBackDTOS.getOpType())){
handleDelCustomer(turnBackDTOS);
}else{
handleAddCustomer(turnBackDTOS);
}
}
/**
*
* @param turnBackDTOS
* @throws Exception
* @author dexiang.jiang
* @date 2020/05/24 13:46
*/
private void handleAddCustomer (TurnBackDTO turnBackDTOS) throws Exception {
OpCustomer opCustomer = null;
if (turnBackDTOS.getWxData().getUnionId() == null && turnBackDTOS.getWxData().getUserId() != null) {
//此时说明是企业微信扫码添加
@ -322,6 +342,27 @@ public class CustomerService {
//有vip数据就不需要重新请求bsd的vip接口
vipCheck(turnBackDTOS);
}
}
/**
*
* @param turnBackDTOS
* @throws Exception
* @author dexiang.jiang
* @date 2020/05/24 13:46
*/
private void handleDelCustomer (TurnBackDTO turnBackDTOS) {
//店铺信息
PrivilageCpUserStoreDO poiStore = privilageCpUserStoreDOMapper.selectOneCpUser(turnBackDTOS.getUserId());
if (null == poiStore) {
//无店铺数据处理
log.error("无店铺数据处理 no store data : " + turnBackDTOS.toString());
return;
}
}
/**

@ -1,6 +1,5 @@
package com.kiisoo.ic.synchronous.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
@ -12,6 +11,16 @@ import com.fasterxml.jackson.annotation.JsonProperty;
*/
public class TurnBackDTO {
/**
*
*/
public static final Integer OP_TYPE_ADD = 1;
/**
*
*/
public static final Integer OP_TYPE_DEL = 2;
/**
* code
*/
@ -29,6 +38,7 @@ public class TurnBackDTO {
*/
private int type;
/**
*
*/
@ -57,6 +67,9 @@ public class TurnBackDTO {
@JsonProperty(value = "vip_data")
private VipDataDTO vipData;
@JsonProperty(value = "op_type")
private Integer OpType;
public String getUserId() {
return userId;
}
@ -120,4 +133,27 @@ public class TurnBackDTO {
public void setVipData(VipDataDTO vipData) {
this.vipData = vipData;
}
public Integer getOpType() {
return OpType;
}
public void setOpType(Integer opType) {
OpType = opType;
}
@Override
public String toString() {
return "TurnBackDTO{" +
"userId='" + userId + '\'' +
", eaCode='" + eaCode + '\'' +
", type=" + type +
", name='" + name + '\'' +
", phone='" + phone + '\'' +
", joinTime='" + joinTime + '\'' +
", wxData=" + wxData +
", vipData=" + vipData +
", OpType=" + OpType +
'}';
}
}

Loading…
Cancel
Save