|
@@ -1323,13 +1323,14 @@ private void addProductAttr(Long productId, List<ProductArrtDTO> items, List<FsS
|
|
|
if(auditDTO.getIsAudit() == 1){
|
|
if(auditDTO.getIsAudit() == 1){
|
|
|
//复制一份到平台商品库
|
|
//复制一份到平台商品库
|
|
|
for(Long storeProductId : auditDTO.getProductIds()){
|
|
for(Long storeProductId : auditDTO.getProductIds()){
|
|
|
|
|
+ //原商品库
|
|
|
|
|
+ FsStoreProductScrm fsStoreProductScrm = fsStoreProductMapper.selectFsStoreProductById(storeProductId);
|
|
|
//存在的商品不用一直添加到总库
|
|
//存在的商品不用一直添加到总库
|
|
|
- Boolean flag = iFsPlatformProductScrmMapper.selectByStoreProductId(storeProductId);
|
|
|
|
|
|
|
+ Boolean flag = iFsPlatformProductScrmMapper.productNameExist(fsStoreProductScrm.getProductName());
|
|
|
if(flag){
|
|
if(flag){
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
//复制商品
|
|
//复制商品
|
|
|
- FsStoreProductScrm fsStoreProductScrm = fsStoreProductMapper.selectFsStoreProductById(storeProductId);
|
|
|
|
|
FsPlatformProductScrm fsPlatformProductScrm = new FsPlatformProductScrm();
|
|
FsPlatformProductScrm fsPlatformProductScrm = new FsPlatformProductScrm();
|
|
|
BeanUtils.copyProperties(fsStoreProductScrm, fsPlatformProductScrm); //copy
|
|
BeanUtils.copyProperties(fsStoreProductScrm, fsPlatformProductScrm); //copy
|
|
|
// Long storeProductId = fsPlatformProductScrm.getProductId();//店铺商品id
|
|
// Long storeProductId = fsPlatformProductScrm.getProductId();//店铺商品id
|