Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
鲁鑫
topsun-bpm
Commits
00b115a1
Commit
00b115a1
authored
Sep 10, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品质异常单(采购)调整2
parent
2fb75f01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
ExceptionReportApplicationImpl.java
...port/application/impl/ExceptionReportApplicationImpl.java
+10
-7
No files found.
topsun/src/main/java/com/huigou/topsun/sap/exceptionReport/application/impl/ExceptionReportApplicationImpl.java
View file @
00b115a1
...
...
@@ -161,7 +161,7 @@ public class ExceptionReportApplicationImpl extends FlowBroker implements Except
}
if
(
exceptionReport
.
getStatusId
()==
1
&&(
"purchase"
.
equals
(
exceptionReport
.
getBillType
())||
"outgoing"
.
equals
(
exceptionReport
.
getBillType
()))
//&&!"auditDept".equals(exceptionReport.getHandleNodeId()) //不是审计部审批的
&&
StringUtils
.
isBlank
(
exceptionReport
.
getDutyDept
())
//责任部门是空 最后的审批人就是责任人
//
&&StringUtils.isBlank(exceptionReport.getDutyDept()) //责任部门是空 最后的审批人就是责任人
){
// String ds=exceptionReport.getHandleNodeId();
Map
<
String
,
Object
>
mapSigns
=
workflowApplication
.
queryCounterSignHandlers
(
exceptionReport
.
getId
(),
"Approve"
);
...
...
@@ -169,12 +169,15 @@ public class ExceptionReportApplicationImpl extends FlowBroker implements Except
List
<
Map
<
String
,
Object
>>
plist
=(
List
)
mapSigns
.
get
(
"Rows"
);
if
(
Integer
.
parseInt
(
mapSigns
.
get
(
"Total"
).
toString
())>
0
)
{
Map
map
=
plist
.
get
(
Integer
.
parseInt
(
mapSigns
.
get
(
"Total"
).
toString
())
-
1
);
exceptionReport
.
setCheckOperator
(
map
.
get
(
"handlerId"
).
toString
());
exceptionReport
.
setCheckOperatorName
(
map
.
get
(
"handlerName"
).
toString
());
exceptionReport
.
setDutyDeptName
(
map
.
get
(
"deptName"
).
toString
());
Org
org
=
orgApplication
.
loadOrg
(
map
.
get
(
"handlerId"
).
toString
());
exceptionReport
.
setDutyDept
(
org
.
getDeptId
());
// if (StringUtils.isBlank(exceptionReport.getDutyDept()) //没有责任人 或者责任人与审批人不一致
// ||!exceptionReport.getDutyDept().equals(map.get("handlerId").toString())
// ) {
exceptionReport
.
setCheckOperator
(
map
.
get
(
"handlerId"
).
toString
());
exceptionReport
.
setCheckOperatorName
(
map
.
get
(
"handlerName"
).
toString
());
exceptionReport
.
setDutyDeptName
(
map
.
get
(
"deptName"
).
toString
());
Org
org
=
orgApplication
.
loadOrg
(
map
.
get
(
"handlerId"
).
toString
());
exceptionReport
.
setDutyDept
(
org
.
getDeptId
());
// }
}
}
exceptionReport
=
this
.
saveExceptionReport
(
exceptionReport
);
...
...
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