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
32509fd3
Commit
32509fd3
authored
Apr 19, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决导入保单时用户名为空
parent
a4d6878b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
src/main/java/cn/timer/api/controller/insure/enums/PlanEnum.java
+10
-8
No files found.
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 @
32509fd3
package
cn
.
timer
.
api
.
controller
.
insure
.
enums
;
import
io.swagger.models.auth.In
;
import
lombok.Data
;
import
cn.timer.api.utils.ExcelUtils
;
/**
* @Description TODO
* @Author wgd
* @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_50
(
15
,
"50万意外/5万医疗/扩展24小时(A类)"
,
"A类"
,
"36969"
,
"63119"
),
A_80
(
18
,
"80万意外/10万医疗/扩展24小时(A类)"
,
"A类"
,
"36970"
,
"63119"
),
...
...
@@ -27,7 +26,7 @@ public enum InsuranceEnum {
private
String
plan
;
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
.
name
=
name
;
this
.
type
=
type
;
...
...
@@ -75,11 +74,14 @@ public enum InsuranceEnum {
this
.
category
=
category
;
}
public
static
InsuranceEnum
getEnum
(
String
plan
,
String
category
)
{
for
(
Insurance
Enum
v
:
values
())
public
static
PlanEnum
getEnum
(
String
plan
,
String
category
)
{
for
(
Plan
Enum
v
:
values
())
if
(
v
.
getPlan
().
equals
(
plan
)&&
v
.
getCategory
().
equals
(
category
))
return
v
;
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