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

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

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