广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-04 63b4909ac5d0b7355be211cc7080673b41cdb3cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/**
 * Namespace Api
 *
 * All backend api type
 */
declare namespace Api {
  /**
   * namespace Tool
   *
   * backend api module: "tool"
   */
  namespace Tool {
    /** 生成模板 */
    type TplCategory = 'crud' | 'tree';
 
    /** Java类型 */
    type JavaType = 'Long' | 'String' | 'Integer' | 'Double' | 'BigDecimal' | 'Date' | 'Boolean';
 
    /** 查询方式 */
    type QueryType = 'EQ' | 'NE' | 'GT' | 'GE' | 'LT' | 'LE' | 'LIKE' | 'BETWEEN';
 
    /** 显示类型 */
    type HtmlType =
      | 'input'
      | 'textarea'
      | 'select'
      | 'radio'
      | 'checkbox'
      | 'datetime'
      | 'imageUpload'
      | 'fileUpload'
      | 'editor';
 
    /**
     * 生成代码方式
     *
     * - 0: zip压缩包
     * - 1: 自定义路径
     */
    type GenType = '0' | '1';
 
    /** 代码生成业务表 */
    export type GenTable = Common.CommonRecord<{
      /** 生成业务名 */
      businessName: string;
      /** 实体类名称(首字母大写) */
      className: string;
      /** 表列信息 */
      columns?: GenTableColumn[];
      /** 是否单表(增删改查) */
      crud?: boolean;
      /** 数据源名称 */
      dataName: string;
      /** 生成作者 */
      functionAuthor: string;
      /** 生成功能名 */
      functionName: string;
      /** 生成路径(不填默认项目路径) */
      genPath?: string;
      /** 生成代码方式(0zip压缩包 1自定义路径) */
      genType?: GenType;
      /** 菜单 id 列表 */
      menuIds?: CommonType.IdType[];
      /** 生成模块名 */
      moduleName: string;
      /** 其它生成选项 */
      options?: string;
      /** 生成包路径 */
      packageName: string;
      /** 上级菜单ID字段 */
      parentMenuId?: CommonType.IdType;
      /** 上级菜单名称字段 */
      parentMenuName?: string;
      /** 主键信息 */
      pkColumn?: GenTableColumn;
      /** 备注 */
      remark?: string;
      /** 本表关联父表的外键名 */
      subTableFkName?: string;
      /** 关联父表的表名 */
      subTableName?: string;
      /** 表描述 */
      tableComment: string;
      /** 编号 */
      tableId?: CommonType.IdType;
      /** 表名称 */
      tableName: string;
      /** 使用的模板(crud单表操作 tree树表操作 sub主子表操作) */
      tplCategory?: TplCategory;
      /** 是否tree树表操作 */
      tree?: boolean;
      /** 树编码字段 */
      treeCode?: string;
      /** 树名称字段 */
      treeName?: string;
      /** 树父编码字段 */
      treeParentCode?: string;
      params: { [key: string]: any };
    }>;
 
    /** 代码生成业务字段 */
    export type GenTableColumn = Common.CommonRecord<{
      /** 列描述 */
      columnComment?: string;
      /** 编号 */
      columnId?: CommonType.IdType;
      /** 列名称 */
      columnName?: string;
      /** 列类型 */
      columnType?: string;
      /** 字典类型 */
      dictType?: string;
      /** 是否编辑字段(1是) */
      edit?: boolean;
      /** 显示类型(input文本框、textarea文本域、select下拉框、checkbox复选框、radio单选框、datetime日期控件、image图片上传控件、upload文件上传控件、editor富文本控件) */
      htmlType?: HtmlType;
      /** 是否自增(1是) */
      increment?: boolean;
      /** 是否为插入字段(1是) */
      insert?: boolean;
      /** 是否编辑字段(1是) */
      isEdit?: string;
      /** 是否自增(1是) */
      isIncrement?: string;
      /** 是否为插入字段(1是) */
      isInsert?: string;
      /** 是否列表字段(1是) */
      isList?: string;
      /** 是否主键(1是) */
      isPk?: string;
      /** 是否查询字段(1是) */
      isQuery?: string;
      /** 是否必填(1是) */
      isRequired?: string;
      /** JAVA字段名 */
      javaField: string;
      /** JAVA类型 */
      javaType?: JavaType;
      /** 是否列表字段(1是) */
      list?: boolean;
      /** 是否主键(1是) */
      pk?: boolean;
      /** 是否查询字段(1是) */
      query?: boolean;
      /** 查询方式(EQ等于、NE不等于、GT大于、LT小于、LIKE模糊、BETWEEN范围) */
      queryType?: QueryType;
      /** 是否必填(1是) */
      required?: boolean;
      /** 排序 */
      sort?: number;
      /** 是否基类字段 */
      superColumn?: boolean;
      /** 归属表编号 */
      tableId?: CommonType.IdType;
      /** 可用字段 */
      usableColumn?: boolean;
    }>;
 
    /** gen table search params */
    type GenTableSearchParams = CommonType.RecordNullable<
      Pick<GenTable, 'dataName' | 'tableName' | 'tableComment'> & Common.CommonSearchParams
    >;
 
    /** gen table list */
    type GenTableList = Common.PaginatingQueryRecord<GenTable>;
 
    /** gen table search params */
    type GenTableDbSearchParams = CommonType.RecordNullable<
      Pick<GenTable, 'dataName' | 'tableName' | 'tableComment'> & Common.CommonSearchParams
    >;
 
    /** gen table preview */
    type GenTablePreview = Record<string, string>;
 
    /** gen table db list */
    type GenTableDbList = Common.PaginatingQueryRecord<
      Common.CommonRecord<Pick<GenTable, 'tableName' | 'tableComment'>>
    >;
 
    /** gen table info */
    type GenTableInfo = {
      /** 字段信息 */
      rows: GenTableColumn[];
      /** 生成信息 */
      tables: GenTable[];
      /** 基本信息 */
      info: GenTable;
    };
  }
}