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
e91ea3bc
Commit
e91ea3bc
authored
3 years ago
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运营后台--
三轮车号码验证
parent
29684e9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+9
-6
No files found.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
e91ea3bc
...
...
@@ -285,6 +285,7 @@ public class InsureContorll {
insureUser
.
setInsuredNo
(
y
.
getZjNum
());
insureUser
.
setInsuredEContact
(
y
.
getName
());
insureUser
.
setApplicantEmployeeList
(
url
);
insureUser
.
setTricycleFrameNumber
(
insureDto
.
getTricycleFrameNumber
());
if
(
dataMap
.
get
(
"errcode"
).
toString
().
equals
(
"suc"
))
{
insureUser
.
setInsureStatus
(
1
);
insureUser
.
setStatus
(
"1"
);
...
...
@@ -405,7 +406,7 @@ public class InsureContorll {
}
Integer
price
=
getPrice
(
insureDto
.
getBenefitBasicPlan
(),
insureDto
.
getBenefitOccupationCategory
());
LocalDateTime
now
=
LocalDateTime
.
now
();
String
url
=
creaXSSFWorkbook1
(
insureDto
.
getUserIds
(),
insureDto
.
getPolicyDateStart
(),
price
);
String
url
=
creaXSSFWorkbook1
(
insureDto
.
getUserIds
(),
insureDto
.
getPolicyDateStart
(),
price
,
insureDto
.
getTricycleFrameNumber
()
);
log
.
info
(
"保全增员文件地址"
,
url
);
DateTimeFormatter
dtf2
=
DateTimeFormatter
.
ofPattern
(
"yyyyMMddHHmmss"
);
Map
bodyMap
=
Maps
.
newHashMap
();
...
...
@@ -448,6 +449,7 @@ public class InsureContorll {
.
insuredMobile
(
y
.
getPhone
())
.
benefitOccupationCategory
(
insureDto
.
getBenefitOccupationCategory
())
.
insuredNo
(
y
.
getZjNum
())
.
tricycleFrameNumber
(
insureDto
.
getTricycleFrameNumber
())
.
insuredEContact
(
y
.
getName
())
.
applyType
(
1
)
.
applicantEmployeeList
(
data
.
get
(
"file_url"
).
toString
())
...
...
@@ -472,7 +474,7 @@ public class InsureContorll {
* @param ids
* @return
*/
public
String
creaXSSFWorkbook1
(
String
[]
ids
,
String
date
,
Integer
price
)
{
public
String
creaXSSFWorkbook1
(
String
[]
ids
,
String
date
,
Integer
price
,
String
tricycleFrameNumber
)
{
if
(
ids
.
length
<=
0
)
{
return
"error"
;
}
...
...
@@ -480,7 +482,7 @@ public class InsureContorll {
List
<
YgglMainEmp
>
ygglMainEmpList
=
ygglMainEmpMapper
.
selectListByIds
(
ids
);
List
list
=
Lists
.
newArrayList
();
for
(
YgglMainEmp
y
:
ygglMainEmpList
)
{
String
[]
arr
=
new
String
[]{
String
.
valueOf
(
y
.
getId
()),
y
.
getName
(),
"身份证"
,
y
.
getZjNum
(),
InsuranceEnum
.
getEnum
(
price
).
getName
(),
date
,
"深圳名邦人力资源管理有限公司"
,
"无"
,
InsuranceEnum
.
getEnum
(
price
).
getType
()};
String
[]
arr
=
new
String
[]{
String
.
valueOf
(
y
.
getId
()),
y
.
getName
(),
"身份证"
,
y
.
getZjNum
(),
InsuranceEnum
.
getEnum
(
price
).
getName
(),
date
,
"深圳名邦人力资源管理有限公司"
,
StringUtils
.
isNullOrEmpty
(
tricycleFrameNumber
)?
"无"
:
tricycleFrameNumber
,
InsuranceEnum
.
getEnum
(
price
).
getType
()};
list
.
add
(
arr
);
}
String
[]
rowName
=
new
String
[]{
"ID"
,
"name"
,
"ID_type"
,
"ID_number"
,
"Scheme_name"
,
"Date_start"
,
"Branch"
,
"Tricycle_frame_number"
,
"benefit_occupation_category"
};
...
...
@@ -579,7 +581,7 @@ public class InsureContorll {
}
Integer
price
=
getPrice
(
insureDto
.
getBenefitBasicPlan
(),
insureDto
.
getBenefitOccupationCategory
());
LocalDateTime
now
=
LocalDateTime
.
now
();
String
url
=
creaXSSFWorkbook2
(
insureDto
.
getUserIds
(),
insureDto
.
getPolicyDateStart
(),
oldUser
,
insureDto
.
getBenefitOccupationCategory
());
String
url
=
creaXSSFWorkbook2
(
insureDto
.
getUserIds
(),
insureDto
.
getPolicyDateStart
(),
oldUser
,
insureDto
.
getBenefitOccupationCategory
()
,
insureDto
.
getTricycleFrameNumber
()
);
log
.
info
(
"保全替换文件地址"
,
url
);
DateTimeFormatter
dtf2
=
DateTimeFormatter
.
ofPattern
(
"yyyyMMddHHmmss"
);
Map
bodyMap
=
Maps
.
newHashMap
();
...
...
@@ -622,6 +624,7 @@ public class InsureContorll {
.
insuredMobile
(
y
.
getPhone
())
.
benefitOccupationCategory
(
insureDto
.
getBenefitOccupationCategory
())
.
insuredNo
(
y
.
getZjNum
())
.
tricycleFrameNumber
(
insureDto
.
getTricycleFrameNumber
())
.
insuredEContact
(
y
.
getName
())
.
applicantEmployeeList
(
data
.
get
(
"file_url"
).
toString
())
.
policyDateStart
(
dtf3
.
parse
(
insureDto
.
getPolicyDateStart
()))
...
...
@@ -650,7 +653,7 @@ public class InsureContorll {
* @param ids
* @return
*/
public
String
creaXSSFWorkbook2
(
String
[]
ids
,
String
date
,
String
[]
oldIds
,
String
type
)
{
public
String
creaXSSFWorkbook2
(
String
[]
ids
,
String
date
,
String
[]
oldIds
,
String
type
,
String
tricycleFrameNumber
)
{
if
(
ids
.
length
<=
0
||
oldIds
.
length
<=
0
)
{
return
"error"
;
}
...
...
@@ -670,7 +673,7 @@ public class InsureContorll {
newList
.
get
(
i
).
getName
(),
"身份证"
,
newList
.
get
(
i
).
getZjNum
(),
""
,
""
,
""
,
""
,
""
,
""
,
"无"
,
"1"
,
type
.
equals
(
"63119"
)?
"A类"
:
type
.
equals
(
"63120"
)?
"B类"
:
"C类"
};
""
,
""
,
""
,
""
,
""
,
""
,
StringUtils
.
isNullOrEmpty
(
tricycleFrameNumber
)?
"无"
:
tricycleFrameNumber
,
"1"
,
type
.
equals
(
"63119"
)?
"A类"
:
type
.
equals
(
"63120"
)?
"B类"
:
"C类"
};
list
.
add
(
arr
);
}
String
[]
rowName
=
new
String
[]{
"ID"
,
"name"
,
"ID_type"
,
"ID_number"
,
"Update_date"
,
"replace_name"
,
"replace_ID_type"
,
...
...
This diff is collapsed.
Click to expand it.
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