Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ajb-backend-car
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
ajb-backend-car
Commits
8da853f7
Commit
8da853f7
authored
Feb 14, 2019
by
Simon Cheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入201901芝麻数据
parent
8ff1e5dd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
15 deletions
+35
-15
ajb-car-api/src/main/java/com/ajb/web/quotation/impl/AgPoQuotationWebServiceImpl.java
+3
-3
ajb-car-api/src/main/java/com/ajb/web/zhima/impl/ZhimaDataSyncServiceImpl.java
+12
-1
ajb-car-entity/src/main/java/com/ajb/car/entity/quotation/AgPoQuotationVehicleRelation.java
+1
-9
ajb-car-jpa/.factorypath
+1
-2
ajb-car-vo/src/main/java/com/ajb/car/vo/zhima/quotation/QuotationResponse.java
+18
-0
No files found.
ajb-car-api/src/main/java/com/ajb/web/quotation/impl/AgPoQuotationWebServiceImpl.java
View file @
8da853f7
...
...
@@ -116,7 +116,7 @@ public class AgPoQuotationWebServiceImpl implements AgPoQuotationWebService {
agPoQuotationVehicleRelation
.
setAddress
(
applicant
.
getAddress
());
agPoQuotationVehicleRelation
.
setTelephone
(
applicant
.
getTel
());
agPoQuotationVehicleRelation
.
setNationality
(
applicant
.
getNatureType
());
agPoQuotationVehicleRelation
.
set
VehicleRelationId
(
1L
);
agPoQuotationVehicleRelation
.
set
RelationId
(
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
.
set
VehicleRelationId
(
5L
);
agPoQuotationVehicleRelation
.
set
RelationId
(
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
);
...
...
ajb-car-api/src/main/java/com/ajb/web/zhima/impl/ZhimaDataSyncServiceImpl.java
View file @
8da853f7
...
...
@@ -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
)
...
...
ajb-car-entity/src/main/java/com/ajb/car/entity/quotation/AgPoQuotationVehicleRelation.java
View file @
8da853f7
...
...
@@ -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
;
...
...
ajb-car-jpa/.factorypath
View file @
8da853f7
...
...
@@ -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"/>
...
...
ajb-car-vo/src/main/java/com/ajb/car/vo/zhima/quotation/QuotationResponse.java
View file @
8da853f7
...
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment