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
554fa276
Commit
554fa276
authored
Oct 09, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
f65b98a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
13 deletions
+22
-13
ExecuteTypeEnum.java
...ejoin/amos/latentdanger/common/enums/ExecuteTypeEnum.java
+17
-5
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+2
-7
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+3
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-latentdanger-api/src/main/java/com/yeejoin/amos/latentdanger/common/enums/ExecuteTypeEnum.java
View file @
554fa276
...
@@ -10,9 +10,9 @@ public enum ExecuteTypeEnum {
...
@@ -10,9 +10,9 @@ public enum ExecuteTypeEnum {
/**
/**
* 未执行
* 未执行
*/
*/
未执行
(
"未执行"
,
1
),
未执行
(
"未执行"
,
1
,
""
),
通过
(
"通过"
,
2
),
通过
(
"通过"
,
2
,
"0"
),
驳回
(
"驳回"
,
3
);
驳回
(
"驳回"
,
3
,
"1"
);
/**
/**
* 名称,描述
* 名称,描述
...
@@ -23,11 +23,15 @@ public enum ExecuteTypeEnum {
...
@@ -23,11 +23,15 @@ public enum ExecuteTypeEnum {
*/
*/
private
Integer
code
;
private
Integer
code
;
/**
* 工作流条件(0通过1驳回)
*/
private
String
condition
;
ExecuteTypeEnum
(
String
name
,
Integer
code
,
String
condition
)
{
ExecuteTypeEnum
(
String
name
,
Integer
code
)
{
this
.
name
=
name
;
this
.
name
=
name
;
this
.
code
=
code
;
this
.
code
=
code
;
this
.
condition
=
condition
;
}
}
public
String
getName
()
{
public
String
getName
()
{
...
@@ -46,6 +50,14 @@ public enum ExecuteTypeEnum {
...
@@ -46,6 +50,14 @@ public enum ExecuteTypeEnum {
this
.
code
=
code
;
this
.
code
=
code
;
}
}
public
String
getCondition
()
{
return
condition
;
}
public
void
setCode
(
String
condition
)
{
this
.
condition
=
condition
;
}
public
static
ExecuteTypeEnum
getByCode
(
Integer
code
)
{
public
static
ExecuteTypeEnum
getByCode
(
Integer
code
)
{
for
(
ExecuteTypeEnum
e
:
ExecuteTypeEnum
.
values
())
{
for
(
ExecuteTypeEnum
e
:
ExecuteTypeEnum
.
values
())
{
if
(
code
.
equals
(
e
.
getCode
()))
{
if
(
code
.
equals
(
e
.
getCode
()))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
554fa276
...
@@ -1450,13 +1450,8 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
...
@@ -1450,13 +1450,8 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
private
RedisUtils
redisUtils
;
private
RedisUtils
redisUtils
;
public
BaseEntity
getCurrentInfo
()
{
public
BaseEntity
getCurrentInfo
()
{
BaseEntity
userModel
=
new
BaseEntity
();
BaseEntity
userModel
=
new
BaseEntity
();
String
keyString
=
RequestContext
.
getExeUserId
();
userModel
.
setRecUserId
(
"3141675"
);
String
token
=
RequestContext
.
getToken
();
userModel
.
setRecUserName
(
"admin_jcs"
);
ReginParams
params
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
keyString
,
token
)).
toString
(),
ReginParams
.
class
);
userModel
.
setRecUserId
(
params
.
getUserModel
().
getUserId
());
userModel
.
setRecUserName
(
params
.
getUserModel
().
getUserName
());
userModel
.
setRecDate
(
new
Date
());
userModel
.
setRecDate
(
new
Date
());
return
userModel
;
return
userModel
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/LatentDangerServiceImpl.java
View file @
554fa276
...
@@ -352,6 +352,7 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
...
@@ -352,6 +352,7 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
latentDanger
.
setDiscovererUserId
(
userId
);
latentDanger
.
setDiscovererUserId
(
userId
);
latentDanger
.
setOrgCode
(
orgCode
);
latentDanger
.
setOrgCode
(
orgCode
);
latentDanger
.
setDangerType
(
dangerTypeEnum
.
getCode
());
latentDanger
.
setDangerType
(
dangerTypeEnum
.
getCode
());
latentDanger
.
setDangerTypeName
(
dangerTypeEnum
.
getName
());
if
(
LatentDangerBizTypeEnum
.
防火监督
.
getCode
().
equals
(
bizType
))
{
if
(
LatentDangerBizTypeEnum
.
防火监督
.
getCode
().
equals
(
bizType
))
{
latentDanger
.
setDangerState
(
LatentDangerState
.
SupervisionDangerStateEnum
.
提交隐患
.
getCode
());
latentDanger
.
setDangerState
(
LatentDangerState
.
SupervisionDangerStateEnum
.
提交隐患
.
getCode
());
latentDanger
.
setDangerStateName
(
LatentDangerState
.
SupervisionDangerStateEnum
.
提交隐患
.
getName
());
latentDanger
.
setDangerStateName
(
LatentDangerState
.
SupervisionDangerStateEnum
.
提交隐患
.
getName
());
...
@@ -1220,7 +1221,8 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
...
@@ -1220,7 +1221,8 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
!
ValidationUtil
.
isEmpty
(
latentDanger
.
getInstanceId
())
&&
ExecuteTypeEnum
.
驳回
.
getCode
().
equals
(
preRecord
.
getExecuteState
()))
{
!
ValidationUtil
.
isEmpty
(
latentDanger
.
getInstanceId
())
&&
ExecuteTypeEnum
.
驳回
.
getCode
().
equals
(
preRecord
.
getExecuteState
()))
{
condition
=
planType
;
condition
=
planType
;
}
else
{
}
else
{
condition
=
param
.
getExecuteType
().
toString
();
ExecuteTypeEnum
executeTypeEnum
=
ExecuteTypeEnum
.
getByCode
(
param
.
getExecuteType
());
condition
=
executeTypeEnum
.
getCondition
();
}
}
// 执行任务(带权限校验)
// 执行任务(带权限校验)
...
...
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