Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 434c6d60
authored
Jan 04, 2024
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化代码
1 parent
c93f85e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
View file @
434c6d6
...
@@ -37,6 +37,7 @@ import com.glsx.plat.core.enums.SysConstants;
...
@@ -37,6 +37,7 @@ import com.glsx.plat.core.enums.SysConstants;
import
com.glsx.plat.core.web.Result
;
import
com.glsx.plat.core.web.Result
;
import
com.glsx.plat.office.excel.EasyExcelUtils
;
import
com.glsx.plat.office.excel.EasyExcelUtils
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -50,6 +51,7 @@ import java.text.SimpleDateFormat;
...
@@ -50,6 +51,7 @@ import java.text.SimpleDateFormat;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Slf4j
@Service
@Service
public
class
SopInstService
{
public
class
SopInstService
{
...
@@ -232,9 +234,13 @@ public class SopInstService {
...
@@ -232,9 +234,13 @@ public class SopInstService {
sopInstMapper
.
updateInstParamCustomData
(
instId
,
customData
);
sopInstMapper
.
updateInstParamCustomData
(
instId
,
customData
);
//发送字段数据变更通知消息
try
{
customData
.
put
(
"instId"
,
instId
);
//发送字段数据变更通知消息
msgProducer
.
topicSend
(
RabbitMQConstants
.
ROUTING_KEY_SOP_INST_INST_PARAM_CUSTOM_DATA_UPDATE
,
customData
);
customData
.
put
(
"instId"
,
instId
);
msgProducer
.
topicSend
(
RabbitMQConstants
.
ROUTING_KEY_SOP_INST_INST_PARAM_CUSTOM_DATA_UPDATE
,
customData
);
}
catch
(
Exception
e
)
{
log
.
error
(
"更新门店模板实例默认参数的自定义参数 推送mq消息异常 msg:{}"
,
e
);
}
return
result
;
return
result
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment