|
@@ -22,6 +22,7 @@ import com.fjhx.file.entity.FileInfoVo;
|
|
|
import com.fjhx.file.mapper.FileInfoMapper;
|
|
|
import com.fjhx.file.service.FileInfoService;
|
|
|
import com.fjhx.file.utils.ObsFileUtil;
|
|
|
+import com.fjhx.item.ItemService;
|
|
|
import com.fjhx.item.entity.product.dto.ProductInfoDto;
|
|
|
import com.fjhx.item.entity.product.dto.ProductInfoSelectDto;
|
|
|
import com.fjhx.item.entity.product.po.ProductClassify;
|
|
@@ -84,6 +85,8 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
private DictTenantDataService dictTenantDataService;
|
|
|
@Autowired
|
|
|
private FileInfoService fileInfoService;
|
|
|
+ @Autowired
|
|
|
+ private ItemService itemService;
|
|
|
|
|
|
@Override
|
|
|
public Page<ProductInfoVo> getPage(ProductInfoSelectDto dto) {
|
|
@@ -292,6 +295,9 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
Map<Long, List<FileInfoVo>> fileInfoMap = fileInfoService.getList(dto);
|
|
|
DynamicDataSourceContextHolder.poll();
|
|
|
result.setFileList(fileInfoMap.get(result.getId()));
|
|
|
+ //赋值库存
|
|
|
+ BigDecimal stockQuantity = itemService.getStockQuantity(result.getId());
|
|
|
+ result.setStockQuantity(stockQuantity);
|
|
|
return result;
|
|
|
}
|
|
|
|