|
|
@@ -25,6 +25,7 @@ import com.sckw.core.web.constant.HttpStatus;
|
|
|
import com.sckw.core.web.context.LoginUserHolder;
|
|
|
import com.sckw.excel.utils.DateUtil;
|
|
|
import com.sckw.fleet.api.RemoteFleetService;
|
|
|
+import com.sckw.fleet.api.model.vo.TmsTruckAxleNumVO;
|
|
|
import com.sckw.payment.api.dubbo.PayCenterDubboService;
|
|
|
import com.sckw.payment.api.model.constant.ChannelEnum;
|
|
|
import com.sckw.payment.api.model.dto.WalletDto;
|
|
|
@@ -302,12 +303,9 @@ public class KwpGoodsService {
|
|
|
.setStatusLabel(CollectionUtils.isNotEmpty(goodsStatusMap) ? goodsStatusMap.get(String.valueOf(detail.getStatus())) : null);
|
|
|
//商品图片信息
|
|
|
if (Objects.nonNull(goods.getThumb())) {
|
|
|
- detail.setThumb(FileUtils.splice(goods.getThumb()));
|
|
|
+ detail.setThumb(goods.getThumb());
|
|
|
}
|
|
|
List<KwpGoodsImage> goodsImages = kwpGoodsImageService.getByGoodsId(id);
|
|
|
- goodsImages.forEach(e -> {
|
|
|
- e.setImage(FileUtils.splice(e.getImage()));
|
|
|
- });
|
|
|
List<GoodsImagesDetail> images = BeanUtils.copyToList(goodsImages, GoodsImagesDetail.class);
|
|
|
//商品价格
|
|
|
List<KwpGoodsPriceRange> priceRanges = kwpGoodsPriceRangeService.getByGoodsId(id);
|
|
|
@@ -337,9 +335,16 @@ public class KwpGoodsService {
|
|
|
});
|
|
|
}
|
|
|
detail.setImages(images).setPrice(price).setAttributes(attributes).setAddressInfo(addressInfo).setAssistUnit(assistUnit);
|
|
|
+
|
|
|
//轴数
|
|
|
- String carAxisName = remoteFleetService.getCarAxisInfo(goods.getCarAxis());
|
|
|
- detail.setCarAxis(carAxisName);
|
|
|
+ if (StringUtils.isNotBlank(goods.getCarAxis())) {
|
|
|
+ detail.setCarAxis(goods.getCarAxis());
|
|
|
+ List<String> axleNumStrId = Arrays.asList(goods.getCarAxis().split(","));
|
|
|
+ List<Integer> axleNumIds = axleNumStrId.stream().map(str -> Integer.parseInt(str.trim())).collect(Collectors.toList());
|
|
|
+ List<TmsTruckAxleNumVO> carAxisInfo = remoteFleetService.getCarAxisInfo(axleNumIds);
|
|
|
+ String carAxisName = carAxisInfo.stream().map(TmsTruckAxleNumVO::getName).collect(Collectors.joining(","));
|
|
|
+ detail.setCarAxisName(carAxisName);
|
|
|
+ }
|
|
|
|
|
|
return detail;
|
|
|
}
|