| | |
| | | return; |
| | | } |
| | | // 不需要登录 无需权限校验 |
| | | if (new RegExp(`^${adminUrl}?.*/basedeviceinfo/`).test(url)) { |
| | | if (new RegExp(`^${adminUrl}?.*/business/devicegroup/`).test(url)) { |
| | | await next(); |
| | | return; |
| | | } |
| | |
| | | import * as fs from 'fs'; |
| | | |
| | | /** |
| | | * 不需要登录的后台接口 |
| | | */ |
| | | * 不需要登录的后台接口 |
| | | */ |
| | | @Provide() |
| | | export class CreateEntityUtil { |
| | | |
| | | createEntity(table) { |
| | | console.log('生成综合实体类任务开始执行'); |
| | | let EntityName = this.firstToUpper3(table.entityName) |
| | | let columnstr = []; |
| | | columnstr.push(`import { EntityModel } from '@midwayjs/orm';\n`) |
| | | columnstr.push(`import { BaseEntity } from '@cool-midway/core';\n`) |
| | | columnstr.push(`import { Column, Double } from 'typeorm';\n`) |
| | | columnstr.push(`/** |
| | | createEntity(table) { |
| | | console.log('生成综合实体类任务开始执行'); |
| | | let EntityName = this.firstToUpper3(table.entityName) |
| | | let columnstr = []; |
| | | columnstr.push(`import { EntityModel } from '@midwayjs/orm';\n`) |
| | | columnstr.push(`import { BaseEntity } from '@cool-midway/core';\n`) |
| | | columnstr.push(`import { Column, Double } from 'typeorm';\n`) |
| | | columnstr.push(`/** |
| | | * ${table.comment} |
| | | */\n`) |
| | | columnstr.push(`@EntityModel('${table.name}') \n`) |
| | | columnstr.push(`export class ${EntityName} extends BaseEntity { \n`) |
| | | table.tbcolumn.forEach(item => { |
| | | if (item?.table_name == table.name) { |
| | | let fieldType = 'string'; //nullable length primary enum enumName width |
| | | let matResult = item.column_type.match(/\(([^)]*)\)/); |
| | | let length = 0; |
| | | if (matResult) { |
| | | length = matResult[1]; |
| | | } |
| | | switch (item.data_type) { |
| | | case 'varchar': |
| | | fieldType = 'string' |
| | | item.column_default = !isNaN(item.column_default) ? item.column_default : ''; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:'${item.column_default}', length:${length}})\n`) |
| | | break; |
| | | case 'text': |
| | | fieldType = 'string' |
| | | item.column_default = !isNaN(item.column_default) ? item.column_default : ''; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:'${item.column_default}'})\n`) |
| | | break; |
| | | case 'int': |
| | | fieldType = 'number' |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}, width:${length}})\n`) |
| | | break; |
| | | case 'bigint': |
| | | fieldType = 'number' |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}}, width:${length})\n`) |
| | | break; |
| | | case 'tinyint': |
| | | fieldType = 'number' |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}, width:${length}})\n`) |
| | | break; |
| | | case 'datetime': |
| | | fieldType = 'Date' |
| | | item.column_default = item.column_default != 'null' ? item.column_default : `${new Date()}`; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}'})\n`) |
| | | break; |
| | | case 'double': |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | fieldType = 'Double' |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}})\n`) |
| | | break; |
| | | case 'decimal': |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | fieldType = 'Double' |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}})\n`) |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | columnstr.push(`@EntityModel('${table.name}') \n`) |
| | | columnstr.push(`export class ${EntityName} extends BaseEntity { \n`) |
| | | table.tbcolumn.forEach(item => { |
| | | if (item?.table_name == table.name) { |
| | | let fieldType = 'string'; //nullable length primary enum enumName width |
| | | let matResult = item.column_type.match(/\(([^)]*)\)/); |
| | | let length = 0; |
| | | if (matResult) { |
| | | length = matResult[1]; |
| | | } |
| | | switch (item.data_type) { |
| | | case 'varchar': |
| | | fieldType = 'string' |
| | | item.column_default = !isNaN(item.column_default) ? item.column_default : ''; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:'${item.column_default}', length:${length}})\n`) |
| | | break; |
| | | case 'text': |
| | | fieldType = 'string' |
| | | item.column_default = !isNaN(item.column_default) ? item.column_default : ''; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:'${item.column_default}'})\n`) |
| | | break; |
| | | case 'int': |
| | | fieldType = 'number' |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}, width:${length}})\n`) |
| | | break; |
| | | case 'bigint': |
| | | fieldType = 'number' |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}}, width:${length})\n`) |
| | | break; |
| | | case 'tinyint': |
| | | fieldType = 'number' |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}, width:${length}})\n`) |
| | | break; |
| | | case 'datetime': |
| | | fieldType = 'Date' |
| | | item.column_default = item.column_default != 'null' ? item.column_default : `${new Date()}`; |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}'})\n`) |
| | | break; |
| | | case 'double': |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | fieldType = 'Double' |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}})\n`) |
| | | break; |
| | | case 'decimal': |
| | | item.column_default = !isNaN(Number(item.column_default)) ? item.column_default : 0; |
| | | fieldType = 'Double' |
| | | columnstr.push(`@Column({ comment:'${item.column_comment}', type:'${item.data_type}', default:${item.column_default}})\n`) |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | |
| | | // let fieldType = item.data_type=='varchar' ? 'string' : item.data_type=='int' ? 'number' : item.data_type=='bigint' ? 'number' : item.data_type=='tinyint' ? 'number' |
| | | columnstr.push(`${item.column_name}: ${fieldType};\n`) |
| | | columnstr.push(`\n`) |
| | | } |
| | | // let fieldType = item.data_type=='varchar' ? 'string' : item.data_type=='int' ? 'number' : item.data_type=='bigint' ? 'number' : item.data_type=='tinyint' ? 'number' |
| | | columnstr.push(`${item.column_name}: ${fieldType};\n`) |
| | | columnstr.push(`\n`) |
| | | } |
| | | |
| | | }); |
| | | columnstr.push(`}`) |
| | | if (fs.existsSync(`../../business/entity/${table.entityName}.ts`)) { |
| | | console.log(' file is exists') |
| | | } else { |
| | | console.log(' file is not exists') |
| | | // API |
| | | fs.writeFile(`./src/app/modules/business/entity/${table.entityName}.ts`, |
| | | columnstr.join(''), (error) => { |
| | | // 创建失败 |
| | | if (error) { |
| | | console.log(`创建失败:${error}`) |
| | | } |
| | | // 创建成功 |
| | | console.log(`创建成功!`) |
| | | }) |
| | | } |
| | | console.log(`--------------------生成实体类结束${table.entityName}Service--------------------`); |
| | | } |
| | | }); |
| | | columnstr.push(`}`) |
| | | if (fs.existsSync(`../../business/entity/${table.entityName}.ts`)) { |
| | | console.log(' file is exists') |
| | | } else { |
| | | console.log(' file is not exists') |
| | | // API |
| | | fs.writeFile(`./src/app/modules/business/entity/${table.entityName}.ts`, |
| | | columnstr.join(''), (error) => { |
| | | // 创建失败 |
| | | if (error) { |
| | | console.log(`创建失败:${error}`) |
| | | } |
| | | // 创建成功 |
| | | console.log(`创建成功!`) |
| | | }) |
| | | } |
| | | console.log(`--------------------生成实体类结束${table.entityName}Service--------------------`); |
| | | } |
| | | |
| | | |
| | | createService(table) { |
| | | console.log('生成服务类开始执行'); |
| | | let EntityName = this.firstToUpper3(table.entityName) |
| | | let columnstr = []; |
| | | columnstr.push(`import { Provide } from '@midwayjs/decorator';\n`) |
| | | columnstr.push(`import { BaseService } from '@cool-midway/core';\n`) |
| | | columnstr.push(`import { InjectEntityModel } from '@midwayjs/orm';\n`) |
| | | columnstr.push(`import { Repository } from 'typeorm';\n`) |
| | | columnstr.push(`import { DataService } from '../../base/service/dataapi/dataapi';\n`) |
| | | columnstr.push(`import { ${EntityName} } from '../entity/${table.entityName}';\n`) |
| | | columnstr.push(`/** |
| | | createService(table) { |
| | | console.log('生成服务类开始执行'); |
| | | let EntityName = this.firstToUpper3(table.entityName) |
| | | let columnstr = []; |
| | | columnstr.push(`import { Provide } from '@midwayjs/decorator';\n`) |
| | | columnstr.push(`import { BaseService } from '@cool-midway/core';\n`) |
| | | columnstr.push(`import { InjectEntityModel } from '@midwayjs/orm';\n`) |
| | | columnstr.push(`import { Repository } from 'typeorm';\n`) |
| | | columnstr.push(`import { DataService } from '../../base/service/dataapi/dataapi';\n`) |
| | | columnstr.push(`import { ${EntityName} } from '../entity/${table.entityName}';\n`) |
| | | columnstr.push(`/** |
| | | * ${table.comment} |
| | | */\n`) |
| | | columnstr.push(`@Provide()\n`) |
| | | columnstr.push(`export class ${EntityName}Service extends DataService { \n`) |
| | | columnstr.push(` @InjectEntityModel(${EntityName}) \n`) |
| | | columnstr.push(` ${table.entityName}: Repository<${EntityName}> \n`); |
| | | columnstr.push(`}`) |
| | | if (fs.existsSync(`../../business/service/${table.entityName}.ts`)) { |
| | | console.log(' file is exists') |
| | | } else { |
| | | console.log(' file is not exists') |
| | | // API |
| | | fs.writeFile(`./src/app/modules/business/service/${table.entityName}.ts`, |
| | | columnstr.join(''), (error) => { |
| | | // 创建失败 |
| | | if (error) { |
| | | console.log(`创建失败:${error}`) |
| | | } |
| | | // 创建成功 |
| | | console.log(`创建成功!`) |
| | | }) |
| | | } |
| | | console.log(`--------------------生成服务类结束${EntityName}Service--------------------`); |
| | | } |
| | | columnstr.push(`@Provide()\n`) |
| | | columnstr.push(`export class ${EntityName}Service extends DataService { \n`) |
| | | columnstr.push(` @InjectEntityModel(${EntityName}) \n`) |
| | | columnstr.push(` ${table.entityName}: Repository<${EntityName}> \n`); |
| | | columnstr.push(`}`) |
| | | if (fs.existsSync(`../../business/service/${table.entityName}.ts`)) { |
| | | console.log(' file is exists') |
| | | } else { |
| | | console.log(' file is not exists') |
| | | // API |
| | | fs.writeFile(`./src/app/modules/business/service/${table.entityName}.ts`, |
| | | columnstr.join(''), (error) => { |
| | | // 创建失败 |
| | | if (error) { |
| | | console.log(`创建失败:${error}`) |
| | | } |
| | | // 创建成功 |
| | | console.log(`创建成功!`) |
| | | }) |
| | | } |
| | | console.log(`--------------------生成服务类结束${EntityName}Service--------------------`); |
| | | } |
| | | |
| | | createController(table) { |
| | | console.log('生成控制类开始执行'); |
| | | let EntityName = this.firstToUpper3(table.entityName) |
| | | let columnstr = []; |
| | | columnstr.push(`import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';\n`) |
| | | columnstr.push(`import { CoolController, BaseController } from '@cool-midway/core';\n`) |
| | | columnstr.push(`import { ${EntityName} } from '../../entity/${table.entityName}';\n`) |
| | | columnstr.push(`import { ${EntityName}Service } from '../../service/${table.entityName}';\n`) |
| | | columnstr.push(`import { DataController } from '../../../base/controller/dataController';\n`) |
| | | columnstr.push(`/** |
| | | createController(table) { |
| | | console.log('生成控制类开始执行'); |
| | | let EntityName = this.firstToUpper3(table.entityName) |
| | | let columnstr = []; |
| | | columnstr.push(`import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';\n`) |
| | | columnstr.push(`import { CoolController, BaseController } from '@cool-midway/core';\n`) |
| | | columnstr.push(`import { ${EntityName} } from '../../entity/${table.entityName}';\n`) |
| | | columnstr.push(`import { ${EntityName}Service } from '../../service/${table.entityName}';\n`) |
| | | columnstr.push(`import { DataController } from '../../../base/controller/dataController';\n`) |
| | | columnstr.push(`/** |
| | | * ${table.comment} |
| | | */\n`) |
| | | columnstr.push(`@Provide()\n`) |
| | | columnstr.push(`@CoolController({ \n`) |
| | | columnstr.push(` api: ['add', 'delete', 'update', 'list'],\n`) |
| | | columnstr.push(` entity: ${EntityName},\n`) |
| | | columnstr.push(` service: ${EntityName}Service,\n`) |
| | | columnstr.push(`})\n`) |
| | | columnstr.push(`export class ${EntityName}Controller extends DataController {\n`) |
| | | columnstr.push(` @Inject()\n`) |
| | | columnstr.push(` ${table.entityName}Service: ${EntityName}Service;\n`) |
| | | columnstr.push(` \n`) |
| | | columnstr.push(` /**\n * 获得数据\n */\n`) |
| | | columnstr.push(` @Get('/getdata', { summary: '数据接口' })\n`) |
| | | columnstr.push(` async getData(@Query(ALL) params: any) {\n`) |
| | | columnstr.push(` return this.ok(await this.dataService.getData(params));\n`) |
| | | columnstr.push(` }\n`) |
| | | columnstr.push(` /**\n * 获得数据\n */\n`) |
| | | columnstr.push(` @Get('/postdata', { summary: '数据接口' })\n`) |
| | | columnstr.push(` async postData(@Query(ALL) params: any) {\n`) |
| | | columnstr.push(` return this.ok(await this.dataService.getData(params));\n`) |
| | | columnstr.push(` }\n`) |
| | | columnstr.push(`}`) |
| | | if (fs.existsSync(`../../business/controller/admin/${table.entityName}.ts`)) { |
| | | console.log(' file is exists') |
| | | } else { |
| | | console.log(' file is not exists') |
| | | // API |
| | | fs.writeFile(`./src/app/modules/business/controller/admin/${table.entityName}.ts`, |
| | | columnstr.join(''), (error) => { |
| | | // 创建失败 |
| | | if (error) { |
| | | console.log(`创建失败:${error}`) |
| | | } |
| | | // 创建成功 |
| | | console.log(`创建成功!`) |
| | | }) |
| | | } |
| | | } |
| | | columnstr.push(`@Provide()\n`) |
| | | columnstr.push(`@CoolController({ \n`) |
| | | columnstr.push(` api: ['add', 'delete', 'update', 'list','page','info'],\n`) |
| | | columnstr.push(` entity: ${EntityName},\n`) |
| | | columnstr.push(` service: ${EntityName}Service,\n`) |
| | | columnstr.push(`})\n`) |
| | | columnstr.push(`export class ${EntityName}Controller extends DataController {\n`) |
| | | columnstr.push(` @Inject()\n`) |
| | | columnstr.push(` ${table.entityName}Service: ${EntityName}Service;\n`) |
| | | columnstr.push(` \n`) |
| | | columnstr.push(` /**\n * 获得数据\n */\n`) |
| | | columnstr.push(` @Get('/getdata', { summary: '数据接口' })\n`) |
| | | columnstr.push(` async getData(@Query(ALL) params: any) {\n`) |
| | | columnstr.push(` return this.ok(await this.dataService.getData(params));\n`) |
| | | columnstr.push(` }\n`) |
| | | columnstr.push(` /**\n * 获得数据\n */\n`) |
| | | columnstr.push(` @Get('/postdata', { summary: '数据接口' })\n`) |
| | | columnstr.push(` async postData(@Query(ALL) params: any) {\n`) |
| | | columnstr.push(` return this.ok(await this.dataService.getData(params));\n`) |
| | | columnstr.push(` }\n`) |
| | | columnstr.push(`}`) |
| | | if (fs.existsSync(`../../business/controller/admin/${table.entityName}.ts`)) { |
| | | console.log(' file is exists') |
| | | } else { |
| | | console.log(' file is not exists') |
| | | // API |
| | | fs.writeFile(`./src/app/modules/business/controller/admin/${table.entityName}.ts`, |
| | | columnstr.join(''), (error) => { |
| | | // 创建失败 |
| | | if (error) { |
| | | console.log(`创建失败:${error}`) |
| | | } |
| | | // 创建成功 |
| | | console.log(`创建成功!`) |
| | | }) |
| | | } |
| | | } |
| | | |
| | | |
| | | firstToUpper3(str){ |
| | | return str.toLowerCase().replace(/( |^)[a-z]/g,(L)=>L.toUpperCase()); |
| | | } |
| | | firstToUpper3(str) { |
| | | return str.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase()); |
| | | } |
| | | |
| | | } |
| | |
| | | import { BasedeviceinfoService } from '../../service/basedeviceinfo'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备信息 |
| | | */ |
| | | * 设备信息 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Basedeviceinfo, |
| | | service: BasedeviceinfoService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Basedeviceinfo, |
| | | service: BasedeviceinfoService, |
| | | }) |
| | | export class BasedeviceinfoController extends DataController { |
| | | @Inject() |
| | | basedeviceinfoService: BasedeviceinfoService; |
| | | |
| | | @Inject() |
| | | basedeviceinfoService: BasedeviceinfoService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { BasedeviceparamsService } from '../../service/basedeviceparams'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备参数 |
| | | */ |
| | | * 设备参数 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Basedeviceparams, |
| | | service: BasedeviceparamsService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Basedeviceparams, |
| | | service: BasedeviceparamsService, |
| | | }) |
| | | export class BasedeviceparamsController extends DataController { |
| | | @Inject() |
| | | basedeviceparamsService: BasedeviceparamsService; |
| | | |
| | | @Inject() |
| | | basedeviceparamsService: BasedeviceparamsService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { BasedevicesectionService } from '../../service/basedevicesection'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备组件 |
| | | */ |
| | | * 设备组件 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Basedevicesection, |
| | | service: BasedevicesectionService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Basedevicesection, |
| | | service: BasedevicesectionService, |
| | | }) |
| | | export class BasedevicesectionController extends DataController { |
| | | @Inject() |
| | | basedevicesectionService: BasedevicesectionService; |
| | | |
| | | @Inject() |
| | | basedevicesectionService: BasedevicesectionService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { BasedevicestatusService } from '../../service/basedevicestatus'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备状态 |
| | | */ |
| | | * 设备状态 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Basedevicestatus, |
| | | service: BasedevicestatusService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Basedevicestatus, |
| | | service: BasedevicestatusService, |
| | | }) |
| | | export class BasedevicestatusController extends DataController { |
| | | @Inject() |
| | | basedevicestatusService: BasedevicestatusService; |
| | | |
| | | @Inject() |
| | | basedevicestatusService: BasedevicestatusService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { ColletdataService } from '../../service/colletdata'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Colletdata, |
| | | service: ColletdataService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Colletdata, |
| | | service: ColletdataService, |
| | | }) |
| | | export class ColletdataController extends DataController { |
| | | @Inject() |
| | | colletdataService: ColletdataService; |
| | | |
| | | @Inject() |
| | | colletdataService: ColletdataService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { ColletmetaService } from '../../service/colletmeta'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Colletmeta, |
| | | service: ColletmetaService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Colletmeta, |
| | | service: ColletmetaService, |
| | | }) |
| | | export class ColletmetaController extends DataController { |
| | | @Inject() |
| | | colletmetaService: ColletmetaService; |
| | | |
| | | @Inject() |
| | | colletmetaService: ColletmetaService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { ComconfigService } from '../../service/comconfig'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Comconfig, |
| | | service: ComconfigService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Comconfig, |
| | | service: ComconfigService, |
| | | }) |
| | | export class ComconfigController extends DataController { |
| | | @Inject() |
| | | comconfigService: ComconfigService; |
| | | |
| | | @Inject() |
| | | comconfigService: ComconfigService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { DeviceattachmentService } from '../../service/deviceattachment'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备相关的附件 |
| | | */ |
| | | * 设备相关的附件 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Deviceattachment, |
| | | service: DeviceattachmentService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Deviceattachment, |
| | | service: DeviceattachmentService, |
| | | }) |
| | | export class DeviceattachmentController extends DataController { |
| | | @Inject() |
| | | deviceattachmentService: DeviceattachmentService; |
| | | |
| | | @Inject() |
| | | deviceattachmentService: DeviceattachmentService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | return this.ok(await this.devicegroupService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | @Post('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | return this.ok(await this.devicegroupService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { DeviceopreraterecordService } from '../../service/deviceopreraterecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备运维记录 |
| | | */ |
| | | * 设备运维记录 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Deviceopreraterecord, |
| | | service: DeviceopreraterecordService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Deviceopreraterecord, |
| | | service: DeviceopreraterecordService, |
| | | }) |
| | | export class DeviceopreraterecordController extends DataController { |
| | | @Inject() |
| | | deviceopreraterecordService: DeviceopreraterecordService; |
| | | |
| | | @Inject() |
| | | deviceopreraterecordService: DeviceopreraterecordService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { DoutrubineService } from '../../service/doutrubine'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 斗轮机信息 |
| | | */ |
| | | * 斗轮机信息 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Doutrubine, |
| | | service: DoutrubineService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Doutrubine, |
| | | service: DoutrubineService, |
| | | }) |
| | | export class DoutrubineController extends DataController { |
| | | @Inject() |
| | | doutrubineService: DoutrubineService; |
| | | |
| | | @Inject() |
| | | doutrubineService: DoutrubineService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { ExecrecordService } from '../../service/execrecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 任务执行记录 |
| | | */ |
| | | * 任务执行记录 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Execrecord, |
| | | service: ExecrecordService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Execrecord, |
| | | service: ExecrecordService, |
| | | }) |
| | | export class ExecrecordController extends DataController { |
| | | @Inject() |
| | | execrecordService: ExecrecordService; |
| | | |
| | | @Inject() |
| | | execrecordService: ExecrecordService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { InterfacelistService } from '../../service/interfacelist'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 接口清单 |
| | | */ |
| | | * 接口清单 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Interfacelist, |
| | | service: InterfacelistService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Interfacelist, |
| | | service: InterfacelistService, |
| | | }) |
| | | export class InterfacelistController extends DataController { |
| | | @Inject() |
| | | interfacelistService: InterfacelistService; |
| | | |
| | | @Inject() |
| | | interfacelistService: InterfacelistService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { InterfacerecordService } from '../../service/interfacerecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 组合模型 |
| | | */ |
| | | * 组合模型 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Interfacerecord, |
| | | service: InterfacerecordService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Interfacerecord, |
| | | service: InterfacerecordService, |
| | | }) |
| | | export class InterfacerecordController extends DataController { |
| | | @Inject() |
| | | interfacerecordService: InterfacerecordService; |
| | | |
| | | @Inject() |
| | | interfacerecordService: InterfacerecordService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { MessagerecordService } from '../../service/messagerecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 任务消息记录 |
| | | */ |
| | | * 任务消息记录 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Messagerecord, |
| | | service: MessagerecordService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Messagerecord, |
| | | service: MessagerecordService, |
| | | }) |
| | | export class MessagerecordController extends DataController { |
| | | @Inject() |
| | | messagerecordService: MessagerecordService; |
| | | |
| | | @Inject() |
| | | messagerecordService: MessagerecordService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { MetadataService } from '../../service/metadata'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测采集原数据 |
| | | */ |
| | | * 监测采集原数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Metadata, |
| | | service: MetadataService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Metadata, |
| | | service: MetadataService, |
| | | }) |
| | | export class MetadataController extends DataController { |
| | | @Inject() |
| | | metadataService: MetadataService; |
| | | |
| | | @Inject() |
| | | metadataService: MetadataService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { ModelcombinationService } from '../../service/modelcombination'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 组合模型 |
| | | */ |
| | | * 组合模型 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Modelcombination, |
| | | service: ModelcombinationService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Modelcombination, |
| | | service: ModelcombinationService, |
| | | }) |
| | | export class ModelcombinationController extends DataController { |
| | | @Inject() |
| | | modelcombinationService: ModelcombinationService; |
| | | |
| | | @Inject() |
| | | modelcombinationService: ModelcombinationService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { ModelstaticService } from '../../service/modelstatic'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 静态模型数据 |
| | | */ |
| | | * 静态模型数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Modelstatic, |
| | | service: ModelstaticService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Modelstatic, |
| | | service: ModelstaticService, |
| | | }) |
| | | export class ModelstaticController extends DataController { |
| | | @Inject() |
| | | modelstaticService: ModelstaticService; |
| | | |
| | | @Inject() |
| | | modelstaticService: ModelstaticService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { PeriodicsettingService } from '../../service/periodicsetting'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 分组任务参数设置 |
| | | */ |
| | | * 分组任务参数设置 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Periodicsetting, |
| | | service: PeriodicsettingService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Periodicsetting, |
| | | service: PeriodicsettingService, |
| | | }) |
| | | export class PeriodicsettingController extends DataController { |
| | | @Inject() |
| | | periodicsettingService: PeriodicsettingService; |
| | | |
| | | @Inject() |
| | | periodicsettingService: PeriodicsettingService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { PlaninventoryService } from '../../service/planinventory'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 盘煤计划 |
| | | */ |
| | | * 盘煤计划 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Planinventory, |
| | | service: PlaninventoryService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Planinventory, |
| | | service: PlaninventoryService, |
| | | }) |
| | | export class PlaninventoryController extends DataController { |
| | | @Inject() |
| | | planinventoryService: PlaninventoryService; |
| | | |
| | | @Inject() |
| | | planinventoryService: PlaninventoryService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { PointcloudService } from '../../service/pointcloud'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Pointcloud, |
| | | service: PointcloudService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Pointcloud, |
| | | service: PointcloudService, |
| | | }) |
| | | export class PointcloudController extends DataController { |
| | | @Inject() |
| | | pointcloudService: PointcloudService; |
| | | |
| | | @Inject() |
| | | pointcloudService: PointcloudService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { PointmodelService } from '../../service/pointmodel'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 点云模型 |
| | | */ |
| | | * 点云模型 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Pointmodel, |
| | | service: PointmodelService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Pointmodel, |
| | | service: PointmodelService, |
| | | }) |
| | | export class PointmodelController extends DataController { |
| | | @Inject() |
| | | pointmodelService: PointmodelService; |
| | | |
| | | @Inject() |
| | | pointmodelService: PointmodelService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { StatdataService } from '../../service/statdata'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测统计 |
| | | */ |
| | | * 监测统计 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Statdata, |
| | | service: StatdataService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Statdata, |
| | | service: StatdataService, |
| | | }) |
| | | export class StatdataController extends DataController { |
| | | @Inject() |
| | | statdataService: StatdataService; |
| | | |
| | | @Inject() |
| | | statdataService: StatdataService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { TaskimmediatelyService } from '../../service/taskimmediately'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 即时任务记录 |
| | | */ |
| | | * 即时任务记录 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Taskimmediately, |
| | | service: TaskimmediatelyService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Taskimmediately, |
| | | service: TaskimmediatelyService, |
| | | }) |
| | | export class TaskimmediatelyController extends DataController { |
| | | @Inject() |
| | | taskimmediatelyService: TaskimmediatelyService; |
| | | |
| | | @Inject() |
| | | taskimmediatelyService: TaskimmediatelyService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { TaskmonitorService } from '../../service/taskmonitor'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测任务 |
| | | */ |
| | | * 监测任务 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Taskmonitor, |
| | | service: TaskmonitorService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Taskmonitor, |
| | | service: TaskmonitorService, |
| | | }) |
| | | export class TaskmonitorController extends DataController { |
| | | @Inject() |
| | | taskmonitorService: TaskmonitorService; |
| | | |
| | | @Inject() |
| | | taskmonitorService: TaskmonitorService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { TrubinelocationService } from '../../service/trubinelocation'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 斗轮机信息 |
| | | */ |
| | | * 斗轮机信息 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Trubinelocation, |
| | | service: TrubinelocationService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Trubinelocation, |
| | | service: TrubinelocationService, |
| | | }) |
| | | export class TrubinelocationController extends DataController { |
| | | @Inject() |
| | | trubinelocationService: TrubinelocationService; |
| | | |
| | | @Inject() |
| | | trubinelocationService: TrubinelocationService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | import { TuserService } from '../../service/tuser'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * |
| | | */ |
| | | * |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page', 'info'], |
| | | entity: Tuser, |
| | | service: TuserService, |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list','page','info'], |
| | | entity: Tuser, |
| | | service: TuserService, |
| | | }) |
| | | export class TuserController extends DataController { |
| | | @Inject() |
| | | tuserService: TuserService; |
| | | |
| | | @Inject() |
| | | tuserService: TuserService; |
| | | |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/getdata', { summary: '数据接口' }) |
| | | async getData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | /** |
| | | * 获得数据 |
| | | */ |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | @Get('/postdata', { summary: '数据接口' }) |
| | | async postData(@Query(ALL) params: any) { |
| | | return this.ok(await this.dataService.getData(params)); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @EntityModel('t_base_deviceinfo') |
| | | export class Basedeviceinfo extends BaseEntity { |
| | | @Column({ comment:'{name:"设备高度",format:0.000001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备高度",format:0.000001,tips:"精确到小数点后6位"}', type:'varchar', default:'', length:50}) |
| | | altitude: string; |
| | | |
| | | @Column({ comment:'{name:"账号",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"账号",format:0.001,tips:""}', type:'varchar', default:'', length:50}) |
| | | device_account: string; |
| | | |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'{name:"端口",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"端口",format:0.001,tips:""}', type:'varchar', default:'', length:50}) |
| | | device_port: string; |
| | | |
| | | @Column({ comment:'{name:"密码",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"密码",format:0.001,tips:""}', type:'varchar', default:'', length:50}) |
| | | device_psw: string; |
| | | |
| | | @Column({ comment:'{name:"设备精度",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备精度",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'', length:50}) |
| | | dimension: string; |
| | | |
| | | @Column({ comment:'{name:"上倾角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"上倾角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'', length:50}) |
| | | heading_angle: string; |
| | | |
| | | @Column({ comment:'{name:"IP地址",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"IP地址",format:0.001,tips:""}', type:'varchar', default:'', length:50}) |
| | | ipaddres: string; |
| | | |
| | | @Column({ comment:'{name:"纬度",format:0.000001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"纬度",format:0.000001,tips:"精确到小数点后6位"}', type:'varchar', default:'', length:50}) |
| | | latitude: string; |
| | | |
| | | @Column({ comment:'{name:"安装位置",format:"**省**市**区**路**号**楼**方位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"安装位置",format:"**省**市**区**路**号**楼**方位"}', type:'varchar', default:'', length:50}) |
| | | location: string; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'{name:"经度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"经度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'', length:50}) |
| | | longitude: string; |
| | | |
| | | @Column({ comment:'{name:"设备名称"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备名称"}', type:'varchar', default:'', length:50}) |
| | | name: string; |
| | | |
| | | @Column({ comment:'{name:"运维负责人",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"运维负责人",format:0.001,tips:""}', type:'varchar', default:'', length:50}) |
| | | opertator: string; |
| | | |
| | | @Column({ comment:'{name:"俯仰角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"俯仰角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'', length:50}) |
| | | petch_angle: string; |
| | | |
| | | @Column({ comment:'{name:"航向角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"航向角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'', length:50}) |
| | | precision: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"横滚角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"横滚角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'', length:50}) |
| | | roll_angle: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_base_deviceparams') |
| | | export class Basedeviceparams extends BaseEntity { |
| | | @Column({ comment:'{name:"配置人"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"配置人"}', type:'varchar', default:'', length:50}) |
| | | configurator: string; |
| | | |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'{name:"key"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"key"}', type:'varchar', default:'', length:50}) |
| | | param_key: string; |
| | | |
| | | @Column({ comment:'{name:"参数类型",dict:{"0":"系统参数","1":"水平角度","2":"垂直角度"}}', type:'int', default:null, width:0}) |
| | | param_type: number; |
| | | |
| | | @Column({ comment:'{name:"参数值"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"参数值"}', type:'varchar', default:'', length:50}) |
| | | param_value: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_base_devicesection') |
| | | export class Basedevicesection extends BaseEntity { |
| | | @Column({ comment:'{name:"配置人"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"配置人"}', type:'varchar', default:'', length:50}) |
| | | configurator: string; |
| | | |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"组件"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"组件"}', type:'varchar', default:'', length:50}) |
| | | section_name: string; |
| | | |
| | | @Column({ comment:'{name:"顺序"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"顺序"}', type:'varchar', default:'', length:50}) |
| | | section_sort: string; |
| | | |
| | | @Column({ comment:'{name:"组件类型",dict:{"1":"工控机","2":"网卡","3":"可见光探头","4":"毫米波雷达"}}', type:'int', default:null, width:0}) |
| | |
| | | @Column({ comment:'{name:"类别",dict:{"1":"心跳", "2":"告警"}}', type:'int', default:null, width:0}) |
| | | alarm_type: number; |
| | | |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"上报内容",tips:"可以是json格式"}', type:'varchar', default:'null', length:200}) |
| | | @Column({ comment:'{name:"上报内容",tips:"可以是json格式"}', type:'varchar', default:'', length:200}) |
| | | report_content: string; |
| | | |
| | | @Column({ comment:'{name:"上报时间"}', type:'datetime'}) |
| | |
| | | */ |
| | | @EntityModel('t_monitor_collet_data') |
| | | export class Colletdata extends BaseEntity { |
| | | @Column({ comment:'{name:"数据内容"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据内容"}', type:'varchar', default:'', length:50}) |
| | | data_content: string; |
| | | |
| | | @Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'', length:50}) |
| | | data_path: string; |
| | | |
| | | @Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0}) |
| | | is_periodic: number; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | @Column({ comment:'{name:""}', type:'int', default:null, width:0}) |
| | | meta_data_id: number; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | @Column({ comment:'{name:"模型ID"}', type:'int', default:null, width:0}) |
| | | model_id: number; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:""}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:""}', type:'varchar', default:'', length:50}) |
| | | sortby: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_base_device_attachment') |
| | | export class Deviceattachment extends BaseEntity { |
| | | @Column({ comment:'{name:"附件名称"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"附件名称"}', type:'varchar', default:'', length:50}) |
| | | attach_name: string; |
| | | |
| | | @Column({ comment:'{name:"顺序编号"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"顺序编号"}', type:'varchar', default:'', length:50}) |
| | | attach_sort: string; |
| | | |
| | | @Column({ comment:'{name:"附件类型", dict:{"1":"使用说明","2":"安装位置照片"}}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"附件类型", dict:{"1":"使用说明","2":"安装位置照片"}}', type:'varchar', default:'', length:50}) |
| | | attach_type: string; |
| | | |
| | | @Column({ comment:'{name:"附件访问路径"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"附件访问路径"}', type:'varchar', default:'', length:50}) |
| | | attach_url: string; |
| | | |
| | | @Column({ comment:'{name:"附件提供人"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"附件提供人"}', type:'varchar', default:'', length:50}) |
| | | configurator: string; |
| | | |
| | | @Column({ comment:'{name:"物理ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"物理ID"}', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_base_device_group') |
| | | export class Devicegroup extends BaseEntity { |
| | | @Column({ comment:'分组设置人员', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'分组设置人员', type:'varchar', default:'', length:255}) |
| | | configurator: string; |
| | | |
| | | @Column({ comment:'逻辑ID', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'逻辑ID', type:'varchar', default:'', length:255}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'备注', type:'varchar', default:'', length:255}) |
| | |
| | | */ |
| | | @EntityModel('t_base_device_opreraterecord') |
| | | export class Deviceopreraterecord extends BaseEntity { |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'{name:"运维内容"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"运维内容"}', type:'varchar', default:'', length:50}) |
| | | operate_content: string; |
| | | |
| | | @Column({ comment:'{name:"运维类型",dict:{"1":"巡检","2":"维修"}}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"运维类型",dict:{"1":"巡检","2":"维修"}}', type:'varchar', default:'', length:50}) |
| | | operate_type: string; |
| | | |
| | | @Column({ comment:'{name:"运维人员"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"运维人员"}', type:'varchar', default:'', length:50}) |
| | | operater: string; |
| | | |
| | | @Column({ comment:'{name:"文件路径"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"文件路径"}', type:'varchar', default:'', length:50}) |
| | | pic_url: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_base_dou_trubine') |
| | | export class Doutrubine extends BaseEntity { |
| | | @Column({ comment:'旋转直径', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'旋转直径', type:'varchar', default:'', length:255}) |
| | | diameter_wheel: string; |
| | | |
| | | @Column({ comment:'dou_wheel_volumn', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'dou_wheel_volumn', type:'varchar', default:'', length:255}) |
| | | dou_wheel_volumn: string; |
| | | |
| | | @Column({ comment:'max_reclaiming', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'max_reclaiming', type:'varchar', default:'', length:255}) |
| | | max_reclaiming: string; |
| | | |
| | | @Column({ comment:'煤堆2', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'煤堆2', type:'varchar', default:'', length:255}) |
| | | max_windrow: string; |
| | | |
| | | @Column({ comment:'petch_angle', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'petch_angle', type:'varchar', default:'', length:255}) |
| | | petch_angle: string; |
| | | |
| | | @Column({ comment:'旋转直径', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'旋转直径', type:'varchar', default:'', length:255}) |
| | | pie_height_down: string; |
| | | |
| | | @Column({ comment:'旋转直径', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'旋转直径', type:'varchar', default:'', length:255}) |
| | | pie_height_up: string; |
| | | |
| | | @Column({ comment:'rated_reclaiming', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'rated_reclaiming', type:'varchar', default:'', length:255}) |
| | | rated_reclaiming: string; |
| | | |
| | | @Column({ comment:'煤堆1', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'煤堆1', type:'varchar', default:'', length:255}) |
| | | rated_windrow: string; |
| | | |
| | | @Column({ comment:'备注', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'备注', type:'varchar', default:'', length:255}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'状态', type:'tinyint', default:1, width:0}) |
| | | status: number; |
| | | |
| | | @Column({ comment:'斗轮机名称', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'斗轮机名称', type:'varchar', default:'', length:255}) |
| | | trubine_name: string; |
| | | |
| | | @Column({ comment:'斗轮机编号', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'斗轮机编号', type:'varchar', default:'', length:255}) |
| | | trubine_no: string; |
| | | |
| | | @Column({ comment:'型号尺寸', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'型号尺寸', type:'varchar', default:'', length:255}) |
| | | trubine_size: string; |
| | | |
| | | @Column({ comment:'斗轮机类别', type:'varchar', default:'null', length:255}) |
| | | @Column({ comment:'斗轮机类别', type:'varchar', default:'', length:255}) |
| | | trubine_type: string; |
| | | |
| | | } |
| | |
| | | */ |
| | | @EntityModel('t_task_exec_record') |
| | | export class Execrecord extends BaseEntity { |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'设备执行任务时刻的相关参数,json格式。', type:'varchar', default:'null', length:200}) |
| | | @Column({ comment:'设备执行任务时刻的相关参数,json格式。', type:'varchar', default:'', length:200}) |
| | | device_params: string; |
| | | |
| | | @Column({ comment:'{name:"统计截止时间"}', type:'datetime'}) |
| | | end_time: Date; |
| | | |
| | | @Column({ comment:'{name:"执行结果"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"执行结果"}', type:'varchar', default:'', length:50}) |
| | | exec_result: string; |
| | | |
| | | @Column({ comment:'{name:"执行耗时"}', type:'varchar', default:'null', length:0}) |
| | | @Column({ comment:'{name:"执行耗时"}', type:'varchar', default:'', length:255}) |
| | | exec_time: string; |
| | | |
| | | @Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0}) |
| | | is_periodic: number; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'{name:"服务端数据接收时间"}', type:'datetime'}) |
| | | receive_time: Date; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"数据回传时间"}', type:'datetime'}) |
| | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | | status: number; |
| | | |
| | | @Column({ comment:'{name:"任务指令}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"任务指令}', type:'varchar', default:'', length:50}) |
| | | task_command: string; |
| | | |
| | | @Column({ comment:'{name:"任务ID",tips:"周期任务表或者即时任务表主键"}', type:'int', default:null, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_config_interface_list') |
| | | export class Interfacelist extends BaseEntity { |
| | | @Column({ comment:'账号', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'账号', type:'varchar', default:'', length:50}) |
| | | auth_account: string; |
| | | |
| | | @Column({ comment:'密码', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'密码', type:'varchar', default:'', length:50}) |
| | | auth_psw: string; |
| | | |
| | | @Column({ comment:'认证方式', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'认证方式', type:'varchar', default:'', length:50}) |
| | | interface_auth: string; |
| | | |
| | | @Column({ comment:'接口IP', type:'varchar', default:'null', length:150}) |
| | | @Column({ comment:'接口IP', type:'varchar', default:'', length:150}) |
| | | interface_ip: string; |
| | | |
| | | @Column({ comment:'接口名称', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'接口名称', type:'varchar', default:'', length:50}) |
| | | interface_name: string; |
| | | |
| | | @Column({ comment:'端口', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'端口', type:'varchar', default:'', length:50}) |
| | | interface_port: string; |
| | | |
| | | @Column({ comment:'接口协议', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'接口协议', type:'varchar', default:'', length:50}) |
| | | interface_protocal: string; |
| | | |
| | | @Column({ comment:'接口类型', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'接口类型', type:'varchar', default:'', length:50}) |
| | | interface_type: string; |
| | | |
| | | @Column({ comment:'接口地址', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'接口地址', type:'varchar', default:'', length:50}) |
| | | interface_url: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'', type:'varchar', default:'', length:50}) |
| | | share_service: string; |
| | | |
| | | @Column({ comment:'', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'', type:'varchar', default:'', length:50}) |
| | | share_url: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | @Column({ comment:'{name:"调用结束"}', type:'datetime'}) |
| | | end_time: Date; |
| | | |
| | | @Column({ comment:'{name:"接口调用地址"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"接口调用地址"}', type:'varchar', default:'', length:50}) |
| | | interface_direct: string; |
| | | |
| | | @Column({ comment:'{name:"接口清单ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"接口清单ID"}', type:'varchar', default:'', length:50}) |
| | | interface_id: string; |
| | | |
| | | @Column({ comment:'{name:"调用参数",tips:"json格式"}', type:'varchar', default:'null', length:150}) |
| | | @Column({ comment:'{name:"调用参数",tips:"json格式"}', type:'varchar', default:'', length:150}) |
| | | params: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'请求类型', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'请求类型', type:'varchar', default:'', length:50}) |
| | | request_type: string; |
| | | |
| | | @Column({ comment:'{name:"调用结果"}', type:'varchar', default:'null', length:150}) |
| | | @Column({ comment:'{name:"调用结果"}', type:'varchar', default:'', length:150}) |
| | | result: string; |
| | | |
| | | @Column({ comment:'{name:"开始时间"}', type:'datetime'}) |
| | |
| | | @Column({ comment:'1-周期任务 0-即时性任务', type:'int', default:null, width:0}) |
| | | is_periodic: number; |
| | | |
| | | @Column({ comment:'消息', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'消息', type:'varchar', default:'', length:50}) |
| | | message: string; |
| | | |
| | | @Column({ comment:'发送源 ', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'发送源 ', type:'varchar', default:'', length:50}) |
| | | msg_source: string; |
| | | |
| | | @Column({ comment:'发送目标', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'发送目标', type:'varchar', default:'', length:50}) |
| | | msg_target: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'发送时间', type:'datetime'}) |
| | |
| | | */ |
| | | @EntityModel('t_monitor_meta_data') |
| | | export class Metadata extends BaseEntity { |
| | | @Column({ comment:'{name:"数据文件内容"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据文件内容"}', type:'varchar', default:'', length:50}) |
| | | data_content: string; |
| | | |
| | | @Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'', length:50}) |
| | | data_path: string; |
| | | |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'{name:"执行记录"}', type:'int', default:null, width:0}) |
| | |
| | | @Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0}) |
| | | is_periodic: number; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_model_combination') |
| | | export class Modelcombination extends BaseEntity { |
| | | @Column({ comment:'{name:"数据内容"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据内容"}', type:'varchar', default:'', length:50}) |
| | | data_content: string; |
| | | |
| | | @Column({ comment:'{name:"数据文件路径",tips:"url格式,域名可由服务端或者前端配置"', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据文件路径",tips:"url格式,域名可由服务端或者前端配置"', type:'varchar', default:'', length:50}) |
| | | data_path: string; |
| | | |
| | | @Column({ comment:'{name:"任务类型",dict:{"1":"周期任务", "0":"即时任务"}}', type:'int', default:null, width:0}) |
| | | is_periodic: number; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_model_static') |
| | | export class Modelstatic extends BaseEntity { |
| | | @Column({ comment:'{name:"数据内容"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据内容"}', type:'varchar', default:'', length:50}) |
| | | data_content: string; |
| | | |
| | | @Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'', length:50}) |
| | | data_path: string; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'', type:'varchar', default:'', length:50}) |
| | | name: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | import { BaseEntity } from '@cool-midway/core'; |
| | | import { Column, Double } from 'typeorm'; |
| | | /** |
| | | * 分组任务参数设置 |
| | | */ |
| | | @EntityModel('t_task_periodic_setting') |
| | | export class Periodicsetting extends BaseEntity { |
| | | @Column({ comment:'周期任务', type:'varchar', default:'null', length:255}) |
| | | crontab_rule: string; |
| | | * 分组任务参数设置 |
| | | */ |
| | | @EntityModel('t_task_periodic_setting') |
| | | export class Periodicsetting extends BaseEntity { |
| | | @Column({ comment: '周期任务', type: 'varchar', default: '', length: 255 }) |
| | | crontab_rule: string; |
| | | |
| | | @Column({ comment:'任务结束时间', type:'datetime'}) |
| | | end_time: Date; |
| | | @Column({ comment: '任务结束时间', type: 'datetime' }) |
| | | end_time: Date; |
| | | |
| | | @Column({ comment:'设备分组ID', type:'int', default:null, width:0}) |
| | | group_id: number; |
| | | @Column({ comment: '设备分组ID', type: 'int', default: null, width: 0 }) |
| | | group_id: number; |
| | | |
| | | @Column({ comment:'设置人', type:'varchar', default:'null', length:255}) |
| | | operator: string; |
| | | @Column({ comment: '设置人', type: 'varchar', default: '', length: 255 }) |
| | | operator: string; |
| | | |
| | | @Column({ comment:'备注', type:'varchar', default:'null', length:255}) |
| | | remark: string; |
| | | @Column({ comment: '备注', type: 'varchar', default: '', length: 255 }) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'状态', type:'tinyint', default:1, width:0}) |
| | | status: number; |
| | | @Column({ comment: '状态', type: 'tinyint', default: 1, width: 0 }) |
| | | status: number; |
| | | |
| | | @Column({ comment:'任务命令格式', type:'varchar', default:'null', length:255}) |
| | | task_command: string; |
| | | @Column({ comment: '任务命令格式', type: 'varchar', default: '', length: 255 }) |
| | | task_command: string; |
| | | |
| | | @Column({ comment:'任务内容描述', type:'varchar', default:'null', length:255}) |
| | | task_content: string; |
| | | @Column({ comment: '任务内容描述', type: 'varchar', default: '', length: 255 }) |
| | | task_content: string; |
| | | |
| | | @Column({ comment:'任务参数', type:'varchar', default:'null', length:255}) |
| | | task_params: string; |
| | | @Column({ comment: '任务参数', type: 'varchar', default: '', length: 255 }) |
| | | task_params: string; |
| | | |
| | | @Column({ comment:'任务类型', type:'int', default:null, width:0}) |
| | | task_type: number; |
| | | @Column({ comment: '任务类型', type: 'int', default: null, width: 0 }) |
| | | task_type: number; |
| | | |
| | | } |
| | |
| | | */ |
| | | @EntityModel('t_plan_inventory') |
| | | export class Planinventory extends BaseEntity { |
| | | @Column({ comment:'{name:"煤种标记"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"煤种标记"}', type:'varchar', default:'', length:50}) |
| | | coal_marker: string; |
| | | |
| | | @Column({ comment:'{name:"煤堆体积"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"煤堆体积"}', type:'varchar', default:'', length:50}) |
| | | coal_volume: string; |
| | | |
| | | @Column({ comment:'{name:"煤堆重量",tips:"单位吨"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"煤堆重量",tips:"单位吨"}', type:'varchar', default:'', length:50}) |
| | | coal_weight: string; |
| | | |
| | | @Column({ comment:'{name:"组合点云ID"}', type:'int', default:null, width:0}) |
| | |
| | | @Column({ comment:'{name:"盘煤计划ID"}', type:'int', default:null, width:0}) |
| | | plan_id: number; |
| | | |
| | | @Column({ comment:'{name:"盘煤名称"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"盘煤名称"}', type:'varchar', default:'', length:50}) |
| | | plan_name: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_model_point_cloud') |
| | | export class Pointcloud extends BaseEntity { |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_model_point_model') |
| | | export class Pointmodel extends BaseEntity { |
| | | @Column({ comment:'{name:"数据内容"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据内容"}', type:'varchar', default:'', length:50}) |
| | | data_content: string; |
| | | |
| | | @Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'', length:50}) |
| | | data_path: string; |
| | | |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0}) |
| | | is_periodic: number; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'{name:"点云名称"format:"以${logic_id#YYYYMMDDHHMMSS}"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"点云名称"format:"以${logic_id#YYYYMMDDHHMMSS}"}', type:'varchar', default:'', length:50}) |
| | | name: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | |
| | | @Column({ comment:'{name:"内存"}', type:'int', default:null, width:0}) |
| | | memory: number; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"统计起始时间"}', type:'datetime'}) |
| | |
| | | */ |
| | | @EntityModel('t_task_immediately') |
| | | export class Taskimmediately extends BaseEntity { |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_ids: string; |
| | | |
| | | @Column({ comment:'{name:"设置时间"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设置时间"}', type:'varchar', default:'', length:50}) |
| | | operate_time: string; |
| | | |
| | | @Column({ comment:'{name:"操作人"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"操作人"}', type:'varchar', default:'', length:50}) |
| | | operator: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"执行中", "0":"未执行", "2":"已执行"}}', type:'int', default:1, width:0}) |
| | | status: number; |
| | | |
| | | @Column({ comment:'{name:"任务指令"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"任务指令"}', type:'varchar', default:'', length:50}) |
| | | task_command: string; |
| | | |
| | | @Column({ comment:'{name:"任务内容描述"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"任务内容描述"}', type:'varchar', default:'', length:50}) |
| | | task_content: string; |
| | | |
| | | @Column({ comment:'{name:"任务参数",tips:"如点云参数"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"任务参数",tips:"如点云参数"}', type:'varchar', default:'', length:50}) |
| | | task_params: string; |
| | | |
| | | @Column({ comment:'{name:"任务类型",dict:{"1":"抓图","2":"雷达扫描","3":"除尘"}}', type:'int', default:null, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_task_monitor') |
| | | export class Taskmonitor extends BaseEntity { |
| | | @Column({ comment:'{name:"周期任务周期设置",tips:"调度表达式"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"周期任务周期设置",tips:"调度表达式"}', type:'varchar', default:'', length:50}) |
| | | crontab_rule: string; |
| | | |
| | | @Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0}) |
| | | is_periodic: number; |
| | | |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'', length:50}) |
| | | logic_ids: string; |
| | | |
| | | @Column({ comment:'{name:"操作者"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"操作者"}', type:'varchar', default:'', length:50}) |
| | | operator: string; |
| | | |
| | | @Column({ comment:'{name:"操作时间"}', type:'datetime'}) |
| | | opertate_time: Date; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"已发送", "0":"未发送"}}', type:'int', default:0, width:0}) |
| | | status: number; |
| | | |
| | | @Column({ comment:'{name:"任务指令"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"任务指令"}', type:'varchar', default:'', length:50}) |
| | | task_command: string; |
| | | |
| | | @Column({ comment:'{name:"任务内容"}', type:'varchar', default:'null', length:100}) |
| | | @Column({ comment:'{name:"任务内容"}', type:'varchar', default:'', length:100}) |
| | | task_content: string; |
| | | |
| | | @Column({ comment:'{name:"任务来源ID"}', type:'int', default:null, width:0}) |
| | | task_id: number; |
| | | |
| | | @Column({ comment:'{name:"任务参数"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"任务参数"}', type:'varchar', default:'', length:50}) |
| | | task_params: string; |
| | | |
| | | @Column({ comment:'{name:"任务类型",dict:{"1":"抓图","2":"雷达扫描","3":"除尘"}}', type:'int', default:null, width:0}) |
| | |
| | | */ |
| | | @EntityModel('t_base_dou_trubine_location') |
| | | export class Trubinelocation extends BaseEntity { |
| | | @Column({ comment:'{name:"高度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"高度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'', length:50}) |
| | | elevation: string; |
| | | |
| | | @Column({ comment:'{name:"方位角",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"方位角",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'', length:50}) |
| | | heading_angle: string; |
| | | |
| | | @Column({ comment:'{name:"纬度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"纬度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'', length:50}) |
| | | latitude: string; |
| | | |
| | | @Column({ comment:'{name:"经度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"经度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'', length:50}) |
| | | longitude: string; |
| | | |
| | | @Column({ comment:'{name:"精度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"精度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'', length:50}) |
| | | precision: string; |
| | | |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |