You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.7 KiB
84 lines
2.7 KiB
package com.service.impl;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
import java.util.Map;
|
|
import java.util.List;
|
|
|
|
import com.baomidou.mybatisplus.mapper.Wrapper;
|
|
import com.baomidou.mybatisplus.mapper.EntityWrapper;
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
import com.utils.PageUtils;
|
|
import com.utils.Query;
|
|
|
|
import com.dao.YonghuDao;
|
|
import com.entity.YonghuEntity;
|
|
import com.service.YonghuService;
|
|
import com.entity.vo.YonghuVO;
|
|
import com.entity.view.YonghuView;
|
|
|
|
@Service("yonghuService")
|
|
public class YonghuServiceImpl extends ServiceImpl<YonghuDao, YonghuEntity> implements YonghuService {
|
|
|
|
// 分页查询用户信息
|
|
@Override
|
|
public PageUtils queryPage(Map<String, Object> params) {
|
|
Page<YonghuEntity> page = this.selectPage(
|
|
new Query<YonghuEntity>(params).getPage(),
|
|
new EntityWrapper<YonghuEntity>()
|
|
);
|
|
return new PageUtils(page);
|
|
}
|
|
|
|
// 分页查询用户视图信息
|
|
@Override
|
|
public PageUtils queryPage(Map<String, Object> params, Wrapper<YonghuEntity> wrapper) {
|
|
Page<YonghuView> page = new Query<YonghuView>(params).getPage();
|
|
page.setRecords(baseMapper.selectListView(page, wrapper));
|
|
PageUtils pageUtil = new PageUtils(page);
|
|
return pageUtil;
|
|
}
|
|
|
|
// 查询用户值对象列表
|
|
@Override
|
|
public List<YonghuVO> selectListVO(Wrapper<YonghuEntity> wrapper) {
|
|
return baseMapper.selectListVO(wrapper);
|
|
}
|
|
|
|
// 查询单个用户值对象
|
|
@Override
|
|
public YonghuVO selectVO(Wrapper<YonghuEntity> wrapper) {
|
|
return baseMapper.selectVO(wrapper);
|
|
}
|
|
|
|
// 查询用户视图列表
|
|
@Override
|
|
public List<YonghuView> selectListView(Wrapper<YonghuEntity> wrapper) {
|
|
return baseMapper.selectListView(wrapper);
|
|
}
|
|
|
|
// 查询单个用户视图
|
|
@Override
|
|
public YonghuView selectView(Wrapper<YonghuEntity> wrapper) {
|
|
return baseMapper.selectView(wrapper);
|
|
}
|
|
|
|
// 根据条件查询特定值
|
|
@Override
|
|
public List<Map<String, Object>> selectValue(Map<String, Object> params, Wrapper<YonghuEntity> wrapper) {
|
|
return baseMapper.selectValue(params, wrapper);
|
|
}
|
|
|
|
// 根据条件查询时间统计值
|
|
@Override
|
|
public List<Map<String, Object>> selectTimeStatValue(Map<String, Object> params, Wrapper<YonghuEntity> wrapper) {
|
|
return baseMapper.selectTimeStatValue(params, wrapper);
|
|
}
|
|
|
|
// 根据条件分组查询数据
|
|
@Override
|
|
public List<Map<String, Object>> selectGroup(Map<String, Object> params, Wrapper<YonghuEntity> wrapper) {
|
|
return baseMapper.selectGroup(params, wrapper);
|
|
}
|
|
}
|