package org.linlinjava.jz.db.service.hm;

import org.linlinjava.jz.db.dao.HmAppUserMapper;
import org.linlinjava.jz.db.domain.HmAppUser;
import org.linlinjava.jz.db.domain.HmAppUserExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author fuxubing
 */
@Service
public class HmAppUserService {
    @Resource
    private HmAppUserMapper hmAppUserMapper;

    public HmAppUser queryById(Long id) {
        return hmAppUserMapper.selectByPrimaryKey(id);
    }

    public int update(HmAppUser hmAppUser){
        return hmAppUserMapper.updateByPrimaryKeySelective(hmAppUser);
    }

//    public HmAppUser queryBySysUserId(String sysUserId){
//        HmAppUserExample example = new HmAppUserExample();
//        example.or().andSysUseridEqualTo(sysUserId);
//       return hmAppUserMapper.selectOneByExample(example);
//    }
}
