中标调整

new
Agoni 1 year ago
parent 2fdff9e477
commit 1447e5d26c

@ -189,7 +189,7 @@ public class QuotationSheetDO extends TenantBaseDO {
private Integer biddingStatus; private Integer biddingStatus;
private String money; private String money;
@TableField(exist = false) @TableField(exist = false)
private String tenantName; 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.dataobject.suppliercompany.SupplierCompanyDO;
import cn.iocoder.yudao.module.bs.dal.mysql.suppliercompany.SupplierCompanyMapper; 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 com.github.yulichang.base.MPJBaseServiceImpl;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -30,6 +31,9 @@ public class QuotationSheetBiddingServiceImpl extends MPJBaseServiceImpl<Quotati
@Resource @Resource
private QuotationSheetBiddingMapper quotationSheetBiddingMapper; private QuotationSheetBiddingMapper quotationSheetBiddingMapper;
@Resource
private SupplierCompanyService supplierCompanyService;
@Override @Override
public Long createQuotationSheetBidding(QuotationSheetBiddingCreateReqVO createReqVO) { public Long createQuotationSheetBidding(QuotationSheetBiddingCreateReqVO createReqVO) {
// 插入 // 插入
@ -74,7 +78,16 @@ public class QuotationSheetBiddingServiceImpl extends MPJBaseServiceImpl<Quotati
@Override @Override
public PageResult<QuotationSheetBiddingDO> getQuotationSheetBiddingPage(QuotationSheetBiddingPageReqVO pageReqVO) { 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 @Override

Loading…
Cancel
Save