|
@@ -1,9 +1,9 @@
|
|
|
package com.fjhx.socket.service.push.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.fjhx.socket.entity.push.dto.PushInfoDto;
|
|
|
import com.fjhx.socket.entity.push.dto.PushInfoSelectDto;
|
|
|
import com.fjhx.socket.entity.push.po.PushInfo;
|
|
|
import com.fjhx.socket.entity.push.vo.PushInfoVo;
|
|
@@ -37,6 +37,15 @@ public class PushInfoServiceImpl extends ServiceImpl<PushInfoMapper, PushInfo> i
|
|
|
wrapper.orderByDesc("pi", PushInfo::getId);
|
|
|
wrapper.eq("pi", PushInfo::getPushRead, dto.getPushRead());
|
|
|
wrapper.eq("pi", PushInfo::getPushUserId, SecurityUtils.getUserId());
|
|
|
+ wrapper.eq("pi", PushInfo::getType, dto.getType());
|
|
|
+ wrapper.func(ObjectUtil.isNotEmpty(dto.getWhetherFlow()), q -> {
|
|
|
+ if (StatusConstant.YES.equals(dto.getWhetherFlow())) {
|
|
|
+ q.eq("pi", PushInfo::getBusinessType, 0);
|
|
|
+ } else {
|
|
|
+ q.ne("pi", PushInfo::getBusinessType, 0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
Page<PushInfoVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
return page;
|
|
|
}
|