提交 26b354a7 authored 作者: 李秋林's avatar 李秋林

同步勤策门店:系统名称(CVS\KA并且是连锁的店直接用系统名称,否则同步门店类型)

上级 35e451b7
...@@ -45,6 +45,9 @@ public class QinCeClienteleStoreDaoImpl implements QinCeClienteleStoreDao { ...@@ -45,6 +45,9 @@ 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")){
continue;
}
// 添加经销商 // 添加经销商
List<JSONObject> dealers = qinCeShopDO.getDealers(); List<JSONObject> dealers = qinCeShopDO.getDealers();
......
...@@ -54,6 +54,11 @@ public class QinCeClienteleStoreDO implements Serializable { ...@@ -54,6 +54,11 @@ public class QinCeClienteleStoreDO implements Serializable {
@JsonProperty("store_code") @JsonProperty("store_code")
private String storeCode; private String storeCode;
/**
* 是否连锁
*/
private String chain;
/** /**
* 门店经理,多门店经理名称间以“,”分隔 * 门店经理,多门店经理名称间以“,”分隔
*/ */
...@@ -68,8 +73,8 @@ public class QinCeClienteleStoreDO implements Serializable { ...@@ -68,8 +73,8 @@ public class QinCeClienteleStoreDO implements Serializable {
/** /**
* 门店类型编码 * 门店类型编码
*/ */
@JsonProperty("store_type_code") // @JsonProperty("store_type_code")
private String storeTypeCode; // private String storeTypeCode;
/** /**
* 勤策门店所属部门ID * 勤策门店所属部门ID
...@@ -236,13 +241,25 @@ public class QinCeClienteleStoreDO implements Serializable { ...@@ -236,13 +241,25 @@ public class QinCeClienteleStoreDO implements Serializable {
} }
public void setExt() { public void setExt() {
boolean isChain = false;
for (Exts e : exts) { for (Exts e : exts) {
if ("系统名称".equals(e.getStoreExtKey())) { String extKey = e.getStoreExtKey();
this.lineName = e.getStoreExtValue(); String extValue = e.getStoreExtValue();
if ("CVS、KA".contains(this.storeType) && "是否连锁".equals(extKey) && "是".equals(extValue)){
isChain = true;
}
if ("是否连锁".equals(extKey)) {
this.chain = extValue;
}
if ("系统名称".equals(extKey)) {
this.lineName = extValue;
}
if ("是否双T门店".equals(extKey)) {
this.bothT = extValue;
} }
if ("是否双T门店".equals(e.getStoreExtKey())) {
this.bothT = e.getStoreExtValue();
} }
if (!isChain){
this.lineName = this.storeType;
} }
} }
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论