|
@@ -8,17 +8,11 @@ import com.dayou.mapper.TmplAssetCalculateSectionMapper;
|
|
|
import com.dayou.service.TmplAssetCalculateService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.dayou.vo.TmplAssetCalculateDetailVO;
|
|
|
-import com.github.pagehelper.PageHelper;
|
|
|
-import com.github.pagehelper.PageInfo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
-import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.ArrayList;
|
|
@@ -43,10 +37,9 @@ public class TmplAssetCalculateServiceImpl extends ServiceImpl<TmplAssetCalculat
|
|
|
private TmplAssetCalculateSectionMapper tmplAssetCalculateSectionMapper;
|
|
|
|
|
|
@Override
|
|
|
- public PageInfo<TmplAssetCalculate> selectPage(PageInfo page, TmplAssetCalculate tmplAssetCalculate) {
|
|
|
- PageHelper.startPage(page.getPageNum(), page.getPageSize());
|
|
|
- PageInfo<TmplAssetCalculate> pageInfo = new PageInfo<>(this.list(new QueryWrapper<TmplAssetCalculate>(tmplAssetCalculate)));
|
|
|
- return pageInfo;
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
+ public Page<TmplAssetCalculate> selectPage(Page page, TmplAssetCalculate tmplAssetCalculate) {
|
|
|
+ return this.page(page, new QueryWrapper<TmplAssetCalculate>(tmplAssetCalculate));
|
|
|
}
|
|
|
|
|
|
@Override
|