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
96d98b50
Commit
96d98b50
authored
Dec 18, 2023
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(检验业务开通):更新按钮权限 & 数据权限
parent
a5e5619b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
14 deletions
+39
-14
JyjcInspectionApplication.java
...oot/module/jyjc/api/entity/JyjcInspectionApplication.java
+6
-0
JyjcInspectionApplicationModel.java
...module/jyjc/api/model/JyjcInspectionApplicationModel.java
+2
-0
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+26
-10
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+5
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/entity/JyjcInspectionApplication.java
View file @
96d98b50
...
...
@@ -163,4 +163,10 @@ public class JyjcInspectionApplication extends BaseEntity {
*/
@TableField
(
"result_type"
)
private
String
resultType
;
/**
* 工作流下一个可执行节点
*/
@TableField
(
"next_execute_ids"
)
private
String
nextExecuteIds
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcInspectionApplicationModel.java
View file @
96d98b50
...
...
@@ -141,5 +141,7 @@ public class JyjcInspectionApplicationModel extends BaseModel {
@ApiModelProperty
(
"检验结果方式"
)
private
String
resultType
;
@ApiModelProperty
(
"工作流下一个可执行节点"
)
private
String
nextExecuteIds
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
96d98b50
...
...
@@ -128,6 +128,16 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
model
.
setApplicationNo
(
UUID
.
randomUUID
().
toString
());
model
.
setApplicationDate
(
new
Date
());
// region 获取下一个流程节点的数据
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
model
.
getProcessInstanceId
());
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
model
.
setNextExecuteIds
(
role
);
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
model
.
getWorkflowRole
()))
{
model
.
setWorkflowRole
(
model
.
getWorkflowRole
()
+
","
+
role
);
}
else
{
model
.
setWorkflowRole
(
role
);
}
// endregion
model
=
this
.
createWithModel
(
model
);
//保存报检装备监管码
if
(
null
!=
model
.
getEquip
()
&&
model
.
getEquip
().
size
()
>
0
)
{
...
...
@@ -197,6 +207,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
model
.
setStatus
(
"已提交"
);
execueFlow
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"op"
,
"0"
).
put
(
"instanceId"
,
model
.
getProcessInstanceId
()).
put
(
"comments"
,
""
).
build
());
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
model
.
getProcessInstanceId
());
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
model
.
setNextExecuteIds
(
role
);
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
model
.
getWorkflowRole
()))
{
model
.
setWorkflowRole
(
model
.
getWorkflowRole
()
+
","
+
role
);
}
else
{
model
.
setWorkflowRole
(
role
);
}
this
.
updateWithModel
(
model
);
}
return
model
;
...
...
@@ -406,17 +425,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
if
(
StringUtils
.
isNotBlank
(
processDescription
))
{
entity
.
setProcessDescription
(
processDescription
);
}
JSONObject
taskJson
=
workflowHelper
.
getTask
(
instanceId
);
if
(
taskJson
==
null
)
{
log
.
warn
(
"流程=>{}查询不到或已结束"
,
instanceId
);
return
;
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
instanceId
);
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
entity
.
setNextExecuteIds
(
role
);
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
entity
.
getWorkflowRole
()))
{
entity
.
setWorkflowRole
(
entity
.
getWorkflowRole
()
+
","
+
role
);
}
else
{
entity
.
setWorkflowRole
(
role
);
}
Map
<
String
,
Object
>
nextWorkflow
=
workflowHelper
.
getNextWorkflowNode
(
instanceId
);
entity
.
setWorkflowRole
((
String
)
nextWorkflow
.
get
(
"role"
));
entity
.
setWorkflowNode
(
taskJson
.
getString
(
"taskDefinitionKey"
));
// entity.setWorkflowActiveKey();
entity
.
setStatus
(
status
);
// entity.setStatusName(FlowStatusEnum.getNameByType(Long.parseLong(status)));
this
.
updateById
(
entity
);
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
View file @
96d98b50
...
...
@@ -127,8 +127,6 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
model
.
setApplyTime
(
new
Date
());
// model.setWorkflowActiveKey(dataObject.getString("taskDefinitionKey"));
model
.
setWorkflowProstanceId
(
instanceId
);
// 默认自动执行第一步
execueFlow
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"op"
,
"0"
).
put
(
"instanceId"
,
instanceId
).
put
(
"comments"
,
""
).
build
());
}
else
{
model
.
setStatus
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()
+
""
);
model
.
setStatusName
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getName
());
...
...
@@ -139,7 +137,10 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
model
.
setUnitCodeName
(
companyBo
.
getCompanyName
());
List
<
String
>
codes
=
createCodeService
.
createApplicationFormCode
(
ApplicationFormTypeEnum
.
JY
.
getCode
(),
1
);
model
.
setApplicationSeq
(
codes
.
get
(
0
));
return
this
.
createWithModel
(
model
);
model
=
this
.
createWithModel
(
model
);
// 默认自动执行第一步
execueFlow
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"op"
,
"0"
).
put
(
"instanceId"
,
instanceId
).
put
(
"comments"
,
""
).
build
());
return
model
;
}
else
{
return
this
.
updateWithModel
(
model
);
}
...
...
@@ -356,7 +357,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
Workflow
.
taskClient
.
completeByTask
(
taskId
,
dto
);
// 查询下节点任务
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
instanceId
);
if
(
op
.
equals
(
"0"
))
{
if
(
"0"
.
equals
(
op
)
&&
ObjectUtils
.
isNotEmpty
(
params
.
get
(
"originalDataId"
)
))
{
String
originalDataId
=
params
.
get
(
"originalDataId"
).
toString
();
JyjcOpeningApplication
jyjcOpeningApplication
=
jyjcOpeningApplicationMapper
.
selectById
(
originalDataId
);
List
<
String
>
detectionRegion
=
(
List
<
String
>)
params
.
get
(
"detectionRegion"
);
...
...
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