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
9b35ac81
Commit
9b35ac81
authored
Jul 08, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料主数据调整待办标题
parent
a5d0e06e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
NonProdApplyApplicationImpl.java
...odApply/application/impl/NonProdApplyApplicationImpl.java
+5
-1
NonProdApplyDeptApplicationImpl.java
...ply/application/impl/NonProdApplyDeptApplicationImpl.java
+17
-4
No files found.
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyApplicationImpl.java
View file @
9b35ac81
...
...
@@ -45,6 +45,7 @@ import lombok.SneakyThrows;
import
org.activiti.engine.delegate.DelegateExecution
;
import
org.activiti.engine.delegate.DelegateTask
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
...
...
@@ -226,7 +227,7 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
//publishHyzyMessage(nonProdApplyBaseInfo);
Map
backMap
=
new
HashMap
();
backMap
.
put
(
"TYPE"
,
"C"
);
backMap
.
put
(
"title"
,
""
);
backMap
.
put
(
"title"
,
nonProdApplyBaseInfo
.
getBillCode
()
);
nonProdApplyDeptApplication
.
saveBsnMessageData
(
nonProdApplyBaseInfo
,
backMap
);
}
// }
...
...
@@ -598,6 +599,9 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
BsnMessageSponsor
bsnMessageSponsor
=
new
BsnMessageSponsor
();
bsnMessageSponsor
.
setTaskSponsor
(
operator
.
getLoginUser
().
getId
());
String
genericName
=
nonProdApplyBaseInfo
.
getGenericName
()!=
null
?
nonProdApplyBaseInfo
.
getGenericName
():
""
;
if
(
StringUtils
.
isBlank
(
genericName
))
{
genericName
=
sapNonProdApplyDept
.
getMaktx
()!=
null
?
sapNonProdApplyDept
.
getMaktx
():
""
;
}
bsnMessageSponsor
.
setTitle
(
genericName
);
//通用品名
bsnMessageSponsor
.
setExecutorUrl
(
"sapNonProdApplyNext/forwardNonProdApplyNext.do?prod=1&isReadOnly=false"
);
bsnMessageSponsor
.
setBusinessId
(
sapNonProdApplyDept
.
getApplyDeptId
());
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyDeptApplicationImpl.java
View file @
9b35ac81
...
...
@@ -24,7 +24,7 @@ import com.huigou.uasp.bmp.operator.OperatorApplication;
import
com.huigou.util.ClassHelper
;
import
com.huigou.util.SDO
;
import
com.huigou.util.StringUtil
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang
3
.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -182,6 +182,9 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
}
catch
(
JsonProcessingException
e
)
{
throw
new
RuntimeException
(
"JSON转换失败:"
+
e
);
}
if
(
StringUtils
.
isBlank
(
genericName
))
{
genericName
=
nonProdApplyDept
.
getMaktx
()!=
null
?
nonProdApplyDept
.
getMaktx
():
""
;
}
saveDeptStaff
(
deptStaffList
,
nonProdApplyDept
.
getApplyDeptId
(),
genericName
);
}
//不是分发的
...
...
@@ -496,6 +499,10 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
messageExecute
.
setUpdateDate
(
new
Date
());
String
sign
=
"-."
;
String
title
=
backMap
.
get
(
"title"
)!=
null
?
backMap
.
get
(
"title"
).
toString
():
""
;
String
genericName
=
baseInfo
.
getGenericName
();
if
(
StringUtils
.
isBlank
(
baseInfo
.
getGenericName
())){
genericName
=
title
;
}
if
(
"S"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
messageExecute
.
setTaskDescribe
(
title
+
sign
+
backMap
.
get
(
"MESSAGE"
).
toString
());
}
else
if
(
"E"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
...
...
@@ -508,9 +515,15 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
if
(
baseInfo
.
getMaintenanceType
().
equals
(
"extend"
))
{
mess
=
sign
+
"物料扩展("
;
}
messageExecute
.
setTaskDescribe
(
baseInfo
.
getGenericName
()
+
mess
+
title
+
")"
);
if
(
genericName
.
equals
(
title
)){
title
=
""
;
}
messageExecute
.
setTaskDescribe
(
genericName
+
mess
+
title
+
")"
);
}
else
if
(
"D"
.
equals
(
backMap
.
get
(
"TYPE"
).
toString
()))
{
// 推送待分发的待办信息
messageExecute
.
setTaskDescribe
(
baseInfo
.
getGenericName
()
+
sign
+
"待分发("
+
title
+
")"
);
if
(
genericName
.
equals
(
title
)){
title
=
""
;
}
messageExecute
.
setTaskDescribe
(
genericName
+
sign
+
"待分发("
+
title
+
")"
);
}
bsnMessageApplication
.
saveBsnMessageSponsor
(
bsnMessageSponsor
);
messageExecute
.
setMessageSponsorId
(
bsnMessageSponsor
.
getId
());
...
...
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