|
@@ -39,6 +39,7 @@ import com.ym.mec.common.dal.BaseDAO;
|
|
import com.ym.mec.common.dto.BrandDto;
|
|
import com.ym.mec.common.dto.BrandDto;
|
|
import com.ym.mec.common.dto.PmsProductDto;
|
|
import com.ym.mec.common.dto.PmsProductDto;
|
|
import com.ym.mec.common.dto.PmsProductQueryParamDto;
|
|
import com.ym.mec.common.dto.PmsProductQueryParamDto;
|
|
|
|
+import com.ym.mec.common.dto.ProductAttributeCategoryDto;
|
|
import com.ym.mec.common.dto.ProductCategoryDto;
|
|
import com.ym.mec.common.dto.ProductCategoryDto;
|
|
import com.ym.mec.common.entity.GoodsSubModel;
|
|
import com.ym.mec.common.entity.GoodsSubModel;
|
|
import com.ym.mec.common.entity.GoodsSubStockModel;
|
|
import com.ym.mec.common.entity.GoodsSubStockModel;
|
|
@@ -1073,8 +1074,7 @@ public class GoodsServiceImpl extends BaseServiceImpl<Integer, Goods> implement
|
|
if(StringUtils.isNotEmpty(goods.getFreeFeeShowOrganId())){
|
|
if(StringUtils.isNotEmpty(goods.getFreeFeeShowOrganId())){
|
|
goods.setFreeFeeShowOrganName(StringUtils.join(organizationDao.findByOrganIds(goods.getFreeFeeShowOrganId()),","));
|
|
goods.setFreeFeeShowOrganName(StringUtils.join(organizationDao.findByOrganIds(goods.getFreeFeeShowOrganId()),","));
|
|
}
|
|
}
|
|
- GoodsWrapper.Goods detail = new GoodsWrapper.Goods();
|
|
|
|
- BeanUtils.copyProperties(goods, detail);
|
|
|
|
|
|
+ GoodsWrapper.Goods detail = JSON.parseObject(JSON.toJSONString(goods), GoodsWrapper.Goods.class);
|
|
detail.setGoodsSubList(queryGoodsSub(goodsId));
|
|
detail.setGoodsSubList(queryGoodsSub(goodsId));
|
|
return detail;
|
|
return detail;
|
|
}
|
|
}
|
|
@@ -1101,8 +1101,8 @@ public class GoodsServiceImpl extends BaseServiceImpl<Integer, Goods> implement
|
|
if (StringUtils.isEmpty(goodsInfo.getComplementGoodsIdList()) && goodsSubList.isEmpty()) {
|
|
if (StringUtils.isEmpty(goodsInfo.getComplementGoodsIdList()) && goodsSubList.isEmpty()) {
|
|
throw new BizException("子商品信息不能为空");
|
|
throw new BizException("子商品信息不能为空");
|
|
}
|
|
}
|
|
|
|
+ goodsInfo = JSON.parseObject(JSON.toJSONString(goods), Goods.class);
|
|
goodsInfo.setStatus(null);
|
|
goodsInfo.setStatus(null);
|
|
- BeanUtils.copyProperties(goods, goodsInfo);
|
|
|
|
if (!goodsSubList.isEmpty()) {
|
|
if (!goodsSubList.isEmpty()) {
|
|
goodsInfo.setComplementGoodsIdList(null);
|
|
goodsInfo.setComplementGoodsIdList(null);
|
|
UpdateWrapper<GoodsSub> delWrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<GoodsSub> delWrapper = new UpdateWrapper<>();
|
|
@@ -1215,7 +1215,7 @@ public class GoodsServiceImpl extends BaseServiceImpl<Integer, Goods> implement
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Object queryGoodsCategoryList() {
|
|
|
|
|
|
+ public List<ProductAttributeCategoryDto> queryGoodsCategoryList() {
|
|
return mallFeignService.getProductAttributeCategoryList();
|
|
return mallFeignService.getProductAttributeCategoryList();
|
|
}
|
|
}
|
|
}
|
|
}
|