采购单物料列表去掉图片前缀

This commit is contained in:
yangjun 2025-11-19 08:37:15 +08:00
parent c8edb8a93f
commit f0c90cc5bd
1 changed files with 4 additions and 4 deletions

View File

@ -407,7 +407,7 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
// queryWrapper.eq(StringUtils.isNotBlank(typeId),"b.type_id",typeId); // queryWrapper.eq(StringUtils.isNotBlank(typeId),"b.type_id",typeId);
// queryWrapper.eq(StringUtils.isNotBlank(medicationId),"b.medication_id",medicationId); // queryWrapper.eq(StringUtils.isNotBlank(medicationId),"b.medication_id",medicationId);
List<NuInvoicingCgdInfo> list = cgdInfoMapper.queryCgdInfoList(page,queryWrapper); List<NuInvoicingCgdInfo> list = cgdInfoMapper.queryCgdInfoList(page,queryWrapper);
getOpeMediaAddress(); // getOpeMediaAddress();
for (NuInvoicingCgdInfo cgdInfo : list){ for (NuInvoicingCgdInfo cgdInfo : list){
BigDecimal arrivalPrice = cgdInfo.getArrivalPrice(); BigDecimal arrivalPrice = cgdInfo.getArrivalPrice();
BigDecimal procurementPrice = cgdInfo.getProcurementPrice(); BigDecimal procurementPrice = cgdInfo.getProcurementPrice();
@ -419,9 +419,9 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
} }
cgdInfo.setTotalPrice(totalPrice); cgdInfo.setTotalPrice(totalPrice);
if (cgdInfo.getMaterialImg() != null){ // if (cgdInfo.getMaterialImg() != null){
cgdInfo.setMaterialImg(getImageNetUrl(cgdInfo.getMaterialImg())); // cgdInfo.setMaterialImg(getImageNetUrl(cgdInfo.getMaterialImg()));
} // }
} }
IPage<CgdInfoEntity> entityPage = new Page<>(page.getCurrent(), page.getSize(), page.getTotal()); IPage<CgdInfoEntity> entityPage = new Page<>(page.getCurrent(), page.getSize(), page.getTotal());
entityPage.setRecords(BeanUtil.copyToList(list, CgdInfoEntity.class)); entityPage.setRecords(BeanUtil.copyToList(list, CgdInfoEntity.class));