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
8d286edb
Commit
8d286edb
authored
Aug 05, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
增员替换已投保bug
parent
015e360a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+9
-2
No files found.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
8d286edb
...
@@ -890,6 +890,7 @@ public class InsureContorll {
...
@@ -890,6 +890,7 @@ public class InsureContorll {
QyzxEmpLogin
qyzxEmpLogin
=
QyzxEmpLogin
.
builder
().
phone
(
String
.
valueOf
(
System
.
currentTimeMillis
())).
pw
(
Md5
.
md5
(
pwd
)).
regTime
(
new
Date
()).
orgId
(
company
.
getId
()).
username
(
u
.
getName
()).
sts
(
CommonEnum
.
U_STS_ON
.
getType
()).
build
();
QyzxEmpLogin
qyzxEmpLogin
=
QyzxEmpLogin
.
builder
().
phone
(
String
.
valueOf
(
System
.
currentTimeMillis
())).
pw
(
Md5
.
md5
(
pwd
)).
regTime
(
new
Date
()).
orgId
(
company
.
getId
()).
username
(
u
.
getName
()).
sts
(
CommonEnum
.
U_STS_ON
.
getType
()).
build
();
qyzxEmpLogin
.
insert
();
qyzxEmpLogin
.
insert
();
u
.
setEmpNum
(
qyzxEmpLogin
.
getId
());
u
.
setEmpNum
(
qyzxEmpLogin
.
getId
());
u
.
insert
();
});
});
}
}
allList
=
ygglMainEmpMapper
.
selectListByIZjNum
(
yg
.
stream
().
map
(
YgglMainEmp:
:
getZjNum
).
toArray
(
String
[]::
new
),
company
.
getId
());
allList
=
ygglMainEmpMapper
.
selectListByIZjNum
(
yg
.
stream
().
map
(
YgglMainEmp:
:
getZjNum
).
toArray
(
String
[]::
new
),
company
.
getId
());
...
@@ -908,6 +909,7 @@ public class InsureContorll {
...
@@ -908,6 +909,7 @@ public class InsureContorll {
}
}
return
ResultUtil
.
error
(
"被保人"
+
name
+
"当月已投保"
);
return
ResultUtil
.
error
(
"被保人"
+
name
+
"当月已投保"
);
}
}
return
ResultUtil
.
data
(
allList
,
"导入成功"
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
log
.
error
(
"一键校验异常:"
,
e
);
log
.
error
(
"一键校验异常:"
,
e
);
...
@@ -929,7 +931,7 @@ public class InsureContorll {
...
@@ -929,7 +931,7 @@ public class InsureContorll {
// if (message.size() > 0) {
// if (message.size() > 0) {
// return ResultUtil.data(selectUserList, JSONObject.toJSONString(message) + "已投过保");
// return ResultUtil.data(selectUserList, JSONObject.toJSONString(message) + "已投过保");
// }
// }
return
ResultUtil
.
data
(
allList
,
"导入成功
"
);
return
ResultUtil
.
error
(
"导入错误
"
);
}
}
@PostMapping
(
value
=
"/importUserClient"
)
@PostMapping
(
value
=
"/importUserClient"
)
...
@@ -1024,7 +1026,12 @@ public class InsureContorll {
...
@@ -1024,7 +1026,12 @@ public class InsureContorll {
List
<
String
>
idNumList
=
userList
.
stream
().
map
(
YgglMainEmp:
:
getZjNum
).
collect
(
Collectors
.
toList
());
List
<
String
>
idNumList
=
userList
.
stream
().
map
(
YgglMainEmp:
:
getZjNum
).
collect
(
Collectors
.
toList
());
List
<
YgglMainEmp
>
newList
=
yg
.
stream
().
filter
(
v
->
!
idNumList
.
contains
(
v
.
getZjNum
())).
collect
(
Collectors
.
toList
());
List
<
YgglMainEmp
>
newList
=
yg
.
stream
().
filter
(
v
->
!
idNumList
.
contains
(
v
.
getZjNum
())).
collect
(
Collectors
.
toList
());
if
(
newList
.
size
()
>
0
)
{
if
(
newList
.
size
()
>
0
)
{
newList
.
forEach
(
u
->
u
.
insert
());
newList
.
forEach
(
u
->{
QyzxEmpLogin
qyzxEmpLogin
=
QyzxEmpLogin
.
builder
().
phone
(
String
.
valueOf
(
System
.
currentTimeMillis
())).
pw
(
Md5
.
md5
(
pwd
)).
regTime
(
new
Date
()).
orgId
(
company
.
getId
()).
username
(
u
.
getName
()).
sts
(
CommonEnum
.
U_STS_ON
.
getType
()).
build
();
qyzxEmpLogin
.
insert
();
u
.
setEmpNum
(
qyzxEmpLogin
.
getId
());
u
.
insert
();
});
}
}
allList
=
ygglMainEmpMapper
.
selectListByIZjNum
(
yg
.
stream
().
map
(
YgglMainEmp:
:
getZjNum
).
toArray
(
String
[]::
new
),
company
.
getId
());
allList
=
ygglMainEmpMapper
.
selectListByIZjNum
(
yg
.
stream
().
map
(
YgglMainEmp:
:
getZjNum
).
toArray
(
String
[]::
new
),
company
.
getId
());
// selectUserList = allList.stream().filter(s -> s.getIsInsure() == 0).collect(Collectors.toList());
// selectUserList = allList.stream().filter(s -> s.getIsInsure() == 0).collect(Collectors.toList());
...
...
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