|
@@ -11,6 +11,7 @@ import com.zanxiang.game.module.mybatis.entity.CpSendMsgResult;
|
|
|
import com.zanxiang.game.module.mybatis.mapper.CpSendMsgResultMapper;
|
|
|
import com.zanxiang.module.util.bean.BeanUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -32,11 +33,12 @@ public class CpSendMsgResultServiceImpl extends ServiceImpl<CpSendMsgResultMappe
|
|
|
Page<CpSendMsgResult> page = this.page(new Page<>(param.getPageNum(), param.getPageSize()),
|
|
|
new LambdaQueryWrapper<CpSendMsgResult>()
|
|
|
.eq(CpSendMsgResult::getTaskId, param.getTaskId())
|
|
|
+ .eq(StringUtils.isNotEmpty(param.getSendStatus()), CpSendMsgResult::getSendStatus, param.getSendStatus())
|
|
|
.orderByDesc(CpSendMsgResult::getCreateTime)
|
|
|
);
|
|
|
List<CpSendMsgResult> cpSendMsgResults = page.getRecords();
|
|
|
List<SendMsgResultVO> sendMsgVos = toVo(cpSendMsgResults);
|
|
|
- return new PageUtil<>(sendMsgVos, page.getTotal(), param.getPageSize(), param.getPageNum(),0);
|
|
|
+ return new PageUtil<>(sendMsgVos, page.getTotal(), param.getPageSize(), param.getPageNum(), 0);
|
|
|
}
|
|
|
|
|
|
private List<SendMsgResultVO> toVo(List<CpSendMsgResult> cpSendMsgResults) {
|