Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gavelinfo
kwell-mes
Commits
39e99d0c
Commit
39e99d0c
authored
Feb 25, 2022
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路径枚举
parent
9777cf3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
YymkFKEnum.java
gavel/src/main/java/com/gavel/kwell/utils/YymkFKEnum.java
+62
-0
No files found.
gavel/src/main/java/com/gavel/kwell/utils/YymkFKEnum.java
0 → 100644
View file @
39e99d0c
package
com
.
gavel
.
kwell
.
utils
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
import
com.gavel.kzzx.model.GavelEnumModel
;
public
enum
YymkFKEnum
{
ZP
(
"ZP"
,
"901000200"
),
JY
(
"JY"
,
"901000400"
),
WX
(
"WX"
,
"901000600"
);
private
String
id
;
private
String
name
;
YymkFKEnum
(
String
id
,
String
name
){
this
.
id
=
id
;
this
.
name
=
name
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
static
String
getNameById
(
String
id
)
{
if
(
StringUtils
.
isNotEmpty
(
id
))
{
for
(
YymkFKEnum
e
:
YymkFKEnum
.
values
())
{
if
(
e
.
getId
().
equals
(
id
))
{
return
e
.
getName
();
}
}
}
return
null
;
}
public
static
List
<
GavelEnumModel
>
toList
()
{
List
<
GavelEnumModel
>
list
=
new
ArrayList
<>();
for
(
YymkFKEnum
e
:
YymkFKEnum
.
values
())
{
GavelEnumModel
gavelEnumModel
=
new
GavelEnumModel
();
gavelEnumModel
.
setId
(
e
.
getId
());
gavelEnumModel
.
setName
(
e
.
getName
());
list
.
add
(
gavelEnumModel
);
}
return
list
;
}
}
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