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
5a6a5bf6
Commit
5a6a5bf6
authored
Sep 10, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加气瓶合规校验结果状态枚举
parent
e03a5834
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
CylinderComplianceStatus.java
...os/boot/module/jg/api/enums/CylinderComplianceStatus.java
+56
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/enums/CylinderComplianceStatus.java
0 → 100644
View file @
5a6a5bf6
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
/**
* 气瓶合规性校验结果枚举
*/
@Getter
@AllArgsConstructor
public
enum
CylinderComplianceStatus
{
/**
* 气瓶不存在
*/
NOT_EXIST
(
"01"
,
"气瓶不存在"
),
/**
* 气瓶未登记
*/
NOT_REGISTERED
(
"02"
,
"气瓶未登记"
),
/**
* 气瓶检验超期
*/
EXPIRED_INSPECTION
(
"03"
,
"气瓶检验超期"
),
/**
* 气瓶合规
*/
COMPLIANT
(
"04"
,
"气瓶合规"
);
private
final
String
code
;
private
final
String
desc
;
/**
* 根据code获取枚举值
*/
public
static
CylinderComplianceStatus
fromCode
(
String
code
)
{
for
(
CylinderComplianceStatus
status
:
values
())
{
if
(
status
.
getCode
().
equals
(
code
))
{
return
status
;
}
}
throw
new
IllegalArgumentException
(
"未知的合规状态码: "
+
code
);
}
@Override
public
String
toString
()
{
return
"CylinderComplianceStatus{"
+
"code='"
+
code
+
'\''
+
", desc='"
+
desc
+
'\''
+
'}'
;
}
}
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