package com.ltkj.hosp.service.impl;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ltkj.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ltkj.hosp.mapper.AbucoderWxuserMapper;
|
import com.ltkj.hosp.domain.Wxuser;
|
import com.ltkj.hosp.service.IAbucoderWxuserService;
|
import com.ltkj.common.utils.text.Convert;
|
|
/**
|
* 微信用户Service业务层处理
|
*
|
* @author ltkj
|
* @date 2022-05-27
|
*/
|
@Service
|
public class AbucoderWxuserServiceImpl extends ServiceImpl<AbucoderWxuserMapper, Wxuser> implements IAbucoderWxuserService {
|
@Autowired
|
private AbucoderWxuserMapper abucoderWxuserMapper;
|
|
/**
|
* 查询微信用户
|
*
|
* @param id 微信用户主键
|
* @return 微信用户
|
*/
|
@Override
|
public Wxuser selectAbucoderWxuserById(Long id) {
|
return abucoderWxuserMapper.selectAbucoderWxuserById(id);
|
}
|
|
/**
|
* 查询微信用户列表
|
*
|
* @param abucoderWxuser 微信用户
|
* @return 微信用户
|
*/
|
@Override
|
public List<Wxuser> selectAbucoderWxuserList(Wxuser abucoderWxuser) {
|
return abucoderWxuserMapper.selectAbucoderWxuserList(abucoderWxuser);
|
}
|
|
/**
|
* 新增微信用户
|
*
|
* @param abucoderWxuser 微信用户
|
* @return 结果
|
*/
|
@Override
|
public int insertAbucoderWxuser(Wxuser abucoderWxuser) {
|
abucoderWxuser.setCreateTime(DateUtils.getNowDate());
|
return abucoderWxuserMapper.insertAbucoderWxuser(abucoderWxuser);
|
}
|
|
/**
|
* 修改微信用户
|
*
|
* @param abucoderWxuser 微信用户
|
* @return 结果
|
*/
|
@Override
|
public int updateAbucoderWxuser(Wxuser abucoderWxuser) {
|
abucoderWxuser.setUpdateTime(DateUtils.getNowDate());
|
return abucoderWxuserMapper.updateAbucoderWxuser(abucoderWxuser);
|
}
|
|
/**
|
* 批量删除微信用户
|
*
|
* @param ids 需要删除的微信用户主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteAbucoderWxuserByIds(String ids) {
|
return abucoderWxuserMapper.deleteAbucoderWxuserByIds(Convert.toStrArray(ids));
|
}
|
|
/**
|
* 删除微信用户信息
|
*
|
* @param id 微信用户主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteAbucoderWxuserById(Long id) {
|
return abucoderWxuserMapper.deleteAbucoderWxuserById(id);
|
}
|
|
/**
|
* 通过openid查询相关信息
|
*
|
* @param openid
|
* @return
|
*/
|
@Override
|
public Wxuser selectAbucoderWxuserOpenID(String openid) {
|
return abucoderWxuserMapper.selectAbucoderWxuserOpenID(openid);
|
}
|
|
}
|