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
b75ccd16
Commit
b75ccd16
authored
Apr 18, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
d047d54b
55b2c02f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
50 additions
and
12 deletions
+50
-12
RuleTypeEnum.java
.../com/yeejoin/amos/boot/biz/common/enums/RuleTypeEnum.java
+1
-1
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+3
-7
WorkFlowUriEnum.java
...com/yeejoin/amos/patrol/common/enums/WorkFlowUriEnum.java
+1
-0
LatentDangerController.java
...os/patrol/business/controller/LatentDangerController.java
+15
-0
LatentDangerServiceImpl.java
...patrol/business/service/impl/LatentDangerServiceImpl.java
+14
-2
ILatentDangerService.java
...s/patrol/business/service/intfc/ILatentDangerService.java
+2
-0
RemoteWorkFlowService.java
...join/amos/patrol/common/remote/RemoteWorkFlowService.java
+13
-1
PlanTaskServiceImpl.java
...upervision/business/service/impl/PlanTaskServiceImpl.java
+1
-1
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/enums/RuleTypeEnum.java
View file @
b75ccd16
...
...
@@ -13,7 +13,7 @@ public enum RuleTypeEnum {
计划提交
(
"计划提交"
,
"addPlan"
,
"auditPage"
,
RuleConstant
.
WEB
,
RuleConstant
.
TASK
),
计划审核
(
"计划审核"
,
"planAudit"
,
"auditPage"
,
RuleConstant
.
APP_WEB
,
RuleConstant
.
NOTIFY
),
计划审核完成
(
"计划审核完成"
,
"planAuditAll"
,
"formulatePage"
,
RuleConstant
.
APP_WEB
,
RuleConstant
.
TASK
),
计划生成
(
"计划生成"
,
"addPlanTask"
,
null
,
RuleConstant
.
APP
,
RuleConstant
.
TASK
),
计划生成
(
"计划生成"
,
"addPlanTask"
,
null
,
RuleConstant
.
APP
,
RuleConstant
.
NOTIFY
),
计划完成
(
"计划完成"
,
"planCompleted"
,
null
,
RuleConstant
.
APP_WEB
,
RuleConstant
.
NOTIFY
),
// 隐患
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
b75ccd16
...
...
@@ -669,16 +669,12 @@ GROUP BY
</select>
<select
id=
"amosIdExist"
resultType=
"int"
>
select sum(num) from (
-- SELECT count(*) AS num FROM cb_firefighters WHERE amos_user_id = #{amosId} and is_delete = 0
--
-- union all
SELECT count(*) AS num FROM cb_org_usr WHERE amos_org_id = #{amosId} and is_delete = 0
-- union all SELECT count(*) AS num FROM cb_maintenance_company WHERE amos_org_id = #{amosId} and is_delete = 0
) AS total;
SELECT count(*) AS num FROM cb_org_usr WHERE amos_org_id = #{amosId} and is_delete = 0;
</select>
<select
id=
"amosIdExistTeam"
resultType=
"int"
>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-patrol-api/src/main/java/com/yeejoin/amos/patrol/common/enums/WorkFlowUriEnum.java
View file @
b75ccd16
...
...
@@ -18,6 +18,7 @@ public enum WorkFlowUriEnum {
当前子节点
(
"当前子节点"
,
"/wf/processes/{processInstanceId}/tasks?taskDefinitionKey={taskDefinitionKey}"
,
"processInstanceId,taskDefinitionKey"
),
工作流流水
(
"工作流流水"
,
"/wf/processes/{processInstanceId}/tasks"
,
"processInstanceId"
),
子节点信息
(
"子节点信息"
,
"/workflow/task/list/all/{instanceId}"
,
"instanceId"
),
无权限流程任务
(
"无权限流程任务任务"
,
"/workflow/task/getTaskNoAuth/{processInstanceId}"
,
"processInstanceId"
),
当前任务
(
"当前任务"
,
"/workflow/task/{processInstanceId}"
,
"processInstanceId"
);
private
String
desc
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/LatentDangerController.java
View file @
b75ccd16
...
...
@@ -332,6 +332,21 @@ public class LatentDangerController extends AbstractBaseController {
return
CommonResponseUtil
.
failure
(
"系统繁忙,请稍后再试"
);
}
}
@ApiOperation
(
value
=
"无流程权限的隐患当前任务"
,
notes
=
"无流程权限的隐患当前任务"
)
@GetMapping
(
value
=
"/detail/noAuthTask/{processInstanceId}"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
noAuthTaskDetail
(
@PathVariable
String
processInstanceId
)
{
try
{
AgencyUserModel
user
=
getUserInfo
();
if
(
ObjectUtils
.
isEmpty
(
user
))
{
return
CommonResponseUtil
.
failure
(
"用户session过期"
);
}
return
CommonResponseUtil
.
success
(
iLatentDangerService
.
queryTaskNoAuthByInstanceId
(
processInstanceId
));
}
catch
(
Exception
e
)
{
logger
.
error
(
"获取隐患任务出错"
,
e
.
getMessage
());
return
CommonResponseUtil
.
failure
(
"系统繁忙,请稍后再试"
);
}
}
@ApiOperation
(
value
=
"应急指挥科人员列表"
,
notes
=
"应急指挥科人员列表"
)
@GetMapping
(
value
=
"/emergencyCommandSection/person/list"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/LatentDangerServiceImpl.java
View file @
b75ccd16
...
...
@@ -712,7 +712,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
}
}
@Transactional
@Transactional
@Override
public
DangerExecuteSubmitDto
execute
(
LatentDangerExcuteParam
latentDangerExcuteParam
,
String
userId
,
String
userRealName
,
String
departmentId
,
String
departmentName
,
RoleBo
role
)
{
DangerExecuteSubmitDto
executeSubmitDto
=
new
DangerExecuteSubmitDto
();
...
...
@@ -1786,7 +1786,19 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
}
return
taskId
;
}
@Override
public
String
queryTaskNoAuthByInstanceId
(
String
processInstanceId
)
{
String
taskId
=
null
;
JSONObject
taskJson
=
remoteWorkFlowService
.
queryTaskNoAuth
(
processInstanceId
);
if
(
null
!=
taskJson
)
{
if
(
ValidationUtil
.
isEmpty
(
taskJson
.
get
(
"data"
)))
{
return
null
;
}
JSONObject
dataJson
=
(
JSONObject
)
taskJson
.
get
(
"data"
);
taskId
=
(
String
)
dataJson
.
get
(
"id"
);
}
return
taskId
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
getPersonListByCompanyId
()
{
List
<
Map
<
String
,
Object
>>
personList
=
jcsFeignClient
.
getPersonListByCompanyId
(
emergencyCommandSectionId
).
getResult
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/intfc/ILatentDangerService.java
View file @
b75ccd16
...
...
@@ -86,4 +86,6 @@ public interface ILatentDangerService {
String
queryTaskByInstanceId
(
String
processInstanceId
);
List
<
Map
<
String
,
Object
>>
getPersonListByCompanyId
();
public
String
queryTaskNoAuthByInstanceId
(
String
processInstanceId
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/common/remote/RemoteWorkFlowService.java
View file @
b75ccd16
...
...
@@ -279,7 +279,19 @@ public class RemoteWorkFlowService {
logger
.
info
(
"\r\n请求路径=======================>"
+
url
+
"\r\n返回参数=======================>"
+
resultStr
);
return
json
;
}
public
JSONObject
queryTaskNoAuth
(
String
id
)
{
Map
<
String
,
String
>
map
=
Maps
.
newHashMap
();
map
.
put
(
"processInstanceId"
,
id
);
String
url
=
buildUrl
(
address
,
WorkFlowUriEnum
.
无权限流程任务
,
map
);
Map
<
String
,
String
>
headerMap
=
Maps
.
newHashMap
();
headerMap
.
put
(
XJConstant
.
TOKEN_KEY
,
RequestContext
.
getToken
());
headerMap
.
put
(
XJConstant
.
PRODUCT
,
RequestContext
.
getProduct
());
headerMap
.
put
(
XJConstant
.
APPKEY
,
RequestContext
.
getAppKey
());
String
resultStr
=
HttpUtil
.
sendHttpGetWithHeader
(
url
,
headerMap
);
JSONObject
json
=
handleResult
(
resultStr
);
logger
.
info
(
"\r\n请求路径=======================>"
+
url
+
"\r\n返回参数=======================>"
+
resultStr
);
return
json
;
}
public
JSONObject
queryTaskDetail
(
String
taskId
)
{
Map
<
String
,
String
>
map
=
Maps
.
newHashMap
();
map
.
put
(
"taskId"
,
taskId
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/PlanTaskServiceImpl.java
View file @
b75ccd16
...
...
@@ -610,7 +610,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
}
log
.
info
(
String
.
format
(
"计划对象:%s"
,
JSON
.
toJSON
(
plan
)));
// 规则推送消息
rulePlanService
.
addPlanRule
(
plan
,
null
,
RuleTypeEnum
.
计划生成
,
extraUserIds
);
rulePlanService
.
addPlanRule
(
plan
,
null
,
RuleTypeEnum
.
计划生成
,
extraUserIds
);
//根据bug4150 将此处的计划生成的枚举值变成了消息,既TASK -> NOTIFY
}
@Override
...
...
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