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
29684e9e
Commit
29684e9e
authored
Apr 01, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运营后台--
一键校验
parent
dc0adaec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/main/java/cn/timer/api/bean/insure/InsureUser.java
+1
-1
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+5
-4
No files found.
src/main/java/cn/timer/api/bean/insure/InsureUser.java
View file @
29684e9e
...
...
@@ -152,7 +152,7 @@ public class InsureUser extends Model<InsureUser> {
@ApiModelProperty
(
value
=
"替换流水号,使用trans_id,RP_开头"
)
private
String
replaceTransId
;
@ApiModelProperty
(
value
=
"申请类型:1新增 3批增"
)
@ApiModelProperty
(
value
=
"申请类型:1新增
2投保
3批增"
)
private
Integer
applyType
;
...
...
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
29684e9e
...
...
@@ -294,17 +294,18 @@ public class InsureContorll {
}
insureUser
.
setPolicyDateStart
(
dtf3
.
parse
(
insureDto
.
getPolicyDateStart
()));
insureUser
.
setPolicyDateEnd
(
dtf3
.
parse
(
insureDto
.
getPolicyDateEnd
()));
insureUser
.
setPolicyId
(
insurePolicy
.
getId
());
insureUser
.
setApplyType
(
2
);
//投保类型
insureUser
.
setPolicyId
(
insurePolicy
.
getId
());
insureUser
.
insert
();
if
(
dataMap
.
get
(
"errcode"
).
toString
().
equals
(
"suc"
))
{
y
.
setIsInsure
(
1
);
y
.
insertOrUpdate
();
}
}
return
ResultUtil
.
success
(
dataMap
.
get
(
"errmsg"
).
toString
());
}
return
ResultUtil
.
success
(
dataMap
.
get
(
"errmsg"
).
toString
());
return
ResultUtil
.
error
(
dataMap
.
get
(
"errmsg"
).
toString
());
}
return
ResultUtil
.
error
(
"网络异常"
);
...
...
@@ -811,7 +812,7 @@ public class InsureContorll {
/*批次信息*/
List
<
Map
>
batchMap
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
policyMap
.
get
(
"batch"
)),
List
.
class
);
List
<
InsureUser
>
insureUserList
=
InsureUser
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
InsureUser
>().
lambda
().
eq
(
InsureUser:
:
getPolicyId
,
i
.
getId
())
.
eq
(
InsureUser:
:
getType
,
2
));
.
eq
(
InsureUser:
:
get
Apply
Type
,
2
));
insureUserList
.
forEach
(
user
->{
user
.
setBatchNo
(
batchMap
.
get
(
0
).
get
(
"batch_no"
).
toString
());
user
.
setPolicyNo
(
policyMap
.
get
(
"policy_no"
).
toString
());
...
...
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