fix
Helius
2021-09-15 7ab7943de217a9e5d4a489c22c7ae27a29692d55
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
package com.xzx.gc.system.service;
 
import com.xzx.gc.common.constant.Constants;
import com.xzx.gc.entity.OtherUserInfo;
import com.xzx.gc.system.mapper.OtherUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
import java.util.List;
 
@Service
@Transactional
public class OtherUserService {
 
    @Autowired
    private OtherUserMapper otherUserMapper;
 
    public List<OtherUserInfo> findByUserType(String userType) {
        OtherUserInfo otherUserInfo=new OtherUserInfo();
        otherUserInfo.setDelFlag(0);
        otherUserInfo.setIsProhibit(false);
        otherUserInfo.setUserType(userType);
        List<OtherUserInfo> select = otherUserMapper.select(otherUserInfo);
        return  select;
    }
 
    public List<OtherUserInfo> findByMobile(String mobile) {
        OtherUserInfo otherUserInfo=new OtherUserInfo();
        otherUserInfo.setDelFlag(Constants.DEL_NOT_FLAG);
        otherUserInfo.setIsProhibit(false);
        otherUserInfo.setMobilePhone(mobile);
        List<OtherUserInfo> select = otherUserMapper.select(otherUserInfo);
        return  select;
    }
 
 
    public OtherUserInfo findByMobileAndUserType(String mobile, String userType) {
        OtherUserInfo otherUserInfo=new OtherUserInfo();
        otherUserInfo.setDelFlag(0);
        otherUserInfo.setIsProhibit(false);
        otherUserInfo.setUserType(userType);
        otherUserInfo.setMobilePhone(mobile);
        OtherUserInfo select = otherUserMapper.selectOne(otherUserInfo);
        return  select;
    }
 
    public void add(OtherUserInfo otherUserInfo) {
        otherUserMapper.insertSelective(otherUserInfo);
    }
 
    public OtherUserInfo findById(String userId) {
        OtherUserInfo otherUserInfo=new OtherUserInfo();
        otherUserInfo.setUserId(userId);
        OtherUserInfo otherUserInfo1 = otherUserMapper.selectOne(otherUserInfo);
        return  otherUserInfo1;
    }
 
    public List<OtherUserInfo> find(){
        OtherUserInfo otherUserInfo = new OtherUserInfo();
        otherUserInfo.setDelFlag(Constants.DEL_NOT_FLAG);
        otherUserInfo.setIsProhibit(false);
        return otherUserMapper.select(otherUserInfo);
    }
 
 
 
 
 
 
}