Parcourir la source

议价返回单号

yzc il y a 1 an
Parent
commit
83eb034937

+ 5 - 0
hx-sale/src/main/java/com/fjhx/sale/flow/DiscussPriceFlow.java

@@ -8,6 +8,7 @@ import com.fjhx.flow.core.FlowDelegate;
 import com.fjhx.sale.entity.quotation.dto.QuotationProductDto;
 import com.fjhx.sale.entity.quotation.po.QuotationProduct;
 import com.fjhx.sale.entity.sale.dto.SaleQuotationDto;
+import com.fjhx.sale.entity.sale.po.SaleQuotation;
 import com.fjhx.sale.service.quotation.QuotationProductService;
 import com.fjhx.sale.service.sale.SaleQuotationService;
 import com.ruoyi.common.core.domain.BasePo;
@@ -48,6 +49,10 @@ public class DiscussPriceFlow extends FlowDelegate {
         saleQuotationService.updateById(saleQuotationDto);
         quotationProductService.updateBatchById(BeanUtil.copyToList(quotationProductList, QuotationProduct.class));
 
+        //将code赋值给流程引擎
+        SaleQuotation byId = saleQuotationService.getById(saleQuotationDto.getId());
+        submitData.put("code", byId.getCode());
+
         return saleQuotationDto.getId();
     }