You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10410 lines
411 KiB
10410 lines
411 KiB
{ |
|
"name": "物流租户系统", |
|
"describe": "物流租户系统", |
|
"avatar": "", |
|
"version": "4.5.1", |
|
"createdTime": "2023-3-27 13:32:56", |
|
"updatedTime": "2023-4-28 11:03:51", |
|
"dbConns": [], |
|
"profile": { |
|
"default": { |
|
"db": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E", |
|
"dbConn": "", |
|
"entityInitFields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "ADB3AD14-6603-43E2-8261-114E32442B5B" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "C8BE2C7A-8251-4ADD-BB4F-411C5754DA62" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "4E471FD6-3E73-4A90-B660-51598A482409" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "0DC24AA9-4CD0-45D8-95CF-FA546BE343AB" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "09F64AC4-4DEE-428F-AF64-4C103884E1AC" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "B7E7153A-BF68-4F48-A9D3-AE9EDD2D9068" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "5C833719-328F-4C3A-BBF3-3A7179FE54BB" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "BE1A3D45-8F13-46D0-A968-07FA48EBAFF2" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "AD297D91-40B8-4C18-BFE6-EE0843C29791" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "D56622E5-DB79-4D15-924B-1CC12A999C70" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "86B25DF6-DDE3-4787-8556-4BD5E6B43EC3" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "415838D1-1778-45AA-B9ED-25B57D16BF03" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "E19269F7-D0D9-4A66-9460-9E09BD8C429E" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "7EED84FA-543E-4AE1-9367-F5CDB95ADEB6" |
|
} |
|
], |
|
"entityInitProperties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
} |
|
}, |
|
"javaHome": "", |
|
"sql": { |
|
"delimiter": "" |
|
}, |
|
"dataTypeSupports": [ |
|
{ |
|
"defKey": "MYSQL", |
|
"id": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E" |
|
}, |
|
{ |
|
"defKey": "ORACLE", |
|
"id": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542" |
|
}, |
|
{ |
|
"defKey": "SQLServer", |
|
"id": "BFC87171-C74F-494A-B7C2-76B9C55FACC9" |
|
}, |
|
{ |
|
"defKey": "PostgreSQL", |
|
"id": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022" |
|
}, |
|
{ |
|
"defKey": "DB2", |
|
"id": "89504F5D-94BF-4C9E-8B2E-44F37305FED5" |
|
}, |
|
{ |
|
"defKey": "DM", |
|
"id": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307" |
|
}, |
|
{ |
|
"defKey": "GaussDB", |
|
"id": "592C7013-143D-4E7B-AF64-0D7BF1E28230" |
|
}, |
|
{ |
|
"defKey": "Kingbase", |
|
"id": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A" |
|
}, |
|
{ |
|
"defKey": "GBase", |
|
"id": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A" |
|
}, |
|
{ |
|
"defKey": "MaxCompute", |
|
"id": "11D1FB71-A587-4217-89BA-611B8A1F83E0" |
|
}, |
|
{ |
|
"defKey": "SQLite", |
|
"id": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1" |
|
}, |
|
{ |
|
"defKey": "Hive", |
|
"id": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2" |
|
}, |
|
{ |
|
"defKey": "JAVA", |
|
"id": "797A1496-D649-4261-89B4-544132EC3F36" |
|
}, |
|
{ |
|
"defKey": "JavaMybatis", |
|
"id": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B" |
|
}, |
|
{ |
|
"defKey": "JavaMybatisPlus", |
|
"id": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073" |
|
}, |
|
{ |
|
"defKey": "C#", |
|
"id": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30" |
|
}, |
|
{ |
|
"defKey": "Golang", |
|
"id": "B91D99E0-9B7C-416C-8737-B760957DAF09" |
|
}, |
|
{ |
|
"defKey": "Rust", |
|
"id": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB" |
|
}, |
|
{ |
|
"defKey": "Doris", |
|
"id": "483F9346-C99E-4014-A1D2-A554606BD8A3" |
|
} |
|
], |
|
"codeTemplates": [ |
|
{ |
|
"type": "appCode", |
|
"applyFor": "797A1496-D649-4261-89B4-544132EC3F36", |
|
" JpaBean": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.entity;\n$blankline\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport javax.persistence.*;\nimport java.io.Serializable;\nimport java.util.Date;\n$blankline\n\n /**\n * {{=it.entity.defName}};{{=it.entity.comment}}\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@ApiModel(value = \"{{=it.entity.defName}}\",description = \"{{=it.entity.comment}}\")\n@Table(name=\"{{=it.entity.defKey}}\")\npublic class {{=beanClass}} implements Serializable,Cloneable{\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n {{? field.primaryKey }}\n @Id\n @GeneratedValue\n {{?}}\n @ApiModelProperty(name = \"{{=field.defName}}\",notes = \"{{=field.comment}}\")\n private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ;\n{{~}}\n$blankline\n\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public {{=field.type}} get{{=it.func.camel(field.defKey,true)}}(){\n return this.{{=it.func.camel(field.defKey,false)}};\n }\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public void set{{=it.func.camel(field.defKey,true)}}({{=field.type}} {{= it.func.camel(field.defKey,false) }}){\n this.{{=it.func.camel(field.defKey,false)}}={{=it.func.camel(field.defKey,false)}};\n }\n{{~}}\n}" |
|
}, |
|
{ |
|
"type": "appCode", |
|
"applyFor": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30", |
|
"Default": "using System;\nusing System.Collections.Generic;\n\n$blankline\n{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n}}\n/*\n * @author : http://www.chiner.com.cn\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}}\n */\nnamespace PDManer.Application\n{\n public partial class {{=it.func.camel(it.entity.defKey,true) }}\n {\n \n {{~it.entity.fields:field:index}}\n /// <summary>\n /// {{=it.func.join(field.defName,field.comment,';')}}\n /// </summary>\n public {{=field.type}} {{=it.func.camel(field.defKey,true)}} { get; set; }\n $blankline\n {{~}}\n \n }\n}", |
|
"SqlSugar": "using System;\nusing System.Collections.Generic;\nusing SqlSugar;\n\n$blankline\n{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n var sqlSugartable='[SugarTable(\"{{=it.entity.defKey}}\", TableDescription = \"{{=it.func.join(it.entity.defName,it.entity.comment,';')}}\")]';\n}}\n/*\n * @author : xkdong@163.com\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}}\n */\nnamespace Model.DBModel\n{\n /// <summary>\n /// {{=it.func.join(it.entity.defName,it.entity.comment,';')}}\n /// </summary>\n {{=sqlSugartable}}\n public class {{=it.entity.defKey}}\n {\n {{~it.entity.fields:field:index}}\n /// <summary>\n /// {{=it.func.join(field.defName,field.comment,';')}}\n /// </summary>\n {{? field.primaryKey }}\n [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]\n {{?}}\n public {{=field.type}} {{=it.func.camel(field.defKey,true)}}{ get; set; }\n $blankline\n {{~}}\n }\n}" |
|
}, |
|
{ |
|
"applyFor": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B", |
|
"type": "appCode", |
|
"Controller": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.controller;\n$blankline\nimport io.swagger.annotations.Api;\nimport io.swagger.annotations.ApiOperation;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageRequest;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.*;\nimport {{=pkgName}}.entity.{{=beanClass}};\nimport {{=pkgName}}.service.{{=serviceClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表控制层\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Api(tags = \"{{=it.entity.defName}}对象功能接口\")\n@RestController\n@RequestMapping(\"/{{=it.func.camel(it.entity.defKey,false)}}\")\npublic class {{=beanClass}}Controller{\n @Autowired\n private {{=serviceClass}} {{=serviceVarName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n @ApiOperation(\"通过ID查询单条数据\")\n @GetMapping(\"{{{=it.func.camel(pkVarName,false)}}}\")\n public ResponseEntity<{{=beanClass}}> queryById({{=pkDataType}} {{=pkVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.queryById({{=pkVarName}}));\n }\n $blankline\n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n @ApiOperation(\"分页查询\")\n @GetMapping\n public ResponseEntity<Page<{{=beanClass}}>> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest){\n return ResponseEntity.ok({{=serviceVarName}}.paginQuery({{=beanVarName}}, pageRequest));\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @ApiOperation(\"新增数据\")\n @PostMapping\n public ResponseEntity<{{=beanClass}}> add({{=beanClass}} {{=beanVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.insert({{=beanVarName}}));\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @ApiOperation(\"更新数据\")\n @PutMapping\n public ResponseEntity<{{=beanClass}}> edit({{=beanClass}} {{=beanVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.update({{=beanVarName}}));\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n @ApiOperation(\"通过主键删除数据\")\n @DeleteMapping\n public ResponseEntity<Boolean> deleteById({{=pkDataType}} {{=pkVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.deleteById({{=pkVarName}}));\n }\n}", |
|
"Service": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.service;\n$blankline\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageRequest;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务接口\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\npublic interface {{=serviceClass}}{\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}});\n \n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest);\n\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n {{=beanClass}} insert({{=beanClass}} {{=beanVarName}});\n\n \n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n {{=beanClass}} update({{=beanClass}} {{=beanVarName}});\n\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n boolean deleteById({{=pkDataType}} {{=pkVarName}});\n}", |
|
"ServiceImpl": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkVarNameU = \"UndefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkVarNameU = it.func.camel(field.defKey,true);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n var mapperName = beanVarName+'Mapper';\n \n}}package {{=pkgName}}.service.impl;\n$blankline\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageImpl;\nimport org.springframework.data.domain.PageRequest;\nimport {{=pkgName}}.entity.{{=beanClass}};\nimport {{=pkgName}}.mapper.{{=beanClass}}Mapper;\nimport {{=pkgName}}.service.{{=serviceClass}};\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务实现类\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Service\npublic class {{=serviceClass}}Impl implements {{=serviceClass}}{\n @Autowired\n private {{=beanClass}}Mapper {{=mapperName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n public {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}}){\n return {{=mapperName}}.queryById({{=pkVarName}});\n }\n $blankline\n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n public Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest){\n long total = {{=mapperName}}.count({{=beanVarName}});\n return new PageImpl<>({{=mapperName}}.queryAllByLimit({{=beanVarName}}, pageRequest), pageRequest, total);\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n public {{=beanClass}} insert({{=beanClass}} {{=beanVarName}}){\n {{=mapperName}}.insert({{=beanVarName}});\n return {{=beanVarName}};\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n public {{=beanClass}} update({{=beanClass}} {{=beanVarName}}){\n {{=mapperName}}.update({{=beanVarName}});\n return queryById({{=beanVarName}}.get{{=pkVarNameU}}());\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n public boolean deleteById({{=pkDataType}} {{=pkVarName}}){\n int total = {{=mapperName}}.deleteById({{=pkVarName}});\n return total > 0;\n }\n}", |
|
"Mapper": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.mapper;\n$blankline\nimport java.util.List;\nimport org.apache.ibatis.annotations.Mapper;\nimport org.apache.ibatis.annotations.Param;\nimport org.springframework.data.domain.Pageable;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表数据库访问层\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Mapper\npublic interface {{=beanClass}}Mapper{\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}});\n \n /** \n * 分页查询指定行数据\n *\n * @param {{=beanVarName}} 查询条件\n * @param pageable 分页对象\n * @return 对象列表\n */\n List<{{=beanClass}}> queryAllByLimit({{=beanClass}} {{=beanVarName}}, @Param(\"pageable\") Pageable pageable);\n\n /** \n * 统计总行数\n *\n * @param {{=beanVarName}} 查询条件\n * @return 总行数\n */\n long count({{=beanClass}} {{=beanVarName}});\n\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 影响行数\n */\n int insert({{=beanClass}} {{=beanVarName}});\n\n /** \n * 批量新增数据\n *\n * @param entities List<{{=beanClass}}> 实例对象列表\n * @return 影响行数\n */\n int insertBatch(@Param(\"entities\") List<{{=beanClass}}> entities);\n \n /** \n * 批量新增或按主键更新数据\n *\n * @param entities List<{{=beanClass}}> 实例对象列表\n * @return 影响行数\n */\n int insertOrUpdateBatch(@Param(\"entities\") List<{{=beanClass}}> entities);\n \n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 影响行数\n */\n int update({{=beanClass}} {{=beanVarName}});\n\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 影响行数\n */\n int deleteById({{=pkDataType}} {{=pkVarName}});\n}", |
|
"Mapper.xml": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n var pkField = \"UNDEFINED_ID\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkField = field.defKey;\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE mapper PUBLIC \"-//mybatis.org//DTD Mapper 3.0//EN\" \"http://mybatis.org/dtd/mybatis-3-mapper.dtd\">\n<mapper namespace=\"{{=pkgName}}.mapper.{{=beanClass}}Mapper\">\n <resultMap type=\"{{=pkgName}}.entity.{{=beanClass}}\" id=\"{{=beanClass}}Map\">\n {{~it.entity.fields:field:index}}\n <result property=\"{{=it.func.camel(field.defKey,false)}}\" column=\"{{=field.defKey}}\" jdbcType=\"{{=field.type}}\"/>\n {{~}}\n </resultMap>\n $blankline\n <!-- 通过ID查询单条数据 -->\n <select id=\"queryById\" resultMap=\"{{=beanClass}}Map\">\n select\n {{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}}\n from {{=it.entity.defKey}}\n where {{=pkField}} = #{{{=pkVarName}}}\n </select>\n $blankline\n <!--分页查询指定行数据-->\n <select id=\"queryAllByLimit\" resultMap=\"{{=beanClass}}Map\">\n select\n {{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}}\n from {{=it.entity.defKey}}\n <where>\n {{~it.entity.fields:field:index}}\n <if test=\"{{=it.func.camel(field.defKey,false)}} != null and {{=it.func.camel(field.defKey,false)}} != ''\">\n and {{=field.defKey}} = #{{{=it.func.camel(field.defKey,false)}}}\n </if>\n {{~}}\n </where>\n limit #{pageable.offset}, #{pageable.pageSize}\n </select>\n $blankline\n <!--统计总行数-->\n <select id=\"count\" resultType=\"java.lang.Long\">\n select count(1)\n from {{=it.entity.defKey}}\n <where>\n {{~it.entity.fields:field:index}}\n <if test=\"{{=it.func.camel(field.defKey,false)}} != null and {{=it.func.camel(field.defKey,false)}} != ''\">\n and {{=field.defKey}} = #{{{=it.func.camel(field.defKey,false)}}}\n </if>\n {{~}}\n </where>\n </select>\n $blankline\n <!--新增数据-->\n <insert id=\"insert\" keyProperty=\"{{=pkField}}\" useGeneratedKeys=\"true\">\n insert into {{=it.entity.defKey}}({{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}})\n values ({{=it.entity.fields.map(function(e,i){return '#{'+it.func.camel(e.defKey,false)+'}'}).join(',')}})\n </insert>\n $blankline\n <!-- 批量新增数据 -->\n <insert id=\"insertBatch\" keyProperty=\"{{=pkField}}\" useGeneratedKeys=\"true\">\n insert into {{=it.entity.defKey}}({{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}})\n values\n <foreach collection=\"entities\" item=\"entity\" separator=\",\">\n ({{=it.entity.fields.map(function(e,i){return '#{entity.'+it.func.camel(e.defKey,false)+'}'}).join(',')}})\n </foreach>\n </insert>\n $blankline\n <!-- 批量新增或按主键更新数据 -->\n <insert id=\"insertOrUpdateBatch\" keyProperty=\"{{=pkField}}\" useGeneratedKeys=\"true\">\n insert into {{=it.entity.defKey}}({{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}})\n values\n <foreach collection=\"entities\" item=\"entity\" separator=\",\">\n ({{=it.entity.fields.map(function(e,i){return '#{entity.'+it.func.camel(e.defKey,false)+'}'}).join(',')}})\n </foreach>\n on duplicate key update\n {{=it.entity.fields.map(function(e,i){return e.defKey + '=values('+e.defKey+')'}).join(',\\n\\t\\t')}}\n </insert>\n $blankline\n <!-- 更新数据 -->\n <update id=\"update\">\n update {{=it.entity.defKey}}\n <set>\n {{~it.entity.fields:field:index}}\n <if test=\"{{=it.func.camel(field.defKey,false)}} != null and {{=it.func.camel(field.defKey,false)}} != ''\">\n {{=field.defKey}} = #{{{=it.func.camel(field.defKey,false)}}},\n </if>\n {{~}}\n </set>\n where {{=pkField}} = #{{{=pkVarName}}}\n </update>\n $blankline\n <!--通过主键删除-->\n <delete id=\"deleteById\">\n delete from {{=it.entity.defKey}} where {{=pkField}} = #{{{=pkVarName}}}\n </delete>\n</mapper>\n\n", |
|
"Entity": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.entity;\n$blankline\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport java.io.Serializable;\nimport java.util.Date;\n$blankline\n\n /**\n * {{=it.entity.defName}};{{=it.entity.comment}}\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@ApiModel(value = \"{{=it.entity.defName}}\",description = \"{{=it.entity.comment}}\")\npublic class {{=beanClass}} implements Serializable,Cloneable{\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n @ApiModelProperty(name = \"{{=field.defName}}\",notes = \"{{=field.comment}}\")\n private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ;\n{{~}}\n$blankline\n\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public {{=field.type}} get{{=it.func.camel(field.defKey,true)}}(){\n return this.{{=it.func.camel(field.defKey,false)}};\n }\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public void set{{=it.func.camel(field.defKey,true)}}({{=field.type}} {{= it.func.camel(field.defKey,false) }}){\n this.{{=it.func.camel(field.defKey,false)}}={{=it.func.camel(field.defKey,false)}};\n }\n{{~}}\n}" |
|
}, |
|
{ |
|
"applyFor": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073", |
|
"type": "appCode", |
|
"Controller": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.controller;\n$blankline\nimport java.util.List;\nimport io.swagger.annotations.Api;\nimport io.swagger.annotations.ApiOperation;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.PageImpl;\nimport org.springframework.data.domain.PageRequest;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.*;\nimport {{=pkgName}}.entity.{{=beanClass}};\nimport {{=pkgName}}.service.{{=serviceClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表控制层\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Api(tags = \"{{=it.entity.defName}}对象功能接口\")\n@RestController\n@RequestMapping(\"/{{=it.func.camel(it.entity.defKey,false)}}\")\npublic class {{=beanClass}}Controller{\n @Autowired\n private {{=serviceClass}} {{=serviceVarName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n @ApiOperation(\"通过ID查询单条数据\")\n @GetMapping(\"{{{=it.func.camel(pkVarName,false)}}}\")\n public ResponseEntity<{{=beanClass}}> queryById({{=pkDataType}} {{=pkVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.queryById({{=pkVarName}}));\n }\n $blankline\n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n @ApiOperation(\"分页查询\")\n @GetMapping\n public ResponseEntity<PageImpl<{{=beanClass}}>> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest){\n //1.分页参数\n long current = pageRequest.getPageNumber();\n long size = pageRequest.getPageSize();\n\n //2.分页查询\n /*把Mybatis的分页对象做封装转换,MP的分页对象上有一些SQL敏感信息,还是通过spring的分页模型来封装数据吧*/\n com.baomidou.mybatisplus.extension.plugins.pagination.Page<{{=beanClass}}> pageResult = {{=serviceVarName}}.paginQuery({{=beanVarName}}, current,size);\n\n //3. 分页结果组装\n List<{{=beanClass}}> dataList = pageResult.getRecords();\n long total = pageResult.getTotal();\n PageImpl<{{=beanClass}}> retPage = new PageImpl<{{=beanClass}}>(dataList,pageRequest,total);\n return ResponseEntity.ok(retPage);\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @ApiOperation(\"新增数据\")\n @PostMapping\n public ResponseEntity<{{=beanClass}}> add({{=beanClass}} {{=beanVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.insert({{=beanVarName}}));\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @ApiOperation(\"更新数据\")\n @PutMapping\n public ResponseEntity<{{=beanClass}}> edit({{=beanClass}} {{=beanVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.update({{=beanVarName}}));\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n @ApiOperation(\"通过主键删除数据\")\n @DeleteMapping\n public ResponseEntity<Boolean> deleteById({{=pkDataType}} {{=pkVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.deleteById({{=pkVarName}}));\n }\n}", |
|
"Service": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.service;\n$blankline\nimport com.baomidou.mybatisplus.extension.plugins.pagination.Page;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务接口\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\npublic interface {{=serviceClass}}{\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}});\n $blankline\n /**\n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param current 当前页码\n * @param size 每页大小\n * @return\n */\n Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, long current, long size);\n\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n {{=beanClass}} insert({{=beanClass}} {{=beanVarName}});\n\n \n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n {{=beanClass}} update({{=beanClass}} {{=beanVarName}});\n\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n boolean deleteById({{=pkDataType}} {{=pkVarName}});\n}", |
|
"ServiceImpl": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkVarNameU = \"UndefinedId\";\n var pkFieldKey = \"UNDEFINED\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkFieldKey = field.defKey;\n pkVarName = it.func.camel(field.defKey,false);\n pkVarNameU = it.func.camel(field.defKey,true);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n var mapperName = beanVarName+'Mapper';\n \n}}package {{=pkgName}}.service.impl;\n$blankline\nimport cn.hutool.core.util.StrUtil;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport com.baomidou.mybatisplus.core.metadata.IPage;\nimport com.baomidou.mybatisplus.extension.plugins.pagination.Page;\nimport com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;\nimport com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper;\n\nimport {{=pkgName}}.entity.{{=beanClass}};\nimport {{=pkgName}}.mapper.{{=beanClass}}Mapper;\nimport {{=pkgName}}.service.{{=serviceClass}};\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务实现类\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Service\npublic class {{=serviceClass}}Impl implements {{=serviceClass}}{\n @Autowired\n private {{=beanClass}}Mapper {{=mapperName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n public {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}}){\n return {{=mapperName}}.selectById({{=pkVarName}});\n }\n $blankline\n /**\n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param current 当前页码\n * @param size 每页大小\n * @return\n */\n public Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, long current, long size){\n //1. 构建动态查询条件\n LambdaQueryWrapper<{{=beanClass}}> queryWrapper = new LambdaQueryWrapper<>();\n {{~it.entity.fields.filter(function(e){return e[\"type\"]===\"String\"&&e.defKey !== pkFieldKey}):field:index}}\n if(StrUtil.isNotBlank({{=beanVarName}}.get{{=it.func.camel(field.defKey,true)}}())){\n queryWrapper.eq({{=beanClass}}::get{{=it.func.camel(field.defKey,true)}}, {{=beanVarName}}.get{{=it.func.camel(field.defKey,true)}}());\n }\n {{~}}\n\n //2. 执行分页查询\n Page<{{=beanClass}}> pagin = new Page<>(current , size , true);\n IPage<{{=beanClass}}> selectResult = {{=mapperName}}.selectByPage(pagin , queryWrapper);\n pagin.setPages(selectResult.getPages());\n pagin.setTotal(selectResult.getTotal());\n pagin.setRecords(selectResult.getRecords());\n\n //3. 返回结果\n return pagin;\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n public {{=beanClass}} insert({{=beanClass}} {{=beanVarName}}){\n {{=mapperName}}.insert({{=beanVarName}});\n return {{=beanVarName}};\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n public {{=beanClass}} update({{=beanClass}} {{=beanVarName}}){\n //1. 根据条件动态更新\n LambdaUpdateChainWrapper<{{=beanClass}}> chainWrapper = new LambdaUpdateChainWrapper<{{=beanClass}}>({{=mapperName}});\n {{~it.entity.fields.filter(function(e){return e[\"type\"]===\"String\"&&e.defKey !== pkFieldKey}):field:index}}\n if(StrUtil.isNotBlank({{=beanVarName}}.get{{=it.func.camel(field.defKey,true)}}())){\n chainWrapper.eq({{=beanClass}}::get{{=it.func.camel(field.defKey,true)}}, {{=beanVarName}}.get{{=it.func.camel(field.defKey,true)}}());\n }\n {{~}}\n //2. 设置主键,并更新\n chainWrapper.set({{=beanClass}}::get{{=pkVarNameU}}, {{=beanVarName}}.get{{=pkVarNameU}}());\n boolean ret = chainWrapper.update();\n //3. 更新成功了,查询最最对象返回\n if(ret){\n return queryById({{=beanVarName}}.get{{=pkVarNameU}}());\n }else{\n return {{=beanVarName}};\n }\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n public boolean deleteById({{=pkDataType}} {{=pkVarName}}){\n int total = {{=mapperName}}.deleteById({{=pkVarName}});\n return total > 0;\n }\n}", |
|
"Mapper": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.mapper;\n$blankline\n\nimport com.baomidou.mybatisplus.core.conditions.Wrapper;\nimport com.baomidou.mybatisplus.core.mapper.BaseMapper;\nimport com.baomidou.mybatisplus.core.metadata.IPage;\nimport com.baomidou.mybatisplus.core.toolkit.Constants;\nimport org.apache.ibatis.annotations.Mapper;\nimport org.apache.ibatis.annotations.Param;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表数据库访问层\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Mapper\npublic interface {{=beanClass}}Mapper extends BaseMapper<{{=beanClass}}>{\n /** \n * 分页查询指定行数据\n *\n * @param page 分页参数\n * @param wrapper 动态查询条件\n * @return 分页对象列表\n */\n IPage<{{=beanClass}}> selectByPage(IPage<{{=beanClass}}> page , @Param(Constants.WRAPPER) Wrapper<{{=beanClass}}> wrapper);\n}", |
|
"Mapper.xml": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n var pkField = \"UNDEFINED_ID\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkField = field.defKey;\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE mapper PUBLIC \"-//mybatis.org//DTD Mapper 3.0//EN\" \"http://mybatis.org/dtd/mybatis-3-mapper.dtd\">\n$blankline\n\n<mapper namespace=\"{{=pkgName}}.mapper.{{=beanClass}}Mapper\">\n <select id=\"selectByPage\" resultType=\"{{=pkgName}}.entity.{{=beanClass}}\">\n select * from user ${ew.customSqlSegment}\n </select>\n</mapper>\n\n", |
|
"Entity": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.entity;\n$blankline\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport com.baomidou.mybatisplus.annotation.TableName;\nimport com.baomidou.mybatisplus.annotation.TableId;\nimport java.io.Serializable;\nimport java.util.Date;\n$blankline\n\n /**\n * {{=it.entity.defName}};{{=it.entity.comment}}\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@ApiModel(value = \"{{=it.entity.defName}}\",description = \"{{=it.entity.comment}}\")\n@TableName(\"{{=it.entity.defKey}}\")\npublic class {{=beanClass}} implements Serializable,Cloneable{\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n @ApiModelProperty(name = \"{{=field.defName}}\",notes = \"{{=field.comment}}\")\n {{? field.primaryKey }}\n @TableId\n {{?}}\n private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ;\n{{~}}\n$blankline\n\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public {{=field.type}} get{{=it.func.camel(field.defKey,true)}}(){\n return this.{{=it.func.camel(field.defKey,false)}};\n }\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public void set{{=it.func.camel(field.defKey,true)}}({{=field.type}} {{= it.func.camel(field.defKey,false) }}){\n this.{{=it.func.camel(field.defKey,false)}}={{=it.func.camel(field.defKey,false)}};\n }\n{{~}}\n}" |
|
}, |
|
{ |
|
"applyFor": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E", |
|
"type": "dbDDL", |
|
"createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n `{{=field.defKey}}` {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} {{= field.defaultValue ? it.func.join('DEFAULT',field.defaultValue,' ') : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}' {{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n) COMMENT = '{{=it.func.join(it.entity.defName,it.entity.comment,';') }}';\n$blankline\n", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n", |
|
"deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX IF EXISTS {{=index.defKey}} ;\n{{~}}", |
|
"message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}\n", |
|
"update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('ALTER TABLE '+before.defKey+' RENAME TO '+after.defKey);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n ret.push('ALTER TABLE '+after.defKey+' COMMENT \\''+commentText+'\\'');\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldAdded) { \n let ddlItem = 'ADD COLUMN `'+field.defKey+'` '+field.dbType;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n if(field.autoIncrement){\n ddlItem += ' AUTO_INCREMENT';\n }\n if(field.defaultValue){\n ddlItem += (' DEFAULT ' + field.defaultValue);\n }\n ddlItem += (' COMMENT \\''+field.defName+';'+field.comment+'\\'');\n \n if(field.index>0 && field.afterFieldKey){\n ddlItem += (' AFTER '+field.afterFieldKey);\n }\n ret.push(ddlItem);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldRemoved) { \n ret.push('DROP '+field.defKey);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey === after.defKey){\n changeDDL += (' MODIFY COLUMN `'+after.defKey+'`');\n }else{\n changeDDL += (' CHANGE COLUMN `'+before.defKey+'` `'+after.defKey+'`');\n }\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n let defaultValue = '';\n if(after.defaultValue != null && after.defaultValue.length>0){\n defaultValue = (after.defaultValue);\n }else{\n defaultValue = 'NULL';\n }\n if(defaultValue != 'NULL'){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n\n let comment = after.defName;\n if(after.comment){\n comment = comment + ';' + (after.comment||'');\n }\n if(comment){\n changeDDL += (' COMMENT \\''+comment+'\\';');\n }\n \n ret.push(firstDDL+' '+changeDDL);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}" |
|
}, |
|
{ |
|
"applyFor": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542", |
|
"type": "dbDDL", |
|
"createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? '' : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n", |
|
"deleteTable": "DROP TABLE {{=it.entity.defKey}};", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}", |
|
"message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* -------------------------------------------------- */\n创建表:\n{{~ createEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* -------------------------------------------------- */\n删除表:\n{{~ dropEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* -------------------------------------------------- */\n修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n {{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n {{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}\n {{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('\\n\\t建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('\\n\\t解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}\n{{=indexChanged?'\\n\\t更改了索引':''}}\n{{=changed?'\\n\\t更改了属性':''}}\n{{=relaArray.length>0?relaArray.join(''):''}}\n{{~}}\n{{?}}", |
|
"update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`ALTER TABLE ${before.defKey} RENAME TO ${after.defKey}`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `COMMENT ON TABLE ${after.defKey} IS '${commentText}'`;\n ret.push(myText);\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD (${field.defKey} ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n ddlItem += ')';\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `COMMENT ON COLUMN ${entity.data.baseInfo.defKey}.${field.defKey} IS '${commentText}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN ${field.defKey}`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey !== after.defKey){\n let renameText = `ALTER TABLE ${entity.data.baseInfo.defKey} RENAME COLUMN ${before.defKey} TO ${after.defKey};`;\n ret.push(renameText);\n }\n /*如果没有变化,则不生成变更语句*/\n if(before.dbType === after.dbType \n && before['len'] === after['len'] \n && before.scale === after.scale\n && before.primaryKey === after.primaryKey\n && before.notNull === after.notNull\n && before.autoIncrement === after.autoIncrement\n && before.defaultValue === after.defaultValue){\n continue;\n }\n changeDDL += ('MODIFY ('+after.defKey+'');\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n \n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n changeDDL += ')';\n ret.push(`${firstDDL} ${changeDDL};`);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}" |
|
}, |
|
{ |
|
"applyFor": "BFC87171-C74F-494A-B7C2-76B9C55FACC9", |
|
"type": "dbDDL", |
|
"createTable": "IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[{{=it.entity.defKey}}]') AND type in (N'U')) DROP TABLE [dbo].[{{=it.entity.defKey}}];\n\nCREATE TABLE [dbo].[{{=it.entity.defKey}}](\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? ' IDENTITY(1,1)' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}EXEC sp_addextendedproperty 'MS_Description', '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}', 'SCHEMA', dbo, 'table', {{=it.entity.defKey}}, null, null;{{?}}\n{{~it.entity.fields:field:index}}\nEXEC sp_addextendedproperty 'MS_Description', '{{=it.func.join(field.defName,field.comment,';')}}', 'SCHEMA', dbo, 'table', {{=it.entity.defKey}}, 'column', {{=field.defKey}};\n{{~}}\n", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n", |
|
"deleteTable": "IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[{{=it.entity.defKey}}]') AND type in (N'U')) DROP TABLE [dbo].[{{=it.entity.defKey}}];", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"deleteIndex": "", |
|
"message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}", |
|
"update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`EXEC sp_rename '${before.defKey}','${after.defKey}'`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `IF ((SELECT COUNT(*) FROM ::fn_listextendedproperty('MS_Description','SCHEMA', 'dbo','TABLE', '${after.defKey}', NULL, NULL)) > 0)\n \\n\\tEXEC sp_updateextendedproperty 'MS_Description', '${commentText}','SCHEMA', 'dbo','TABLE', '${after.defKey}'\n \\nELSE\n \\n\\tEXEC sp_addextendedproperty 'MS_Description', '${commentText}', 'SCHEMA', 'dbo','TABLE', '${after.defKey}'\n `;\n ret.push(myText);\n /*ret.push('ALTER TABLE '+after.defKey+' COMMENT \\''+commentText+'\\'');*/\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE [dbo].[${entity.data.baseInfo.defKey}]`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD [${field.defKey}] ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `EXEC sp_addextendedproperty 'MS_Description', N'${commentText}','SCHEMA', N'dbo','TABLE', N'${entity.data.baseInfo.defKey}','COLUMN', N'${field.defKey}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE [dbo].[${entity.data.baseInfo.defKey}]`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN [${field.defKey}]`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE [dbo].[${entity.data.baseInfo.defKey}]`;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey === after.defKey){\n changeDDL += (' ALTER COLUMN ['+after.defKey+']');\n }else{\n let renameText = `EXEC sp_rename '[dbo].[${entity.data.baseInfo.defKey}].[${before.defKey}]','${after.defKey}','COLUMN';`;\n ret.push(renameText);\n continue;\n }\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n \n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n ret.push(`${firstDDL} ${changeDDL};`);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}" |
|
}, |
|
{ |
|
"applyFor": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022", |
|
"type": "dbDDL", |
|
"createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{? field.autoIncrement}}SERIAL{{??}}{{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n", |
|
"deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}", |
|
"message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}", |
|
"update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`ALTER TABLE ${before.defKey} RENAME TO ${after.defKey}`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `COMMENT ON TABLE ${after.defKey} IS '${commentText}'`;\n ret.push(myText);\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD COLUMN ${field.defKey} ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n } \n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `COMMENT ON COLUMN ${entity.data.baseInfo.defKey}.${field.defKey} IS '${commentText}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN ${field.defKey}`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldModified) { \n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey !== after.defKey){\n let renameText = `ALTER TABLE ${entity.data.baseInfo.defKey} RENAME COLUMN ${before.defKey} TO ${after.defKey};`;\n ret.push(renameText);\n }\n /*如果没有变化,则不生成变更语句*/\n if(before.dbType === after.dbType \n && before['len'] === after['len'] \n && before.scale === after.scale\n && before.primaryKey === after.primaryKey\n && before.notNull === after.notNull\n && before.autoIncrement === after.autoIncrement\n && before.defaultValue === after.defaultValue){\n continue;\n }\n if(before.dbType !== after.dbType || before.len !== after.len || before.scale !== after.scale){\n let dbTypeDDL = `ALTER TABLE ${entity.data.baseInfo.defKey} ALTER COLUMN ${after.defKey} TYPE ${before.dbType}`;\n if(after.len>0){\n dbTypeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n dbTypeDDL += (','+after.scale);\n }\n dbTypeDDL += ')';\n }\n ret.push(dbTypeDDL+';');\n }\n \n if(before.defaultValue !== after.defaultValue){\n let defaultDDL = '';\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"NULL\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n defaultDDL += ('SET DEFAULT ' + defaultValue);\n }\n let defaultTpl = `ALTER TABLE ${entity.data.baseInfo.defKey} ALTER COLUMN ${defaultDDL};`;\n ret.push(defaultTpl);\n }\n \n if(before.notNull !== after.notNull){\n let notNullDDL= 'SET NULL';\n if(after.notNull){\n let notNullDDL= 'SET NOT NULL';\n }\n let notNullTpl = `ALTER TABLE ${entity.data.baseInfo.defKey} ALTER COLUMN ${notNullDDL};`;\n ret.push(notNullTpl);\n }\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n-- 索引重建\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}" |
|
}, |
|
{ |
|
"type": "dbDDL", |
|
"applyFor": "89504F5D-94BF-4C9E-8B2E-44F37305FED5", |
|
"createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? '' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n" |
|
}, |
|
{ |
|
"applyFor": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307", |
|
"type": "dbDDL", |
|
"createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'IDENTITY(1,1)' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}'{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n", |
|
"deleteTable": "", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"deleteIndex": "", |
|
"message": "", |
|
"update": "" |
|
}, |
|
{ |
|
"type": "dbDDL", |
|
"applyFor": "592C7013-143D-4E7B-AF64-0D7BF1E28230", |
|
"createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? ' AUTO_INCREMENT' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n" |
|
}, |
|
{ |
|
"type": "dbDDL", |
|
"applyFor": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A", |
|
"createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n" |
|
}, |
|
{ |
|
"applyFor": "11D1FB71-A587-4217-89BA-611B8A1F83E0", |
|
"type": "dbDDL", |
|
"createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} {{= field.defaultValue ? it.func.join('DEFAULT',field.defaultValue,' ') : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}' {{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n) COMMENT '{{=it.func.join(it.entity.defName,it.entity.comment,';') }}';\n$blankline\n", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n", |
|
"deleteTable": "", |
|
"createIndex": "", |
|
"deleteIndex": "", |
|
"message": "", |
|
"update": "" |
|
}, |
|
{ |
|
"applyFor": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1", |
|
"type": "dbDDL", |
|
"createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTOINCREMENT' : '' }} {{= field.defaultValue ? it.func.join('DEFAULT',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }} --{{=it.func.join(field.defName,field.comment,';')}}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n) ; --{{=it.func.join(it.entity.defName,it.entity.comment,';') }}\n$blankline\n", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n" |
|
}, |
|
{ |
|
"type": "dbDDL", |
|
"applyFor": "dictSQLTemplate", |
|
"content": "/* 插入字典总表[{{=it.dict.defKey}}-{{=it.dict.defName}}] */\nINSERT INTO SYS_DICT(KEY_,LABEL,INTRO,REVISION) VALUES('{{=it.dict.defKey}}','{{=it.dict.defName}}','{{=it.dict.intro}}',1);\n/* 插入字典明细表 */\n{{~it.dict.items:item:index}}\nINSERT INTO SYS_DICT_ITEM(DICT_KEY,KEY_,LABEL,SORT_,INTRO,REVISION) VALUES('{{=it.dict.defKey}}','{{=item.defKey}}','{{=item.defName}}','{{=item.sort}}','{{=item.intro}}',1);\n{{~}}" |
|
}, |
|
{ |
|
"applyFor": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2", |
|
"type": "dbDDL", |
|
"createTable": "/**字段名,关键字等全部用的小写*/\ndrop table if exists {{=it.entity.defKey}};\n/**补充上库名,external关键字根据建表规范看是否添加*/\ncreate [external] table if not exists {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n/**这里把varchar,char,text,date,datetime字段全部映射为string类型.tinyint unsigned,bit,Integer,tinyint,smallint,mediumint映射为int类型,int unsigned映射为bigint.其它自定义映射规则根据自己情况修改*/\n/**当长度>0只有为decimal类型或double类型时才保留长度和小数的位数*/\n{{~it.entity.fields:field:index}}\n {{=it.func.lowerCase(field.defKey)}} {{=it.func.lowerCase(field.type)=='varchar'||it.func.lowerCase(field.type)=='char'||it.func.lowerCase(field.type)=='text'||it.func.lowerCase(field.type)=='date'||it.func.lowerCase(field.type)=='datetime' ? 'string':it.func.lowerCase(field.type)=='tinyint unsigned'||it.func.lowerCase(field.type)=='bit'||it.func.lowerCase(field.type)=='integer'||it.func.lowerCase(field.type)=='tinyint'||it.func.lowerCase(field.type)=='smallint'||it.func.lowerCase(field.type)=='mediumint' ? 'int':it.func.lowerCase(field.type)=='int unsigned' ? 'bigint':it.func.lowerCase(field.type)}}{{?field.len>0&&(it.func.lowerCase(field.type)=='decimal'||it.func.lowerCase(field.type)=='double')}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{=')'}}{{?}}{{?}} comment '{{=it.func.join(field.defName,field.comment,'')}}' {{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n{{?}}\n)\n{{\n let partitionedBy = it.entity.properties['partitioned by'];\n partitionedBy = partitionedBy?partitionedBy:'请在扩展属性中配置[partitioned by]属性';\n}}\ncomment '{{=it.func.join(it.entity.defName,';') }}'\n/**是否分区表,分区字段名和字段注释自定义*/\n[partitioned by {{=partitionedBy}}]\n/**文件存储格式自定义*/\n[stored as orc]\n/**hdfs上的地址自定义*/\n[location xxx]\n;", |
|
"createView": "", |
|
"deleteTable": "", |
|
"createIndex": "", |
|
"deleteIndex": "", |
|
"message": "", |
|
"update": "" |
|
}, |
|
{ |
|
"applyFor": "B91D99E0-9B7C-416C-8737-B760957DAF09", |
|
"type": "appCode", |
|
"content": "{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1<10?\"0\"+today.getMonth():today.getMonth();\n var days=today.getDate()<10?\"0\"+today.getDate():today.getDate();\n var hours = today.getHours()<10?\"0\"+today.getHours():today.getHours(); \n\tvar minutes = today.getMinutes()<10?\"0\"+today.getMinutes():today.getMinutes(); \n\tvar seconds = today.getSeconds()<10?\"0\"+today.getSeconds():today.getSeconds(); \n}}\n// Package models {{=it.func.join(it.entity.defName,it.entity.comment,',')}}\n// author : http://www.liyang.love\n// date : {{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\n// desc : {{=it.func.join(it.entity.defName,it.entity.comment,',')}}\npackage models\n\n$blankline\n\n// {{=it.func.camel(it.entity.defKey,true) }} {{=it.func.join(it.entity.defName,it.entity.comment,',')}}。\n// 说明:{{=it.entity.comment}}\n// 表名:{{=it.entity.defKey}}\n// group: {{=it.func.camel(it.entity.defKey,true) }}\n// obsolete:\n// appliesto:go 1.8+;\n// namespace:hongmouer.his.models.{{=it.func.camel(it.entity.defKey,true) }}\n// assembly: hongmouer.his.models.go\n// class:HongMouer.HIS.Models.{{=it.func.camel(it.entity.defKey,true) }}\n// version:{{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\ntype {{=it.func.camel(it.entity.defKey,true) }} struct {\n {{~it.entity.fields:field:index}}\n {{=formatGoLang(it.func.camel(field.defKey,true),null,field,it.entity.fields,null,1)}} {{=formatGoLang(field.type,\"type\",field,it.entity.fields,10,3)}} `gorm:\"column:{{=field.primaryKey?\"primaryKey;\":\"\"}}{{=field.defKey}}\" json:\"{{=it.func.camel(field.defKey,true)}}\"` {{=formatGoLang(\"gorm:column:\"+field.defKey+\" json:\"+it.func.camel(field.defKey,true),null,field,it.entity.fields,null,2)}} //type:{{=formatGoLang(field.type,\"type\",field,it.entity.fields,null,3)}} comment:{{=formatGoLang(it.func.join(field.defName,field.comment,';'),\"defName\",field,it.entity.fields,null,4)}} version:{{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\n {{~}}\n}\n\n\n$blankline\n// TableName 表名:{{=it.entity.defKey}},{{=it.entity.defName}}。\n// 说明:{{=it.entity.comment}}\nfunc (ZentaoUserInfo) TableName() string {\n\treturn \"{{=it.entity.defKey}}\"\n}\n\n{{\n\nfunction formatGoLang(str, fieldName, field, fileds, emptLength, isFiled) {\n var maxLength = 0;\n\n if (isFiled == 1) {\n for (var i = 0; i < fileds.length; i++) {\n if (getBlength(it.func.camel(fileds[i].defKey, true)) > maxLength) {\n maxLength = getBlength(it.func.camel(fileds[i].defKey, true)) + 2;\n }\n }\n } else if (isFiled == 2) {\n for (var i = 0; i < fileds.length; i++) {\n var newStr = \"gorm:column:\" + fileds[i].defKey + \" json:\" + it.func.camel(fileds[i].defKey, true);\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 2;\n }\n }\n var empt = \"\";\n var strLength = getBlength(str);\n if (field.primaryKey) {\n strLength += getBlength(\"primaryKey;\");\n }\n for (var j = 0; j < maxLength - strLength; j++) {\n empt += ' ';\n }\n return empt;\n } else if (isFiled == 3) {\n /*获取某个字段的最大长度*/\n for (var i = 0; i < fileds.length; i++) {\n var newStr = eval(\"fileds[\" + i + \"].\" + fieldName);\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 1;\n }\n }\n } else if (isFiled == 4) {\n /*获取某个字段的最大长度*/\n for (var i = 0; i < fileds.length; i++) {\n var newStr = fileds[i].comment + \";\" + fileds[i].defName;\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 1;\n }\n }\n }\n else {\n maxLength = emptLength;\n }\n\n var strLength = getBlength(str);\n for (var j = 0; j < maxLength - strLength; j++) {\n str += ' ';\n }\n return str;\n}\n\nfunction getBlength(str) {\n var n = 0;\n for (var i = str.length; i--;) {\n n += str.charCodeAt(i) > 255 ? 2 : 1;\n }\n return n;\n} \n\n}}" |
|
}, |
|
{ |
|
"applyFor": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB", |
|
"type": "appCode", |
|
"struct": "use chrono::{DateTime, Local};\nuse serde::{Deserialize, Serialize};\n$blankline\n/// {{=it.entity.defName}}\n#[derive(Serialize, Deserialize, Debug, Clone)]\n{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n \n}}\npub struct {{=beanClass}} {\n {{~it.entity.fields:field:index}}\n {{\n let fieldDateType = field.type;\n if(!field.notNull){\n fieldDateType = 'Option<'+fieldDateType+'>';\n }\n }}/// {{=field.defName}}\n pub {{=it.func.camel(field.defKey,false)}}: {{=fieldDateType}},\n {{~}}\n}\n" |
|
}, |
|
{ |
|
"applyFor": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A", |
|
"type": "dbDDL", |
|
"createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? '' : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}", |
|
"createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline", |
|
"deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};", |
|
"createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}", |
|
"deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}", |
|
"message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* -------------------------------------------------- */\n创建表:\n{{~ createEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* -------------------------------------------------- */\n删除表:\n{{~ dropEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* -------------------------------------------------- */\n修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n {{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n {{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}\n {{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('\\n\\t建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('\\n\\t解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}\n{{=indexChanged?'\\n\\t更改了索引':''}}\n{{=changed?'\\n\\t更改了属性':''}}\n{{=relaArray.length>0?relaArray.join(''):''}}\n{{~}}\n{{?}}", |
|
"update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`ALTER TABLE ${before.defKey} RENAME TO ${after.defKey}`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `COMMENT ON TABLE ${after.defKey} IS '${commentText}'`;\n ret.push(myText);\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD (${field.defKey} ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n ddlItem += ')';\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `COMMENT ON COLUMN ${entity.data.baseInfo.defKey}.${field.defKey} IS '${commentText}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN ${field.defKey}`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey !== after.defKey){\n let renameText = `ALTER TABLE ${entity.data.baseInfo.defKey} RENAME COLUMN ${before.defKey} TO ${after.defKey};`;\n ret.push(renameText);\n }\n /*如果没有变化,则不生成变更语句*/\n if(before.dbType === after.dbType \n && before['len'] === after['len'] \n && before.scale === after.scale\n && before.primaryKey === after.primaryKey\n && before.notNull === after.notNull\n && before.autoIncrement === after.autoIncrement\n && before.defaultValue === after.defaultValue){\n continue;\n }\n changeDDL += ('MODIFY ('+after.defKey+'');\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n \n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n changeDDL += ')';\n ret.push(`${firstDDL} ${changeDDL};`);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}" |
|
}, |
|
{ |
|
"applyFor": "483F9346-C99E-4014-A1D2-A554606BD8A3", |
|
"type": "dbDDL", |
|
"createTable": "{{let dorisDistributedBy = it.entity.properties['dorisDistributedBy'];\n dorisDistributedBy = dorisDistributedBy?dorisDistributedBy:'请在表的扩展属性中配置[dorisDistributedBy]属性';\n}}CREATE TABLE IF NOT EXISTS {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n `{{=field.defKey}}` {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}' {{= index < it.entity.fields.length-1 ? ',' : '' }}\n{{~}}\n) COMMENT '{{=it.func.join(it.entity.defName,it.entity.comment,';') }}'\n{{=dorisDistributedBy}} ;\n$blankline\n", |
|
"createView": "", |
|
"deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};", |
|
"createIndex": "", |
|
"deleteIndex": "", |
|
"message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}\n", |
|
"update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('ALTER TABLE '+before.defKey+' RENAME TO '+after.defKey);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n ret.push('ALTER TABLE '+after.defKey+' COMMENT \\''+commentText+'\\'');\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldAdded) { \n let ddlItem = 'ADD COLUMN `'+field.defKey+'` '+field.dbType;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n if(field.autoIncrement){\n ddlItem += ' AUTO_INCREMENT';\n }\n if(field.defaultValue){\n ddlItem += (' DEFAULT ' + field.defaultValue);\n }\n ddlItem += (' COMMENT \\''+field.defName+';'+field.comment+'\\'');\n \n if(field.index>0 && field.afterFieldKey){\n ddlItem += (' AFTER '+field.afterFieldKey);\n }\n ret.push(ddlItem);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldRemoved) { \n ret.push('DROP '+field.defKey);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey === after.defKey){\n changeDDL += (' MODIFY COLUMN `'+after.defKey+'`');\n }else{\n changeDDL += (' CHANGE COLUMN `'+before.defKey+'` `'+after.defKey+'`');\n }\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n let defaultValue = '';\n if(after.defaultValue != null && after.defaultValue.length>0){\n defaultValue = (after.defaultValue);\n }else{\n defaultValue = 'NULL';\n }\n if(defaultValue != 'NULL'){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n\n let comment = after.defName;\n if(after.comment){\n comment = comment + ';' + (after.comment||'');\n }\n if(comment){\n changeDDL += (' COMMENT \\''+comment+'\\';');\n }\n \n ret.push(firstDDL+' '+changeDDL);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}" |
|
} |
|
], |
|
"generatorDoc": { |
|
"docTemplate": "" |
|
}, |
|
"relationFieldSize": 100, |
|
"uiHint": [ |
|
{ |
|
"defKey": "Input", |
|
"defName": "普通输入框", |
|
"id": "642D2E0A-8846-4549-BE56-8C0473F26EDE" |
|
}, |
|
{ |
|
"defKey": "Select", |
|
"defName": "下拉输入框", |
|
"id": "FB111359-2B73-4443-926C-08A98E446448" |
|
}, |
|
{ |
|
"defKey": "CheckBox", |
|
"defName": "复选框", |
|
"id": "0CB8A6C9-1115-4FC0-B51E-5C028065082F" |
|
}, |
|
{ |
|
"defKey": "RadioBox", |
|
"defName": "单选框", |
|
"id": "5C04987A-260F-4B7C-A5D5-22A181AAE9CA" |
|
}, |
|
{ |
|
"defKey": "Double", |
|
"defName": "小数输入", |
|
"id": "8D5BAFE4-E15C-4707-A047-8EE59C58E70F" |
|
}, |
|
{ |
|
"defKey": "Integer", |
|
"defName": "整数输入", |
|
"id": "9999AF2A-A44E-415C-A2DC-D7C613BD0073" |
|
}, |
|
{ |
|
"defKey": "Money", |
|
"defName": "金额输入", |
|
"id": "2B0C3D0C-7BAF-4B36-81AD-9362B5E5DC2E" |
|
}, |
|
{ |
|
"defKey": "Date", |
|
"defName": "日期输入", |
|
"id": "E4D94E14-F695-487F-AFC2-4D888009B7DA" |
|
}, |
|
{ |
|
"defKey": "DataYearMonth", |
|
"defName": "年月输入", |
|
"id": "936927E3-DD2D-4096-87FD-074CDE278D59" |
|
}, |
|
{ |
|
"defKey": "Text", |
|
"defName": "长文本输入", |
|
"id": "D89DD4F1-ADAC-4469-BF8D-B3FF41AE7963" |
|
}, |
|
{ |
|
"defKey": "RichText", |
|
"defName": "富文本输入", |
|
"id": "C134EB1F-4CFF-49E0-882F-2C6FB275CB20" |
|
} |
|
], |
|
"headers": [ |
|
{ |
|
"refKey": "defKey", |
|
"hideInGraph": false, |
|
"value": "字段代码", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"hideInGraph": false, |
|
"value": "显示名称", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"hideInGraph": false, |
|
"value": "主键", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"hideInGraph": true, |
|
"value": "不为空", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"hideInGraph": true, |
|
"value": "自增", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"hideInGraph": true, |
|
"value": "数据域", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "type", |
|
"hideInGraph": false, |
|
"value": "数据类型", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"hideInGraph": false, |
|
"value": "长度", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"hideInGraph": false, |
|
"value": "小数位数", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"hideInGraph": true, |
|
"value": "说明", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"hideInGraph": true, |
|
"value": "数据字典", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"hideInGraph": true, |
|
"value": "默认值", |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"hideInGraph": false, |
|
"value": "标准字段", |
|
"enable": false, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"hideInGraph": true, |
|
"value": "UI建议", |
|
"enable": true, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"hideInGraph": true, |
|
"value": "拓展属性", |
|
"enable": true, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"value": "属性1", |
|
"hideInGraph": true, |
|
"enable": true, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"value": "属性2", |
|
"hideInGraph": true, |
|
"enable": false, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"value": "属性3", |
|
"hideInGraph": true, |
|
"enable": false, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"value": "属性4", |
|
"hideInGraph": true, |
|
"enable": false, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"value": "属性5", |
|
"hideInGraph": true, |
|
"enable": false, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"value": "属性6", |
|
"hideInGraph": true, |
|
"enable": false, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"value": "属性7", |
|
"hideInGraph": true, |
|
"enable": false, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"value": "属性8", |
|
"hideInGraph": true, |
|
"enable": false, |
|
"freeze": false |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"value": "属性9", |
|
"hideInGraph": true, |
|
"enable": false, |
|
"freeze": false |
|
} |
|
], |
|
"modelType": "modalGroup", |
|
"recentColors": [ |
|
"#d148d1", |
|
"#ce4bce", |
|
"#831b83", |
|
"#dd31dd", |
|
"#da2fda", |
|
"#e988e9", |
|
"#000000", |
|
"#DDE5FF" |
|
], |
|
"DDLToggleCase": "L", |
|
"menuWidth": "289px", |
|
"themeMode": "themeDay" |
|
}, |
|
"entities": [ |
|
{ |
|
"id": "1F07ADF1-1AB1-4F0A-88E5-C38CDF1CAF1B", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "snm_station_order", |
|
"defName": "寺尼曼运单", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "5AEEF85D-738E-455A-AF0E-CC39DAF52EBE" |
|
}, |
|
{ |
|
"defKey": "tc_wla001", |
|
"defName": "派车单", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "1D7808F5-64BD-49EE-BE5C-303B224F1683" |
|
}, |
|
{ |
|
"defKey": "tc_poa061", |
|
"defName": "产地", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "A32C7A13-4345-44E3-9609-F8D61C29743D" |
|
}, |
|
{ |
|
"defKey": "tc_wla005", |
|
"defName": "线路编码", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "3BC3FCF5-2F8D-4D9E-B635-73AC19FD3DE7" |
|
}, |
|
{ |
|
"defKey": "tc_cmb003", |
|
"defName": "线路名称", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "F0BBE249-39AA-48BA-BE50-0788A7DFD3CD" |
|
}, |
|
{ |
|
"defKey": "tc_wlb006", |
|
"defName": "物流公司编码", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "12374127-7C2D-4FBA-B91D-589EE93B3E55" |
|
}, |
|
{ |
|
"defKey": "tc_bmb003", |
|
"defName": "物流公司名称", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "D1C31E48-52A9-4130-81C9-E9B44BCE2ACD" |
|
}, |
|
{ |
|
"defKey": "tc_wlb005", |
|
"defName": "货运站编码", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "55FCAB06-399F-4C37-9EA7-CFF09D85B30C" |
|
}, |
|
{ |
|
"defKey": "tc_dmb003", |
|
"defName": "货运站编码名称", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "F20B0FED-B703-4E2A-A11C-351384753244" |
|
}, |
|
{ |
|
"defKey": "tc_wla002", |
|
"defName": "派车时间", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "F3CC1612-8FD1-4009-8C79-E6224B3162C9" |
|
}, |
|
{ |
|
"defKey": "tc_wlb008", |
|
"defName": "客户单号", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "E04CE9DD-63FD-4E54-B22F-7CEBD2E72948" |
|
}, |
|
{ |
|
"defKey": "tc_wlb007", |
|
"defName": "系统单号", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "59E1F97E-B308-4472-85DB-EE3B3C63B8D2" |
|
}, |
|
{ |
|
"defKey": "tc_wlb009", |
|
"defName": "出货总包数", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "A4AC5E9A-3E5A-437D-BA28-B8195BAD5DCF" |
|
}, |
|
{ |
|
"defKey": "tc_wlb019", |
|
"defName": "柜体包数", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "E3A6E656-93A1-44F3-A891-4CA9192D8E93" |
|
}, |
|
{ |
|
"defKey": "tc_wlb020", |
|
"defName": "五金包数", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "45165A28-39B8-4FAF-967F-EE7B345BE923" |
|
}, |
|
{ |
|
"defKey": "tc_wlb021", |
|
"defName": "背板包数", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "ACC2FFE8-80EE-4CBB-90DA-6C36BFB773B4" |
|
}, |
|
{ |
|
"defKey": "tc_wlb035", |
|
"defName": "背板2包数", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "12704533-8984-46E4-A8BA-5FE20575979C" |
|
}, |
|
{ |
|
"defKey": "tc_wlb022", |
|
"defName": "门包数", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "6F37D895-1AAC-4FEB-B9CF-06DA7C14D047" |
|
}, |
|
{ |
|
"defKey": "tc_wlb033", |
|
"defName": "特排包数", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "68F2901D-E2FC-4DA5-BFA5-839262767508" |
|
}, |
|
{ |
|
"defKey": "tc_wlb034", |
|
"defName": "标抽包数", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "BDCD2027-8BB5-46B0-BE2A-393B5C3709EC" |
|
}, |
|
{ |
|
"defKey": "tc_wlb037", |
|
"defName": "分批出货类别", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "61883C9A-B698-4842-8C30-8BDF9FCCC191" |
|
}, |
|
{ |
|
"defKey": "occ02", |
|
"defName": "门店名称", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "1A8DA4EB-E9B5-45B2-B579-AC29E5F32C8B" |
|
}, |
|
{ |
|
"defKey": "tc_wlb010", |
|
"defName": "收货人", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "3D17A4B1-E3D1-49F4-B8B1-2E21EB9D88B7" |
|
}, |
|
{ |
|
"defKey": "tc_wlb011", |
|
"defName": "收货人手机号", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "D5919B6F-013B-472F-BCA1-A5EB68972277" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "5C0F42A9-EAAB-4D10-B8F8-956E7304225B" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "D0791173-E366-4690-89C4-D47AF42EEEEC" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "2C508670-AC9F-4085-B87B-6480022A0F64" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "0675BECE-C24B-4646-A5CB-4A9D75219CF5" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "0BE976B3-5292-47DB-B095-5B79BD52E0C8" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "11E51881-B6C8-40F4-8320-050BBBEEF1F7" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "D1795850-4C2E-4D7C-8AF6-C0AFE7608A1C" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "DC3A3429-1810-4DA5-8481-637F81F56014", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "snm_staorder_packages", |
|
"defName": "运单包件信息", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "459F8AD4-E03B-4AA5-8D44-58D3C06A2263" |
|
}, |
|
{ |
|
"defKey": "order_id", |
|
"defName": "订单id", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "682D2442-5720-4145-9B5D-2276DE45D6E8" |
|
}, |
|
{ |
|
"defKey": "packagenum", |
|
"defName": "包件号", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "42C10264-3AE7-497C-94CD-2F9DB3B38411" |
|
}, |
|
{ |
|
"defKey": "lx", |
|
"defName": "包件类型", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "07E9F9D5-9069-477D-A439-FE183D487D71" |
|
}, |
|
{ |
|
"defKey": "tc_wlb001", |
|
"defName": "派车单号", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "8D2592C5-C2A0-4AEA-ADF0-3F15871C3624" |
|
}, |
|
{ |
|
"defKey": "tc_wld011", |
|
"defName": "分包标识", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "51F0BD65-3F39-4918-AC99-7731C5964C05" |
|
}, |
|
{ |
|
"defKey": "tc_poa014", |
|
"defName": "客户订单号", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "7F74D2FD-4063-4F8F-BFBA-D1D4AE55BF24" |
|
}, |
|
{ |
|
"defKey": "tc_poa046", |
|
"defName": "客户订单号?", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "3065E71F-9A3E-4BB4-98F9-EFB67402CE3E" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "B77C9A11-A676-4445-A2DF-DFEAC7C24488" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "49F736EC-C70C-48C8-8084-EC5BC4180509" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "A5F5EB29-2A02-4366-B80E-A6486542DCA0" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "EECF4345-A799-40FF-9FF2-CE7BA0C55CF7" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "E2C2DB8C-042C-4557-86CB-1555E05205F1" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "52608CBF-8B42-4819-A691-6C0C5B1A9D73" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "31B03B6F-08C2-4DD6-A42B-317E3CCD673A" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "81FD17DB-AB10-4951-A961-B4A91390AE7E", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "snm_stationlinenum", |
|
"defName": "诗尼曼线路", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "81473082-2BE6-44D1-8D41-7E8490D32AE1" |
|
}, |
|
{ |
|
"defKey": "logistics_line_number", |
|
"defName": "线路编号", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "DA92BF18-0A6B-4565-BF01-74B6B534DB1D" |
|
}, |
|
{ |
|
"defKey": "logistics_line_name", |
|
"defName": "线路名称", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "1CAB5E1F-9958-493E-94E3-D204232C75D5" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "B873F9F8-2EBC-424A-B81F-6296C0D96EB8" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "50BF0357-454D-40AE-B205-07CA84BE64CF" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "790EC0EC-8B89-4ABB-90CA-CB2C709962AD" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "09C9617E-1ABA-460E-8983-88B79541A5CE" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "232734BA-D498-4381-89F9-B649F11E82E9" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "A41AC985-ECF6-40BD-A487-519067A16C4D" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "1DA48942-0038-4115-8004-90D4CDAE430E" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "F5A26939-CC4D-4A45-8C01-8BB798FF6910", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "snm_order_log", |
|
"defName": "诗尼曼接口日志", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "1F10B826-E35A-45B7-A930-01BBF2DF75DB" |
|
}, |
|
{ |
|
"defKey": "req_args", |
|
"defName": "请求参数", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 500, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "2299F862-A9BB-44DD-95C7-C63ECF8CC815" |
|
}, |
|
{ |
|
"defKey": "res_body", |
|
"defName": "相应内容", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 500, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "A722395A-E553-403F-B235-115B21F1576C" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "9400FD48-DB63-40C7-8013-4AFBC08C6A0B" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "DE5A7101-883D-4628-9EB2-0C41139109A4" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "B4B57569-5D57-4CEC-BD00-43B5EC774381" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "A928A8B7-09FE-4753-9DF6-CCF197FA7E94" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "ECB1B211-3AE9-4000-913D-563CA1E8FA24" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "FF8C23D2-9551-4707-8785-AE85CB93B151" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "2D9FA2BB-DD19-482F-894D-EAE3FA64A662" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "6364A7CD-C8ED-41E3-8633-140BD94113FD", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_driver_artery", |
|
"defName": "司机信息表", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"freeze": true, |
|
"hideInGraph": true, |
|
"code": "relationNoShow", |
|
"value": "关系图", |
|
"newCode": "hideInGraph", |
|
"com": "Icon", |
|
"relationNoShow": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": true, |
|
"hideInGraph": false, |
|
"code": "name", |
|
"value": "字段代码", |
|
"newCode": "defKey", |
|
"com": "Input", |
|
"relationNoShow": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false, |
|
"code": "chnname", |
|
"value": "显示名称", |
|
"newCode": "defName", |
|
"com": "Input", |
|
"relationNoShow": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false, |
|
"code": "pk", |
|
"value": "主键", |
|
"newCode": "primaryKey", |
|
"com": "Checkbox", |
|
"relationNoShow": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"code": "notNull", |
|
"value": "不为空", |
|
"newCode": "notNull", |
|
"com": "Checkbox", |
|
"relationNoShow": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"code": "autoIncrement", |
|
"value": "自增", |
|
"newCode": "autoIncrement", |
|
"com": "Checkbox", |
|
"relationNoShow": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"code": "type", |
|
"value": "数据域", |
|
"newCode": "domain", |
|
"com": "Select", |
|
"relationNoShow": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false, |
|
"code": "dataType", |
|
"value": "数据类型", |
|
"newCode": "type", |
|
"com": "Text", |
|
"relationNoShow": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false, |
|
"code": "len", |
|
"value": "长度", |
|
"newCode": "len", |
|
"com": "Input", |
|
"relationNoShow": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false, |
|
"code": "scale", |
|
"value": "小数位数", |
|
"newCode": "scale", |
|
"com": "Input", |
|
"relationNoShow": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"code": "remark", |
|
"value": "说明", |
|
"newCode": "comment", |
|
"com": "Input", |
|
"relationNoShow": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"code": "refDict", |
|
"value": "数据字典", |
|
"newCode": "refDict", |
|
"com": "SearchSelect", |
|
"relationNoShow": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"code": "defaultValue", |
|
"value": "默认值", |
|
"newCode": "defaultValue", |
|
"com": "Input", |
|
"relationNoShow": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false, |
|
"code": "isStandard", |
|
"value": "标准字段", |
|
"newCode": "isStandard", |
|
"com": "label", |
|
"relationNoShow": false, |
|
"enable": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"code": "uiHint", |
|
"value": "UI建议", |
|
"newCode": "uiHint", |
|
"com": "Select", |
|
"relationNoShow": true, |
|
"enable": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"code": "extProps", |
|
"value": "拓展属性", |
|
"newCode": "extProps", |
|
"com": "linkButton", |
|
"relationNoShow": true, |
|
"enable": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"value": "属性1", |
|
"enable": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"value": "属性2", |
|
"enable": false |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"value": "属性3", |
|
"enable": false |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"value": "属性4", |
|
"enable": false |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"value": "属性5", |
|
"enable": false |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"value": "属性6", |
|
"enable": false |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"value": "属性7", |
|
"enable": false |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"value": "属性8", |
|
"enable": false |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true, |
|
"value": "属性9", |
|
"enable": false |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "49CB86DD-A332-483C-AB6C-61E001C109EE" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "40183867-7B22-4435-9F1B-3F735655E86C" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "63CA319A-1116-41DF-915E-8BE00A5E8A6B" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "7A25C23D-ECBA-4B44-8AD7-3DBDE2324114" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "B9F8173D-E98E-4D57-9581-22508CE55803" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "337B3297-AC0B-489B-BE98-8313D160CDF9" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "0-未删除,1-已删除", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "25E8DF21-3BB4-40E0-8CFB-9B2DFF65555D" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "C749C805-74D2-4F9E-A7C9-41DDC9AD7E05" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "43BFB9D1-1150-4031-B067-A5D700D75BCA" |
|
}, |
|
{ |
|
"defKey": "name", |
|
"defName": "司机姓名", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "3AF8B8F6-A95D-4110-B792-C74A06968E95" |
|
}, |
|
{ |
|
"defKey": "phone", |
|
"defName": "司机手机号码", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "0B4AF14C-D36D-4E75-A952-DDDA655EDF23" |
|
}, |
|
{ |
|
"defKey": "type", |
|
"defName": "司机类型", |
|
"comment": "0-自有,1-加盟,2-外调,3-临调", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "188CCA22-C6A7-409F-93B6-77BDA23B738C" |
|
}, |
|
{ |
|
"defKey": "job_type", |
|
"defName": "职务类型", |
|
"comment": "0-干线,1-配送", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "96AADC95-6E59-4D72-9E05-72AB22AF746D" |
|
}, |
|
{ |
|
"defKey": "driving_type", |
|
"defName": "准驾车型", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "0E4464DE-5351-44A5-925B-037D4FA313BF" |
|
}, |
|
{ |
|
"defKey": "notes", |
|
"defName": "备注", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "5724F0E7-04A9-44F3-8A78-844594E3CB39" |
|
}, |
|
{ |
|
"defKey": "bind_vehicle", |
|
"defName": "绑定车辆", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "5D0C6DC1-1F94-45DE-A304-D0919EE51D58" |
|
}, |
|
{ |
|
"defKey": "contract_start_time", |
|
"defName": "合同开始时间", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "1DB2AA71-DCC0-4437-9226-61C8D2B3BA55" |
|
}, |
|
{ |
|
"defKey": "contract_end_time", |
|
"defName": "合同结束时间", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "DF6D2773-0992-45A7-B358-92864A722F5B" |
|
}, |
|
{ |
|
"defKey": "id_card", |
|
"defName": "身份证号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "F2BA4F0C-56EE-4379-8F2E-11FDDBCA76F7" |
|
}, |
|
{ |
|
"defKey": "gender", |
|
"defName": "性别", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "042F0E9B-31C1-49F2-8679-2A7E16FA6D41" |
|
}, |
|
{ |
|
"defKey": "residential_address", |
|
"defName": "居住地址", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "13D69A5A-729F-4D4C-9DAC-090C3CF40CCD" |
|
}, |
|
{ |
|
"defKey": "bank_type", |
|
"defName": "银行类型", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "94745666-51D8-4526-B934-1563F3CDC2F4" |
|
}, |
|
{ |
|
"defKey": "bank_card_nub", |
|
"defName": "银行卡号", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "01528D40-7805-4679-BD08-93C53FBBDE13" |
|
}, |
|
{ |
|
"defKey": "relevance_id", |
|
"defName": "关联Id", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "9DB18C8D-2D0C-4C82-821D-E18A580D49E6" |
|
}, |
|
{ |
|
"defKey": "driver_license_nub", |
|
"defName": "驾驶证号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "5047EEBB-567B-488C-88FA-53A7B5CCBDDF" |
|
}, |
|
{ |
|
"defKey": "driver_license_organ", |
|
"defName": "驾驶证发证机关", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "0BB50CA1-CD46-421E-9F4E-9A62778449CB" |
|
}, |
|
{ |
|
"defKey": "driver_license_start_time", |
|
"defName": "驾驶证起始日期", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "C9452908-F7A6-4722-858F-FBF1A78FE499" |
|
}, |
|
{ |
|
"defKey": "driver_license_end_time", |
|
"defName": "驾驶证到期日期", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "AE99C03B-199E-4D99-93FB-8AAEC2D2281A" |
|
}, |
|
{ |
|
"defKey": "employee_qualification_nub", |
|
"defName": "从业资格证编号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "35460660-A27A-4270-99DB-9BB2617871E7" |
|
}, |
|
{ |
|
"defKey": "road_operation_license_nub", |
|
"defName": "道路经营许可证号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "7278AA29-97E4-4E42-8876-EE1351EA160A" |
|
}, |
|
{ |
|
"defKey": "id_card_front_photo", |
|
"defName": "身份证正面照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "E1054599-225E-4BBD-AE6F-36A51E2D7DBA" |
|
}, |
|
{ |
|
"defKey": "id_card_back_photo", |
|
"defName": "身份证背面照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "A1A796F2-A6D5-4FE1-915B-D1D16E91525D" |
|
}, |
|
{ |
|
"defKey": "driver_license_photo", |
|
"defName": "驾驶证照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "87E2DD7F-0366-41BF-8ABF-925E4A79E6BE" |
|
}, |
|
{ |
|
"defKey": "license_people_photo", |
|
"defName": "人证合照照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "B753CB0D-38CA-40AA-9C54-954CE6A55C65" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "5965457D-1925-40AF-94C5-E077F0810197" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "502A83DD-6F6F-491C-884E-11EF7C0A64CF" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "6E2EE797-5C02-4BE3-8C98-F35347F4656B" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "41721E33-2A17-43C3-BE46-87345790E559" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "27AA1C20-9341-4A29-AA68-2C54590A19D4" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "495F64A5-0F53-4465-AE7E-5602DA10380A", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_vehicle", |
|
"defName": "车辆信息表", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "3E68DF42-54E5-4EE5-B375-0C524982E8BB" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "", |
|
"type": "VARCHAR", |
|
"len": 10, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "5F9939AD-0D14-4CDE-98E2-2D195D316B2A" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "205B79A3-1D3B-4FAB-82A2-BAA4B03B3D7A" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "", |
|
"type": "VARCHAR", |
|
"len": 10, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "A690FE5E-E85A-4DBA-922F-F989F64F929A" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "8FCF0E08-D4B4-4B8B-A8B0-D69F1AE5C069" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "E164617F-C991-4062-A372-F19FF128F17F" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "A65DCF5C-F4AC-44AF-A1CA-65B5E068ED4A" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "4EAD9564-900C-48F5-A4FB-BAF835E20F06" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "2E3AE017-9FA7-4CDC-9780-8AB16149F84C" |
|
}, |
|
{ |
|
"defKey": "owning_warehouse", |
|
"defName": "所属仓库", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "12A9AA5D-0015-4B3E-A369-38D495F595D3" |
|
}, |
|
{ |
|
"defKey": "vehicle_nub", |
|
"defName": "车牌号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 10, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "F756809C-1D84-413E-91DD-E090575C0D2D" |
|
}, |
|
{ |
|
"defKey": "vehicle_source", |
|
"defName": "车辆来源", |
|
"comment": "0-自有,1-承包,2-外请", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "258C0D98-C434-417C-87D5-4E2295506187" |
|
}, |
|
{ |
|
"defKey": "is_head", |
|
"defName": "是否车头", |
|
"comment": "0-挂车,1-车头", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "238F5E9A-0798-4CA6-A162-659CC4F04632" |
|
}, |
|
{ |
|
"defKey": "vehicle_model", |
|
"defName": "车型", |
|
"comment": "0-箱式,1-敞篷,2-平板", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "35B3EB3B-EEA3-4338-8008-3F200707B90A" |
|
}, |
|
{ |
|
"defKey": "vehicle_commander", |
|
"defName": "车长", |
|
"comment": "单位(M)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "4911BCB5-6955-4AD1-88F0-D755070D0EA6" |
|
}, |
|
{ |
|
"defKey": "vehicle_height", |
|
"defName": "外廓高", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "397F4282-A3F6-489E-881E-F52E292A29EA" |
|
}, |
|
{ |
|
"defKey": "payment_method", |
|
"defName": "付款方式", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "DE5E66A9-70EB-455F-B330-4786CCD49A26" |
|
}, |
|
{ |
|
"defKey": "approved_volume", |
|
"defName": "核定体积", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "0BA6BD64-13D9-49C7-A13C-365F8A97B2A7" |
|
}, |
|
{ |
|
"defKey": "license_plate_color", |
|
"defName": "车牌颜色", |
|
"comment": "0-黄色,1-蓝色,2-绿色,3-蓝绿色,4-其他", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "84A490E9-38E9-4AFA-9F86-7361770BA1A2" |
|
}, |
|
{ |
|
"defKey": "vehicle_color", |
|
"defName": "车身颜色", |
|
"comment": "0-红,1-黄,2-蓝,3-黑,4-白,5-银", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "964C45BF-CF56-4FA3-895F-EB7191A787BD" |
|
}, |
|
{ |
|
"defKey": "energy_type", |
|
"defName": "能源类型", |
|
"comment": "0-汽油,1-柴油,2-电,3-天然气,4-混合油,5-燃化石油气,6-甲醇", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "6C878898-21A8-4F33-874F-A32A0E8DCE64" |
|
}, |
|
{ |
|
"defKey": "license_plate_type", |
|
"defName": "车牌类型", |
|
"comment": "0-大型汽车号牌,1-小型汽车号牌", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "C3638258-7DCB-4214-AC52-DEFAA44722AC" |
|
}, |
|
{ |
|
"defKey": "notes", |
|
"defName": "备注", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "4AE81A95-09F5-43C1-82D1-DC28A10435E4" |
|
}, |
|
{ |
|
"defKey": "vehicle_owner", |
|
"defName": "车辆所属人", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 10, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "2CBA9F78-1267-4366-A034-3C6D0365BEED" |
|
}, |
|
{ |
|
"defKey": "vehicle_brand", |
|
"defName": "品牌型号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "74F8043E-A842-4707-A51F-709DECF20A97" |
|
}, |
|
{ |
|
"defKey": "vehicle_code", |
|
"defName": "车辆代号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "D1472729-A6EA-4F81-8025-60A523D1F118" |
|
}, |
|
{ |
|
"defKey": "engine_code", |
|
"defName": "发动机型号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "345D93C3-BB28-40EB-8A07-1B30CC921888" |
|
}, |
|
{ |
|
"defKey": "vehicle_quality", |
|
"defName": "车辆总质量", |
|
"comment": "单位(T)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "BA5A0F62-D5AD-4E9D-845C-710470C279F4" |
|
}, |
|
{ |
|
"defKey": "curb_weight", |
|
"defName": "整备质量", |
|
"comment": "单位(T)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "308A018C-C484-4EF6-B680-D07B5560A420" |
|
}, |
|
{ |
|
"defKey": "load_mass", |
|
"defName": "载荷质量", |
|
"comment": "单位(T)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "B4962E8A-1F2D-4A1E-862C-43BAEC071D3F" |
|
}, |
|
{ |
|
"defKey": "outer_width", |
|
"defName": "外廓宽", |
|
"comment": "单位(M)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "DF35F777-F945-45B2-88B3-1631E2DC2D9A" |
|
}, |
|
{ |
|
"defKey": "expiration_time", |
|
"defName": "到期时间", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "85848D8A-6FF7-465C-BEEF-D00467C2B285" |
|
}, |
|
{ |
|
"defKey": "road_transport", |
|
"defName": "道路运输证号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "E0445C55-CDF6-4FED-97BC-2F5D248D14DD" |
|
}, |
|
{ |
|
"defKey": "business_license", |
|
"defName": "经营许可证号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "B9971489-070A-44F5-B0C4-12127C43B2AE" |
|
}, |
|
{ |
|
"defKey": "vehicle_unit", |
|
"defName": "车辆所属单位", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "10C0C334-5E21-4C22-B69D-527A88970E56" |
|
}, |
|
{ |
|
"defKey": "vehicle_unit_phone", |
|
"defName": "车辆所属单位电话", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "77827B69-9369-4EF9-8699-B5E7FCF977F6" |
|
}, |
|
{ |
|
"defKey": "vehicle_owner_phone", |
|
"defName": "车辆所属人手机号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "27BE4F0F-E4CC-4EFF-80F2-28770CC6CF35" |
|
}, |
|
{ |
|
"defKey": "vehicle_owner_card", |
|
"defName": "车辆所属人身份证号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "7B410FBD-1469-4460-BA02-9D3263BA1C71" |
|
}, |
|
{ |
|
"defKey": "driving_license_photo", |
|
"defName": "行驶证照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "4414611B-A67E-4383-8588-E4FFAACCBFD2" |
|
}, |
|
{ |
|
"defKey": "license_photo", |
|
"defName": "许可证照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "D2855B7F-ABCE-42A0-B5E8-B30D99C481F5" |
|
}, |
|
{ |
|
"defKey": "vehicle_photo", |
|
"defName": "车辆照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 500, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "2CCA444B-8449-4857-A393-1E0265FD49BB" |
|
}, |
|
{ |
|
"defKey": "road_transport_photo", |
|
"defName": "道路运输照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "448EB4FA-FEBF-4BA0-B367-1454DB7B0EEA" |
|
}, |
|
{ |
|
"defKey": "vehicle_people_photo", |
|
"defName": "人车合影照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "838B724B-25F3-430A-9EC0-F5C1ECF82249" |
|
}, |
|
{ |
|
"defKey": "insurance_card_photo", |
|
"defName": "保险卡照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "DC134192-B448-4E1A-8ADF-D144B2E299A5" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "9488D8BF-EF4B-4886-9A2B-38B059B103B0" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "E0F24DC0-5162-4442-91D2-D5B832A4576A" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "19001373-0C31-4410-A812-7BFAAAAEB0D8" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "6D6F7E55-46EB-418C-A447-5AA6B2366F16" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "6D9DBED4-0DCC-4B5C-854A-5F9E0BD96DF3" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "2B321F03-45FE-41D9-9B69-90268B14121B", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_pda", |
|
"defName": "pda信息", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "C128ECD7-A989-4B55-8B61-0DCB5BE4B224" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "E2E4BAD2-BAD6-4C83-AE7C-E748A820B081" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "6D18D513-6C69-4A83-A930-C76F55833076" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "AC4B69F1-AF79-4652-B835-4C04DBC0B80E" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "514EF749-9F75-42F1-9BAD-6F1E14406662" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "C5F5695F-A174-40C7-B5C0-F04670E969F8" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "4110725C-CED3-4D80-8187-5F31F0F3B0A5" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "350E1E4A-ADBB-4840-89B5-5493E6EBF95A" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "8B080F29-AD2A-4FA5-A2D2-C138BCAE35F0" |
|
}, |
|
{ |
|
"defKey": "name", |
|
"defName": "产品名称", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "2499DB5B-B3DE-4C7E-94B5-4F72795A3895" |
|
}, |
|
{ |
|
"defKey": "model", |
|
"defName": "型号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "CFEEAB56-29DB-4DD9-8FA2-E973267E7E97" |
|
}, |
|
{ |
|
"defKey": "device_serial_number", |
|
"defName": "设备序列号S/N", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "5E0D35C1-3833-4421-9A08-170238DDA878" |
|
}, |
|
{ |
|
"defKey": "purchase_amount", |
|
"defName": "购买金额", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "580573C7-E4E8-4FAD-AA62-43E6387510E5" |
|
}, |
|
{ |
|
"defKey": "state", |
|
"defName": "状态", |
|
"comment": "0-正常,1-维修,2-不能使用(不能开机)", |
|
"type": "VARCHAR", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "C37CE1A2-3BCF-4780-8B6A-69152754A2F0" |
|
}, |
|
{ |
|
"defKey": "current_usage_warehouse", |
|
"defName": "当前使用仓", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "62301348-54D0-47C4-89F2-C6B0733EAA87" |
|
}, |
|
{ |
|
"defKey": "user", |
|
"defName": "使用人", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "07EAA8D3-480C-4F7A-92B2-2DD5AFAE339E" |
|
}, |
|
{ |
|
"defKey": "user_position", |
|
"defName": "使用人岗位", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "E2564619-209F-4FD1-9C3F-DACFE30FA26A" |
|
}, |
|
{ |
|
"defKey": "is_deposit", |
|
"defName": "是否收取押金", |
|
"comment": "0-没有,1-有", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "90D40DA5-F8DB-422A-AE2F-F4A716FA5C7C" |
|
}, |
|
{ |
|
"defKey": "deposit", |
|
"defName": "押金金额", |
|
"comment": "(元)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "C3B1681B-99F9-4818-9E80-DE1652A51D85", |
|
"id": "45E7CD70-EDE1-433F-A12B-F43EB22E802D" |
|
}, |
|
{ |
|
"defKey": "purchasing_company", |
|
"defName": "采购公司", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "D8B257BC-8DBC-4324-8D43-1B3ADA69ECC9" |
|
}, |
|
{ |
|
"defKey": "buying_time", |
|
"defName": "购买时间", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "14057A7B-EE92-49AF-9A33-075B129BE9F9" |
|
}, |
|
{ |
|
"defKey": "warranty_period_end_time", |
|
"defName": "保修截止时间", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "7B5B8E10-AD6F-4A44-BF52-87E7EFE2B1F5" |
|
}, |
|
{ |
|
"defKey": "notes", |
|
"defName": "备注", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "27029AFA-57CF-4E11-B517-03659805318C" |
|
}, |
|
{ |
|
"defKey": "photo", |
|
"defName": "图片", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "6DE4EB8B-ACA2-4C9B-8EE1-C646FC20F5B1" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "4BCB6760-53A2-411D-8320-793530229E99" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "376C5DD8-8AA4-43DE-87B6-55C912967220" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "6C8F681D-95D1-420F-8EDA-34E0DC8F411D" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "97F90479-0505-4DCD-966C-9B6859B845B7" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "6B693A59-76ED-4F43-96A0-BF9E1118EDCA" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "2B4FED1B-3E5C-4DA8-99C6-2D6DCBEF510E", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_forklift", |
|
"defName": "叉车信息", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "E72B5F3E-6413-498D-B229-EB533103144D" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "", |
|
"type": "VARCHAR", |
|
"len": 10, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "341937CE-871D-48AA-8037-3D0DBD1AD129" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "CDC13E1A-155C-4EB6-87A1-D3212EAC4DF0" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "", |
|
"type": "VARCHAR", |
|
"len": 10, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "1D71D842-2B49-4792-81AE-5DFE5E0AEB4B" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "A3AFCAFC-EBB2-4BF1-BB6A-5EB0A237C9E1" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "1E12E6D5-E833-4255-BB9C-3E34C9AB7A79" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "D96F72AD-9842-46EC-9ED2-4FCD5F614543" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "0E92F2AB-A807-40D5-AF56-DE585DD90096" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "41009190-A832-473F-86E4-F25019CEB4AB" |
|
}, |
|
{ |
|
"defKey": "business_line", |
|
"defName": "事业线", |
|
"comment": "0-川渝事业线,1-广东事业线,2-湖北事业线,3-云贵事业线", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "1F287368-4C1D-4F68-AC0E-E9064487AE16" |
|
}, |
|
{ |
|
"defKey": "use_unit", |
|
"defName": "使用单位", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "1F5517E8-BA85-484E-A918-EF8FC42A257B" |
|
}, |
|
{ |
|
"defKey": "ticket_recipient", |
|
"defName": "受票主体", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "C3450F2A-B729-488E-8E55-A9495C5AFB33" |
|
}, |
|
{ |
|
"defKey": "supplier", |
|
"defName": "供应商", |
|
"comment": "0-汉智叉车,1-荆门荆拓,2-天津德丰,3-力至优叉车,4-深圳鑫涛", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "819D8695-9A78-4FD7-91A4-B5FC71812409" |
|
}, |
|
{ |
|
"defKey": "asset_type", |
|
"defName": "资产类型", |
|
"comment": "0-自有,1-租凭", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "259514EF-32C8-4E1F-ABF7-12CB9975708D" |
|
}, |
|
{ |
|
"defKey": "forklift_type", |
|
"defName": "类型", |
|
"comment": "0-高叉,1-托盘车,2-坐叉", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "10C8999B-BFA3-4FA9-BD86-D7137A2CB10B" |
|
}, |
|
{ |
|
"defKey": "abstract", |
|
"defName": "摘要", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "3AE66348-FB2E-403A-A247-93FEBE83569C" |
|
}, |
|
{ |
|
"defKey": "load", |
|
"defName": "载重", |
|
"comment": "单位(T)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "591C9AAE-7920-409F-8CD7-EC7C5FE043C2" |
|
}, |
|
{ |
|
"defKey": "Load_height", |
|
"defName": "载高", |
|
"comment": "单位(M)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "83894D6C-C9ED-4042-921C-C49D374DC567" |
|
}, |
|
{ |
|
"defKey": "vehicle_size", |
|
"defName": "整车尺寸", |
|
"comment": "长*宽*高", |
|
"type": "VARCHAR", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "C721B432-A6A8-40C9-BB1A-EA6D7DE2BCA5" |
|
}, |
|
{ |
|
"defKey": "fork_arms_width", |
|
"defName": "货叉宽度", |
|
"comment": "(MAX外宽,单位M)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "75AB9476-E68F-480F-B9FA-E0A00BE6918C" |
|
}, |
|
{ |
|
"defKey": "fork_arms_height", |
|
"defName": "货叉长度", |
|
"comment": "(单位M)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "B1848D6B-9925-4BBA-9935-B01AD783DDBB" |
|
}, |
|
{ |
|
"defKey": "minimum_turning_radius", |
|
"defName": "最小转弯半径", |
|
"comment": "(单位M)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "348B64C6-051A-4A93-A703-BB42D98D0B8A" |
|
}, |
|
{ |
|
"defKey": "Channel_width", |
|
"defName": "通道宽度", |
|
"comment": "((min),单位M)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "18C754D2-54C1-4A5A-9F34-1511A9B86359" |
|
}, |
|
{ |
|
"defKey": "monthly_rent", |
|
"defName": "月租", |
|
"comment": "(元/月)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "C3B1681B-99F9-4818-9E80-DE1652A51D85", |
|
"id": "A50DFDC3-A9EF-440D-AC76-59B66D5E68B4" |
|
}, |
|
{ |
|
"defKey": "number", |
|
"defName": "数量", |
|
"comment": "(台)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "1E0E614F-4ADC-4F6B-929F-79BBC0E6C6E5" |
|
}, |
|
{ |
|
"defKey": "contract_number", |
|
"defName": "合同编号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "00B1A6B3-79F4-4466-A230-70C5C7555B8D" |
|
}, |
|
{ |
|
"defKey": "lease_start_period", |
|
"defName": "起租期限", |
|
"comment": "中文大写", |
|
"type": "VARCHAR", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "46A30F89-75F0-4F90-BAE5-51107B538344" |
|
}, |
|
{ |
|
"defKey": "lease_start_time", |
|
"defName": "租赁开始时间", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "CED0832C-DCAD-4C8A-B427-E9C4311BE38C" |
|
}, |
|
{ |
|
"defKey": "lease_end_time", |
|
"defName": "租赁结束时间", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "AA6C5920-9A86-4423-B55D-D2AE5B1720DF" |
|
}, |
|
{ |
|
"defKey": "payment_cycle", |
|
"defName": "付款周期", |
|
"comment": "(月)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "B69E93AB-445A-4E15-9272-53F8EB7D5F6C" |
|
}, |
|
{ |
|
"defKey": "deposit", |
|
"defName": "押金", |
|
"comment": "(元)", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "C3B1681B-99F9-4818-9E80-DE1652A51D85", |
|
"id": "4C3550E3-4958-42BA-B523-DDDC18A6673B" |
|
}, |
|
{ |
|
"defKey": "payment_method", |
|
"defName": "付款方式", |
|
"comment": "0-先付后租,1-先租后付", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "22C045C7-0CEC-426E-923F-63A5534E66ED" |
|
}, |
|
{ |
|
"defKey": "notes", |
|
"defName": "备注", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "EE6E214A-F514-468E-BFFA-870BF3824020" |
|
}, |
|
{ |
|
"defKey": "forklift_photo", |
|
"defName": "整车图片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "B9AD22AE-6B0E-4512-81D0-6C801978A68F" |
|
}, |
|
{ |
|
"defKey": "owning_warehouse", |
|
"defName": "所属仓库", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "642C28DE-5F56-4CF0-A706-8359B0CC7E69" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "894CE122-CE59-4F75-A962-5E19ECCBF1AC" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "AE278CAC-123E-4217-A144-91F1C1BE07CD" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "A9B85D9C-835F-42C4-BE02-506CA4E030FA" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "F5A5EEFF-DFD8-427F-8DF5-C65A3E59AB67" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "57DD4420-654B-4349-A9BE-D48E1D02A1CA" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "6BAA2342-D63B-4CF4-9660-CECC46E31F55", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_vehicle_photo", |
|
"defName": "车辆照片信息表", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "0E12E341-49F5-4808-A6F7-83DED860CCE0" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "69FE42F3-3200-4329-9DC2-42A36E1DD0E0" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "C9A29FA2-58D0-4F6D-A3FB-10C0B85FCE55" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "079728C3-70DC-42DE-AF5F-197FD6E2FDFE" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "B4D0DF18-18A1-438D-8126-26BD2A3A0EC3" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "9B293EE8-4931-49A1-80A0-D4C1BC29F6D1" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "BEA24E96-6499-4389-AC6F-59232A07E172" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "BD435C20-A87B-453B-992E-6E5082E37F96" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "EBB1DE64-54F3-4EFF-A2F6-F9A1C464CB58" |
|
}, |
|
{ |
|
"defKey": "master_id", |
|
"defName": "关联车辆信息表主键id", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "7309F70A-6691-4F87-B599-F3D8E1EDD757" |
|
}, |
|
{ |
|
"defKey": "photo_url", |
|
"defName": "车辆照片", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "FEE866CF-9681-4DCF-B710-6A1DA5C685AB" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [ |
|
{ |
|
"defKey": "主表id", |
|
"defName": null, |
|
"unique": false, |
|
"comment": "", |
|
"fields": [ |
|
{ |
|
"fieldDefKey": "7309F70A-6691-4F87-B599-F3D8E1EDD757", |
|
"ascOrDesc": "A", |
|
"id": "EDC61AF9-DADA-4191-928C-EF71FA65FBA1" |
|
} |
|
], |
|
"id": "6A932DFF-7C56-4207-A5E5-818FB464B080" |
|
} |
|
] |
|
}, |
|
{ |
|
"id": "4AF08760-E96A-48CB-962B-4806824E21A0", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_warehouse", |
|
"defName": "仓库", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "F224C397-3AA9-4ACF-A70F-D50437D60270" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "C1E047A7-E63C-4BBF-BC18-5CFCC057A371" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "883678CB-8EB0-478F-91B3-8A815FD7818B" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "FC69AF76-FE44-41EF-8739-FBA36C690216" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "F26E80D6-6F52-4A56-9051-5BEE32724856" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "66E0235A-ADF9-497A-AAEA-40F291E17A15" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF", |
|
"id": "16279C02-A5C0-45B1-AFCA-28C9BFEBE21A" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "4DDF31CA-9C17-469F-B853-773C8F4A5077" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"id": "4F9CB6F4-A19B-4C59-9A3A-D81452AAC339" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "DD155EBB-BDEF-4193-8AB1-880FC77D1BC4" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "CA77BB28-3730-43EF-BACC-6C67959CC01A" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "EBA542DB-DFAA-4895-9E70-335D0D159624" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "0BCC1229-675C-4F64-B48C-7A2D08693AFA" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "C0E00EFC-9696-49F2-9894-B3AB5086D5CD" |
|
}, |
|
{ |
|
"defKey": "name", |
|
"defName": "仓库名称", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "66DA7BCA-AC3F-4B72-8F88-3A5C9295F1F2" |
|
}, |
|
{ |
|
"defKey": "code", |
|
"defName": "仓库代码", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "0E829C51-52EF-4D06-A984-04C4FF81A02A" |
|
}, |
|
{ |
|
"defKey": "abbreviation", |
|
"defName": "仓库简称", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "EE4A3B19-F34D-4CF4-A84D-D5E3097AEDE9" |
|
}, |
|
{ |
|
"defKey": "linkman", |
|
"defName": "联系人", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 50, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "DFB6CABA-F717-45CE-A15F-F9C6CCBBFFAD" |
|
}, |
|
{ |
|
"defKey": "contact_number", |
|
"defName": "联系人电话", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "3D75CE24-A477-4F30-8C44-05EAFE6D918E" |
|
}, |
|
{ |
|
"defKey": "administrative_areas", |
|
"defName": "管理区域", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "7AD72FBA-E564-4544-AEBF-A5467D0C645F" |
|
}, |
|
{ |
|
"defKey": "distribution_mall", |
|
"defName": "配送商场", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "6EFF63F8-3335-4A8C-948F-2E1BA3290C2C" |
|
}, |
|
{ |
|
"defKey": "business_line", |
|
"defName": "事业线", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "B8926BD5-F4B2-40E5-AC31-569AC190DD05" |
|
}, |
|
{ |
|
"defKey": "depot_base", |
|
"defName": "基地仓", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "9ACB4741-1D13-43AB-98B5-43D7700440C8" |
|
}, |
|
{ |
|
"defKey": "money_receiving_code", |
|
"defName": "收款码", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "11425823-3080-4921-945C-A526E135D8ED" |
|
}, |
|
{ |
|
"defKey": "remarks", |
|
"defName": "备注", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "F4772FEE-6F4C-463E-8D45-CE448D61E180" |
|
}, |
|
{ |
|
"defKey": "warehouse_address", |
|
"defName": "仓库地址", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "8EE314FA-929B-4D85-8DD5-C31906A307FF" |
|
}, |
|
{ |
|
"defKey": "longitude", |
|
"defName": "经度", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "4FE73236-79C0-416E-BD58-6D9CE48137F7" |
|
}, |
|
{ |
|
"defKey": "latitude", |
|
"defName": "纬度", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "A4B5AF76-F448-4135-A0EE-6B5A110BDA2A" |
|
}, |
|
{ |
|
"defKey": "department", |
|
"defName": "所属部门", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "8CF45D2C-D11E-413F-A662-E6D88C0F98B3" |
|
}, |
|
{ |
|
"defKey": "warehouse_type", |
|
"defName": "仓库类型 平台,高台", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "EB2DBA67-2F95-4D43-96EB-3D22F29DE7A9" |
|
}, |
|
{ |
|
"defKey": "fire_grade", |
|
"defName": "消防等级", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "7580F66A-992A-41EF-9AB3-BEA3A4F93ACA" |
|
}, |
|
{ |
|
"defKey": "fire_rating_not", |
|
"defName": "是否有消防等级", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF", |
|
"id": "7A34C2F7-CA56-42BA-AA96-6FC70AD1ABA2" |
|
}, |
|
{ |
|
"defKey": "merchant_factory", |
|
"defName": "商家仓", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "354A7247-4DC4-4B1A-9589-EA8697239CDA" |
|
}, |
|
{ |
|
"defKey": "warehouse_structure", |
|
"defName": "仓库结构 钢混,钢架,混凝土", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "1AFD14B1-4A50-4B8D-AADC-1FDF58EDBD62" |
|
}, |
|
{ |
|
"defKey": "elevated_not", |
|
"defName": "是否高架", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF", |
|
"id": "50221AAE-2CBB-454A-AE84-F9482BDD3AE5" |
|
}, |
|
{ |
|
"defKey": "storey_height", |
|
"defName": "仓库层高", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "BA9079F4-581F-4C0B-B356-85604A3F984B" |
|
}, |
|
{ |
|
"defKey": "power_condition", |
|
"defName": "电力情况 民用 工用", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "F18FC5C9-77C1-46A7-ABC2-36C37E79E9C7" |
|
}, |
|
{ |
|
"defKey": "acreage", |
|
"defName": "面积", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "85676ABD-FE7B-4521-9CD1-CB85652CBA6F" |
|
}, |
|
{ |
|
"defKey": "unit_price", |
|
"defName": "单价", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "D4A24E58-4824-4678-AA64-2204AC6731B2" |
|
}, |
|
{ |
|
"defKey": "administrative_fee", |
|
"defName": "管理费", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "A5955867-6E15-4B8F-A394-CA93BA70FD20" |
|
}, |
|
{ |
|
"defKey": "seating", |
|
"defName": "库位数", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "4E71F79E-C6A1-4E73-B56E-3D598CFA72B5" |
|
}, |
|
{ |
|
"defKey": "grade", |
|
"defName": "仓库等级 甲 乙 丙等", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "6774882C-96A0-475E-8D93-DB32F42992B0" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "2C7A7AEB-3BD0-4840-832C-04F13B98B25F", |
|
"defKey": "TABLE_1", |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "6BCE6F69-F360-454F-9D60-D300150F963D" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "C511C9BA-8E0A-43DE-8253-DB8465C3091E" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "891B428F-13D9-41F0-A6F3-8177129B72B8" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "EF73BFEE-52CC-4968-8668-E2F9614E8F99" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "4959C987-53B6-4381-8D37-6099ED8FCECC" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "26C83097-1C33-41EE-980A-573FA63DF32D" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "AE333988-8921-4929-B514-1E3ABE0104E3" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "532D8084-775D-4F53-9467-101157DA9751" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "9C41C231-F2A4-4FC2-B8EB-AE8551D68000" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "9B8FC9FC-627F-425C-8B5B-FFE480926770" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "188EA425-E21E-47F9-8703-B8F74E79D939" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "A315F775-6D60-45B3-B07A-C4E9371B2225" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "DBEA6CC4-3019-44BC-A82E-B55E42B4128D" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "884749E3-72A9-472F-87A6-E69AFF84E805" |
|
} |
|
], |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"serialId": null, |
|
"correlations": [] |
|
}, |
|
{ |
|
"id": "EC448B04-7155-49ED-9884-BE9162660CCB", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_goods_area", |
|
"defName": "货区", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "411194AF-3920-429C-BA4A-E2F4C9FCBEF0" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "4C2433DA-AA6C-4613-9813-5CE6BBD6B29C" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "B9D70A02-B3E7-47A3-9442-B1253C266185" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "01BD6B0F-0DC9-4C73-AFEA-AE35BD1CA0E7" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "D26D4FC9-AD91-4606-89C5-8596BD956DF0" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "48E8CBAF-49DC-4320-B2FF-E0C51F121F0E" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "093647D6-26BD-4520-B480-EA49A7D0B69D" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "D13DF376-1571-4FF7-97A0-7F6533DB588F" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "41CE226C-898E-4A6A-B510-8D8313E23C04" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "E915D338-59CB-4439-8176-A4B9EA4302FB" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "D0EA8B38-A93A-49A3-BBC1-AC56582B335A" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "1166D409-9409-4CB5-9E85-2CE9C70C905E" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "49D6B77E-4BC6-42CB-B1C4-33985AF54ED8" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "64D170BD-FF79-4D0B-91F0-C5BCEE6238E0" |
|
}, |
|
{ |
|
"defKey": "warehouse_id", |
|
"defName": "仓库id", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "959FFA67-9885-47F8-8384-2CEA55A2DF4C" |
|
}, |
|
{ |
|
"defKey": "headline", |
|
"defName": "标题", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "18D95ED0-0627-4B2E-868E-BEA584655AA7" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "C19E9ECA-2AC5-48E0-B6BE-303760050E11", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_goods_shelf", |
|
"defName": "货架", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "E9B5ADCA-8B8F-4F55-9984-3A19593B797C" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "56F1652C-BD6A-4B98-92CC-D1C5448A3ED8" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "E2C6FB63-1042-44DD-B787-8665B0FC1ED1" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "E6AD6F55-40CA-468D-9B41-F6783694F83A" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "218EDC63-C313-4F72-81CB-B5FFC078D533" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "E6A73450-DE88-4590-99FA-78E63E5D72D8" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "66DBAF43-3764-44D7-BD59-B1D4520B5DC8" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "BA247000-5C17-4BAD-A22C-15D0739966FC" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "C02C5BFB-F3F7-4E1B-A7CD-2E835B95E7C4" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "7744C910-6B9E-4AE0-80E2-20F78927008F" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "279E2EA5-FFF5-429B-B1BE-4A7A2E405ADD" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "CA32EAF8-FF6A-4DA2-A6DD-A424521BFF67" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "1F9AEE25-9583-432F-A26E-5CB7AABCCE20" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "7BA73F90-22C9-4F12-A516-E5D42ED1311B" |
|
}, |
|
{ |
|
"defKey": "goods_area_id", |
|
"defName": "货区ID", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "D320FBA9-B140-4193-9D82-A3A22F6435B7" |
|
}, |
|
{ |
|
"defKey": "goods_shelf_name", |
|
"defName": "货架名称", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "2B29B0BA-2E40-425E-97D7-34325A5A16C8" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "43994400-4BCD-4918-8308-C77CC5160964", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_goods_allocation", |
|
"defName": "货位", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "159F042E-8B29-43AA-94D8-B61CCEA0DA96" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "ED6F2859-74EA-439B-902E-E6A2CE8F29B0" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "68C91920-F6C0-478C-8459-617BFF7B59F0" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "D351FEA6-6557-41E9-A355-B24895C36357" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "08068700-3035-4148-9564-D360364A7666" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "33616121-D554-4B95-B7EF-3F525F9D15E0" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "47BF4CC7-6D64-4862-9B71-A23E2DDD0979" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "74DE798A-E60A-49FE-AAB5-58FE556DCF40" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "A0DD41A1-8118-47AC-8B59-3D389A983C12" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "20AFE1DA-5E28-4058-A685-7A8BF5AB0D58" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "E25DF48F-D23A-4050-8ABB-5C320AC02EEF" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "8470C604-3C14-4B33-A916-25795620C5AE" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "91FF92C0-A023-40E6-B3D2-8AE638BE4672" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "D8E58C1E-18DC-48AC-B0A1-04C6789A3019" |
|
}, |
|
{ |
|
"defKey": "goods_allocation_name", |
|
"defName": "货位名称", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "6DDF12D4-2B40-40F0-9D71-BC2E0DBFCA03" |
|
}, |
|
{ |
|
"defKey": "goods_shelf_id", |
|
"defName": "货架ID", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "C83CC1C5-AFE0-4D7D-B4BB-9DA34C499B4F" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "E2BC34BC-5DFD-44DB-BF3E-01683A449C26", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_tray", |
|
"defName": "托盘", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "AC7BD94E-52B5-424D-8A10-6182CDA2BDD2" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "8EB7CAC9-3334-4632-880F-0E3126400B5E" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "3CFED4B1-7946-4E4E-A5FD-6ADCCCD7F6F2" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "1CEFEE6A-2AC9-47E1-ACED-EFBAA946046C" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "196C16CF-10AD-432B-90E9-D504103CDF09" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "21BC5640-1F57-4E83-B1CF-73ECAB47A343" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "EC5CD4E2-21D3-41DE-8125-3839AA2BCB13" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "B01DD464-53F9-40D2-AEC9-6B8DB703DFC4" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "F4C083F7-5A81-4C0A-A6AF-F4BC488C541E" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "1401721C-F291-44B0-85E3-7BD1719E182A" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "C8E0240B-9BC3-419A-B645-2E5BEA2C9B15" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "C0882161-D596-41EE-B496-C6C371F53697" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "E02127E4-BEF0-4601-9832-8C8F8CBD52E5" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "F5565A7A-56F5-4991-8C28-4C1867805A0D" |
|
}, |
|
{ |
|
"defKey": "pallet_code", |
|
"defName": "托盘码", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "F6A948C2-BCEB-4691-986C-6A8D3420D58C" |
|
}, |
|
{ |
|
"defKey": "quantity_support", |
|
"defName": "在托数量", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "5D12ED3F-5DE7-4F3E-AC79-9840BA1991DD" |
|
}, |
|
{ |
|
"defKey": "warehouse_id", |
|
"defName": "所属仓库", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "73C6D9EA-31B2-4C3D-8FE1-ED44F8CE6720" |
|
}, |
|
{ |
|
"defKey": "current_warehouse", |
|
"defName": "当前仓库", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "943E416F-3A00-4FDC-9D07-977A357B8EE5" |
|
}, |
|
{ |
|
"defKey": "batching_time", |
|
"defName": "打托时间", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"id": "0DF3F6A9-B92F-42F7-9313-3DF93D7A2A7D" |
|
}, |
|
{ |
|
"defKey": "qr_code", |
|
"defName": "二维码", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "61D0F4FB-B92D-4B8F-99E2-0051DF77F972" |
|
}, |
|
{ |
|
"defKey": "type", |
|
"defName": "类型", |
|
"comment": "木托 铁托 台面托", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "3F552CEE-A461-441A-B994-C3DCA98BD222" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
}, |
|
{ |
|
"id": "86B80F03-DC8E-44D6-A606-9A6CFCBDF990", |
|
"env": { |
|
"base": { |
|
"nameSpace": "", |
|
"codeRoot": "" |
|
} |
|
}, |
|
"defKey": "logpm_basicdata_material", |
|
"defName": "物料", |
|
"comment": "", |
|
"properties": { |
|
"partitioned by": "(date string)", |
|
"row format delimited": "", |
|
"fields terminated by ','": "", |
|
"collection items terminated by '-'": "", |
|
"map keys terminated by ':'": "", |
|
"store as textfile;": "" |
|
}, |
|
"nameTemplate": "{defKey}[{defName}]", |
|
"notes": {}, |
|
"headers": [ |
|
{ |
|
"refKey": "hideInGraph", |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "defName", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "primaryKey", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "notNull", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "autoIncrement", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "domain", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "type", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "len", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "scale", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "comment", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "refDict", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "defaultValue", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "isStandard", |
|
"freeze": false, |
|
"hideInGraph": false |
|
}, |
|
{ |
|
"refKey": "uiHint", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "extProps", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr1", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr2", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr3", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr4", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr5", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr6", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr7", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr8", |
|
"freeze": false, |
|
"hideInGraph": true |
|
}, |
|
{ |
|
"refKey": "attr9", |
|
"freeze": false, |
|
"hideInGraph": true |
|
} |
|
], |
|
"fields": [ |
|
{ |
|
"defKey": "tenant_id", |
|
"defName": "租户号", |
|
"comment": "", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "B4B06549-E5E4-4CBD-AFAB-9CABC2D8B663" |
|
}, |
|
{ |
|
"defKey": "create_user", |
|
"defName": "创建人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "CDFACA27-8532-4322-8638-F1B63E05D63E" |
|
}, |
|
{ |
|
"defKey": "create_time", |
|
"defName": "创建时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "09B3C731-C407-4B2F-B2D3-2CE31DF07037" |
|
}, |
|
{ |
|
"defKey": "update_user", |
|
"defName": "更新人", |
|
"comment": "", |
|
"domain": "16120F75-6AA7-4483-868D-F07F511BB081", |
|
"type": "", |
|
"len": 32, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "66AB372F-BCE0-433F-9D7A-7705FEA9E8E5" |
|
}, |
|
{ |
|
"defKey": "update_time", |
|
"defName": "更新时间", |
|
"comment": "", |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": true, |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "78161064-0B75-406E-B0E6-3ADF096A94E8" |
|
}, |
|
{ |
|
"defKey": "status", |
|
"defName": "状态", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "B656A16F-6665-4C48-B4CD-4B4A3B2C664B" |
|
}, |
|
{ |
|
"defKey": "is_deleted", |
|
"defName": "是否已删除", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 2, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "0B98CA07-63FB-4F17-817F-4F2CDA8FC86D" |
|
}, |
|
{ |
|
"defKey": "create_dept", |
|
"defName": "创建部门", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"id": "2236702F-DD59-4391-B473-3AE3EA8C81A2" |
|
}, |
|
{ |
|
"defKey": "id", |
|
"defName": "主键", |
|
"comment": "", |
|
"type": "INT", |
|
"len": 20, |
|
"scale": "", |
|
"primaryKey": true, |
|
"notNull": true, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "7BCFC965-8D65-498E-9EF0-77F71D0CA84A" |
|
}, |
|
{ |
|
"defKey": "reserve1", |
|
"defName": "预留1", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "762D0676-F2BE-4F79-B766-4A5AE1F662AC" |
|
}, |
|
{ |
|
"defKey": "reserve2", |
|
"defName": "预留2", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "FB0C4A16-C166-4449-AE17-992C8157DC1E" |
|
}, |
|
{ |
|
"defKey": "reserve3", |
|
"defName": "预留3", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "DD39EC5C-4E5C-4514-A259-5E6880D7B225" |
|
}, |
|
{ |
|
"defKey": "reserve4", |
|
"defName": "预留4", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "7848866A-8C4D-4771-BE60-2DADCB5E72B9" |
|
}, |
|
{ |
|
"defKey": "reserve5", |
|
"defName": "预留5", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "B1D63A69-FD5F-42FD-8F2F-B31B0D0655BD" |
|
}, |
|
{ |
|
"defKey": "product_code", |
|
"defName": "产品编码", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "EED127C7-E329-498D-97A0-00AF3C5C3228" |
|
}, |
|
{ |
|
"defKey": "name", |
|
"defName": "名称", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 100, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "A7DCBA41-3F16-46B8-B005-B9672E8C9B21" |
|
}, |
|
{ |
|
"defKey": "brand", |
|
"defName": "品牌", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": 200, |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "", |
|
"id": "16EFC2FE-C728-4F5F-A4A8-416AD6EEC71D" |
|
}, |
|
{ |
|
"defKey": "property", |
|
"defName": "属性", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "332E67D8-B27C-4EBD-9843-A35C2AEB1024" |
|
}, |
|
{ |
|
"defKey": "specification", |
|
"defName": "规格", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "EB1ACB72-7245-400C-A739-BBBC041368C3" |
|
}, |
|
{ |
|
"defKey": "packing_specification", |
|
"defName": "包装规格", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "21B52DDD-04E7-45F4-9764-B72EFF9DE93D" |
|
}, |
|
{ |
|
"defKey": "packaging_material", |
|
"defName": "包装材质", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "EE4B39A2-BC26-4336-AF1C-F7DD37F6A63F" |
|
}, |
|
{ |
|
"defKey": "extent", |
|
"defName": "长", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "42D01A3B-1D09-4E3B-8191-86DCB6172D34" |
|
}, |
|
{ |
|
"defKey": "breadth", |
|
"defName": "宽", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "960C7C45-5DA9-4561-BAC1-CBEEB20735B3" |
|
}, |
|
{ |
|
"defKey": "altitude", |
|
"defName": "高度", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "0C185F02-B416-4A2F-B380-FF9E36532D79" |
|
}, |
|
{ |
|
"defKey": "volume", |
|
"defName": "体积", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "59D45558-158D-41BC-B8CA-31702CEB1894" |
|
}, |
|
{ |
|
"defKey": "weight", |
|
"defName": "总量", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4", |
|
"id": "8AEAC6C8-641F-4491-A124-DAEAEAB6820B" |
|
}, |
|
{ |
|
"defKey": "remark", |
|
"defName": "备注", |
|
"comment": "", |
|
"type": "", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"refDict": "", |
|
"extProps": {}, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"id": "82C7F0A0-5A6E-4B92-A459-9B8CD2A020AE" |
|
} |
|
], |
|
"correlations": [], |
|
"indexes": [] |
|
} |
|
], |
|
"views": [], |
|
"dicts": [], |
|
"viewGroups": [ |
|
{ |
|
"defKey": "factory", |
|
"defName": "工厂", |
|
"refEntities": [ |
|
"1F07ADF1-1AB1-4F0A-88E5-C38CDF1CAF1B", |
|
"DC3A3429-1810-4DA5-8481-637F81F56014", |
|
"81FD17DB-AB10-4951-A961-B4A91390AE7E", |
|
"F5A26939-CC4D-4A45-8C01-8BB798FF6910" |
|
], |
|
"refViews": [], |
|
"refDiagrams": [], |
|
"refDicts": [], |
|
"id": "C889BDDB-920A-4041-8744-A115F3BBD2ED" |
|
}, |
|
{ |
|
"defKey": "mainline", |
|
"defName": "干线运输", |
|
"refEntities": [], |
|
"refViews": [], |
|
"refDiagrams": [ |
|
"0D3438EE-4217-4148-A1A8-94796B5C7891" |
|
], |
|
"refDicts": [], |
|
"id": "373CE219-D29E-4AE0-976A-0BD2EEE8E6BD" |
|
}, |
|
{ |
|
"defKey": "basicdata", |
|
"defName": "基础信息", |
|
"refEntities": [ |
|
"6364A7CD-C8ED-41E3-8633-140BD94113FD", |
|
"495F64A5-0F53-4465-AE7E-5602DA10380A", |
|
"2B321F03-45FE-41D9-9B69-90268B14121B", |
|
"2B4FED1B-3E5C-4DA8-99C6-2D6DCBEF510E", |
|
"6BAA2342-D63B-4CF4-9660-CECC46E31F55", |
|
"4AF08760-E96A-48CB-962B-4806824E21A0", |
|
"EC448B04-7155-49ED-9884-BE9162660CCB", |
|
"C19E9ECA-2AC5-48E0-B6BE-303760050E11", |
|
"43994400-4BCD-4918-8308-C77CC5160964", |
|
"E2BC34BC-5DFD-44DB-BF3E-01683A449C26", |
|
"86B80F03-DC8E-44D6-A606-9A6CFCBDF990" |
|
], |
|
"refViews": [], |
|
"refDiagrams": [], |
|
"refDicts": [], |
|
"id": "32AFC6CC-C540-4D38-A73B-43FCAABA8E17" |
|
} |
|
], |
|
"dataTypeMapping": { |
|
"referURL": "", |
|
"mappings": [ |
|
{ |
|
"defKey": "string", |
|
"id": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
|
"defName": "字串", |
|
"29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "VARCHAR", |
|
"A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "VARCHAR2", |
|
"BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARCHAR", |
|
"DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "VARCHAR", |
|
"89504F5D-94BF-4C9E-8B2E-44F37305FED5": "VARCHAR", |
|
"0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "VARCHAR2", |
|
"592C7013-143D-4E7B-AF64-0D7BF1E28230": "VARCHAR", |
|
"77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "VARCHAR", |
|
"11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING", |
|
"B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT", |
|
"797A1496-D649-4261-89B4-544132EC3F36": "String", |
|
"895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String", |
|
"A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String", |
|
"F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string", |
|
"81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string", |
|
"B91D99E0-9B7C-416C-8737-B760957DAF09": "string", |
|
"BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String", |
|
"56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "VARCHAR", |
|
"483F9346-C99E-4014-A1D2-A554606BD8A3": "VARCHAR" |
|
}, |
|
{ |
|
"defKey": "double", |
|
"id": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E", |
|
"defName": "小数", |
|
"29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DECIMAL", |
|
"A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DECIMAL", |
|
"BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DECIMAL", |
|
"DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "NUMERIC", |
|
"89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DECIMAL", |
|
"0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DECIMAL", |
|
"592C7013-143D-4E7B-AF64-0D7BF1E28230": "NUMERIC", |
|
"77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "NUMERIC", |
|
"11D1FB71-A587-4217-89BA-611B8A1F83E0": "DOUBLE", |
|
"B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "REAL", |
|
"797A1496-D649-4261-89B4-544132EC3F36": "Double", |
|
"895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Double", |
|
"A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Double", |
|
"F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "decimal", |
|
"81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "double", |
|
"B91D99E0-9B7C-416C-8737-B760957DAF09": "*float64", |
|
"BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "f64", |
|
"56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DECIMAL", |
|
"483F9346-C99E-4014-A1D2-A554606BD8A3": "DECIMAL" |
|
}, |
|
{ |
|
"defKey": "int", |
|
"id": "1D764C4A-6F9F-421E-B11A-6F3E23B51811", |
|
"defName": "整数", |
|
"29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "INT", |
|
"A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "INT", |
|
"BFC87171-C74F-494A-B7C2-76B9C55FACC9": "INT", |
|
"DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "INTEGER", |
|
"89504F5D-94BF-4C9E-8B2E-44F37305FED5": "INT", |
|
"0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "INTEGER", |
|
"592C7013-143D-4E7B-AF64-0D7BF1E28230": "INTEGER", |
|
"77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "INT4", |
|
"11D1FB71-A587-4217-89BA-611B8A1F83E0": "INT", |
|
"B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "INTEGER", |
|
"797A1496-D649-4261-89B4-544132EC3F36": "Integer", |
|
"895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Integer", |
|
"A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Integer", |
|
"F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "float", |
|
"81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "int", |
|
"B91D99E0-9B7C-416C-8737-B760957DAF09": "*int", |
|
"BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "i32", |
|
"56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "INTEGER", |
|
"483F9346-C99E-4014-A1D2-A554606BD8A3": "INT" |
|
}, |
|
{ |
|
"defKey": "date", |
|
"id": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
|
"defName": "日期", |
|
"29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DATETIME", |
|
"A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DATE", |
|
"BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DATETIME", |
|
"DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TIMESTAMP", |
|
"89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DATE", |
|
"0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DATE", |
|
"592C7013-143D-4E7B-AF64-0D7BF1E28230": "DATE", |
|
"77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "DATE", |
|
"11D1FB71-A587-4217-89BA-611B8A1F83E0": "DATETIME", |
|
"B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NUMERIC", |
|
"797A1496-D649-4261-89B4-544132EC3F36": "Date", |
|
"895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Date", |
|
"A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Date", |
|
"F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "DateTime", |
|
"81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "timestamp", |
|
"B91D99E0-9B7C-416C-8737-B760957DAF09": "*time.Time", |
|
"BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "DateTime<Local>", |
|
"56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DATE", |
|
"483F9346-C99E-4014-A1D2-A554606BD8A3": "DATETIME" |
|
}, |
|
{ |
|
"defKey": "bytes", |
|
"id": "D516E75B-90F5-4741-B9B3-A186A263F04C", |
|
"defName": "二进制", |
|
"29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "BLOB", |
|
"A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "BLOB", |
|
"BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARBINARY", |
|
"DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "BYTEA", |
|
"89504F5D-94BF-4C9E-8B2E-44F37305FED5": "BLOB", |
|
"0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "BLOB", |
|
"592C7013-143D-4E7B-AF64-0D7BF1E28230": "BYTEA", |
|
"77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "BYTEA", |
|
"11D1FB71-A587-4217-89BA-611B8A1F83E0": "BINARY", |
|
"B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NONE", |
|
"797A1496-D649-4261-89B4-544132EC3F36": "byte[]", |
|
"895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "byte[]", |
|
"A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "byte[]", |
|
"F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "binary", |
|
"81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "binary", |
|
"B91D99E0-9B7C-416C-8737-B760957DAF09": "[]byte", |
|
"56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "BYTE" |
|
}, |
|
{ |
|
"defKey": "largeText", |
|
"id": "B17BDED3-085F-40E1-9019-3B79CF2BF075", |
|
"defName": "大文本", |
|
"29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "TEXT", |
|
"A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "CLOB", |
|
"BFC87171-C74F-494A-B7C2-76B9C55FACC9": "TEXT", |
|
"DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TEXT", |
|
"89504F5D-94BF-4C9E-8B2E-44F37305FED5": "CLOB", |
|
"0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "CLOB", |
|
"592C7013-143D-4E7B-AF64-0D7BF1E28230": "TEXT", |
|
"77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "TEXT", |
|
"11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING", |
|
"B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT", |
|
"797A1496-D649-4261-89B4-544132EC3F36": "String", |
|
"895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String", |
|
"A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String", |
|
"F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string", |
|
"81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string", |
|
"B91D99E0-9B7C-416C-8737-B760957DAF09": "string", |
|
"BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String", |
|
"56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "TEXT", |
|
"483F9346-C99E-4014-A1D2-A554606BD8A3": "STRING" |
|
} |
|
] |
|
}, |
|
"domains": [ |
|
{ |
|
"defKey": "DefaultString", |
|
"defName": "默认字串", |
|
"applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
|
"len": 255, |
|
"scale": "", |
|
"uiHint": "", |
|
"id": "9092C4E0-1A54-4859-ABBB-5B62DBC27573" |
|
}, |
|
{ |
|
"defKey": "IdOrKey", |
|
"defName": "主键标识", |
|
"applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
|
"len": 32, |
|
"scale": "", |
|
"uiHint": "", |
|
"id": "16120F75-6AA7-4483-868D-F07F511BB081" |
|
}, |
|
{ |
|
"defKey": "Name", |
|
"defName": "名称", |
|
"applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
|
"len": 90, |
|
"scale": "", |
|
"uiHint": "", |
|
"id": "54611CCC-CA4B-42E1-9F32-4944C85B85A6" |
|
}, |
|
{ |
|
"defKey": "Int", |
|
"defName": "整数", |
|
"applyFor": "1D764C4A-6F9F-421E-B11A-6F3E23B51811", |
|
"len": "", |
|
"scale": "", |
|
"uiHint": "", |
|
"id": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E" |
|
}, |
|
{ |
|
"defKey": "Double", |
|
"defName": "小数", |
|
"applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E", |
|
"len": 24, |
|
"scale": 6, |
|
"uiHint": "", |
|
"id": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4" |
|
}, |
|
{ |
|
"defKey": "Money", |
|
"defName": "金额", |
|
"applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E", |
|
"len": 24, |
|
"scale": 6, |
|
"uiHint": "", |
|
"id": "C3B1681B-99F9-4818-9E80-DE1652A51D85" |
|
}, |
|
{ |
|
"defKey": "DateTime", |
|
"defName": "日期时间", |
|
"applyFor": "89D69E81-EA34-42EE-9FA2-93B8BD27E098", |
|
"len": "", |
|
"scale": "", |
|
"uiHint": "", |
|
"id": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC" |
|
}, |
|
{ |
|
"defKey": "YesNo", |
|
"defName": "是否", |
|
"applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
|
"len": "1", |
|
"scale": "", |
|
"uiHint": "", |
|
"id": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF" |
|
}, |
|
{ |
|
"defKey": "Dict", |
|
"defName": "数据字典", |
|
"applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
|
"len": "32", |
|
"scale": "", |
|
"uiHint": "", |
|
"id": "73FD2BAD-2358-4336-B96D-45DC897BD792" |
|
}, |
|
{ |
|
"defKey": "DescText", |
|
"defName": "描述文本", |
|
"applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64", |
|
"len": "900", |
|
"scale": "", |
|
"uiHint": "", |
|
"id": "3E948CEC-3070-472C-AF92-F3CA11EC9D15" |
|
} |
|
], |
|
"diagrams": [ |
|
{ |
|
"defKey": "mainline_relainsh", |
|
"defName": "", |
|
"relationType": "field", |
|
"canvasData": { |
|
"cells": [ |
|
{ |
|
"id": "dc387f5b-aa0b-42bc-a0d2-5b74b1dc20fb", |
|
"shape": "table", |
|
"position": { |
|
"x": 330, |
|
"y": -31.5 |
|
}, |
|
"count": 0, |
|
"originKey": "6009F09E-816E-453D-B2CA-D9B587FD98B2", |
|
"fillColor": "#ce4bce" |
|
}, |
|
{ |
|
"id": "10f1b895-2617-42c1-959b-24100c9a6662", |
|
"shape": "table", |
|
"position": { |
|
"x": -50, |
|
"y": -31.5 |
|
}, |
|
"count": 0, |
|
"originKey": "494376EE-6843-4699-B9C6-E5FD7561148D" |
|
} |
|
] |
|
}, |
|
"id": "0D3438EE-4217-4148-A1A8-94796B5C7891", |
|
"comment": "" |
|
} |
|
], |
|
"standardFields": [ |
|
{ |
|
"defKey": "personInfo", |
|
"defName": "个人基本信息要素", |
|
"fields": [ |
|
{ |
|
"defKey": "ID_CARD_NO", |
|
"defName": "身份证号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "60", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "A64A91C8-A41F-4113-92FB-7563D7EF054D" |
|
}, |
|
{ |
|
"defKey": "MOBILE_PHONE", |
|
"defName": "手机号", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "60", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "479DA2AB-1974-411A-A81E-92FB939E75EB" |
|
}, |
|
{ |
|
"defKey": "GENDER", |
|
"defName": "性别", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "32", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
|
"refDict": "BF9E20E0-80D3-486D-BD58-5FADCF3E4A1D", |
|
"uiHint": "", |
|
"id": "48473E29-6594-4912-AADE-C8AB44FCA3E9" |
|
}, |
|
{ |
|
"defKey": "BIRTH", |
|
"defName": "出生日期", |
|
"comment": "", |
|
"type": "DATETIME", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "2BD3D2EE-2411-49A6-983D-84B81057312F" |
|
}, |
|
{ |
|
"defKey": "AVATAR", |
|
"defName": "头像", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "60", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "FDD67CEE-4B52-4BD1-A1A3-9C5EBC6037E6" |
|
}, |
|
{ |
|
"defKey": "HEIGHT", |
|
"defName": "身高", |
|
"comment": "", |
|
"type": "INT", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "CAAA0E79-41A1-4758-B481-D171168C4D68" |
|
}, |
|
{ |
|
"defKey": "WEIGHT", |
|
"defName": "体重", |
|
"comment": "", |
|
"type": "INT", |
|
"len": "", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "575482CE-64A6-4CB9-99DC-8E126D190AAA" |
|
}, |
|
{ |
|
"defKey": "NATION", |
|
"defName": "名族", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "32", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
|
"refDict": "115EDEFC-0323-410E-81AB-CCAB8879837A", |
|
"uiHint": "", |
|
"id": "15B0D75D-0B97-4985-A816-D0EAFA90446B" |
|
}, |
|
{ |
|
"defKey": "POLITICAL", |
|
"defName": "政治面貌", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "32", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
|
"refDict": "06EED564-BBA9-4747-8D73-AF809A330CB8", |
|
"uiHint": "", |
|
"id": "F458E86D-84D6-45A1-9DD3-51E6C8170D7F" |
|
}, |
|
{ |
|
"defKey": "MARITAL", |
|
"defName": "婚姻状况", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "32", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
|
"refDict": "EA1587B7-3954-437A-BFE0-FCB0453BCABA", |
|
"uiHint": "", |
|
"id": "7275E578-6893-4922-AC69-95B261BFBD61" |
|
}, |
|
{ |
|
"defKey": "DOMICILE_PLACE_PROVINCE", |
|
"defName": "籍贯(省)", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "60", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "F04BF130-3EC1-4E02-9DED-3214CA88E352" |
|
}, |
|
{ |
|
"defKey": "DOMICILE_PLACE_CITY", |
|
"defName": "籍贯(市)", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "32", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "73FD2BAD-2358-4336-B96D-45DC897BD792", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "B97F5BC2-33DE-4857-9DB8-ECFD02C9040C" |
|
}, |
|
{ |
|
"defKey": "DOMICILE_PLACE_ADDRESS", |
|
"defName": "户籍地址", |
|
"comment": "", |
|
"type": "VARCHAR", |
|
"len": "60", |
|
"scale": "", |
|
"primaryKey": false, |
|
"notNull": false, |
|
"autoIncrement": false, |
|
"defaultValue": "", |
|
"hideInGraph": false, |
|
"domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573", |
|
"refDict": "", |
|
"uiHint": "", |
|
"id": "812ADF1D-8C03-40CA-B030-E539838FB889" |
|
} |
|
], |
|
"id": "F30202B9-4B5D-4CE7-87CE-B3890C84D3F2" |
|
} |
|
], |
|
"dbConn": [] |
|
} |