|
@@ -1,6 +1,5 @@
|
|
package com.kmall.admin.service.impl;
|
|
package com.kmall.admin.service.impl;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
|
import com.google.common.collect.ImmutableBiMap;
|
|
import com.google.common.collect.ImmutableBiMap;
|
|
import com.google.common.collect.Maps;
|
|
import com.google.common.collect.Maps;
|
|
import com.kmall.admin.dao.*;
|
|
import com.kmall.admin.dao.*;
|
|
@@ -923,7 +922,7 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService {
|
|
StoreEntity store = storeDao.queryObjectByName(storeGoodsDto.getStoreName().trim());
|
|
StoreEntity store = storeDao.queryObjectByName(storeGoodsDto.getStoreName().trim());
|
|
storeRelaEntity.setExitRegionNumber(storeGoodsDto.getExitRegionNumber());
|
|
storeRelaEntity.setExitRegionNumber(storeGoodsDto.getExitRegionNumber());
|
|
storeRelaEntity.setStoreId(store.getId());
|
|
storeRelaEntity.setStoreId(store.getId());
|
|
- GoodsEntity goodsEntity = goodsDao.queryObjectBySnNew(storeGoodsDto.getGoodsSn());
|
|
|
|
|
|
+ GoodsEntity goodsEntity = goodsDao.queryObjectBySnNew(storeGoodsDto.getGoodsSn().trim());
|
|
if (goodsEntity != null) {
|
|
if (goodsEntity != null) {
|
|
storeRelaEntity.setGoodsId(goodsEntity.getId());
|
|
storeRelaEntity.setGoodsId(goodsEntity.getId());
|
|
}else{
|
|
}else{
|
|
@@ -1005,7 +1004,7 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService {
|
|
if (brandId == null) {
|
|
if (brandId == null) {
|
|
Map<String, String> brandCacheData = new HashMap<>();
|
|
Map<String, String> brandCacheData = new HashMap<>();
|
|
// 数据库里面查询
|
|
// 数据库里面查询
|
|
- BrandEntity queryBrand = brandService.queryByUniqueIdentifier(uniqueIdentifier);
|
|
|
|
|
|
+ BrandEntity queryBrand = brandService.queryByUniqueIdentifier(uniqueIdentifier.trim());
|
|
if (queryBrand == null) {
|
|
if (queryBrand == null) {
|
|
throw new RuntimeException("该品牌不存在,请检查品牌唯一标识符是否正确:"+uniqueIdentifier);
|
|
throw new RuntimeException("该品牌不存在,请检查品牌唯一标识符是否正确:"+uniqueIdentifier);
|
|
} else {
|
|
} else {
|
|
@@ -1020,7 +1019,7 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService {
|
|
}else{
|
|
}else{
|
|
Map<String, String> brandCacheData = new HashMap<>();
|
|
Map<String, String> brandCacheData = new HashMap<>();
|
|
// 数据库里面查询
|
|
// 数据库里面查询
|
|
- BrandEntity queryBrand = brandService.queryByUniqueIdentifier(uniqueIdentifier);
|
|
|
|
|
|
+ BrandEntity queryBrand = brandService.queryByUniqueIdentifier(uniqueIdentifier.trim());
|
|
if (queryBrand == null) {
|
|
if (queryBrand == null) {
|
|
throw new RuntimeException("该品牌不存在,请检查品牌唯一标识符是否正确:"+uniqueIdentifier);
|
|
throw new RuntimeException("该品牌不存在,请检查品牌唯一标识符是否正确:"+uniqueIdentifier);
|
|
} else {
|
|
} else {
|