添加教育经历和培训经历表
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package com.ruoyi.cms.service;
|
||||
|
||||
import com.ruoyi.cms.domain.AppUserEducation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IAppUserEducationService
|
||||
{
|
||||
/**
|
||||
* 分页查询学历列表
|
||||
*/
|
||||
List<AppUserEducation> selectAppUserEducationList(AppUserEducation appUserEducation);
|
||||
|
||||
/**
|
||||
* 根据ID查询单条学历
|
||||
*/
|
||||
AppUserEducation selectAppUserEducationById(Long id);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询全部学历经历(APP简历接口)
|
||||
*/
|
||||
List<AppUserEducation> selectEducationByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 新增学历经历
|
||||
*/
|
||||
int insertAppUserEducation(AppUserEducation appUserEducation);
|
||||
|
||||
/**
|
||||
* 修改学历经历
|
||||
*/
|
||||
int updateAppUserEducation(AppUserEducation appUserEducation);
|
||||
|
||||
/**
|
||||
* 批量删除学历
|
||||
*/
|
||||
int deleteAppUserEducationByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.ruoyi.cms.service;
|
||||
|
||||
import com.ruoyi.cms.domain.AppUserTrain;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IAppUserTrainService
|
||||
{
|
||||
/**
|
||||
* 分页查询培训经历列表
|
||||
*/
|
||||
List<AppUserTrain> selectAppUserTrainList(AppUserTrain appUserTrain);
|
||||
|
||||
/**
|
||||
* 根据id获取详情
|
||||
*/
|
||||
AppUserTrain selectAppUserTrainById(Long id);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询所有培训记录
|
||||
*/
|
||||
List<AppUserTrain> selectTrainByUserId(Long userId);
|
||||
|
||||
/**
|
||||
* 新增培训经历
|
||||
*/
|
||||
int insertAppUserTrain(AppUserTrain appUserTrain);
|
||||
|
||||
/**
|
||||
* 修改培训经历
|
||||
*/
|
||||
int updateAppUserTrain(AppUserTrain appUserTrain);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
int deleteAppUserTrainByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.ruoyi.cms.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.cms.domain.AppUserEducation;
|
||||
import com.ruoyi.cms.mapper.AppUserEducationMapper;
|
||||
import com.ruoyi.cms.service.IAppUserEducationService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class AppUserEducationServiceImpl extends ServiceImpl<AppUserEducationMapper, AppUserEducation> implements IAppUserEducationService
|
||||
{
|
||||
@Resource
|
||||
private AppUserEducationMapper appUserEducationMapper;
|
||||
|
||||
@Override
|
||||
public List<AppUserEducation> selectAppUserEducationList(AppUserEducation appUserEducation)
|
||||
{
|
||||
List<AppUserEducation> list = appUserEducationMapper.selectAppUserEducationList(appUserEducation);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AppUserEducation selectAppUserEducationById(Long id)
|
||||
{
|
||||
return appUserEducationMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AppUserEducation> selectEducationByUserId(Long userId)
|
||||
{
|
||||
return appUserEducationMapper.selectEducationListByUserId(userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertAppUserEducation(AppUserEducation appUserEducation)
|
||||
{
|
||||
return appUserEducationMapper.insert(appUserEducation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateAppUserEducation(AppUserEducation appUserEducation)
|
||||
{
|
||||
return appUserEducationMapper.updateById(appUserEducation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteAppUserEducationByIds(Long[] ids)
|
||||
{
|
||||
return appUserEducationMapper.deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.ruoyi.cms.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.cms.domain.AppUserTrain;
|
||||
import com.ruoyi.cms.mapper.AppUserTrainMapper;
|
||||
import com.ruoyi.cms.service.IAppUserTrainService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class AppUserTrainServiceImpl extends ServiceImpl<AppUserTrainMapper, AppUserTrain> implements IAppUserTrainService
|
||||
{
|
||||
@Resource
|
||||
private AppUserTrainMapper appUserTrainMapper;
|
||||
|
||||
@Override
|
||||
public List<AppUserTrain> selectAppUserTrainList(AppUserTrain appUserTrain)
|
||||
{
|
||||
List<AppUserTrain> list = appUserTrainMapper.selectAppUserTrainList(appUserTrain);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AppUserTrain selectAppUserTrainById(Long id)
|
||||
{
|
||||
return appUserTrainMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AppUserTrain> selectTrainByUserId(Long userId)
|
||||
{
|
||||
return appUserTrainMapper.selectTrainListByUserId(userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertAppUserTrain(AppUserTrain appUserTrain)
|
||||
{
|
||||
return appUserTrainMapper.insert(appUserTrain);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateAppUserTrain(AppUserTrain appUserTrain)
|
||||
{
|
||||
return appUserTrainMapper.updateById(appUserTrain);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteAppUserTrainByIds(Long[] ids)
|
||||
{
|
||||
return appUserTrainMapper.deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user