Commit c10eb46c by guojuxing

总店分店导入修改

parent d9eaa15e
......@@ -672,12 +672,12 @@ public class WmStoreSyncController {
String storeCode = row.get(1);
StoreRegionDTO storeRegion = getStoreRegion(enterpriseId, regionName);
if (storeRegion == null) {
rMap.put(storeCode, "门店域不存在");
rMap.put(regionName + "-" + storeCode, "门店域不存在");
continue;
}
StoreDTO storeDTO = getStoreByRegionAndCode(enterpriseId, storeRegion.getRegionId(), storeCode);
if (storeDTO == null) {
rMap.put(storeCode, "门店code不存在");
rMap.put(regionName + "-" + storeCode, "门店code不存在");
continue;
}
List<WeimobPhysicalStoreDTO> list = new ArrayList<>(1);
......@@ -685,7 +685,7 @@ public class WmStoreSyncController {
ServiceResponse<Void> wmResult = this.weimobStoreSiteService
.addWeimobVirtualStore(wmMallStoreId, enterpriseId, wmPhysicalStoreDTO, list);
LOGGER.info("微盟同步总店-分店返回结果:{}", JSON.toJSONString(wmResult));
if (wmResult.isSuccess()) {
if (!wmResult.isSuccess()) {
rMap.put(regionName + "-" + storeCode, wmResult.getMessage());
} else {
rMap.put(regionName + "-" + storeCode, "成功");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment