|
|
@ -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&"ationSheetBiddingDOPageResult.getList().size()>0){
|
|
|
|
|
|
|
|
quotationSheetBiddingDOPageResult.getList().forEach(s->{
|
|
|
|
|
|
|
|
SupplierCompanyDO supplierCompanyDO = supplierCompanyService.getById(s.getCompanyId());
|
|
|
|
|
|
|
|
if (null!=supplierCompanyDO){
|
|
|
|
|
|
|
|
s.setCompanyName(supplierCompanyDO.getCompanyAme());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return quotationSheetBiddingDOPageResult;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|