Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HYH.APSJ
Project
Project
Details
Activity
Releases
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
佟礼
HYH.APSJ
Commits
5b593fe9
Commit
5b593fe9
authored
Jan 23, 2026
by
DESKTOP-VKRD9QF\Administration
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
离散参数修改,公共分页和list查询修改
parent
fa5b9c03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
0 deletions
+124
-0
DiscreteParameterConfigType.java
...main/java/com/aps/entity/DiscreteParameterConfigType.java
+88
-0
FieldInfo.java
src/main/java/com/aps/entity/common/FieldInfo.java
+36
-0
No files found.
src/main/java/com/aps/entity/DiscreteParameterConfigType.java
0 → 100644
View file @
5b593fe9
package
com
.
aps
.
entity
;
/**
* 离散参数配置类型枚举
* 对应关系:
* 工作数量 -> 2
* 绝对持续时间 -> 0
* 工作持续时间 -> 1
* 工作数 -> 3
* 工作间隔最大间隔时间 -> 4
*/
public
enum
DiscreteParameterConfigType
{
/**
* 绝对持续时间
*/
ABSOLUTE_DURATION
(
0
,
"AbsoluteDuration"
,
"绝对持续时间"
),
/**
* 工作持续时间
*/
WORKING_DURATION
(
1
,
"WorkingDuration"
,
"工作持续时间"
),
/**
* 工作数量(累计数量)
*/
WORKING_QUANTITY
(
2
,
"AccumulatedQuantity"
,
"工作数量"
),
/**
* 工作数
*/
ORDER_COUNT
(
3
,
"OrderCount"
,
"工作数"
),
/**
* 工作间隔最大间隔时间
*/
MAX_INTERVAL
(
4
,
"MaxInterval"
,
"工作间隔最大间隔时间"
);
private
final
int
value
;
private
final
String
configType
;
private
final
String
description
;
DiscreteParameterConfigType
(
int
value
,
String
configType
,
String
description
)
{
this
.
value
=
value
;
this
.
configType
=
configType
;
this
.
description
=
description
;
}
/**
* 根据数值获取枚举值
*/
public
static
DiscreteParameterConfigType
getByValue
(
int
value
)
{
for
(
DiscreteParameterConfigType
type
:
values
())
{
if
(
type
.
getValue
()
==
value
)
{
return
type
;
}
}
return
null
;
}
/**
* 根据配置类型字符串获取枚举值
*/
public
static
DiscreteParameterConfigType
getByConfigType
(
String
configType
)
{
for
(
DiscreteParameterConfigType
type
:
values
())
{
if
(
type
.
getConfigType
().
equals
(
configType
))
{
return
type
;
}
}
return
null
;
}
public
int
getValue
()
{
return
value
;
}
public
String
getConfigType
()
{
return
configType
;
}
public
String
getDescription
()
{
return
description
;
}
}
\ No newline at end of file
src/main/java/com/aps/entity/common/FieldInfo.java
0 → 100644
View file @
5b593fe9
package
com
.
aps
.
entity
.
common
;
import
lombok.Data
;
/**
* 字段信息类,用于返回实体的字段元数据
*/
@Data
public
class
FieldInfo
{
/**
* 字段名称
*/
private
String
fieldName
;
/**
* 字段类型
*/
private
String
fieldType
;
/**
* 字段描述
*/
private
String
description
;
/**
* 数据源类型
*/
private
String
dataSource
;
/**
* 实体名称
*/
private
String
entityName
;
}
\ No newline at end of file
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