linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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);
    }
}