leutu
2024-06-03 3ef35e6cd16bbfa206b26bb3271eac40ad020bcb
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package com.fastbee.iot.service.impl;
 
import com.fastbee.common.utils.DateUtils;
import com.fastbee.iot.domain.SocialPlatform;
import com.fastbee.iot.mapper.SocialPlatformMapper;
import com.fastbee.iot.service.ISocialPlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * 第三方登录平台控制Service业务层处理
 * 
 * @author kerwincui
 * @date 2022-04-11
 */
@Service
public class SocialPlatformServiceImpl implements ISocialPlatformService 
{
    @Autowired
    private SocialPlatformMapper socialPlatformMapper;
 
    /**
     * 查询第三方登录平台控制
     * 
     * @param socialPlatformId 第三方登录平台控制主键
     * @return 第三方登录平台控制
     */
    @Override
    public SocialPlatform selectSocialPlatformBySocialPlatformId(Long socialPlatformId)
    {
        return socialPlatformMapper.selectSocialPlatformBySocialPlatformId(socialPlatformId);
    }
 
    @Override
    public SocialPlatform selectSocialPlatformByPlatform(String platform) {
        return socialPlatformMapper.selectSocialPlatformByPlatform(platform);
    }
 
    /**
     * 查询第三方登录平台控制列表
     * 
     * @param socialPlatform 第三方登录平台控制
     * @return 第三方登录平台控制
     */
    @Override
    public List<SocialPlatform> selectSocialPlatformList(SocialPlatform socialPlatform)
    {
        return socialPlatformMapper.selectSocialPlatformList(socialPlatform);
    }
 
    /**
     * 新增第三方登录平台控制
     * 
     * @param socialPlatform 第三方登录平台控制
     * @return 结果
     */
    @Override
    public int insertSocialPlatform(SocialPlatform socialPlatform)
    {
        socialPlatform.setCreateTime(DateUtils.getNowDate());
        socialPlatform.setDelFlag("0");
        return socialPlatformMapper.insertSocialPlatform(socialPlatform);
    }
 
    /**
     * 修改第三方登录平台控制
     * 
     * @param socialPlatform 第三方登录平台控制
     * @return 结果
     */
    @Override
    public int updateSocialPlatform(SocialPlatform socialPlatform)
    {
        socialPlatform.setUpdateTime(DateUtils.getNowDate());
        return socialPlatformMapper.updateSocialPlatform(socialPlatform);
    }
 
    /**
     * 批量删除第三方登录平台控制
     * 
     * @param socialPlatformIds 需要删除的第三方登录平台控制主键
     * @return 结果
     */
    @Override
    public int deleteSocialPlatformBySocialPlatformIds(Long[] socialPlatformIds)
    {
        return socialPlatformMapper.deleteSocialPlatformBySocialPlatformIds(socialPlatformIds);
    }
 
    /**
     * 删除第三方登录平台控制信息
     * 
     * @param socialPlatformId 第三方登录平台控制主键
     * @return 结果
     */
    @Override
    public int deleteSocialPlatformBySocialPlatformId(Long socialPlatformId)
    {
        return socialPlatformMapper.deleteSocialPlatformBySocialPlatformId(socialPlatformId);
    }
}