|
|
@ -6,6 +6,8 @@ import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.Quo
|
|
|
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingUpdateReqVO;
|
|
|
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingUpdateReqVO;
|
|
|
|
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.service.suppliercompany.SupplierCompanyService;
|
|
|
|
import cn.iocoder.yudao.module.bs.service.suppliercompany.SupplierCompanyService;
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.module.system.api.tenant.TenantApi;
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.module.system.api.tenant.dto.TenantDTO;
|
|
|
|
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;
|
|
|
@ -37,6 +39,9 @@ public class QuotationSheetBiddingServiceImpl extends MPJBaseServiceImpl<Quotati
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private SupplierCompanyService supplierCompanyService;
|
|
|
|
private SupplierCompanyService supplierCompanyService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private TenantApi tenantApi;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Long createQuotationSheetBidding(QuotationSheetBiddingCreateReqVO createReqVO) {
|
|
|
|
public Long createQuotationSheetBidding(QuotationSheetBiddingCreateReqVO createReqVO) {
|
|
|
|
// 插入
|
|
|
|
// 插入
|
|
|
@ -71,7 +76,19 @@ public class QuotationSheetBiddingServiceImpl extends MPJBaseServiceImpl<Quotati
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public QuotationSheetBiddingDO getQuotationSheetBidding(Long id) {
|
|
|
|
public QuotationSheetBiddingDO getQuotationSheetBidding(Long id) {
|
|
|
|
return quotationSheetBiddingMapper.selectById(id);
|
|
|
|
QuotationSheetBiddingDO quotationSheetBiddingDO = quotationSheetBiddingMapper.selectById(id);
|
|
|
|
|
|
|
|
if (quotationSheetBiddingDO!=null){
|
|
|
|
|
|
|
|
SupplierCompanyDO supplierCompanyDO = supplierCompanyService.getById(quotationSheetBiddingDO.getCompanyId());
|
|
|
|
|
|
|
|
if (null!=supplierCompanyDO){
|
|
|
|
|
|
|
|
quotationSheetBiddingDO.setCompanyName(supplierCompanyDO.getCompanyAme());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
TenantDTO tenant = tenantApi.getTenant(quotationSheetBiddingDO.getTenantId());
|
|
|
|
|
|
|
|
if (null!=tenant){
|
|
|
|
|
|
|
|
quotationSheetBiddingDO.setTenantName(tenant.getName());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return quotationSheetBiddingDO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|