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
e6edd17c
Commit
e6edd17c
authored
Apr 19, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决导入保单时用户名为空
parent
d669820f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
31 deletions
+38
-31
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+28
-23
src/main/java/cn/timer/api/controller/insure/enums/PlanEnum.java
+10
-8
No files found.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
e6edd17c
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/insure/enums/
Insurance
Enum.java
→
src/main/java/cn/timer/api/controller/insure/enums/
Plan
Enum.java
View file @
e6edd17c
package
cn
.
timer
.
api
.
controller
.
insure
.
enums
;
package
cn
.
timer
.
api
.
controller
.
insure
.
enums
;
import
io.swagger.models.auth.In
;
import
cn.timer.api.utils.ExcelUtils
;
import
lombok.Data
;
/**
/**
* @Description TODO
* @Description TODO
* @Author wgd
* @Author wgd
* @Date 2022/3/24 17:20
* @Date 2022/3/24 17:20
*/
*/
public
enum
Insurance
Enum
{
public
enum
Plan
Enum
{
A_30
(
12
,
"30万意外/3万医疗/扩展24小时(A类)"
,
"A类"
,
"36968"
,
"63119"
),
A_30
(
12
,
"30万意外/3万医疗/扩展24小时(A类)"
,
"A类"
,
"36968"
,
"63119"
),
A_50
(
15
,
"50万意外/5万医疗/扩展24小时(A类)"
,
"A类"
,
"36969"
,
"63119"
),
A_50
(
15
,
"50万意外/5万医疗/扩展24小时(A类)"
,
"A类"
,
"36969"
,
"63119"
),
A_80
(
18
,
"80万意外/10万医疗/扩展24小时(A类)"
,
"A类"
,
"36970"
,
"63119"
),
A_80
(
18
,
"80万意外/10万医疗/扩展24小时(A类)"
,
"A类"
,
"36970"
,
"63119"
),
...
@@ -27,7 +26,7 @@ public enum InsuranceEnum {
...
@@ -27,7 +26,7 @@ public enum InsuranceEnum {
private
String
plan
;
private
String
plan
;
private
String
category
;
private
String
category
;
InsuranceEnum
(
Integer
price
,
String
name
,
String
type
,
String
plan
,
String
category
)
{
PlanEnum
(
Integer
price
,
String
name
,
String
type
,
String
plan
,
String
category
)
{
this
.
price
=
price
;
this
.
price
=
price
;
this
.
name
=
name
;
this
.
name
=
name
;
this
.
type
=
type
;
this
.
type
=
type
;
...
@@ -75,11 +74,14 @@ public enum InsuranceEnum {
...
@@ -75,11 +74,14 @@ public enum InsuranceEnum {
this
.
category
=
category
;
this
.
category
=
category
;
}
}
public
static
InsuranceEnum
getEnum
(
String
plan
,
String
category
)
{
public
static
PlanEnum
getEnum
(
String
plan
,
String
category
)
{
for
(
Insurance
Enum
v
:
values
())
for
(
Plan
Enum
v
:
values
())
if
(
v
.
getPlan
().
equals
(
plan
)&&
v
.
getCategory
().
equals
(
category
))
return
v
;
if
(
v
.
getPlan
().
equals
(
plan
)&&
v
.
getCategory
().
equals
(
category
))
return
v
;
throw
new
IllegalArgumentException
();
throw
new
IllegalArgumentException
();
}
}
public
static
PlanEnum
getEnumOfName
(
String
name
){
for
(
PlanEnum
v
:
values
())
if
(
v
.
getName
().
equals
(
name
))
return
v
;
throw
new
IllegalArgumentException
();
}
}
}
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