|
@@ -7,9 +7,12 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.fjhx.account.controller.utils.DateUtils;
|
|
import com.fjhx.account.controller.utils.DateUtils;
|
|
import com.fjhx.account.entity.account.vo.AccountPaymentVo;
|
|
import com.fjhx.account.entity.account.vo.AccountPaymentVo;
|
|
|
|
+import com.fjhx.area.utils.AreaUtil;
|
|
import com.fjhx.common.constant.SourceConstant;
|
|
import com.fjhx.common.constant.SourceConstant;
|
|
import com.fjhx.customer.entity.customer.dto.CustomerDto;
|
|
import com.fjhx.customer.entity.customer.dto.CustomerDto;
|
|
import com.fjhx.customer.entity.customer.dto.CustomerSelectDto;
|
|
import com.fjhx.customer.entity.customer.dto.CustomerSelectDto;
|
|
|
|
+import com.fjhx.sale.entity.contract.po.Contract;
|
|
|
|
+import com.fjhx.sale.entity.contract.vo.ContractPdfInfoVo;
|
|
import com.fjhx.sale.entity.contract.vo.ContractVo;
|
|
import com.fjhx.sale.entity.contract.vo.ContractVo;
|
|
import com.fjhx.sale.entity.quotation.po.QuotationPay;
|
|
import com.fjhx.sale.entity.quotation.po.QuotationPay;
|
|
import com.fjhx.sale.entity.quotation.po.QuotationProduct;
|
|
import com.fjhx.sale.entity.quotation.po.QuotationProduct;
|
|
@@ -85,6 +88,8 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
SaleQuotation SaleQuotation = this.getById(id);
|
|
SaleQuotation SaleQuotation = this.getById(id);
|
|
SaleQuotationVo result = BeanUtil.toBean(SaleQuotation, SaleQuotationVo.class);
|
|
SaleQuotationVo result = BeanUtil.toBean(SaleQuotation, SaleQuotationVo.class);
|
|
if (ObjectUtil.isNotEmpty(result)) {
|
|
if (ObjectUtil.isNotEmpty(result)) {
|
|
|
|
+ //赋值买方公司地址
|
|
|
|
+ setArea(result);
|
|
//查询报价-商品表的详情
|
|
//查询报价-商品表的详情
|
|
List<QuotationProduct> quotationProductList = quotationProductService.list(Wrappers.<QuotationProduct>lambdaQuery()
|
|
List<QuotationProduct> quotationProductList = quotationProductService.list(Wrappers.<QuotationProduct>lambdaQuery()
|
|
.eq(QuotationProduct::getSaleQuotationId, result.getId()));
|
|
.eq(QuotationProduct::getSaleQuotationId, result.getId()));
|
|
@@ -276,5 +281,22 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
return saleQuotationVoPage;
|
|
return saleQuotationVoPage;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 赋值买卖公司地址
|
|
|
|
+ */
|
|
|
|
+ private void setArea(SaleQuotationVo saleQuotationVo) {
|
|
|
|
+
|
|
|
|
+ List<String> areaIdList = Arrays.asList(
|
|
|
|
+ saleQuotationVo.getBuyCountryId(),
|
|
|
|
+ saleQuotationVo.getBuyProvinceId(),
|
|
|
|
+ saleQuotationVo.getBuyCityId()
|
|
|
|
+ );
|
|
|
|
+ Map<String, String> areaMap = AreaUtil.getAreaMapByIds(areaIdList);
|
|
|
|
+ saleQuotationVo.setBuyCountryName(areaMap.get(saleQuotationVo.getBuyCountryId()));
|
|
|
|
+ saleQuotationVo.setBuyProvinceName(areaMap.get(saleQuotationVo.getBuyProvinceId()));
|
|
|
|
+ saleQuotationVo.setBuyCityName(areaMap.get(saleQuotationVo.getBuyCityId()));
|
|
|
|
+ saleQuotationVo.setBuyDetailedAddress(saleQuotationVo.getBuyAddress());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|