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
111c4f8f
Commit
111c4f8f
authored
Feb 22, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.JDK11回复
parent
91ba21e4
Pipeline
#241
passed with stage
in 1 minute 15 seconds
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
22 deletions
+24
-22
DynamicEnumUtil.java
...m/yeejoin/amos/boot/biz/common/utils/DynamicEnumUtil.java
+0
-0
LatentDangerLevelEnum.java
...amos/latentdanger/common/enums/LatentDangerLevelEnum.java
+9
-8
LatentDangerReformTypeEnum.java
...latentdanger/common/enums/LatentDangerReformTypeEnum.java
+7
-7
LatentDangerStateEnum.java
...amos/latentdanger/common/enums/LatentDangerStateEnum.java
+8
-7
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/DynamicEnumUtil.java
View file @
111c4f8f
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-api/amos-boot-module-latentdanger-api/src/main/java/com/yeejoin/amos/latentdanger/common/enums/LatentDangerLevelEnum.java
View file @
111c4f8f
package
com
.
yeejoin
.
amos
.
latentdanger
.
common
.
enums
;
package
com
.
yeejoin
.
amos
.
latentdanger
.
common
.
enums
;
import
com.yeejoin.amos.boot.biz.common.utils.DynamicEnumUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -106,14 +108,13 @@ public enum LatentDangerLevelEnum {
...
@@ -106,14 +108,13 @@ public enum LatentDangerLevelEnum {
public
static
LatentDangerLevelEnum
addEnumDynamic
(
String
enumName
,
String
name
,
String
code
,
public
static
LatentDangerLevelEnum
addEnumDynamic
(
String
enumName
,
String
name
,
String
code
,
String
riskSourceDangerLevelCode
,
Integer
order
)
{
String
riskSourceDangerLevelCode
,
Integer
order
)
{
// LatentDangerLevelEnum dangerLevelEnum = DynamicEnumUtil.addEnum(LatentDangerLevelEnum.class, enumName,
LatentDangerLevelEnum
dangerLevelEnum
=
DynamicEnumUtil
.
addEnum
(
LatentDangerLevelEnum
.
class
,
enumName
,
// new Class[]{String.class, String.class, String.class, Integer.class}, new Object[]{name, code,
new
Class
[]{
String
.
class
,
String
.
class
,
String
.
class
,
Integer
.
class
},
new
Object
[]{
name
,
code
,
// riskSourceDangerLevelCode, order});
riskSourceDangerLevelCode
,
order
});
// if (!ValidationUtil.isEmpty(dangerLevelEnum)) {
if
(!
ValidationUtil
.
isEmpty
(
dangerLevelEnum
))
{
// supervisionDangerLevelEnumMap.put(code, dangerLevelEnum);
supervisionDangerLevelEnumMap
.
put
(
code
,
dangerLevelEnum
);
// }
}
// return dangerLevelEnum;
return
dangerLevelEnum
;
return
null
;
}
}
public
String
getName
()
{
public
String
getName
()
{
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-latentdanger-api/src/main/java/com/yeejoin/amos/latentdanger/common/enums/LatentDangerReformTypeEnum.java
View file @
111c4f8f
package
com
.
yeejoin
.
amos
.
latentdanger
.
common
.
enums
;
package
com
.
yeejoin
.
amos
.
latentdanger
.
common
.
enums
;
import
com.yeejoin.amos.boot.biz.common.utils.DynamicEnumUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -85,12 +86,11 @@ public enum LatentDangerReformTypeEnum {
...
@@ -85,12 +86,11 @@ public enum LatentDangerReformTypeEnum {
}
}
public
static
LatentDangerReformTypeEnum
addEnumDynamic
(
String
enumName
,
String
name
,
String
code
)
{
public
static
LatentDangerReformTypeEnum
addEnumDynamic
(
String
enumName
,
String
name
,
String
code
)
{
// LatentDangerReformTypeEnum dangerReformTypeEnum = DynamicEnumUtil.addEnum(LatentDangerReformTypeEnum.class, enumName,
LatentDangerReformTypeEnum
dangerReformTypeEnum
=
DynamicEnumUtil
.
addEnum
(
LatentDangerReformTypeEnum
.
class
,
enumName
,
// new Class[]{String.class, String.class}, new Object[]{name, code});
new
Class
[]{
String
.
class
,
String
.
class
},
new
Object
[]{
name
,
code
});
// if (!ValidationUtil.isEmpty(dangerReformTypeEnum)) {
if
(!
ValidationUtil
.
isEmpty
(
dangerReformTypeEnum
))
{
// supervisionReformTypeEnumMap.put(code, dangerReformTypeEnum);
supervisionReformTypeEnumMap
.
put
(
code
,
dangerReformTypeEnum
);
// }
}
// return dangerReformTypeEnum;
return
dangerReformTypeEnum
;
return
null
;
}
}
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-latentdanger-api/src/main/java/com/yeejoin/amos/latentdanger/common/enums/LatentDangerStateEnum.java
View file @
111c4f8f
package
com
.
yeejoin
.
amos
.
latentdanger
.
common
.
enums
;
package
com
.
yeejoin
.
amos
.
latentdanger
.
common
.
enums
;
import
com.yeejoin.amos.boot.biz.common.utils.DynamicEnumUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -61,12 +63,11 @@ public enum LatentDangerStateEnum {
...
@@ -61,12 +63,11 @@ public enum LatentDangerStateEnum {
}
}
public
static
LatentDangerStateEnum
addEnumDynamic
(
String
enumName
,
String
name
,
String
code
)
{
public
static
LatentDangerStateEnum
addEnumDynamic
(
String
enumName
,
String
name
,
String
code
)
{
// LatentDangerStateEnum dangerStateEnum = DynamicEnumUtil.addEnum(LatentDangerStateEnum.class, enumName,
LatentDangerStateEnum
dangerStateEnum
=
DynamicEnumUtil
.
addEnum
(
LatentDangerStateEnum
.
class
,
enumName
,
// new Class[]{String.class, String.class}, new Object[]{name, code});
new
Class
[]{
String
.
class
,
String
.
class
},
new
Object
[]{
name
,
code
});
// if (!ValidationUtil.isEmpty(dangerStateEnum)) {
if
(!
ValidationUtil
.
isEmpty
(
dangerStateEnum
))
{
// enumMap.put(code, dangerStateEnum);
enumMap
.
put
(
code
,
dangerStateEnum
);
// }
}
// return dangerStateEnum;
return
dangerStateEnum
;
return
null
;
}
}
}
}
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