新增收款;
新增项目结算书
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.gxwebsoft.shop.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.shop.service.CategoryService;
|
||||
@@ -51,8 +53,12 @@ public class CategoryController extends BaseController {
|
||||
public ApiResult<List<Category>> list(CategoryParam param) {
|
||||
PageParam<Category, CategoryParam> page = new PageParam<>(param);
|
||||
// page.setDefaultOrder("create_time desc");
|
||||
QueryWrapper<Category> wrapper = new QueryWrapper<>();
|
||||
page.setDefaultOrder("sort_number");
|
||||
return success(categoryService.list(page.getOrderWrapper()));
|
||||
if (param.getParentId() == -1){
|
||||
wrapper.ne("parent_id", "0");
|
||||
}
|
||||
return success(categoryService.list(wrapper));
|
||||
// 使用关联查询
|
||||
//return success(categoryService.listRel(param));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user