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 {
.
price
(
price
)
/*前端获取的保费*/
.
premium
(
price
)
.
batchNo
(
batchData
.
get
(
"import_uuid"
).
toString
())
.
benefitBasicPlan
(
y
.
getBenefitBasicPlan
())
// .benefitBasicPlan(y.getBenefitBasicPlan())
.
productPlanId
(
y
.
getProductPlanId
())
.
policyNo
(
orderImportInfo
.
get
(
"contract_no"
).
toString
())
.
userId
(
y
.
getUserId
())
.
orgCode
(
y
.
getOrgCode
())
...
...
src/main/java/cn/timer/api/controller/insure/InsureUserController.java
View file @
f6aaacbd
...
...
@@ -73,6 +73,7 @@ public class InsureUserController{
InsureProductPlan
insureProductPlan
=
InsureProductPlan
.
builder
().
id
(
user
.
getProductPlanId
()).
build
().
selectById
();
user
.
setPlanIds
(
JSON
.
parseArray
(
insureProductPlan
.
getPlanJson
(),
String
.
class
));
user
.
setProductName
(
insureProductPlan
.
getName
());
user
.
setBenefitBasicPlan
(
String
.
valueOf
(
insureProductPlan
.
getId
()));
return
ResultUtil
.
data
(
user
);
}
...
...
src/main/java/cn/timer/api/dto/insure/InsureUserDto.java
View file @
f6aaacbd
...
...
@@ -21,4 +21,5 @@ public class InsureUserDto {
private
String
name
;
private
Date
updateTime
;
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 {
private
String
companyName
;
private
boolean
isAll
=
false
;
private
Integer
productPlanId
;
private
String
planName
;
}
src/main/resources/mapping/insure/InsurePolicyMapper.xml
View file @
f6aaacbd
...
...
@@ -356,6 +356,7 @@
<select
id=
"selectPolicyListByorgCode"
resultType=
"cn.timer.api.dto.insure.InsureUserDto"
>
SELECT
ip.product_id as productId,
ip.id as id,
ip.policy_no as policyNo,
ir.name,
...
...
src/main/resources/mapping/insure/InsureUserMapper.xml
View file @
f6aaacbd
...
...
@@ -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.user_id as userId,iu.batch_no as batchNo,iu.benefit_occupation_category as benefitOccupationCategory,
iu.policy_id as policyId,
iu.apply_type as applyType
iu.apply_type as applyType,
ipp.name as planName
from insure_user iu
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_product io on io.id=ip.product_id
LEFT JOIN insure_product_plan ipp on ipp.id =iu.product_plan_id
<where>
<if
test=
"policyDto.orgCode !=null and 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