Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 01d4569a
authored
Apr 18, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
设备组合枚举-添加双有线
1 parent
bfe5d888
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
src/main/java/cn/com/glsx/stdinterface/enums/DeviceComposeEnum.java
src/main/java/cn/com/glsx/stdinterface/enums/FakeOfficeTypeEnum.java
src/main/java/cn/com/glsx/stdinterface/enums/DeviceComposeEnum.java
View file @
01d4569
...
@@ -8,6 +8,7 @@ import lombok.Getter;
...
@@ -8,6 +8,7 @@ import lombok.Getter;
public
enum
DeviceComposeEnum
{
public
enum
DeviceComposeEnum
{
SINGLE_WIRED
(
"010"
,
"单有线"
),
SINGLE_WIRED
(
"010"
,
"单有线"
),
TWO_WIRED
(
"020"
,
"双有线"
),
SINGLE_WIRELESS
(
"001"
,
"单无线"
),
SINGLE_WIRELESS
(
"001"
,
"单无线"
),
ONE_WIRED_ONE_WIRELESS
(
"011"
,
"单有线+单无线"
),
ONE_WIRED_ONE_WIRELESS
(
"011"
,
"单有线+单无线"
),
TWO_WIRELESS
(
"002"
,
"双无线"
),
TWO_WIRELESS
(
"002"
,
"双无线"
),
...
@@ -19,9 +20,9 @@ public enum DeviceComposeEnum {
...
@@ -19,9 +20,9 @@ public enum DeviceComposeEnum {
private
String
name
;
private
String
name
;
public
static
String
getNameByCode
(
String
code
)
{
public
static
String
getNameByCode
(
String
code
)
{
for
(
DeviceComposeEnum
status
Enum
:
DeviceComposeEnum
.
values
())
{
for
(
DeviceComposeEnum
compose
Enum
:
DeviceComposeEnum
.
values
())
{
if
(
status
Enum
.
getCode
().
equals
(
code
))
{
if
(
compose
Enum
.
getCode
().
equals
(
code
))
{
return
status
Enum
.
getName
();
return
compose
Enum
.
getName
();
}
}
}
}
return
""
;
return
""
;
...
...
src/main/java/cn/com/glsx/stdinterface/enums/FakeOfficeTypeEnum.java
View file @
01d4569
...
@@ -20,9 +20,9 @@ public enum FakeOfficeTypeEnum {
...
@@ -20,9 +20,9 @@ public enum FakeOfficeTypeEnum {
private
String
desc
;
private
String
desc
;
public
static
String
getDescByStatus
(
Integer
status
)
{
public
static
String
getDescByStatus
(
Integer
status
)
{
for
(
FakeOfficeTypeEnum
status
Enum
:
FakeOfficeTypeEnum
.
values
())
{
for
(
FakeOfficeTypeEnum
type
Enum
:
FakeOfficeTypeEnum
.
values
())
{
if
(
status
Enum
.
getType
().
equals
(
status
))
{
if
(
type
Enum
.
getType
().
equals
(
status
))
{
return
status
Enum
.
getDesc
();
return
type
Enum
.
getDesc
();
}
}
}
}
return
""
;
return
""
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment