src/main/java/com/service/impl/YanchuweituoServiceImpl.java
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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.YanchuweituoDao;
import com.entity.YanchuweituoEntity;
import com.service.YanchuweituoService;
import com.entity.vo.YanchuweituoVO;
import com.entity.view.YanchuweituoView;
@Service("yanchuweituoService")
public class YanchuweituoServiceImpl extends ServiceImpl<YanchuweituoDao, YanchuweituoEntity> implements YanchuweituoService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
Page<YanchuweituoEntity> page = this.selectPage(
new Query<YanchuweituoEntity>(params).getPage(),
new EntityWrapper<YanchuweituoEntity>()
);
return new PageUtils(page);
}
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<YanchuweituoEntity> wrapper) {
Page<YanchuweituoView> page =new Query<YanchuweituoView>(params).getPage();
page.setRecords(baseMapper.selectListView(page,wrapper));
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
@Override
public List<YanchuweituoVO> selectListVO(Wrapper<YanchuweituoEntity> wrapper) {
return baseMapper.selectListVO(wrapper);
}
@Override
public YanchuweituoVO selectVO(Wrapper<YanchuweituoEntity> wrapper) {
return baseMapper.selectVO(wrapper);
}
@Override
public List<YanchuweituoView> selectListView(Wrapper<YanchuweituoEntity> wrapper) {
return baseMapper.selectListView(wrapper);
}
@Override
public YanchuweituoView selectView(Wrapper<YanchuweituoEntity> wrapper) {
return baseMapper.selectView(wrapper);
}
后面还有 3 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
