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
22cfe9a5
Commit
22cfe9a5
authored
Nov 17, 2021
by
xinglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改二次审核跳转页面
parent
877b3e6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
LatentDangerState.java
...oin/amos/latentdanger/common/enums/LatentDangerState.java
+10
-9
RuleDangerService.java
...latentdanger/business/service/impl/RuleDangerService.java
+3
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-latentdanger-api/src/main/java/com/yeejoin/amos/latentdanger/common/enums/LatentDangerState.java
View file @
22cfe9a5
...
...
@@ -2,7 +2,9 @@ package com.yeejoin.amos.latentdanger.common.enums;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -47,7 +49,7 @@ public interface LatentDangerState {
/**
* 隐患二次审核确认
*/
隐患二次审核确认
(
"隐患二次审核确认"
,
"secondConfirm"
,
"taskDispatch"
,
"onSiteConfirm"
,
"1"
,
""
),
隐患二次审核确认
(
"隐患二次审核确认"
,
"secondConfirm"
,
"taskDispatch"
,
"onSiteConfirm"
,
"1"
,
"
auditRecordPage
"
),
/**
* 整改任务分配
*/
...
...
@@ -187,15 +189,14 @@ public interface LatentDangerState {
return
enumName
;
}
public
static
String
getEnumUrlByCode
(
String
code
)
{
String
enumUrl
=
""
;
for
(
SupervisionDangerStateEnum
type:
SupervisionDangerStateEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
enumUrl
=
type
.
getUrl
();
break
;
}
public
static
Map
<
String
,
String
>
getEnumMapByCode
(
String
code
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
SupervisionDangerStateEnum
dangerEnum
=
getEnumByCode
(
code
);
if
(!
ValidationUtil
.
isEmpty
(
dangerEnum
)){
map
.
put
(
"processState"
,
dangerEnum
.
getProcessState
());
map
.
put
(
"url"
,
dangerEnum
.
getUrl
());
}
return
enumUrl
;
return
map
;
}
public
static
List
<
Map
<
String
,
String
>>
getEnumList
()
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/RuleDangerService.java
View file @
22cfe9a5
...
...
@@ -55,8 +55,8 @@ public class RuleDangerService {
LatentDangerRo
latentDangerRo
=
buildLatentDangerRo
(
latentDanger
,
ruleType
);
Map
<
String
,
String
>
extras
=
!
ValidationUtil
.
isEmpty
(
latentDangerRo
.
getExtras
())
?
latentDangerRo
.
getExtras
()
:
new
HashMap
<>();
// 跳转url
String
url
=
LatentDangerState
.
SupervisionDangerStateEnum
.
getEnumUrl
ByCode
(
latentDanger
.
getDangerState
());
extras
.
put
(
"url"
,
url
);
Map
<
String
,
String
>
enumMapByCode
=
LatentDangerState
.
SupervisionDangerStateEnum
.
getEnumMap
ByCode
(
latentDanger
.
getDangerState
());
extras
.
put
All
(
enumMapByCode
);
latentDangerRo
.
setExtras
(
extras
);
latentDangerRo
.
setExcuteStateName
(
excuteStateName
);
latentDangerRo
.
setIsSendWeb
(
true
);
...
...
@@ -91,6 +91,7 @@ public class RuleDangerService {
if
(!
ValidationUtil
.
isEmpty
(
type
)){
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"type"
,
type
);
map
.
put
(
"id"
,
String
.
valueOf
(
latentDanger
.
getId
()));
latentDangerRo
.
setExtras
(
map
);
}
return
latentDangerRo
;
...
...
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