刘光辉
12 小时以前 34981c30a78e8bbd7791131059a9210f9928b62c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package jnpf.message.mapper;
 
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import jnpf.base.mapper.SuperMapper;
import jnpf.message.entity.WechatUserEntity;
 
/**
 * 消息模板(新)
 * 版本: V3.2.0
 * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com)
 * 作者: JNPF开发平台组
 * 日期: 2022-08-18
 */
public interface WechatUserMapper extends SuperMapper<WechatUserEntity> {
 
    default WechatUserEntity getInfoByGzhId(String userId, String gzhId) {
        QueryWrapper<WechatUserEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(WechatUserEntity::getUserId, userId);
        queryWrapper.lambda().eq(WechatUserEntity::getGzhId, gzhId);
        queryWrapper.lambda().eq(WechatUserEntity::getCloseMark, 1);
        return this.selectOne(queryWrapper);
    }
}