ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
package jnpf.message.service.impl;
 
 
import jnpf.base.service.SuperServiceImpl;
import jnpf.message.entity.UserDeviceEntity;
import jnpf.message.mapper.UserDeviceMapper;
import jnpf.message.service.UserDeviceService;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
 
/**
 * 消息模板(新)
 * 版本: V3.2.0
 * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com)
 * 作者: JNPF开发平台组
 * 日期: 2022-08-18
 */
@Service
public class UserDeviceServiceImpl extends SuperServiceImpl<UserDeviceMapper, UserDeviceEntity> implements UserDeviceService {
 
 
    @Override
    public UserDeviceEntity getInfoByUserId(String userId) {
        return this.baseMapper.getInfoByUserId(userId);
    }
 
    @Override
    public List<String> getCidList(String userId) {
        return this.baseMapper.getCidList(userId);
    }
 
    @Override
    public UserDeviceEntity getInfoByClientId(String clientId) {
        return this.baseMapper.getInfoByClientId(clientId);
    }
 
    @Override
    public void create(UserDeviceEntity entity) {
        this.save(entity);
    }
 
    @Override
    public boolean update(String id, UserDeviceEntity entity) {
        entity.setId(id);
        return this.updateById(entity);
    }
 
    @Override
    public void delete(UserDeviceEntity entity) {
        if (entity != null) {
            this.removeById(entity.getId());
        }
    }
 
}