Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
c4621d32
Commit
c4621d32
authored
Mar 13, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增枚举
parent
90866abc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
0 deletions
+74
-0
MaintenanceTypeEnum.java
...n/amos/boot/module/hygf/api/Enum/MaintenanceTypeEnum.java
+37
-0
MaintenanceWorkersEnum.java
...mos/boot/module/hygf/api/Enum/MaintenanceWorkersEnum.java
+37
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/Enum/MaintenanceTypeEnum.java
0 → 100644
View file @
c4621d32
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
Enum
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
/**
* @description:
* @author: tw
* @createDate: 2024/3/12
*/
@Getter
@AllArgsConstructor
public
enum
MaintenanceTypeEnum
{
经销商质保运维
(
"经销商质保运维"
,
"JXSZBYW"
),
社会人员运维
(
"社会人员运维"
,
"SHRYYW"
);
/**
* 名称,描述
*/
private
String
name
;
/**
* 编码
*/
private
String
code
;
public
static
MaintenanceTypeEnum
getNodeByCode
(
String
code
)
{
MaintenanceTypeEnum
dealerReviewEnum
=
null
;
for
(
MaintenanceTypeEnum
type:
MaintenanceTypeEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
dealerReviewEnum
=
type
;
break
;
}
}
return
dealerReviewEnum
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/Enum/MaintenanceWorkersEnum.java
0 → 100644
View file @
c4621d32
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
Enum
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
/**
* @description:
* @author: tw
* @createDate: 2024/3/12
*/
@Getter
@AllArgsConstructor
public
enum
MaintenanceWorkersEnum
{
电工
(
"电工"
,
"DG"
);
/**
* 名称,描述
*/
private
String
name
;
/**
* 编码
*/
private
String
code
;
public
static
MaintenanceWorkersEnum
getNodeByCode
(
String
code
)
{
MaintenanceWorkersEnum
dealerReviewEnum
=
null
;
for
(
MaintenanceWorkersEnum
type:
MaintenanceWorkersEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
dealerReviewEnum
=
type
;
break
;
}
}
return
dealerReviewEnum
;
}
}
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