feat: 树形弹窗增加字段

This commit is contained in:
2024-08-07 17:33:37 +08:00
parent 54fe4c1912
commit 530f86a8e9
2 changed files with 26 additions and 1 deletions
@@ -3,6 +3,7 @@ package com.jero.modules.laws.standard.controller;
import com.jero.common.api.vo.Result;
import com.jero.common.aspect.annotation.AutoLog;
import com.jero.modules.laws.standard.entity.PartName;
import com.jero.modules.laws.standard.entity.TreePage;
import com.jero.modules.laws.standard.service.ILawsPartNameService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -30,7 +31,24 @@ public class LawsPartNameController {
@AutoLog(value = "企业标准-零部件树")
@ApiOperation(value = "企业标准-零部件树", notes = "企业标准-零部件树")
@GetMapping("/")
public Result<List<PartName>> queryENTreeList(
public Result<TreePage<PartName>> queryENTreeList(
@RequestParam(name = "nodeName", required = false, defaultValue = "") @ApiParam("一级节点名称") String nodeName,
@RequestParam(name = "pageNo", defaultValue = "1") @ApiParam("页码") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") @ApiParam("页面大小") Integer pageSize) {
if (pageNo == null) {
pageNo = 1;
}
if (pageSize == null) {
pageSize = 5;
}
TreePage<PartName> list = IPartNameService.queryTreeList(nodeName, pageNo, pageSize);
return Result.OK(list);
}
@AutoLog(value = "企业标准-零部件树")
@ApiOperation(value = "企业标准-零部件树", notes = "企业标准-零部件树")
@GetMapping("/queryFirstList")
public Result<List<PartName>> queryFirstList(
@RequestParam(name = "nodeName", required = false, defaultValue = "") @ApiParam("节点名称") String nodeName) {
List<PartName> list = IPartNameService.queryList(nodeName);
return Result.OK(list);
@@ -151,6 +151,13 @@ public class LawsTag implements Serializable {
@ApiModelProperty(value = "跳转URL")
private String fieldHref;
/**
* 跳转URL
*/
@TableField(value = "tree_first_href")
@ApiModelProperty(value = "树形一级跳转URL")
private String treeFirstHref;
/**
* 表单控件长度
*/