com.wuyu.module.hunter.service.impl.RecruitInputProcessServiceImpl Maven / Gradle / Ivy
package com.wuyu.module.hunter.service.impl;
import java.util.List;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.github.dennisit.vplus.data.page.Pagination;
import com.github.dennisit.vplus.data.utils.PaginationUtils;
import com.google.common.collect.Lists;
import com.wuyu.module.hunter.entity.RecruitInputProcess;
import com.wuyu.module.hunter.mapper.RecruitInputProcessMapper;
import com.wuyu.module.hunter.service.IRecruitInputProcessService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
@Service
public class RecruitInputProcessServiceImpl extends ServiceImpl implements IRecruitInputProcessService {
@Override
public List selectByInputId(long inputId) {
if(inputId <= 0){
return Lists.newArrayList();
}
EntityWrapper wp = new EntityWrapper();
wp.eq("input_id", inputId);
return this.selectList(wp);
}
@Override
public Pagination selectPagination(Page page, Wrapper wrapper) {
return PaginationUtils.builder(selectPage(page, wrapper));
}
@Override
public List selectList(Page page, Wrapper wrapper) {
return PaginationUtils.items(selectPage(page, wrapper));
}
}