|
|
@ -43,9 +43,9 @@ public class ColumnTreeController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("类别树")
|
|
|
|
@ApiOperation("类别树")
|
|
|
|
@GetMapping("/getTree")
|
|
|
|
@GetMapping("/getTree")
|
|
|
|
public R<List<SysColumnVO>> getTree(@RequestParam(required = false, defaultValue = "0") String parentId) {
|
|
|
|
public R<List<SysColumnVO>> getTree(@RequestParam(required = false, defaultValue = "2") String columnType) {
|
|
|
|
LambdaQueryWrapper<SysColumn> tagWrapper = new LambdaQueryWrapper<>();
|
|
|
|
LambdaQueryWrapper<SysColumn> tagWrapper = new LambdaQueryWrapper<>();
|
|
|
|
tagWrapper.eq(SysColumn::getColumnType, SPECIAL_COLUMN_TYPE)
|
|
|
|
tagWrapper.eq(SysColumn::getColumnType, columnType)
|
|
|
|
.eq(SysColumn::getColumnGrade, COLUMN_GRADE)
|
|
|
|
.eq(SysColumn::getColumnGrade, COLUMN_GRADE)
|
|
|
|
.eq(SysColumn::getStatus,STATUS)
|
|
|
|
.eq(SysColumn::getStatus,STATUS)
|
|
|
|
.orderByAsc(SysColumn::getOrderNum);
|
|
|
|
.orderByAsc(SysColumn::getOrderNum);
|
|
|
|