|
|
@@ -168,18 +168,10 @@ public class KwpGoodsService {
|
|
|
* @Param id:
|
|
|
* @return: com.sckw.product.model.vo.res.GoodsDetail
|
|
|
*/
|
|
|
- public GoodsDetail detail(Long id, Boolean isDubbo) {
|
|
|
- KwpGoods goods;
|
|
|
- if (isDubbo) {
|
|
|
- goods = kwpGoodsMapper.selectById(id);
|
|
|
- if (Objects.isNull(goods)) {
|
|
|
- return null;
|
|
|
- }
|
|
|
- } else {
|
|
|
- goods = getGoodsById(id);
|
|
|
- if (Objects.isNull(goods)) {
|
|
|
- throw new BusinessException("当前商品信息为空!");
|
|
|
- }
|
|
|
+ public GoodsDetail detail(Long id) {
|
|
|
+ KwpGoods goods = kwpGoodsMapper.selectById(id);
|
|
|
+ if (Objects.isNull(goods)) {
|
|
|
+ throw new BusinessException("当前商品不存在!");
|
|
|
}
|
|
|
GoodsDetail detail = BeanUtils.copyProperties(goods, GoodsDetail.class);
|
|
|
List<EntCacheResDto> entCacheList = remoteSystemService.queryEntCacheByIds(Arrays.asList(detail.getEntId(), detail.getSupplyEntId()));
|