package com.ruoyi.project.system.userLoginInfo.service.impl; import java.util.List; import com.ruoyi.common.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.project.system.userLoginInfo.mapper.UserLoginInfoMapper; import com.ruoyi.project.system.userLoginInfo.domain.UserLoginInfo; import com.ruoyi.project.system.userLoginInfo.service.IUserLoginInfoService; import com.ruoyi.common.utils.text.Convert; /** * 客户端用户登录信息Service业务层处理 * * * @date 2020-05-14 */ @Service public class UserLoginInfoServiceImpl implements IUserLoginInfoService { @Autowired private UserLoginInfoMapper userLoginInfoMapper; /** * 查询客户端用户登录信息 * * @param userId 客户端用户登录信息ID * @return 客户端用户登录信息 */ @Override public UserLoginInfo selectUserLoginInfoById(Long userId) { return userLoginInfoMapper.selectUserLoginInfoById(userId); } /** * 查询客户端用户登录信息列表 * * @param userLoginInfo 客户端用户登录信息 * @return 客户端用户登录信息 */ @Override public List selectUserLoginInfoList(UserLoginInfo userLoginInfo) { return userLoginInfoMapper.selectUserLoginInfoList(userLoginInfo); } /** * 新增客户端用户登录信息 * * @param userLoginInfo 客户端用户登录信息 * @return 结果 */ @Override public int insertUserLoginInfo(UserLoginInfo userLoginInfo) { userLoginInfo.setCreateTime(DateUtils.getNowDate()); return userLoginInfoMapper.insertUserLoginInfo(userLoginInfo); } /** * 修改客户端用户登录信息 * * @param userLoginInfo 客户端用户登录信息 * @return 结果 */ @Override public int updateUserLoginInfo(UserLoginInfo userLoginInfo) { userLoginInfo.setUpdateTime(DateUtils.getNowDate()); return userLoginInfoMapper.updateUserLoginInfo(userLoginInfo); } /** * 删除客户端用户登录信息对象 * * @param ids 需要删除的数据ID * @return 结果 */ @Override public int deleteUserLoginInfoByIds(String ids) { return userLoginInfoMapper.deleteUserLoginInfoByIds(Convert.toStrArray(ids)); } /** * 删除客户端用户登录信息信息 * * @param userId 客户端用户登录信息ID * @return 结果 */ @Override public int deleteUserLoginInfoById(Long userId) { return userLoginInfoMapper.deleteUserLoginInfoById(userId); } }