新增收款;

新增项目结算书
This commit is contained in:
2023-06-18 11:02:37 +08:00
parent d61e7b163d
commit 71e28fd448
53 changed files with 2985 additions and 9 deletions
@@ -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));
}