|
@@ -16,6 +16,7 @@ import com.zanxiang.game.module.mybatis.mapper.CpSendMsgTaskMapper;
|
|
|
import com.zanxiang.module.util.bean.BeanUtil;
|
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -61,6 +62,7 @@ public class CPSendMsgTaskServiceImpl extends ServiceImpl<CpSendMsgTaskMapper, C
|
|
|
Page<CpSendMsgTask> page = sendMsgTaskService.page(new Page<>(param.getPageNum(), param.getPageSize()),
|
|
|
new LambdaQueryWrapper<CpSendMsgTask>()
|
|
|
.eq(param.getGameId() != null, CpSendMsgTask::getGameId, param.getGameId())
|
|
|
+ .eq(StringUtils.isNotEmpty(param.getTaskType()), CpSendMsgTask::getType, param.getTaskType())
|
|
|
.orderByDesc(CpSendMsgTask::getCreateTime));
|
|
|
List<CpSendMsgTask> cpSendMsgTasks = page.getRecords();
|
|
|
List<SendMsgVO> sendMsgVos = toVo(cpSendMsgTasks);
|