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
91ba21e4
Commit
91ba21e4
authored
Feb 22, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.TEST
parent
1f73d507
Pipeline
#240
passed with stage
in 3 minutes 53 seconds
Changes
5
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
25 deletions
+22
-25
DynamicEnumUtil.java
...m/yeejoin/amos/boot/biz/common/utils/DynamicEnumUtil.java
+0
-0
LatentDangerLevelEnum.java
...amos/latentdanger/common/enums/LatentDangerLevelEnum.java
+8
-9
LatentDangerReformTypeEnum.java
...latentdanger/common/enums/LatentDangerReformTypeEnum.java
+7
-7
LatentDangerStateEnum.java
...amos/latentdanger/common/enums/LatentDangerStateEnum.java
+7
-8
CheckModelController.java
.../boot/module/tdc/biz/controller/CheckModelController.java
+0
-1
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/DynamicEnumUtil.java
View file @
91ba21e4
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 @
91ba21e4
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
;
...
@@ -108,13 +106,14 @@ public enum LatentDangerLevelEnum {
...
@@ -108,13 +106,14 @@ 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 @
91ba21e4
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
;
...
@@ -86,11 +85,12 @@ public enum LatentDangerReformTypeEnum {
...
@@ -86,11 +85,12 @@ 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 @
91ba21e4
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
;
...
@@ -63,11 +61,12 @@ public enum LatentDangerStateEnum {
...
@@ -63,11 +61,12 @@ 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
;
}
}
}
}
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/controller/CheckModelController.java
View file @
91ba21e4
...
@@ -16,7 +16,6 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
...
@@ -16,7 +16,6 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
sun.reflect.generics.tree.VoidDescriptor
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
...
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