|
@@ -1,5 +1,7 @@
|
|
|
package com.usky.dxtop.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.usky.dxtop.mapper.MsgLogMapper;
|
|
|
import com.usky.dxtop.model.MsgLog;
|
|
@@ -35,4 +37,17 @@ public class MsgLogServiceImpl extends ServiceImpl<MsgLogMapper, MsgLog> impleme
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean isSuccess(Long businessId) {
|
|
|
+ LambdaQueryWrapper<MsgLog> queryWrapper = Wrappers.lambdaQuery();
|
|
|
+ queryWrapper.eq(MsgLog::getMsgFlag,MsgLogStatus.CONSUMER_SUCCESS.getCode())
|
|
|
+ .eq(MsgLog::getBusinessId,businessId);
|
|
|
+ int count = this.count(queryWrapper);
|
|
|
+ if (count > 0){
|
|
|
+ return true;
|
|
|
+ }else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|