|
@@ -6,8 +6,6 @@ import com.usky.dxtop.model.MsgLog;
|
|
|
import com.usky.dxtop.service.MsgLogService;
|
|
|
import com.usky.dxtop.service.emun.MsgLogStatus;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.amqp.rabbit.connection.CorrelationData;
|
|
|
-import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
@@ -28,9 +26,10 @@ public class MsgLogServiceImpl extends ServiceImpl<MsgLogMapper, MsgLog> impleme
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void consumerSuccess(Long id) {
|
|
|
+ public void consumerSuccess(Long id,String consequence) {
|
|
|
MsgLog msgLog = this.getById(id);
|
|
|
if (this.isRepetition(msgLog)){
|
|
|
+ msgLog.setConsequence(consequence);
|
|
|
msgLog.setMsgFlag(MsgLogStatus.CONSUMER_SUCCESS.getCode());
|
|
|
this.updateById(msgLog);
|
|
|
}
|