package com.elephant.framework.galaxy.aroad.module.zhjc.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcGljcRlzyb;
import com.elephant.framework.galaxy.aroad.module.zhjc.mapper.ZhjcGljcRlzybMapper;
import com.elephant.framework.galaxy.aroad.module.zhjc.service.ZhjcGljcRlzybService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 人力资源表
 *
 * @author wangjian
 * @date 2019-04-03 15:29:21
 */
@Service
@AllArgsConstructor
public class ZhjcGljcRlzybServiceImpl extends ServiceImpl<ZhjcGljcRlzybMapper, ZhjcGljcRlzyb> implements ZhjcGljcRlzybService {

    private final ZhjcGljcRlzybMapper zhjcGljcRlzybMapper;
    /**
     * 根据zw(职位)分页查询对应的人力资源数据
     * @param page
     * @param zw
     * @return
     */
    public IPage<List<ZhjcGljcRlzyb>> getRlzyDataGetZw(Page page, String zw){
        IPage ipage = zhjcGljcRlzybMapper.selectPage(page, Wrappers.<ZhjcGljcRlzyb>query().lambda().inSql(ZhjcGljcRlzyb::getZw,zw));
        return ipage;
    }
}
