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 com.ltkj.mall.domainVo.MemberVo;
|
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ltkj.hosp.mapper.WxuserMapper;
|
import com.ltkj.hosp.domain.Wxuser;
|
import com.ltkj.hosp.service.IWxuserService;
|
|
import javax.annotation.Resource;
|
|
/**
|
* 微信用户Service业务层处理
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-01-16
|
*/
|
@Service
|
public class WxuserServiceImpl extends ServiceImpl<WxuserMapper, Wxuser> implements IWxuserService {
|
@Autowired
|
private WxuserMapper wxuserMapper;
|
|
|
/**
|
* 查询微信用户
|
*
|
* @param id 微信用户主键
|
* @return 微信用户
|
*/
|
@Override
|
public Wxuser selectWxuserById(Long id) {
|
return wxuserMapper.selectWxuserById(id);
|
}
|
|
/**
|
* 查询微信用户列表
|
*
|
* @param wxuser 微信用户
|
* @return 微信用户
|
*/
|
@Override
|
public List<Wxuser> selectWxuserList(Wxuser wxuser) {
|
return wxuserMapper.selectWxuserList(wxuser);
|
}
|
|
/**
|
* 新增微信用户
|
*
|
* @param wxuser 微信用户
|
* @return 结果
|
*/
|
@Override
|
public int insertWxuser(Wxuser wxuser) {
|
wxuser.setCreateTime(DateUtils.getNowDate());
|
return wxuserMapper.insertWxuser(wxuser);
|
}
|
|
/**
|
* 修改微信用户
|
*
|
* @param wxuser 微信用户
|
* @return 结果
|
*/
|
@Override
|
public int updateWxuser(Wxuser wxuser) {
|
wxuser.setUpdateTime(DateUtils.getNowDate());
|
return wxuserMapper.updateWxuser(wxuser);
|
}
|
|
/**
|
* 批量删除微信用户
|
*
|
* @param ids 需要删除的微信用户主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteWxuserByIds(Long[] ids) {
|
return wxuserMapper.deleteWxuserByIds(ids);
|
}
|
|
/**
|
* 删除微信用户信息
|
*
|
* @param id 微信用户主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteWxuserById(Long id) {
|
return wxuserMapper.deleteWxuserById(id);
|
}
|
|
|
|
}
|