|
@@ -6,6 +6,7 @@ import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.common.utils.PageUtils;
|
|
|
import com.ruoyi.common.core.page.PagePlus;
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
+import com.ruoyi.common.core.domain.PageQuery;
|
|
|
#end
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.ruoyi.common.core.mybatisplus.core.ServicePlusImpl;
|
|
@@ -37,15 +38,17 @@ public class ${ClassName}ServiceImpl extends ServicePlusImpl<${ClassName}Mapper,
|
|
|
|
|
|
#if($table.crud || $table.sub)
|
|
|
@Override
|
|
|
- public TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo) {
|
|
|
- PagePlus<${ClassName}, ${ClassName}Vo> result = pageVo(PageUtils.buildPagePlus(), buildQueryWrapper(bo));
|
|
|
+ public TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo, PageQuery pageQuery) {
|
|
|
+ LambdaQueryWrapper<${ClassName}> lqw = buildQueryWrapper(bo);
|
|
|
+ PagePlus<${ClassName}, ${ClassName}Vo> result = pageVo(PageUtils.buildPagePlus(pageQuery), lqw);
|
|
|
return PageUtils.buildDataInfo(result);
|
|
|
}
|
|
|
#end
|
|
|
|
|
|
@Override
|
|
|
public List<${ClassName}Vo> queryList(${ClassName}Bo bo) {
|
|
|
- return listVo(buildQueryWrapper(bo));
|
|
|
+ LambdaQueryWrapper<${ClassName}> lqw = buildQueryWrapper(bo);
|
|
|
+ return listVo(lqw);
|
|
|
}
|
|
|
|
|
|
private LambdaQueryWrapper<${ClassName}> buildQueryWrapper(${ClassName}Bo bo) {
|