Commit a08c514a authored by yanzg's avatar yanzg

日志只执行1次

parent 05573802
......@@ -129,6 +129,9 @@ public class MqServiceImpl implements MqService, InitializingBean {
*/
@Override
public String log(MessageLogReqVo req) {
if (StringHelper.isEmpty(req.getMessageId()) || StringHelper.isEmpty(req.getQueue())) {
return StringHelper.EMPTY;
}
MessageLogRemoveReqVo loadReq = new MessageLogRemoveReqVo(req.getQueue(), req.getMessageId());
MessageLogVo load = messageLogDao.load(loadReq, MessageLogVo.class);
if (load != null) {
......@@ -147,6 +150,9 @@ public class MqServiceImpl implements MqService, InitializingBean {
*/
@Override
public String logRemove(MessageLogRemoveReqVo req) {
if (StringHelper.isEmpty(req.getMessageId()) || StringHelper.isEmpty(req.getQueue())) {
return StringHelper.EMPTY;
}
messageLogDao.load(req, MessageLogVo.class);
return req.getMessageId();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment