提交 d0c8c592 authored 作者: 000516's avatar 000516

门店信息添加:门店类型/渠道大类/渠道小类

上级 d73c4e29
...@@ -45,11 +45,6 @@ public class QinCeClienteleStoreDaoImpl implements QinCeClienteleStoreDao { ...@@ -45,11 +45,6 @@ public class QinCeClienteleStoreDaoImpl implements QinCeClienteleStoreDao {
try { try {
QinCeClienteleStoreDO qinCeShopDO = JSONObject.parseObject(responseData.toString(), QinCeClienteleStoreDO.class); QinCeClienteleStoreDO qinCeShopDO = JSONObject.parseObject(responseData.toString(), QinCeClienteleStoreDO.class);
// if (qinCeShopDO.getStoreStatus().equals("0") && Objects.nonNull(qinCeShopDO.getQcId())){
// qinCeClienteleStoreMapper.updateStatusById(qinCeShopDO.getQcId());
// continue;
// }
// 添加经销商 // 添加经销商
List<JSONObject> dealers = qinCeShopDO.getDealers(); List<JSONObject> dealers = qinCeShopDO.getDealers();
if (!CollectionUtils.isEmpty(dealers)){ if (!CollectionUtils.isEmpty(dealers)){
......
...@@ -13,9 +13,10 @@ import java.util.List; ...@@ -13,9 +13,10 @@ import java.util.List;
/** /**
* 勤策-客户管理-终端 * 勤策-客户管理-终端
*
* @TableName qc_clientele_shop * @TableName qc_clientele_shop
*/ */
@TableName(value ="qince_clientele_store") @TableName(value = "qince_clientele_store")
@Data @Data
public class QinCeClienteleStoreDO implements Serializable { public class QinCeClienteleStoreDO implements Serializable {
/** /**
...@@ -229,11 +230,18 @@ public class QinCeClienteleStoreDO implements Serializable { ...@@ -229,11 +230,18 @@ public class QinCeClienteleStoreDO implements Serializable {
@JsonProperty("create_time") @JsonProperty("create_time")
private String createTime; private String createTime;
// 门店类型 -->> 不变
private String storeTypeExt;
// 渠道大类 -->> 合作模式
private String cooperationModeExt;
// 渠道小类 -->> 渠道类型
private String channelTypeExt;
@TableField(exist = false) @TableField(exist = false)
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Data @Data
public class Exts{ public class Exts {
@JsonProperty("store_ext_key") @JsonProperty("store_ext_key")
private String storeExtKey; private String storeExtKey;
@JsonProperty("store_ext_value") @JsonProperty("store_ext_value")
...@@ -245,7 +253,7 @@ public class QinCeClienteleStoreDO implements Serializable { ...@@ -245,7 +253,7 @@ public class QinCeClienteleStoreDO implements Serializable {
for (Exts e : exts) { for (Exts e : exts) {
String extKey = e.getStoreExtKey(); String extKey = e.getStoreExtKey();
String extValue = e.getStoreExtValue(); String extValue = e.getStoreExtValue();
if ("CVS、KA".contains(this.storeType) && "是否连锁".equals(extKey) && "是".equals(extValue)){ if ("CVS、KA".contains(this.storeType) && "是否连锁".equals(extKey) && "是".equals(extValue)) {
isChain = true; isChain = true;
} }
if ("是否连锁".equals(extKey)) { if ("是否连锁".equals(extKey)) {
...@@ -254,11 +262,17 @@ public class QinCeClienteleStoreDO implements Serializable { ...@@ -254,11 +262,17 @@ public class QinCeClienteleStoreDO implements Serializable {
if ("系统名称".equals(extKey)) { if ("系统名称".equals(extKey)) {
this.lineName = extValue; this.lineName = extValue;
} }
if ("是否双T门店".equals(extKey)) { if ("渠道小类".equals(extKey)) {
this.bothT = extValue; this.channelTypeExt = extValue;
}
if ("渠道大类".equals(extKey)) {
this.cooperationModeExt = extValue;
}
if ("门店类型".equals(extKey)) {
this.storeTypeExt = extValue;
} }
} }
if (!isChain){ if (!isChain) {
this.lineName = this.storeType; this.lineName = this.storeType;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论