package com.patzn.lims.staff.service.impl;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.patzn.lims.core.web.BaseServiceImpl;
import com.patzn.lims.staff.entity.LmsStaffExperience;
import com.patzn.lims.staff.mapper.LmsStaffExperienceMapper;
import com.patzn.lims.staff.service.ILmsStaffExperienceService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 工作经历  服务实现类
 * <p>
 *
 * @author XuTao
 * @since 2019-08-12
 */
@Service
public class LmsStaffExperienceServiceImpl extends BaseServiceImpl<LmsStaffExperienceMapper, LmsStaffExperience> implements ILmsStaffExperienceService {
    @Override
    public Boolean add(LmsStaffExperience lmsStaffExperience) {
        return this.saveOrUpdate(lmsStaffExperience);
    }

    @Override
    public Page<LmsStaffExperience> page(Page<LmsStaffExperience> page, LmsStaffExperience lmsStaffExperience) {
        QueryWrapper wrapper  = Wrappers.<LmsStaffExperience>query(lmsStaffExperience);
        return this.page(page, wrapper);
    }
}
