diff --git a/yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/dal/dataobject/quotationsheet/QuotationSheetDO.java b/yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/dal/dataobject/quotationsheet/QuotationSheetDO.java index 02bddbb6..06eb3601 100644 --- a/yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/dal/dataobject/quotationsheet/QuotationSheetDO.java +++ b/yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/dal/dataobject/quotationsheet/QuotationSheetDO.java @@ -189,7 +189,7 @@ public class QuotationSheetDO extends TenantBaseDO { private Integer biddingStatus; private String money; - + @TableField(exist = false) private String tenantName; diff --git a/yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/service/quotationsheetbidding/QuotationSheetBiddingServiceImpl.java b/yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/service/quotationsheetbidding/QuotationSheetBiddingServiceImpl.java index 1926d987..3772f6b4 100644 --- a/yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/service/quotationsheetbidding/QuotationSheetBiddingServiceImpl.java +++ b/yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/service/quotationsheetbidding/QuotationSheetBiddingServiceImpl.java @@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.bs.service.quotationsheetbidding; import cn.iocoder.yudao.module.bs.dal.dataobject.suppliercompany.SupplierCompanyDO; import cn.iocoder.yudao.module.bs.dal.mysql.suppliercompany.SupplierCompanyMapper; +import cn.iocoder.yudao.module.bs.service.suppliercompany.SupplierCompanyService; import com.github.yulichang.base.MPJBaseServiceImpl; import org.springframework.stereotype.Service; import javax.annotation.Resource; @@ -30,6 +31,9 @@ public class QuotationSheetBiddingServiceImpl extends MPJBaseServiceImpl getQuotationSheetBiddingPage(QuotationSheetBiddingPageReqVO pageReqVO) { - return quotationSheetBiddingMapper.selectPage(pageReqVO); + PageResult quotationSheetBiddingDOPageResult = quotationSheetBiddingMapper.selectPage(pageReqVO); + if (null!=quotationSheetBiddingDOPageResult&"ationSheetBiddingDOPageResult.getList().size()>0){ + quotationSheetBiddingDOPageResult.getList().forEach(s->{ + SupplierCompanyDO supplierCompanyDO = supplierCompanyService.getById(s.getCompanyId()); + if (null!=supplierCompanyDO){ + s.setCompanyName(supplierCompanyDO.getCompanyAme()); + } + }); + } + return quotationSheetBiddingDOPageResult; } @Override