|
|
|
@ -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.bs.dal.dataobject.suppliercompany.SupplierCompanyDO;
|
|
|
|
|
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 org.springframework.stereotype.Service;
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@ -37,6 +39,9 @@ public class QuotationSheetBiddingServiceImpl extends MPJBaseServiceImpl<Quotati
|
|
|
|
|
@Resource
|
|
|
|
|
private SupplierCompanyService supplierCompanyService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private TenantApi tenantApi;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Long createQuotationSheetBidding(QuotationSheetBiddingCreateReqVO createReqVO) {
|
|
|
|
|
// 插入
|
|
|
|
@ -71,7 +76,19 @@ public class QuotationSheetBiddingServiceImpl extends MPJBaseServiceImpl<Quotati
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
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
|
|
|
|
|