中标调整

new
Agoni 1 year ago
parent 2fdff9e477
commit 1447e5d26c

@ -189,7 +189,7 @@ public class QuotationSheetDO extends TenantBaseDO {
private Integer biddingStatus;
private String money;
@TableField(exist = false)
private String tenantName;

@ -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<Quotati
@Resource
private QuotationSheetBiddingMapper quotationSheetBiddingMapper;
@Resource
private SupplierCompanyService supplierCompanyService;
@Override
public Long createQuotationSheetBidding(QuotationSheetBiddingCreateReqVO createReqVO) {
// 插入
@ -74,7 +78,16 @@ public class QuotationSheetBiddingServiceImpl extends MPJBaseServiceImpl<Quotati
@Override
public PageResult<QuotationSheetBiddingDO> getQuotationSheetBiddingPage(QuotationSheetBiddingPageReqVO pageReqVO) {
return quotationSheetBiddingMapper.selectPage(pageReqVO);
PageResult<QuotationSheetBiddingDO> quotationSheetBiddingDOPageResult = quotationSheetBiddingMapper.selectPage(pageReqVO);
if (null!=quotationSheetBiddingDOPageResult&&quotationSheetBiddingDOPageResult.getList().size()>0){
quotationSheetBiddingDOPageResult.getList().forEach(s->{
SupplierCompanyDO supplierCompanyDO = supplierCompanyService.getById(s.getCompanyId());
if (null!=supplierCompanyDO){
s.setCompanyName(supplierCompanyDO.getCompanyAme());
}
});
}
return quotationSheetBiddingDOPageResult;
}
@Override

Loading…
Cancel
Save