报价单中标

new
Agoni 1 year ago
parent 9a8ca73132
commit d75d9bcfa8

@ -16,4 +16,8 @@ public class QuotationSheetBiddingRespVO extends QuotationSheetBiddingBaseVO {
@Schema(description = "创建时间") @Schema(description = "创建时间")
private LocalDateTime createTime; private LocalDateTime createTime;
@Schema(description = "公司名称")
private String tenantName;
private Long tenantId;
} }

@ -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

@ -37,6 +37,8 @@ public class QuotationSheetBiddingDO extends BaseDO {
* *
*/ */
private Integer status; private Integer status;
private Long tenantId;
/** /**
* *
*/ */
@ -94,5 +96,6 @@ public class QuotationSheetBiddingDO extends BaseDO {
* id * id
*/ */
private Long quotationId; private Long quotationId;
@TableField(exist = false)
private String tenantName;
} }

Loading…
Cancel
Save