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