Commit 8da853f7 by Simon Cheng

导入201901芝麻数据

parent 8ff1e5dd
......@@ -116,7 +116,7 @@ public class AgPoQuotationWebServiceImpl implements AgPoQuotationWebService {
agPoQuotationVehicleRelation.setAddress(applicant.getAddress());
agPoQuotationVehicleRelation.setTelephone(applicant.getTel());
agPoQuotationVehicleRelation.setNationality(applicant.getNatureType());
agPoQuotationVehicleRelation.setVehicleRelationId(1L);
agPoQuotationVehicleRelation.setRelationId(1);
agPoQuotationVehicleRelation.setCreatedAt(new Date());
agPoQuotationVehicleRelation.setCreatedBy(-1L);
agPoQuotationVehicleRelation.setCustomerId(-1L);
......@@ -133,7 +133,7 @@ public class AgPoQuotationWebServiceImpl implements AgPoQuotationWebService {
agPoQuotationVehicleRelation.setAddress(claimant.getAddress());
agPoQuotationVehicleRelation.setTelephone(claimant.getTel());
agPoQuotationVehicleRelation.setNationality(claimant.getNatureType());
agPoQuotationVehicleRelation.setVehicleRelationId(5L);
agPoQuotationVehicleRelation.setRelationId(5);
agPoQuotationVehicleRelation.setCreatedAt(new Date());
agPoQuotationVehicleRelation.setCreatedBy(-1L);
agPoQuotationVehicleRelation.setCustomerId(-1L);
......@@ -169,7 +169,7 @@ public class AgPoQuotationWebServiceImpl implements AgPoQuotationWebService {
}
//交强险
if (priceinfo.getTcCoverages()!=null)
if (priceinfo.getTcCoverages()!=null && priceinfo.getTcCoverages().getTRAFFICCOMPULSORYPRODUCT()!=null)
{
agPoQuotationCover = new AgPoQuotationCover();
agPoQuotationCover = initAgPoQuotationTcCoveragesData(priceinfo.getTcCoverages(),quotationId,quotationVehicleId);
......
......@@ -100,6 +100,10 @@ public class ZhimaDataSyncServiceImpl implements ZhimaDataSyncService{
quotationResponse.setTsltax(quotationResponse.getTsltax().add(quotationResponsePage.getTsltax()));
quotationResponse.setAllCharge(quotationResponse.getAllCharge().add(quotationResponsePage.getAllCharge()));
quotationResponse.setBzTotal(quotationResponse.getBzTotal() + quotationResponsePage.getBzTotal());
quotationResponse.setTcTotal(quotationResponse.getTcTotal() + quotationResponsePage.getTcTotal());
if (start > 0 && (start + size > total))
{
break;
......@@ -161,7 +165,14 @@ public class ZhimaDataSyncServiceImpl implements ZhimaDataSyncService{
System.out.print(",getTcPremium," + list.get(i).getTcPremium());
System.out.println(",getVsltax" + list.get(i).getVsltax());
//System.out.println(",getAllCharge," + list.get(i).getAllCharge());
if (list.get(i).getBzPremium()>0)
{
quotationResponse.setBzTotal(quotationResponse.getBzTotal() + 1);
}
if (list.get(i).getTcPremium()>0)
{
quotationResponse.setTcTotal(quotationResponse.getTcTotal() + 1);
}
//检查是否已经存在
AgPoQuotation one = agPoQuotationService.findByQuoteNo(policyCode);
if (one==null)
......
......@@ -82,8 +82,6 @@ private static final long serialVersionUID = 1L;
private Integer isInclusiveFinanceDrive;
private Long vehicleRelationId;
private Date createdAt;
private Long createdBy;
......@@ -297,13 +295,7 @@ private static final long serialVersionUID = 1L;
public void setIsInclusiveFinanceDrive(Integer isInclusiveFinanceDrive){
this.isInclusiveFinanceDrive = isInclusiveFinanceDrive;
}
@Column(name="vehicle_relation_id")
public Long getVehicleRelationId(){
return this.vehicleRelationId;
}
public void setVehicleRelationId(Long vehicleRelationId){
this.vehicleRelationId = vehicleRelationId;
}
@Column(name="created_at")
public Date getCreatedAt(){
return this.createdAt;
......
......@@ -71,6 +71,7 @@
<factorypathentry kind="VARJAR" id="M2_REPO/org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/stax/stax-api/1.0.1/stax-api-1.0.1.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/belerweb/pinyin4j/2.5.0/pinyin4j-2.5.0.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-configuration-processor/1.5.3.RELEASE/spring-boot-configuration-processor-1.5.3.RELEASE.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/org/springframework/boot/spring-boot-starter-test/1.5.3.RELEASE/spring-boot-starter-test-1.5.3.RELEASE.jar" enabled="true" runInBatchMode="false"/>
......@@ -91,9 +92,7 @@
<factorypathentry kind="VARJAR" id="M2_REPO/mysql/mysql-connector-java/5.1.41/mysql-connector-java-5.1.41.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/alibaba/druid/1.0.31/druid-1.0.31.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/googlecode/log4jdbc/log4jdbc/1.2/log4jdbc-1.2.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/swetake/util/Qrcode/1.0/Qrcode-1.0.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/aliyun/aliyun-java-sdk-core/3.2.3/aliyun-java-sdk-core-3.2.3.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/aliyun/aliyun-java-sdk-dysmsapi/3.2.3/aliyun-java-sdk-dysmsapi-3.2.3.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/aliyun/aliyun-java-sdk-dm/3.1.0/aliyun-java-sdk-dm-3.1.0.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/sun/mail/javax.mail/1.5.6/javax.mail-1.5.6.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar" enabled="true" runInBatchMode="false"/>
......
......@@ -9,6 +9,8 @@ public class QuotationResponse {
private String errorMessage;//错误信息
private Integer total = 0;
private Integer bzTotal = 0;
private Integer tcTotal = 0;
private BigDecimal totalPremium = new BigDecimal(0);
private BigDecimal bzPremium = new BigDecimal(0);
private BigDecimal tcPremium = new BigDecimal(0);
......@@ -88,4 +90,20 @@ public class QuotationResponse {
this.errorMessage = errorMessage;
}
public Integer getBzTotal() {
return bzTotal;
}
public void setBzTotal(Integer bzTotal) {
this.bzTotal = bzTotal;
}
public Integer getTcTotal() {
return tcTotal;
}
public void setTcTotal(Integer tcTotal) {
this.tcTotal = tcTotal;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment