Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
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
platform
hp-smart
Commits
6d89f1fe
Commit
6d89f1fe
authored
Aug 12, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-12 添加物料清单导入枚举
parent
541238a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
DocRouteEnum.java
src/main/java/com/baosight/hpjx/core/enums/DocRouteEnum.java
+15
-10
No files found.
src/main/java/com/baosight/hpjx/core/enums/DocRouteEnum.java
View file @
6d89f1fe
package
com
.
baosight
.
hpjx
.
co
mmon
;
package
com
.
baosight
.
hpjx
.
co
re
.
enums
;
import
com.baosight.hpjx.hp.sc.domain.HPSC002
;
import
com.baosight.hpjx.hp.sc.domain.HPSC002
;
...
@@ -11,9 +11,14 @@ import com.baosight.hpjx.hp.sc.domain.HPSC102;
...
@@ -11,9 +11,14 @@ import com.baosight.hpjx.hp.sc.domain.HPSC102;
*/
*/
public
enum
DocRouteEnum
{
public
enum
DocRouteEnum
{
HPSC002
(
"route_001"
,
"HPSC002"
,
"importData"
,
HPSC002
.
class
),
HPSC002
(
"route_001"
,
""
,
1
,
"HPSC002"
,
"importData"
,
HPSC002
.
class
),
HPSC006
(
"route_002"
,
"HPSC006"
,
"importData"
,
HPSC006
.
class
),
HPSC006
(
"route_002"
,
""
,
1
,
"HPSC006"
,
"importData"
,
HPSC006
.
class
),
HPSC102
(
"route_003"
,
"HPSC102"
,
"importData"
,
HPSC102
.
class
),;
HPSC102
(
"route_003"
,
""
,
1
,
"HPSC102"
,
"importData"
,
HPSC102
.
class
)
;
/**
* 唯一标识
*/
private
String
id
;
private
String
id
;
/**
/**
...
@@ -40,7 +45,7 @@ public enum DocRouteEnum {
...
@@ -40,7 +45,7 @@ public enum DocRouteEnum {
* 数据转换后的实体类
* 数据转换后的实体类
*/
*/
private
Class
clazz
;
private
Class
clazz
;
<
T
>
DocRouteEnum
(
String
id
,
String
templateUrl
,
int
startRow
,
String
serviceNme
,
String
methodName
,
<
T
>
DocRouteEnum
(
String
id
,
String
templateUrl
,
int
startRow
,
String
serviceNme
,
String
methodName
,
Class
<
T
>
clazz
)
{
Class
<
T
>
clazz
)
{
this
.
id
=
id
;
this
.
id
=
id
;
...
@@ -50,7 +55,7 @@ public enum DocRouteEnum {
...
@@ -50,7 +55,7 @@ public enum DocRouteEnum {
this
.
methodName
=
methodName
;
this
.
methodName
=
methodName
;
this
.
clazz
=
clazz
;
this
.
clazz
=
clazz
;
}
}
/**
/**
* 根据ID获取枚举
* 根据ID获取枚举
*
*
...
@@ -65,11 +70,11 @@ public enum DocRouteEnum {
...
@@ -65,11 +70,11 @@ public enum DocRouteEnum {
}
}
return
null
;
return
null
;
}
}
public
String
getId
()
{
public
String
getId
()
{
return
id
;
return
id
;
}
}
public
String
getTemplateUrl
()
{
public
String
getTemplateUrl
()
{
return
templateUrl
;
return
templateUrl
;
}
}
...
@@ -81,11 +86,11 @@ public enum DocRouteEnum {
...
@@ -81,11 +86,11 @@ public enum DocRouteEnum {
public
String
getServiceNme
()
{
public
String
getServiceNme
()
{
return
serviceNme
;
return
serviceNme
;
}
}
public
String
getMethodName
()
{
public
String
getMethodName
()
{
return
methodName
;
return
methodName
;
}
}
public
Class
getClazz
()
{
public
Class
getClazz
()
{
return
clazz
;
return
clazz
;
}
}
...
...
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