Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
教
教委财务数据分析
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JAVA
教委财务数据分析
Merge requests
!35
Feature/zjh
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Feature/zjh
feature/zjh
into
develop
Overview
0
Commits
4
Pipelines
1
Changes
11
Closed
张君豪
requested to merge
feature/zjh
into
develop
2 years ago
Overview
0
Commits
4
Pipelines
1
Changes
11
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
36e9099b
4 commits,
2 years ago
11 files
+
316
−
38
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
ServiceSiteCommon/facade/src/main/java/com/seasky/template/enums/TaskListEnum.java
0 → 100644
+
48
−
0
Options
package
com.seasky.template.enums
;
/**
* 经费类别
* @program:
* @author: kejinlong
**/
public
enum
TaskListEnum
{
FIXED_AMOUNT
(
"固定额度"
,
"01"
),
FLOAT_AMOUNT
(
"浮动额度"
,
"02"
),
YEAR_FIXED
(
"年中固定"
,
"011"
),
YEAR_FLOAT
(
"年中浮动"
,
"021"
);
/**
* 枚举属性说明
*/
private
final
String
name
;
private
final
String
index
;
TaskListEnum
(
String
name
,
String
index
)
{
this
.
name
=
name
;
this
.
index
=
index
;
}
public
String
getName
()
{
return
name
;
}
public
String
getIndex
()
{
return
index
;
}
/**
* 通过key 查找描述 方法
*
* @param index
*/
public
static
TaskListEnum
getValueByIndex
(
String
index
)
{
for
(
TaskListEnum
openEnum
:
TaskListEnum
.
values
())
{
if
(
openEnum
.
getIndex
().
equals
(
index
))
{
return
openEnum
;
}
}
throw
new
IllegalArgumentException
(
index
+
"? There is no such value!"
);
}
}