字典类型信息查询

master
冷调 2024-08-27 10:00:15 +08:00
parent e78e4b955e
commit 49a8a0c5a4
5 changed files with 138 additions and 0 deletions

View File

@ -2,6 +2,13 @@
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="AliAccessStaticViaInstance" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AliArrayNamingShouldHaveBracket" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AliControlFlowStatementWithoutBraces" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AliDeprecation" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AliEqualsAvoidNull" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AliLongLiteralsEndingWithLowercaseL" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AliMissingOverrideAnnotation" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AliWrapperTypeEquality" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AlibabaAbstractClassShouldStartWithAbstractNaming" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AlibabaAbstractMethodOrInterfaceMethodMustUseJavadoc" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AlibabaAvoidApacheBeanUtilsCopy" enabled="true" level="WARNING" enabled_by_default="true" />
@ -56,5 +63,6 @@
<inspection_tool class="AlibabaUnsupportedExceptionWithModifyAsList" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AlibabaUseQuietReferenceNotation" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AlibabaUseRightCaseForDateFormat" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MapOrSetKeyShouldOverrideHashCodeEquals" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>

View File

@ -52,6 +52,11 @@ public class Children extends BaseEntity {
*
*/
private String type;
/**
* 'Y' 'N'
*/
@Excel(name = "是否核心 'Y'是 'N'不是")
private String isCenter;
/**
*
*/

View File

@ -0,0 +1,53 @@
package com.muyu.source.domain.rep;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.muyu.common.core.annotation.Excel;
import com.muyu.source.domain.TableData;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @author Lenovo
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TableInfoRep {
/** 主键 */
@TableId(value = "id", type = IdType.AUTO)
public Long id;
private Long basicId;
/** 表名称/数据库 */
@Excel(name = "表名称/数据库")
private String name;
/** 表备注 */
@Excel(name = "表备注")
private String annotation;
/** 数据来源类型 */
@Excel(name = "数据来源类型")
private String type;
/** 数据量 */
@Excel(name = "数据量")
private Integer dataTotal;
/** 是否核心 'Y'是 'N'不是 */
@Excel(name = "是否核心 'Y'是 'N'不是")
private String isCenter;
private Long assetId;
private List<TableData> tableDataList;
}

View File

@ -0,0 +1,44 @@
package com.muyu.source.domain.rep;
import com.muyu.source.domain.Children;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @author Lenovo
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TableInfoResp {
/**
* id
*/
private Long id;
/**
* /
*/
private String name;
/**
*
*/
private String annotation;
/** 数据量 */
private Integer dataTotal;
/** 是否核心 'Y'是 'N'不是 */
private String isCenter;
/**
*
*/
private List<Children> children;
}

View File

@ -0,0 +1,28 @@
package com.muyu.source.domain.rep;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.muyu.source.domain.Children;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @author Lenovo
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TableInfoTreeRep {
//主键
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private Children children;
private List<TableInfoRep> tableInfoRepList;
}