| | |
| | | package com.ots.project.exam.service.impl; |
| | | |
| | | import com.ots.common.utils.text.Convert; |
| | | import com.ots.project.exam.domain.SysUserPaper; |
| | | import com.ots.project.exam.mapper.SysUserPaperMapper; |
| | | import com.ots.project.exam.service.ISysUserPaperService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 用户产品Service业务层处理 |
| | | * |
| | | * @author ots |
| | | * @date 2020-03-22 |
| | | */ |
| | | @Service |
| | | public class SysUserPaperServiceImpl implements ISysUserPaperService { |
| | | @Autowired |
| | | private SysUserPaperMapper sysUserPaperMapper; |
| | | |
| | | |
| | | /** |
| | | * 查询用户产品 |
| | | * |
| | | * @param userId 用户产品ID |
| | | * @return 用户产品 |
| | | */ |
| | | @Override |
| | | public SysUserPaper selectSysUserPaperById(Long userId) { |
| | | return sysUserPaperMapper.selectSysUserPaperById(userId); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询用户产品列表 |
| | | * |
| | | * @param sysUserPaper 用户产品 |
| | | * @return 用户产品 |
| | | */ |
| | | @Override |
| | | public List<SysUserPaper> selectSysUserPaperList(SysUserPaper sysUserPaper) { |
| | | return sysUserPaperMapper.selectSysUserPaperList(sysUserPaper); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 新增用户产品 |
| | | * |
| | | * @param sysUserPaper 用户产品 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertSysUserPaper(SysUserPaper sysUserPaper) { |
| | | return sysUserPaperMapper.insertSysUserPaper(sysUserPaper); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改用户产品 |
| | | * |
| | | * @param sysUserPaper 用户产品 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateSysUserPaper(SysUserPaper sysUserPaper) { |
| | | return sysUserPaperMapper.updateSysUserPaper(sysUserPaper); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 删除用户产品对象 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteSysUserPaperByIds(String ids) { |
| | | return sysUserPaperMapper.deleteSysUserPaperByIds(Convert.toStrArray(ids)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 删除用户产品信息 |
| | | * |
| | | * @param userId 用户产品ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteSysUserPaperById(Long userId) { |
| | | return sysUserPaperMapper.deleteSysUserPaperById(userId); |
| | | } |