|
@@ -3,8 +3,10 @@ package com.jzg.quotation.summary.factory;
|
|
|
import com.jzg.commons.constants.CompanyConstants;
|
|
import com.jzg.commons.constants.CompanyConstants;
|
|
|
import com.jzg.commons.core.base.BaseController;
|
|
import com.jzg.commons.core.base.BaseController;
|
|
|
import com.jzg.commons.util.spring.SpringUtils;
|
|
import com.jzg.commons.util.spring.SpringUtils;
|
|
|
|
|
+import com.jzg.quotation.chengtai.api.service.impl.ChengTaiApiRequestImpl;
|
|
|
import com.jzg.quotation.commons.client.PlatformClient;
|
|
import com.jzg.quotation.commons.client.PlatformClient;
|
|
|
import com.jzg.quotation.commons.service.QuotationApiBaseService;
|
|
import com.jzg.quotation.commons.service.QuotationApiBaseService;
|
|
|
|
|
+import com.jzg.quotation.dajia.api.service.impl.DaJiaApiRequestImpl;
|
|
|
import com.jzg.quotation.summary.factory.decorator.QuoteDispatchDecorator;
|
|
import com.jzg.quotation.summary.factory.decorator.QuoteDispatchDecorator;
|
|
|
import com.jzg.quotation.summary.factory.decorator.QuoteRestrictDecorator;
|
|
import com.jzg.quotation.summary.factory.decorator.QuoteRestrictDecorator;
|
|
|
import com.jzg.quotation.summary.service.SysQuoteConfigService;
|
|
import com.jzg.quotation.summary.service.SysQuoteConfigService;
|
|
@@ -37,13 +39,20 @@ public class CompanyFactory {
|
|
|
if(CompanyConstants.AICS.getCompanyCode().equals(companyCode)){
|
|
if(CompanyConstants.AICS.getCompanyCode().equals(companyCode)){
|
|
|
quoteService = SpringUtils.getBean(YongChengApiRequestImpl.class);
|
|
quoteService = SpringUtils.getBean(YongChengApiRequestImpl.class);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ //诚泰
|
|
|
|
|
+ if(CompanyConstants.CHAC.getCompanyCode().equals(companyCode)){
|
|
|
|
|
+ quoteService = SpringUtils.getBean(ChengTaiApiRequestImpl.class);
|
|
|
|
|
+ }
|
|
|
|
|
+ //大家
|
|
|
|
|
+ if(CompanyConstants.DJPC.getCompanyCode().equals(companyCode)){
|
|
|
|
|
+ quoteService = SpringUtils.getBean(DaJiaApiRequestImpl.class);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// 第三步 费用计算增强装饰器
|
|
// 第三步 费用计算增强装饰器
|
|
|
//quoteService = new QuoteCostDecorator(quoteService, sysQuoteConfigService, sysQuoteRedisService);
|
|
//quoteService = new QuoteCostDecorator(quoteService, sysQuoteConfigService, sysQuoteRedisService);
|
|
|
|
|
|
|
|
// 第二步 报价协议调度装饰器
|
|
// 第二步 报价协议调度装饰器
|
|
|
- quoteService = new QuoteDispatchDecorator(quoteService,sysQuoteConfigService, sysQuoteRedisService,platformClient,baseController);
|
|
|
|
|
|
|
+ quoteService = new QuoteDispatchDecorator(quoteService, sysQuoteConfigService, sysQuoteRedisService,platformClient,baseController);
|
|
|
|
|
|
|
|
|
|
|
|
|
// 第一步 报价限制增强装饰器
|
|
// 第一步 报价限制增强装饰器
|