Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
8timerv2
8timerapiv200
Commits
f6aaacbd
Commit
f6aaacbd
authored
Sep 28, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时保单
parent
89071d7d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
2 deletions
+9
-2
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+2
-1
src/main/java/cn/timer/api/controller/insure/InsureUserController.java
+1
-0
src/main/java/cn/timer/api/dto/insure/InsureUserDto.java
+1
-0
src/main/java/cn/timer/api/dto/insure/PolicyDto.java
+1
-0
src/main/resources/mapping/insure/InsurePolicyMapper.xml
+1
-0
src/main/resources/mapping/insure/InsureUserMapper.xml
+3
-1
No files found.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
f6aaacbd
...
@@ -2022,7 +2022,8 @@ public class InsureContorll {
...
@@ -2022,7 +2022,8 @@ public class InsureContorll {
.
price
(
price
)
/*前端获取的保费*/
.
price
(
price
)
/*前端获取的保费*/
.
premium
(
price
)
.
premium
(
price
)
.
batchNo
(
batchData
.
get
(
"import_uuid"
).
toString
())
.
batchNo
(
batchData
.
get
(
"import_uuid"
).
toString
())
.
benefitBasicPlan
(
y
.
getBenefitBasicPlan
())
// .benefitBasicPlan(y.getBenefitBasicPlan())
.
productPlanId
(
y
.
getProductPlanId
())
.
policyNo
(
orderImportInfo
.
get
(
"contract_no"
).
toString
())
.
policyNo
(
orderImportInfo
.
get
(
"contract_no"
).
toString
())
.
userId
(
y
.
getUserId
())
.
userId
(
y
.
getUserId
())
.
orgCode
(
y
.
getOrgCode
())
.
orgCode
(
y
.
getOrgCode
())
...
...
src/main/java/cn/timer/api/controller/insure/InsureUserController.java
View file @
f6aaacbd
...
@@ -73,6 +73,7 @@ public class InsureUserController{
...
@@ -73,6 +73,7 @@ public class InsureUserController{
InsureProductPlan
insureProductPlan
=
InsureProductPlan
.
builder
().
id
(
user
.
getProductPlanId
()).
build
().
selectById
();
InsureProductPlan
insureProductPlan
=
InsureProductPlan
.
builder
().
id
(
user
.
getProductPlanId
()).
build
().
selectById
();
user
.
setPlanIds
(
JSON
.
parseArray
(
insureProductPlan
.
getPlanJson
(),
String
.
class
));
user
.
setPlanIds
(
JSON
.
parseArray
(
insureProductPlan
.
getPlanJson
(),
String
.
class
));
user
.
setProductName
(
insureProductPlan
.
getName
());
user
.
setProductName
(
insureProductPlan
.
getName
());
user
.
setBenefitBasicPlan
(
String
.
valueOf
(
insureProductPlan
.
getId
()));
return
ResultUtil
.
data
(
user
);
return
ResultUtil
.
data
(
user
);
}
}
...
...
src/main/java/cn/timer/api/dto/insure/InsureUserDto.java
View file @
f6aaacbd
...
@@ -21,4 +21,5 @@ public class InsureUserDto {
...
@@ -21,4 +21,5 @@ public class InsureUserDto {
private
String
name
;
private
String
name
;
private
Date
updateTime
;
private
Date
updateTime
;
private
Integer
productPlanId
;
private
Integer
productPlanId
;
private
Integer
productId
;
}
}
src/main/java/cn/timer/api/dto/insure/PolicyDto.java
View file @
f6aaacbd
...
@@ -49,4 +49,5 @@ public class PolicyDto {
...
@@ -49,4 +49,5 @@ public class PolicyDto {
private
String
companyName
;
private
String
companyName
;
private
boolean
isAll
=
false
;
private
boolean
isAll
=
false
;
private
Integer
productPlanId
;
private
Integer
productPlanId
;
private
String
planName
;
}
}
src/main/resources/mapping/insure/InsurePolicyMapper.xml
View file @
f6aaacbd
...
@@ -356,6 +356,7 @@
...
@@ -356,6 +356,7 @@
<select
id=
"selectPolicyListByorgCode"
resultType=
"cn.timer.api.dto.insure.InsureUserDto"
>
<select
id=
"selectPolicyListByorgCode"
resultType=
"cn.timer.api.dto.insure.InsureUserDto"
>
SELECT
SELECT
ip.product_id as productId,
ip.id as id,
ip.id as id,
ip.policy_no as policyNo,
ip.policy_no as policyNo,
ir.name,
ir.name,
...
...
src/main/resources/mapping/insure/InsureUserMapper.xml
View file @
f6aaacbd
...
@@ -286,11 +286,13 @@
...
@@ -286,11 +286,13 @@
iu.policy_date_end,iu.create_time,iu.insured_name,iu.benefit_basic_plan AS benefitBasicPlan,iu.price AS price,
iu.policy_date_end,iu.create_time,iu.insured_name,iu.benefit_basic_plan AS benefitBasicPlan,iu.price AS price,
iu.user_id as userId,iu.batch_no as batchNo,iu.benefit_occupation_category as benefitOccupationCategory,
iu.user_id as userId,iu.batch_no as batchNo,iu.benefit_occupation_category as benefitOccupationCategory,
iu.policy_id as policyId,
iu.policy_id as policyId,
iu.apply_type as applyType
iu.apply_type as applyType,
ipp.name as planName
from insure_user iu
from insure_user iu
LEFT JOIN yggl_main_emp yme on yme.id=iu.user_id
LEFT JOIN yggl_main_emp yme on yme.id=iu.user_id
LEFT JOIN insure_policy ip on ip.id=iu.policy_id
LEFT JOIN insure_policy ip on ip.id=iu.policy_id
LEFT JOIN insure_product io on io.id=ip.product_id
LEFT JOIN insure_product io on io.id=ip.product_id
LEFT JOIN insure_product_plan ipp on ipp.id =iu.product_plan_id
<where>
<where>
<if
test=
"policyDto.orgCode !=null and policyDto.orgCode !=''"
>
<if
test=
"policyDto.orgCode !=null and policyDto.orgCode !=''"
>
and ip.org_code=#{policyDto.orgCode}
and ip.org_code=#{policyDto.orgCode}
...
...
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