package com.sqx.modules.resumes.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sqx.common.utils.Result;
import com.sqx.modules.resumes.dao.ResumesDao;
import com.sqx.modules.resumes.dao.ResumesDetailsDao;
import com.sqx.modules.resumes.entity.Resumes;
import com.sqx.modules.resumes.entity.ResumesDetails;
import com.sqx.modules.resumes.service.ResumesDetailsService;
import com.sqx.modules.resumes.service.ResumesService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工作经历 工作经验
 */
@Service
public class ResumesDetailsServiceImpl extends ServiceImpl<ResumesDetailsDao, ResumesDetails> implements ResumesDetailsService {


    @Override
    public int deleteResumesDetailsByResumesId(Long resumesId){
        return baseMapper.delete(new QueryWrapper<ResumesDetails>().eq("resumes_id",resumesId));
    }

    @Override
    public List<ResumesDetails> selectResumesDetailsList(Long resumesId,Integer classify){
        return baseMapper.selectList(new QueryWrapper<ResumesDetails>().eq("resumes_id",resumesId).eq("resumes_classify",classify));
    }



}
