package com.javaweb.platform.service.impl;
|
|
import java.util.List;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.javaweb.platform.mapper.FrontUserMapper;
|
import com.javaweb.common.core.text.Convert;
|
import com.javaweb.common.utils.DateUtils;
|
import com.javaweb.platform.domain.FrontUser;
|
import com.javaweb.platform.service.IFrontUserService;
|
|
/**
|
* 用户管理Service业务层处理
|
*
|
* @author zmk
|
* @date 2022-03-21
|
*/
|
@Service
|
public class FrontUserServiceImpl implements IFrontUserService
|
{
|
@Autowired
|
private FrontUserMapper frontUserMapper;
|
|
/**
|
* 查询用户管理
|
*
|
* @param id 用户管理ID
|
* @return 用户管理
|
*/
|
@Override
|
public FrontUser selectFrontUserById(Long id)
|
{
|
return frontUserMapper.selectFrontUserById(id);
|
}
|
|
/**
|
* 查询用户管理列表
|
*
|
* @param frontUser 用户管理
|
* @return 用户管理
|
*/
|
@Override
|
public List<FrontUser> selectFrontUserList(FrontUser frontUser)
|
{
|
return frontUserMapper.selectFrontUserList(frontUser);
|
}
|
|
/**
|
* 新增用户管理
|
*
|
* @param frontUser 用户管理
|
* @return 结果
|
*/
|
@Override
|
public int insertFrontUser(FrontUser frontUser)
|
{
|
frontUser.setCreateTime(DateUtils.getNowDate());
|
return frontUserMapper.insertFrontUser(frontUser);
|
}
|
|
/**
|
* 修改用户管理
|
*
|
* @param frontUser 用户管理
|
* @return 结果
|
*/
|
@Override
|
public int updateFrontUser(FrontUser frontUser)
|
{
|
return frontUserMapper.updateFrontUser(frontUser);
|
}
|
|
/**
|
* 删除用户管理对象
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteFrontUserByIds(String ids)
|
{
|
return frontUserMapper.deleteFrontUserByIds(Convert.toStrArray(ids));
|
}
|
|
/**
|
* 删除用户管理信息
|
*
|
* @param id 用户管理ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteFrontUserById(Long id)
|
{
|
return frontUserMapper.deleteFrontUserById(id);
|
}
|
|
@Override
|
public int approve(FrontUser frontUser) {
|
return frontUserMapper.approve(frontUser);
|
|
}
|
}
|