统一下拉选-设备树添加company_id

This commit is contained in:
cwchen 2023-12-22 16:17:57 +08:00
parent 0172196653
commit d51ec0bbf3
2 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,9 @@ public class TreeNode {
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private String unitName;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private String companyId;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<TreeNode> children = new ArrayList<>();
}

View File

@ -93,7 +93,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT type_id AS id,
type_name AS label,
parent_id AS parentId,
unit_name AS unitName
unit_name AS unitName,
company_id AS companyId
FROM ma_type
WHERE del_flag = '0'
<if test="level!=null and level!=''">