Commit 434c6d60 by 谢海旭

优化代码

1 parent c93f85e6
...@@ -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); customData.put("instId", instId);
msgProducer.topicSend(RabbitMQConstants.ROUTING_KEY_SOP_INST_INST_PARAM_CUSTOM_DATA_UPDATE, customData); 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;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!