wangrong
2022-03-23 9e3033c25283dff92244ccc0156b3ad1ee409767
check the entity
84个文件已修改
27个文件已删除
2554 ■■■■■ 已修改文件
package.json 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/base/middleware/authority.ts 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/base/utils/createEntity.ts 341 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/basedeviceinfo.ts 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/basedeviceparams.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/basedevicesection.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/basedevicestatus.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/colletdata.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/colletmeta.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/comconfig.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/deviceattachment.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/devicegroup.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/deviceopreraterecord.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/doutrubine.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/execrecord.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/interfacelist.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/interfacerecord.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/messagerecord.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/metadata.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/modelcombination.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/modelstatic.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/periodicsetting.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/planinventory.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/pointcloud.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/pointmodel.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/statdata.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/taskimmediately.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/taskmonitor.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/trubinelocation.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/admin/tuser.ts 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/basedeviceinfo.ts 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/basedeviceparams.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/basedevicesection.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/basedevicestatus.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/colletdata.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/colletmeta.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/comconfig.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/deviceattachment.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/devicegroup.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/deviceopreraterecord.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/doutrubine.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/execrecord.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/interfacelist.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/interfacerecord.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/messagerecord.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/metadata.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/modelcombination.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/modelstatic.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/periodicsetting.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/planinventory.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/pointcloud.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/pointmodel.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/statdata.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/taskimmediately.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/taskmonitor.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/trubinelocation.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/controller/app/tuser.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/basedeviceinfo.ts 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/basedeviceparams.ts 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/basedevicesection.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/basedevicestatus.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/colletdata.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/colletmeta.ts 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/comconfig.ts 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/deviceattachment.ts 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/devicegroup.ts 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/deviceopreraterecord.ts 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/doutrubine.ts 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/execrecord.ts 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/interfacelist.ts 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/interfacerecord.ts 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/messagerecord.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/metadata.ts 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/modelcombination.ts 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/modelstatic.ts 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/periodicsetting.ts 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/planinventory.ts 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/pointcloud.ts 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/pointmodel.ts 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/statdata.ts 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/taskimmediately.ts 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/taskmonitor.ts 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/trubinelocation.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/entity/tuser.ts 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/basedeviceinfo.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/basedeviceparams.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/basedevicesection.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/basedevicestatus.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/colletdata.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/colletmeta.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/comconfig.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/deviceattachment.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/devicegroup.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/deviceopreraterecord.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/doutrubine.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/execrecord.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/interfacelist.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/interfacerecord.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/messagerecord.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/metadata.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/modelcombination.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/modelstatic.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/periodicsetting.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/planinventory.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/pointcloud.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/pointmodel.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/statdata.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/taskimmediately.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/taskmonitor.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/trubinelocation.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/business/service/tuser.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json
@@ -38,7 +38,7 @@
    "@midwayjs/mock": "^2.14.0",
    "@types/jest": "^27.0.3",
    "@types/jsonwebtoken": "^8.5.6",
    "@types/node": "14",
    "@types/node": "^14.18.12",
    "cross-env": "^7.0.3",
    "jest": "^27.4.3",
    "mwts": "^1.3.0",
src/app/modules/base/middleware/authority.ts
@@ -43,6 +43,11 @@
          await next();
          return;
        }
        // 不需要登录 无需权限校验
        if (new RegExp(`^${adminUrl}?.*/basedeviceinfo/`).test(url)) {
          await next();
          return;
        }
        if (ctx.admin) {
          // 超管拥有所有权限
          if (ctx.admin.username == 'admin' && !ctx.admin.isRefresh) {
src/app/modules/base/utils/createEntity.ts
@@ -2,180 +2,191 @@
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(`/**
        * ${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;
                }
    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;
                }
                // 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(`/**
        * ${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--------------------`);
    }
    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--------------------`);
    }
    createController(table) {
        console.log('生成控制类开始执行');
        let EntityName = this.firstToUpper3(table.entityName)
        let columnstr = [];
        columnstr.push(`import { ALL, Body, Inject, Post, Provide } 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(`}`)
        if (fs.existsSync(`../../business/controller/${table.entityName}.ts`)) {
            console.log(' file is exists')
        } else {
            console.log(' file is not exists')
            // API
            fs.writeFile(`./src/app/modules/business/controller/${table.entityName}.ts`,
                columnstr.join(''), (error) => {
                    // 创建失败
                    if (error) {
                        console.log(`创建失败:${error}`)
                    }
                    // 创建成功
                    console.log(`创建成功!`)
                })
        }
    }
    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(`创建成功!`)
                })
        }
    }
    firstToUpper3(str){
        return str.toLowerCase().replace(/( |^)[a-z]/g,(L)=>L.toUpperCase());
    }
    firstToUpper3(str){
        return str.toLowerCase().replace(/( |^)[a-z]/g,(L)=>L.toUpperCase());
    }
}
src/app/modules/business/controller/admin/basedeviceinfo.ts
@@ -1,17 +1,33 @@
import { Provide, Inject, } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { BasedeviceinfoEntity } from '../../entity/basedeviceinfo';
import { DataController } from '../../../base/controller/dataController';
import { Basedeviceinfo } from '../../entity/basedeviceinfo';
import { BasedeviceinfoService } from '../../service/basedeviceinfo';
import { DataController } from '../../../base/controller/dataController';
/**
 * 描述
 */
        * 设备信息
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: BasedeviceinfoEntity
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Basedeviceinfo,
  service: BasedeviceinfoService,
})
export class AdminBasedeviceinfoController extends DataController {
}
export class BasedeviceinfoController extends DataController {
  @Inject()
  basedeviceinfoService: BasedeviceinfoService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/basedeviceparams.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Basedeviceparams } from '../../entity/basedeviceparams';
import { BasedeviceparamsService } from '../../service/basedeviceparams';
import { DataController } from '../../../base/controller/dataController';
/**
        * 设备参数表
        */
        * 设备参数
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page'],
  entity: Basedeviceparams,
  service: BasedeviceparamsService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Basedeviceparams,
  service: BasedeviceparamsService,
})
export class AdminBasedeviceparamsController extends DataController {
  @Inject()
  basedeviceparamsService: BasedeviceparamsService;
export class BasedeviceparamsController extends DataController {
  @Inject()
  basedeviceparamsService: BasedeviceparamsService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/basedevicesection.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Basedevicesection } from '../../entity/basedevicesection';
import { BasedevicesectionService } from '../../service/basedevicesection';
import { DataController } from '../../../base/controller/dataController';
/**
        * 设备组件
        */
        * 设备组件
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page'],
  entity: Basedevicesection,
  service: BasedevicesectionService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Basedevicesection,
  service: BasedevicesectionService,
})
export class AdminBasedevicesectionController extends DataController {
  @Inject()
  basedevicesectionService: BasedevicesectionService;
export class BasedevicesectionController extends DataController {
  @Inject()
  basedevicesectionService: BasedevicesectionService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/basedevicestatus.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Basedevicestatus } from '../../entity/basedevicestatus';
import { BasedevicestatusService } from '../../service/basedevicestatus';
import { DataController } from '../../../base/controller/dataController';
/**
        * 设备状态表
        */
        * 设备状态
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page'],
  entity: Basedevicestatus,
  service: BasedevicestatusService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Basedevicestatus,
  service: BasedevicestatusService,
})
export class AdminBasedevicestatusController extends DataController {
  @Inject()
  basedevicestatusService: BasedevicestatusService;
export class BasedevicestatusController extends DataController {
  @Inject()
  basedevicestatusService: BasedevicestatusService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/colletdata.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Colletdata } from '../../entity/colletdata';
import { ColletdataService } from '../../service/colletdata';
import { DataController } from '../../../base/controller/dataController';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page'],
  entity: Colletdata,
  service: ColletdataService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Colletdata,
  service: ColletdataService,
})
export class AdminColletdataController extends DataController {
  @Inject()
  colletdataService: ColletdataService;
export class ColletdataController extends DataController {
  @Inject()
  colletdataService: ColletdataService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/colletmeta.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Colletmeta } from '../../entity/colletmeta';
import { ColletmetaService } from '../../service/colletmeta';
import { DataController } from '../../../base/controller/dataController';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page'],
  entity: Colletmeta,
  service: ColletmetaService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Colletmeta,
  service: ColletmetaService,
})
export class AdminColletmetaController extends DataController {
  @Inject()
  colletmetaService: ColletmetaService;
export class ColletmetaController extends DataController {
  @Inject()
  colletmetaService: ColletmetaService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/comconfig.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Comconfig } from '../../entity/comconfig';
import { ComconfigService } from '../../service/comconfig';
import { DataController } from '../../../base/controller/dataController';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page'],
  entity: Comconfig,
  service: ComconfigService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Comconfig,
  service: ComconfigService,
})
export class AdminComconfigController extends DataController {
  @Inject()
  comconfigService: ComconfigService;
export class ComconfigController extends DataController {
  @Inject()
  comconfigService: ComconfigService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/deviceattachment.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Deviceattachment } from '../../entity/deviceattachment';
import { DeviceattachmentService } from '../../service/deviceattachment';
import { DataController } from '../../../base/controller/dataController';
/**
        * 设备相关的附件
        */
        * 设备相关的附件
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page'],
  entity: Deviceattachment,
  service: DeviceattachmentService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Deviceattachment,
  service: DeviceattachmentService,
})
export class AdminDeviceattachmentController extends DataController {
  @Inject()
  deviceattachmentService: DeviceattachmentService;
export class DeviceattachmentController extends DataController {
  @Inject()
  deviceattachmentService: DeviceattachmentService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/devicegroup.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Devicegroup } from '../../entity/devicegroup';
import { DevicegroupService } from '../../service/devicegroup';
import { DataController } from '../../../base/controller/dataController';
/**
        * 设备分组表
        */
        * 设备分组
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page'],
  entity: Devicegroup,
  service: DevicegroupService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Devicegroup,
  service: DevicegroupService,
})
export class AdminDevicegroupController extends DataController {
  @Inject()
  devicegroupService: DevicegroupService;
export class DevicegroupController extends DataController {
  @Inject()
  devicegroupService: DevicegroupService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/deviceopreraterecord.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Deviceopreraterecord } from '../../entity/deviceopreraterecord';
import { DeviceopreraterecordService } from '../../service/deviceopreraterecord';
import { DataController } from '../../../base/controller/dataController';
/**
        * 设备运维记录
        */
        * 设备运维记录
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Deviceopreraterecord,
  service: DeviceopreraterecordService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Deviceopreraterecord,
  service: DeviceopreraterecordService,
})
export class AdminDeviceopreraterecordController extends DataController {
  @Inject()
  deviceopreraterecordService: DeviceopreraterecordService;
export class DeviceopreraterecordController extends DataController {
  @Inject()
  deviceopreraterecordService: DeviceopreraterecordService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/doutrubine.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Doutrubine } from '../../entity/doutrubine';
import { DoutrubineService } from '../../service/doutrubine';
import { DataController } from '../../../base/controller/dataController';
/**
        * 斗轮机信息
        */
        * 斗轮机信息
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list', 'page'],
  entity: Doutrubine,
  service: DoutrubineService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Doutrubine,
  service: DoutrubineService,
})
export class AdminDoutrubineController extends DataController {
  @Inject()
  doutrubineService: DoutrubineService;
export class DoutrubineController extends DataController {
  @Inject()
  doutrubineService: DoutrubineService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/execrecord.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Execrecord } from '../../entity/execrecord';
import { ExecrecordService } from '../../service/execrecord';
import { DataController } from '../../../base/controller/dataController';
/**
        * 任务执行记录表
        */
        * 任务执行记录
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Execrecord,
  service: ExecrecordService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Execrecord,
  service: ExecrecordService,
})
export class AdminExecrecordController extends DataController {
  @Inject()
  execrecordService: ExecrecordService;
export class ExecrecordController extends DataController {
  @Inject()
  execrecordService: ExecrecordService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/interfacelist.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Interfacelist } from '../../entity/interfacelist';
import { InterfacelistService } from '../../service/interfacelist';
import { DataController } from '../../../base/controller/dataController';
/**
        * 接口清单
        */
        * 接口清单
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Interfacelist,
  service: InterfacelistService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Interfacelist,
  service: InterfacelistService,
})
export class AdminInterfacelistController extends DataController {
  @Inject()
  interfacelistService: InterfacelistService;
export class InterfacelistController extends DataController {
  @Inject()
  interfacelistService: InterfacelistService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/interfacerecord.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Interfacerecord } from '../../entity/interfacerecord';
import { InterfacerecordService } from '../../service/interfacerecord';
import { DataController } from '../../../base/controller/dataController';
/**
        * 组合模型
        */
        * 组合模型
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Interfacerecord,
  service: InterfacerecordService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Interfacerecord,
  service: InterfacerecordService,
})
export class AdminInterfacerecordController extends DataController {
  @Inject()
  interfacerecordService: InterfacerecordService;
export class InterfacerecordController extends DataController {
  @Inject()
  interfacerecordService: InterfacerecordService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/messagerecord.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Messagerecord } from '../../entity/messagerecord';
import { MessagerecordService } from '../../service/messagerecord';
import { DataController } from '../../../base/controller/dataController';
/**
        * 任务消息记录
        */
        * 任务消息记录
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Messagerecord,
  service: MessagerecordService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Messagerecord,
  service: MessagerecordService,
})
export class AdminMessagerecordController extends DataController {
  @Inject()
  messagerecordService: MessagerecordService;
export class MessagerecordController extends DataController {
  @Inject()
  messagerecordService: MessagerecordService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/metadata.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Metadata } from '../../entity/metadata';
import { MetadataService } from '../../service/metadata';
import { DataController } from '../../../base/controller/dataController';
/**
        * 监测采集原数据
        */
        * 监测采集原数据
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Metadata,
  service: MetadataService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Metadata,
  service: MetadataService,
})
export class AdminMetadataController extends DataController {
  @Inject()
  metadataService: MetadataService;
export class MetadataController extends DataController {
  @Inject()
  metadataService: MetadataService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/modelcombination.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Modelcombination } from '../../entity/modelcombination';
import { ModelcombinationService } from '../../service/modelcombination';
import { DataController } from '../../../base/controller/dataController';
/**
        * 组合模型
        */
        * 组合模型
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Modelcombination,
  service: ModelcombinationService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Modelcombination,
  service: ModelcombinationService,
})
export class AdminModelcombinationController extends DataController {
  @Inject()
  modelcombinationService: ModelcombinationService;
export class ModelcombinationController extends DataController {
  @Inject()
  modelcombinationService: ModelcombinationService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/modelstatic.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Modelstatic } from '../../entity/modelstatic';
import { ModelstaticService } from '../../service/modelstatic';
import { DataController } from '../../../base/controller/dataController';
/**
        * 静态模型数据
        */
        * 静态模型数据
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Modelstatic,
  service: ModelstaticService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Modelstatic,
  service: ModelstaticService,
})
export class AdminModelstaticController extends DataController {
  @Inject()
  modelstaticService: ModelstaticService;
export class ModelstaticController extends DataController {
  @Inject()
  modelstaticService: ModelstaticService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/periodicsetting.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Periodicsetting } from '../../entity/periodicsetting';
import { PeriodicsettingService } from '../../service/periodicsetting';
import { DataController } from '../../../base/controller/dataController';
/**
        * 分组任务参数设置表
        */
        * 分组任务参数设置
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Periodicsetting,
  service: PeriodicsettingService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Periodicsetting,
  service: PeriodicsettingService,
})
export class AdminPeriodicsettingController extends DataController {
  @Inject()
  periodicsettingService: PeriodicsettingService;
export class PeriodicsettingController extends DataController {
  @Inject()
  periodicsettingService: PeriodicsettingService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/planinventory.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Planinventory } from '../../entity/planinventory';
import { PlaninventoryService } from '../../service/planinventory';
import { DataController } from '../../../base/controller/dataController';
/**
        * 盘煤计划
        */
        * 盘煤计划
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Planinventory,
  service: PlaninventoryService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Planinventory,
  service: PlaninventoryService,
})
export class AdminPlaninventoryController extends DataController {
  @Inject()
  planinventoryService: PlaninventoryService;
export class PlaninventoryController extends DataController {
  @Inject()
  planinventoryService: PlaninventoryService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/pointcloud.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Pointcloud } from '../../entity/pointcloud';
import { PointcloudService } from '../../service/pointcloud';
import { DataController } from '../../../base/controller/dataController';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Pointcloud,
  service: PointcloudService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Pointcloud,
  service: PointcloudService,
})
export class AdminPointcloudController extends DataController {
  @Inject()
  pointcloudService: PointcloudService;
export class PointcloudController extends DataController {
  @Inject()
  pointcloudService: PointcloudService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/pointmodel.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Pointmodel } from '../../entity/pointmodel';
import { PointmodelService } from '../../service/pointmodel';
import { DataController } from '../../../base/controller/dataController';
/**
        * 点云模型
        */
        * 点云模型
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Pointmodel,
  service: PointmodelService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Pointmodel,
  service: PointmodelService,
})
export class AdminPointmodelController extends DataController {
  @Inject()
  pointmodelService: PointmodelService;
export class PointmodelController extends DataController {
  @Inject()
  pointmodelService: PointmodelService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/statdata.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Statdata } from '../../entity/statdata';
import { StatdataService } from '../../service/statdata';
import { DataController } from '../../../base/controller/dataController';
/**
        * 监测统计
        */
        * 监测统计
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Statdata,
  service: StatdataService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Statdata,
  service: StatdataService,
})
export class AdminStatdataController extends DataController {
  @Inject()
  statdataService: StatdataService;
export class StatdataController extends DataController {
  @Inject()
  statdataService: StatdataService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/taskimmediately.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Taskimmediately } from '../../entity/taskimmediately';
import { TaskimmediatelyService } from '../../service/taskimmediately';
import { DataController } from '../../../base/controller/dataController';
/**
        * 即时任务记录表
        */
        * 即时任务记录
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Taskimmediately,
  service: TaskimmediatelyService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Taskimmediately,
  service: TaskimmediatelyService,
})
export class AdminTaskimmediatelyController extends DataController {
  @Inject()
  taskimmediatelyService: TaskimmediatelyService;
export class TaskimmediatelyController extends DataController {
  @Inject()
  taskimmediatelyService: TaskimmediatelyService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/taskmonitor.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Taskmonitor } from '../../entity/taskmonitor';
import { TaskmonitorService } from '../../service/taskmonitor';
import { DataController } from '../../../base/controller/dataController';
/**
        * 监测任务表
        */
        * 监测任务
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Taskmonitor,
  service: TaskmonitorService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Taskmonitor,
  service: TaskmonitorService,
})
export class AdminTaskmonitorController extends DataController {
  @Inject()
  taskmonitorService: TaskmonitorService;
export class TaskmonitorController extends DataController {
  @Inject()
  taskmonitorService: TaskmonitorService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/trubinelocation.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Trubinelocation } from '../../entity/trubinelocation';
import { TrubinelocationService } from '../../service/trubinelocation';
import { DataController } from '../../../base/controller/dataController';
/**
        * 斗轮机信息
        */
        * 斗轮机信息
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Trubinelocation,
  service: TrubinelocationService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Trubinelocation,
  service: TrubinelocationService,
})
export class AdminTrubinelocationController extends DataController {
  @Inject()
  trubinelocationService: TrubinelocationService;
export class TrubinelocationController extends DataController {
  @Inject()
  trubinelocationService: TrubinelocationService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/admin/tuser.ts
@@ -1,18 +1,33 @@
import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
import { ALL, Body, Get, Inject, Post, Provide, Query } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { Tuser } from '../../entity/tuser';
import { TuserService } from '../../service/tuser';
import { DataController } from '../../../base/controller/dataController';
/**
        *
        */
        *
        */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Tuser,
  service: TuserService,
@CoolController({
  api: ['add', 'delete', 'update', 'list'],
  entity: Tuser,
  service: TuserService,
})
export class AdminTuserController extends DataController {
  @Inject()
  tuserService: TuserService;
export class TuserController extends DataController {
  @Inject()
  tuserService: TuserService;
  
  /**
  * 获得数据
  */
   @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));
   }
}
src/app/modules/business/controller/app/basedeviceinfo.ts
File was deleted
src/app/modules/business/controller/app/basedeviceparams.ts
File was deleted
src/app/modules/business/controller/app/basedevicesection.ts
File was deleted
src/app/modules/business/controller/app/basedevicestatus.ts
File was deleted
src/app/modules/business/controller/app/colletdata.ts
File was deleted
src/app/modules/business/controller/app/colletmeta.ts
File was deleted
src/app/modules/business/controller/app/comconfig.ts
File was deleted
src/app/modules/business/controller/app/deviceattachment.ts
File was deleted
src/app/modules/business/controller/app/devicegroup.ts
File was deleted
src/app/modules/business/controller/app/deviceopreraterecord.ts
File was deleted
src/app/modules/business/controller/app/doutrubine.ts
File was deleted
src/app/modules/business/controller/app/execrecord.ts
File was deleted
src/app/modules/business/controller/app/interfacelist.ts
File was deleted
src/app/modules/business/controller/app/interfacerecord.ts
File was deleted
src/app/modules/business/controller/app/messagerecord.ts
File was deleted
src/app/modules/business/controller/app/metadata.ts
File was deleted
src/app/modules/business/controller/app/modelcombination.ts
File was deleted
src/app/modules/business/controller/app/modelstatic.ts
File was deleted
src/app/modules/business/controller/app/periodicsetting.ts
File was deleted
src/app/modules/business/controller/app/planinventory.ts
File was deleted
src/app/modules/business/controller/app/pointcloud.ts
File was deleted
src/app/modules/business/controller/app/pointmodel.ts
File was deleted
src/app/modules/business/controller/app/statdata.ts
File was deleted
src/app/modules/business/controller/app/taskimmediately.ts
File was deleted
src/app/modules/business/controller/app/taskmonitor.ts
File was deleted
src/app/modules/business/controller/app/trubinelocation.ts
File was deleted
src/app/modules/business/controller/app/tuser.ts
File was deleted
src/app/modules/business/entity/basedeviceinfo.ts
@@ -1,66 +1,66 @@
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column } from 'typeorm';
import { Column, Double } from 'typeorm';
/**
        * 设备信息表
        */
@EntityModel('t_base_deviceinfo')
export class BasedeviceinfoEntity extends BaseEntity {
  @Column({ comment: '设备高度', type: 'varchar', default: '', length: 50 })
  altitude: string;
        * 设备信息
        */
@EntityModel('t_base_deviceinfo')
export class Basedeviceinfo extends BaseEntity {
@Column({ comment:'{name:"设备高度",format:0.000001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50})
altitude: string;
  @Column({ comment: '账号', type: 'varchar', default: '', length: 50 })
  device_account: string;
@Column({ comment:'{name:"账号",format:0.001,tips:""}', type:'varchar', default:'null', length:50})
device_account: string;
  @Column({ comment: '唯一索引,设备物理id,如厂编号、subscribeno等', type: 'varchar', default: '', length: 50 })
  device_id: string;
@Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50})
device_id: string;
  @Column({ comment: '端口', type: 'varchar', default: '', length: 50 })
  device_port: string;
@Column({ comment:'{name:"端口",format:0.001,tips:""}', type:'varchar', default:'null', length:50})
device_port: string;
  @Column({ comment: '密码', type: 'varchar', default: '', length: 50 })
  device_psw: string;
@Column({ comment:'{name:"密码",format:0.001,tips:""}', type:'varchar', default:'null', length:50})
device_psw: string;
  @Column({ comment: '设备精度', type: 'varchar', default: '', length: 50 })
  dimension: string;
@Column({ comment:'{name:"设备精度",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50})
dimension: string;
  @Column({ comment: '', type: 'varchar', default: '', length: 50 })
  heading_angle: string;
@Column({ comment:'{name:"上倾角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50})
heading_angle: string;
  @Column({ comment: 'IP地址', type: 'varchar', default: '', length: 50 })
  ipaddres: string;
@Column({ comment:'{name:"IP地址",format:0.001,tips:""}', type:'varchar', default:'null', length:50})
ipaddres: string;
  @Column({ comment: '纬度,精确到小数点后6位', type: 'varchar', default: '', length: 50 })
  latitude: string;
@Column({ comment:'{name:"纬度",format:0.000001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50})
latitude: string;
  @Column({ comment: '安装位置,**省**市**区**路**号**楼**方位', type: 'varchar', default: '', length: 50 })
  location: string;
@Column({ comment:'{name:"安装位置",format:"**省**市**区**路**号**楼**方位"}', type:'varchar', default:'null', length:50})
location: string;
  @Column({ comment: '设备逻辑ID', type: 'varchar', default: '', length: 50 })
  logic_id: string;
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
  @Column({ comment: '经度,精确到小数点后6位', type: 'varchar', default: '', length: 50 })
  longitude: string;
@Column({ comment:'{name:"经度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50})
longitude: string;
  @Column({ comment: '设备名称', type: 'varchar', default: '', length: 50 })
  name: string;
@Column({ comment:'{name:"设备名称"}', type:'varchar', default:'null', length:50})
name: string;
  @Column({ comment: '运维负责人', type: 'varchar', default: '', length: 50 })
  opertator: string;
@Column({ comment:'{name:"运维负责人",format:0.001,tips:""}', type:'varchar', default:'null', length:50})
opertator: string;
  @Column({ comment: '俯仰角', type: 'varchar', default: '', length: 50 })
  petch_angle: string;
@Column({ comment:'{name:"俯仰角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50})
petch_angle: string;
  @Column({ comment: '航向角', type: 'varchar', default: '', length: 50 })
  precision: string;
@Column({ comment:'{name:"航向角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50})
precision: string;
  @Column({ comment: '备注', type: 'varchar', default: '', length: 50 })
  remark: string;
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
  @Column({ comment: '横滚角', type: 'varchar', default: '', length: 50 })
  roll_angle: string;
@Column({ comment:'{name:"横滚角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50})
roll_angle: string;
  @Column({ comment: '状态,1-启用  0-停用', type: 'int', default: 1, width: 0 })
  status: number;
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/basedeviceparams.ts
@@ -2,32 +2,32 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 设备参数表
        */
        * 设备参数
        */
@EntityModel('t_base_deviceparams') 
export class Basedeviceparams extends BaseEntity { 
@Column({ comment:'配置人', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"配置人"}', type:'varchar', default:'null', length:50})
configurator: string;
@Column({ comment:'设备物理ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50})
device_id: string;
@Column({ comment:'设备逻辑ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
@Column({ comment:'key', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"key"}', type:'varchar', default:'null', length:50})
param_key: string;
@Column({ comment:'参数类型', type:'int', default:null, width:0})
@Column({ comment:'{name:"参数类型",dict:{"0":"系统参数","1":"水平角度","2":"垂直角度"}}', type:'int', default:null, width:0})
param_type: number;
@Column({ comment:'参数值', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"参数值"}', type:'varchar', default:'null', length:50})
param_value: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'状态,1-启用  0-停用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/basedevicesection.ts
@@ -2,29 +2,29 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 设备组件
        */
        * 设备组件
        */
@EntityModel('t_base_devicesection') 
export class Basedevicesection extends BaseEntity { 
@Column({ comment:'配置人', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"配置人"}', type:'varchar', default:'null', length:50})
configurator: string;
@Column({ comment:'设备物理ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50})
device_id: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'组件名称', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"组件"}', type:'varchar', default:'null', length:50})
section_name: string;
@Column({ comment:'顺序编号', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"顺序"}', type:'varchar', default:'null', length:50})
section_sort: string;
@Column({ comment:'组件类型', type:'int', default:null, width:0})
@Column({ comment:'{name:"组件类型",dict:{"1":"工控机","2":"网卡","3":"可见光探头","4":"毫米波雷达"}}', type:'int', default:null, width:0})
section_type: number;
@Column({ comment:'状态,1-启用  0-停用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/basedevicestatus.ts
@@ -2,29 +2,29 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 设备状态表
        */
        * 设备状态
        */
@EntityModel('t_base_devicestatus') 
export class Basedevicestatus extends BaseEntity { 
@Column({ comment:'类别   1-心跳   2-告警', type:'int', default:null, width:0})
@Column({ comment:'{name:"类别",dict:{"1":"心跳", "2":"告警"}}', type:'int', default:null, width:0})
alarm_type: number;
@Column({ comment:'设备物理ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50})
device_id: string;
@Column({ comment:'设备逻辑ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'上报内容,可以是json格式', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"上报内容",tips:"可以是json格式"}', type:'varchar', default:'null', length:200})
report_content: string;
@Column({ comment:'上报时间', type:'datetime'})
@Column({ comment:'{name:"上报时间"}', type:'datetime'})
report_time: Date;
@Column({ comment:'状态,1-启用  0-停用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/colletdata.ts
@@ -2,29 +2,29 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@EntityModel('t_monitor_collet_data') 
export class Colletdata extends BaseEntity { 
@Column({ comment:'数据内容', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据内容"}', type:'varchar', default:'null', length:50})
data_content: string;
@Column({ comment:'数据存储路径,url格式,域名可由服务端或者前端配置进行访问', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'null', length:50})
data_path: string;
@Column({ comment:'1-周期任务   0-即时性任务', type:'int', default:null, width:0})
@Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0})
is_periodic: number;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
@Column({ comment:'任务ID,周期任务表主键或者即时任务表主键', type:'int', default:null, width:0})
@Column({ comment:'{name:"任务ID",tips:"周期任务表或者即时任务表主键"}', type:'int', default:null, width:0})
task_id: number;
@Column({ comment:'监测记录ID', type:'int', default:null, width:0})
@Column({ comment:'{name:"监测记录id"}', type:'int', default:null, width:0})
task_monitor_id: number;
}
src/app/modules/business/entity/colletmeta.ts
@@ -2,20 +2,20 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@EntityModel('t_monitor_collet_meta') 
export class Colletmeta extends BaseEntity { 
@Column({ comment:'', type:'int', default:null, width:0})
@Column({ comment:'{name:""}', type:'int', default:null, width:0})
collet_data_id: number;
@Column({ comment:'', type:'int', default:null, width:0})
@Column({ comment:'{name:""}', type:'int', default:null, width:0})
meta_data_id: number;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/comconfig.ts
@@ -2,23 +2,23 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@EntityModel('t_model_com_config') 
export class Comconfig extends BaseEntity { 
@Column({ comment:'', type:'int', default:null, width:0})
@Column({ comment:'{name:""}', type:'int', default:null, width:0})
com_model_id: number;
@Column({ comment:'', type:'int', default:null, width:0})
@Column({ comment:'{name:"模型ID"}', type:'int', default:null, width:0})
model_id: number;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'', type:'varchar', default:'', length:50})
@Column({ comment:'{name:""}', type:'varchar', default:'null', length:50})
sortby: string;
@Column({ comment:'', type:'int', default:null, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/deviceattachment.ts
@@ -2,35 +2,35 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 设备相关的附件
        */
        * 设备相关的附件
        */
@EntityModel('t_base_device_attachment') 
export class Deviceattachment extends BaseEntity { 
@Column({ comment:'附件名称', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"附件名称"}', type:'varchar', default:'null', length:50})
attach_name: string;
@Column({ comment:'顺序编号', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"顺序编号"}', type:'varchar', default:'null', length:50})
attach_sort: string;
@Column({ comment:'附件类型, 1-使用说明  2-安装位置照片 ...', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"附件类型", dict:{"1":"使用说明","2":"安装位置照片"}}', type:'varchar', default:'null', length:50})
attach_type: string;
@Column({ comment:'附件访问路径', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"附件访问路径"}', type:'varchar', default:'null', length:50})
attach_url: string;
@Column({ comment:'附件提供人', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"附件提供人"}', type:'varchar', default:'null', length:50})
configurator: string;
@Column({ comment:'设备物理ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"物理ID"}', type:'varchar', default:'null', length:50})
device_id: string;
@Column({ comment:'逻辑ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'状态,1-启用  0-停用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/devicegroup.ts
@@ -2,8 +2,8 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 设备分组表
        */
        * 设备分组
        */
@EntityModel('t_base_device_group') 
export class Devicegroup extends BaseEntity { 
@Column({ comment:'分组设置人员', type:'varchar', default:'null', length:255})
src/app/modules/business/entity/deviceopreraterecord.ts
@@ -2,32 +2,32 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 设备运维记录
        */
        * 设备运维记录
        */
@EntityModel('t_base_device_opreraterecord') 
export class Deviceopreraterecord extends BaseEntity { 
@Column({ comment:'设备物理ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50})
device_id: string;
@Column({ comment:'设备逻辑ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
@Column({ comment:'运维内容', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"运维内容"}', type:'varchar', default:'null', length:50})
operate_content: string;
@Column({ comment:'运维类型  1-巡检  2-维修', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"运维类型",dict:{"1":"巡检","2":"维修"}}', type:'varchar', default:'null', length:50})
operate_type: string;
@Column({ comment:'运维人员', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"运维人员"}', type:'varchar', default:'null', length:50})
operater: string;
@Column({ comment:'附件访问路径', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"文件路径"}', type:'varchar', default:'null', length:50})
pic_url: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'状态,1-启用  0-停用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/doutrubine.ts
@@ -2,8 +2,8 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 斗轮机信息
        */
        * 斗轮机信息
        */
@EntityModel('t_base_dou_trubine') 
export class Doutrubine extends BaseEntity { 
@Column({ comment:'旋转直径', type:'varchar', default:'null', length:255})
src/app/modules/business/entity/execrecord.ts
@@ -2,53 +2,53 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 任务执行记录表
        */
        * 任务执行记录
        */
@EntityModel('t_task_exec_record') 
export class Execrecord extends BaseEntity { 
@Column({ comment:'设备物理ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50})
device_id: string;
@Column({ comment:'设备执行任务时刻的相关参数,json格式。', type:'varchar', default:'', length:50})
@Column({ comment:'设备执行任务时刻的相关参数,json格式。', type:'varchar', default:'null', length:200})
device_params: string;
@Column({ comment:'结束时间,任务执行完成时间', type:'datetime'})
@Column({ comment:'{name:"统计截止时间"}', type:'datetime'})
end_time: Date;
@Column({ comment:'执行结果', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"执行结果"}', type:'varchar', default:'null', length:50})
exec_result: string;
@Column({ comment:'执行耗时', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"执行耗时"}', type:'varchar', default:'null', length:0})
exec_time: string;
@Column({ comment:'1-周期任务   0-即时性任务', type:'int', default:null, width:0})
@Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0})
is_periodic: number;
@Column({ comment:'设备的逻辑ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
@Column({ comment:'服务端数据接收时间', type:'datetime'})
@Column({ comment:'{name:"服务端数据接收时间"}', type:'datetime'})
receive_time: Date;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'数据回传时间', type:'datetime'})
@Column({ comment:'{name:"数据回传时间"}', type:'datetime'})
send_time: Date;
@Column({ comment:'开始时间,设备收到指令时间', type:'datetime'})
@Column({ comment:'{name:"统计起始时间"}', type:'datetime'})
start_time: Date;
@Column({ comment:'无意义,框架需要', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
@Column({ comment:'任务指令', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"任务指令}', type:'varchar', default:'null', length:50})
task_command: string;
@Column({ comment:'任务ID,对应t_task_periodic_setting的主键,或者t_task_immediately主键', type:'int', default:null, width:0})
@Column({ comment:'{name:"任务ID",tips:"周期任务表或者即时任务表主键"}', type:'int', default:null, width:0})
task_id: number;
@Column({ comment:'监测记录ID,对应t_task_monitor的主键', type:'int', default:null, width:0})
@Column({ comment:'{name:"监测记录id"}', type:'int', default:null, width:0})
task_monitor_id: number;
}
src/app/modules/business/entity/interfacelist.ts
@@ -2,47 +2,47 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 接口清单
        */
        * 接口清单
        */
@EntityModel('t_config_interface_list') 
export class Interfacelist extends BaseEntity { 
@Column({ comment:'账号', type:'varchar', default:'', length:50})
@Column({ comment:'账号', type:'varchar', default:'null', length:50})
auth_account: string;
@Column({ comment:'密码', type:'varchar', default:'', length:50})
@Column({ comment:'密码', type:'varchar', default:'null', length:50})
auth_psw: string;
@Column({ comment:'认证方式', type:'varchar', default:'', length:50})
@Column({ comment:'认证方式', type:'varchar', default:'null', length:50})
interface_auth: string;
@Column({ comment:'接口IP', type:'varchar', default:'', length:50})
@Column({ comment:'接口IP', type:'varchar', default:'null', length:150})
interface_ip: string;
@Column({ comment:'接口名称', type:'varchar', default:'', length:50})
@Column({ comment:'接口名称', type:'varchar', default:'null', length:50})
interface_name: string;
@Column({ comment:'端口', type:'varchar', default:'', length:50})
@Column({ comment:'端口', type:'varchar', default:'null', length:50})
interface_port: string;
@Column({ comment:'接口协议', type:'varchar', default:'', length:50})
@Column({ comment:'接口协议', type:'varchar', default:'null', length:50})
interface_protocal: string;
@Column({ comment:'接口类型', type:'varchar', default:'', length:50})
@Column({ comment:'接口类型', type:'varchar', default:'null', length:50})
interface_type: string;
@Column({ comment:'接口地址', type:'varchar', default:'', length:50})
@Column({ comment:'接口地址', type:'varchar', default:'null', length:50})
interface_url: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'', type:'varchar', default:'', length:50})
@Column({ comment:'', type:'varchar', default:'null', length:50})
share_service: string;
@Column({ comment:'', type:'varchar', default:'', length:50})
@Column({ comment:'', type:'varchar', default:'null', length:50})
share_url: string;
@Column({ comment:'', type:'int', default:null, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/interfacerecord.ts
@@ -2,35 +2,35 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 组合模型
        */
        * 组合模型
        */
@EntityModel('t_config_interface_record') 
export class Interfacerecord extends BaseEntity { 
@Column({ comment:'调用结束时间', type:'datetime'})
@Column({ comment:'{name:"调用结束"}', type:'datetime'})
end_time: Date;
@Column({ comment:'接口调用地址', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"接口调用地址"}', type:'varchar', default:'null', length:50})
interface_direct: string;
@Column({ comment:'接口清单ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"接口清单ID"}', type:'varchar', default:'null', length:50})
interface_id: string;
@Column({ comment:'调用参数,json格式', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"调用参数",tips:"json格式"}', type:'varchar', default:'null', length:150})
params: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'请求类型', type:'varchar', default:'', length:50})
@Column({ comment:'请求类型', type:'varchar', default:'null', length:50})
request_type: string;
@Column({ comment:'调用结果', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"调用结果"}', type:'varchar', default:'null', length:150})
result: string;
@Column({ comment:'开始时间', type:'datetime'})
@Column({ comment:'{name:"开始时间"}', type:'datetime'})
start_time: Date;
@Column({ comment:'1-启用   0-禁用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/messagerecord.ts
@@ -2,35 +2,35 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 任务消息记录
        */
        * 任务消息记录
        */
@EntityModel('t_task_message_record') 
export class Messagerecord extends BaseEntity { 
@Column({ comment:'1-周期任务   0-即时性任务', type:'int', default:null, width:0})
is_periodic: number;
@Column({ comment:'消息', type:'varchar', default:'', length:50})
@Column({ comment:'消息', type:'varchar', default:'null', length:50})
message: string;
@Column({ comment:'发送源 ', type:'varchar', default:'', length:50})
@Column({ comment:'发送源 ', type:'varchar', default:'null', length:50})
msg_source: string;
@Column({ comment:'发送目标', type:'varchar', default:'', length:50})
@Column({ comment:'发送目标', type:'varchar', default:'null', length:50})
msg_target: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'发送时间', type:'datetime'})
send_time: Date;
@Column({ comment:'消息状态 1-已发送   0-未发送  默认为0', type:'int', default:0, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"已发送", "0":"未发送"}}', type:'int', default:0, width:0})
status: number;
@Column({ comment:'任务来源ID', type:'int', default:null, width:0})
@Column({ comment:'{name:"任务来源ID"}', type:'int', default:null, width:0})
task_id: number;
@Column({ comment:'监测记录ID', type:'int', default:null, width:0})
@Column({ comment:'{name:"监测记录ID"}', type:'int', default:null, width:0})
task_monitor_id: number;
}
src/app/modules/business/entity/metadata.ts
@@ -2,38 +2,38 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 监测采集原数据
        */
        * 监测采集原数据
        */
@EntityModel('t_monitor_meta_data') 
export class Metadata extends BaseEntity { 
@Column({ comment:'数据文件内容描述', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据文件内容"}', type:'varchar', default:'null', length:50})
data_content: string;
@Column({ comment:'数据文件路径,url格式,域名可由前端或者服务端配置', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'null', length:50})
data_path: string;
@Column({ comment:'设备ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50})
device_id: string;
@Column({ comment:'执行记录', type:'int', default:null, width:0})
@Column({ comment:'{name:"执行记录"}', type:'int', default:null, width:0})
exec_record_id: number;
@Column({ comment:'1-周期任务   0-即时性任务', type:'int', default:null, width:0})
@Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0})
is_periodic: number;
@Column({ comment:'逻辑ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'状态,1-有效  0-无效  默认为1', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
@Column({ comment:'任务ID', type:'int', default:null, width:0})
@Column({ comment:'{name:"任务ID",tips:"周期任务表或者即时任务表主键"}', type:'int', default:null, width:0})
task_id: number;
@Column({ comment:'监测记录ID', type:'int', default:null, width:0})
@Column({ comment:'{name:"监测记录id"}', type:'int', default:null, width:0})
task_monitor_id: number;
}
src/app/modules/business/entity/modelcombination.ts
@@ -2,29 +2,29 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 组合模型
        */
        * 组合模型
        */
@EntityModel('t_model_combination') 
export class Modelcombination extends BaseEntity { 
@Column({ comment:'数据内容', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据内容"}', type:'varchar', default:'null', length:50})
data_content: string;
@Column({ comment:'数据文件路径,url格式,域名可由服务端或者前端配置', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据文件路径",tips:"url格式,域名可由服务端或者前端配置"', type:'varchar', default:'null', length:50})
data_path: string;
@Column({ comment:'1-周期任务   0-即时任务', type:'int', default:null, width:0})
@Column({ comment:'{name:"任务类型",dict:{"1":"周期任务", "0":"即时任务"}}', type:'int', default:null, width:0})
is_periodic: number;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'1-启用   0-禁用', type:'int', default:null, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
@Column({ comment:'任务ID,周期任务表或者即时任务表主键', type:'int', default:null, width:0})
task_id: number;
@Column({ comment:'监测记录ID', type:'int', default:null, width:0})
@Column({ comment:'{name:"监测记录ID"}', type:'int', default:null, width:0})
task_monitor_id: number;
}
src/app/modules/business/entity/modelstatic.ts
@@ -2,26 +2,26 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 静态模型数据
        */
        * 静态模型数据
        */
@EntityModel('t_model_static') 
export class Modelstatic extends BaseEntity { 
@Column({ comment:'数据内容', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据内容"}', type:'varchar', default:'null', length:50})
data_content: string;
@Column({ comment:'数据文件路径,存放url', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'null', length:50})
data_path: string;
@Column({ comment:'物理模型的逻辑ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
@Column({ comment:'', type:'varchar', default:'', length:50})
@Column({ comment:'', type:'varchar', default:'null', length:50})
name: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'状态, 1-启用  0-禁用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/periodicsetting.ts
@@ -2,8 +2,8 @@
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})
src/app/modules/business/entity/planinventory.ts
@@ -2,32 +2,32 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 盘煤计划
        */
        * 盘煤计划
        */
@EntityModel('t_plan_inventory') 
export class Planinventory extends BaseEntity { 
@Column({ comment:'煤种标记', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"煤种标记"}', type:'varchar', default:'null', length:50})
coal_marker: string;
@Column({ comment:'煤堆体积', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"煤堆体积"}', type:'varchar', default:'null', length:50})
coal_volume: string;
@Column({ comment:'煤堆重量,单位吨', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"煤堆重量",tips:"单位吨"}', type:'varchar', default:'null', length:50})
coal_weight: string;
@Column({ comment:'组合点云ID', type:'int', default:null, width:0})
@Column({ comment:'{name:"组合点云ID"}', type:'int', default:null, width:0})
com_model_id: number;
@Column({ comment:'盘煤计划ID', type:'int', default:null, width:0})
@Column({ comment:'{name:"盘煤计划ID"}', type:'int', default:null, width:0})
plan_id: number;
@Column({ comment:'盘煤名称', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"盘煤名称"}', type:'varchar', default:'null', length:50})
plan_name: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'1-启用   0-禁用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/pointcloud.ts
@@ -2,11 +2,14 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@EntityModel('t_model_point_cloud') 
export class Pointcloud extends BaseEntity { 
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/pointmodel.ts
@@ -2,38 +2,38 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 点云模型
        */
        * 点云模型
        */
@EntityModel('t_model_point_model') 
export class Pointmodel extends BaseEntity { 
@Column({ comment:'数据内容', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据内容"}', type:'varchar', default:'null', length:50})
data_content: string;
@Column({ comment:'数据文件路径,存放url', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"数据文件路径"}', type:'varchar', default:'null', length:50})
data_path: string;
@Column({ comment:'设备物理ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50})
device_id: string;
@Column({ comment:'1-周期任务   0-即时性任务', type:'int', default:null, width:0})
@Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0})
is_periodic: number;
@Column({ comment:'点云数据来源的设备逻辑编号', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_id: string;
@Column({ comment:'点云名称,格式:以${logic_id#YYYYMMDDHHMMSS}', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"点云名称"format:"以${logic_id#YYYYMMDDHHMMSS}"}', type:'varchar', default:'null', length:50})
name: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'状态, 1-启用  0-禁用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
@Column({ comment:'任务ID,周期任务表或者即时任务表主键', type:'int', default:null, width:0})
@Column({ comment:'{name:"任务ID",tips:"周期任务表或者即时任务表主键"}', type:'int', default:null, width:0})
task_id: number;
@Column({ comment:'监测记录id', type:'int', default:null, width:0})
@Column({ comment:'{name:"监测记录id"}', type:'int', default:null, width:0})
task_monitor_id: number;
}
src/app/modules/business/entity/statdata.ts
@@ -2,44 +2,44 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 监测统计
        */
        * 监测统计
        */
@EntityModel('t_monitor_stat_data') 
export class Statdata extends BaseEntity { 
@Column({ comment:'点云计算花费时间,单位毫秒', type:'int', default:null, width:0})
@Column({ comment:'{name:"点云计算花费时间",tips:"单位毫秒"}', type:'int', default:null, width:0})
avg_caculater_time: number;
@Column({ comment:'平均文件大小', type:'int', default:null, width:0})
@Column({ comment:'{name:"平均文件大小"}', type:'int', default:null, width:0})
avg_filesize: number;
@Column({ comment:'平均花费时间,单位毫秒', type:'int', default:null, width:0})
@Column({ comment:'{name:"平均花费时间",tips:"单位毫秒"}', type:'int', default:null, width:0})
avg_task_time: number;
@Column({ comment:'数据传输时间,毫秒', type:'int', default:null, width:0})
@Column({ comment:'{name:"数据传输时间",tips:"毫秒"}', type:'int', default:null, width:0})
avg_transmission_time: number;
@Column({ comment:'CPU 占用率,百分比', type:'int', default:null, width:0})
@Column({ comment:'{name:"CPU 占用率",tips:"百分比"}', type:'int', default:null, width:0})
cpu_rate: number;
@Column({ comment:'统计截止时间', type:'datetime'})
@Column({ comment:'{name:"统计截止时间"}', type:'datetime'})
end_time: Date;
@Column({ comment:'内存,', type:'int', default:null, width:0})
@Column({ comment:'{name:"内存"}', type:'int', default:null, width:0})
memory: number;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'统计起始时间', type:'datetime'})
@Column({ comment:'{name:"统计起始时间"}', type:'datetime'})
start_time: Date;
@Column({ comment:'', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
@Column({ comment:'任务类型:  1-抓图  2-雷达扫描  3-除尘 ', type:'int', default:null, width:0})
@Column({ comment:'{name:"任务类型",dict:{"1":"抓图","2":"雷达扫描","3":"除尘"}}', type:'int', default:null, width:0})
task_type: number;
@Column({ comment:'统计时间粒度,5-5分钟  10-10分钟 30-30分钟  60-60分钟 1440-1天 43200-1月  ', type:'int', default:null, width:0})
@Column({ comment:'{name:"统计时间粒度",dict:{"5":"5分钟","10":"10","30":"30","60":"60","1440":"1440","43200":"43200"}}', type:'int', default:null, width:0})
time: number;
}
src/app/modules/business/entity/taskimmediately.ts
@@ -2,35 +2,35 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 即时任务记录表
        */
        * 即时任务记录
        */
@EntityModel('t_task_immediately') 
export class Taskimmediately extends BaseEntity { 
@Column({ comment:'逻辑ID', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_ids: string;
@Column({ comment:'设置时间', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设置时间"}', type:'varchar', default:'null', length:50})
operate_time: string;
@Column({ comment:'操作人', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"操作人"}', type:'varchar', default:'null', length:50})
operator: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'0-未执行    1-执行中    2-已执行', type:'int', default:null, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"执行中", "0":"未执行", "2":"已执行"}}', type:'int', default:1, width:0})
status: number;
@Column({ comment:'任务指令', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"任务指令"}', type:'varchar', default:'null', length:50})
task_command: string;
@Column({ comment:'任务内容描述', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"任务内容描述"}', type:'varchar', default:'null', length:50})
task_content: string;
@Column({ comment:'任务参数,如点云参数', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"任务参数",tips:"如点云参数"}', type:'varchar', default:'null', length:50})
task_params: string;
@Column({ comment:'任务类型:  1-抓图  2-雷达扫描  3-除尘 ', type:'int', default:null, width:0})
@Column({ comment:'{name:"任务类型",dict:{"1":"抓图","2":"雷达扫描","3":"除尘"}}', type:'int', default:null, width:0})
task_type: number;
}
src/app/modules/business/entity/taskmonitor.ts
@@ -2,44 +2,44 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 监测任务表
        */
        * 监测任务
        */
@EntityModel('t_task_monitor') 
export class Taskmonitor extends BaseEntity { 
@Column({ comment:'周期任务周期设置,调度表达式', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"周期任务周期设置",tips:"调度表达式"}', type:'varchar', default:'null', length:50})
crontab_rule: string;
@Column({ comment:'1-周期任务   0-即时性任务', type:'int', default:null, width:0})
@Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0})
is_periodic: number;
@Column({ comment:'设备逻辑id集合,逗号分隔', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50})
logic_ids: string;
@Column({ comment:'', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"操作者"}', type:'varchar', default:'null', length:50})
operator: string;
@Column({ comment:'', type:'datetime'})
@Column({ comment:'{name:"操作时间"}', type:'datetime'})
opertate_time: Date;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'0-未执行    1-执行中    2-已执行', type:'int', default:0, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"已发送", "0":"未发送"}}', type:'int', default:0, width:0})
status: number;
@Column({ comment:'', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"任务指令"}', type:'varchar', default:'null', length:50})
task_command: string;
@Column({ comment:'', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"任务内容"}', type:'varchar', default:'null', length:100})
task_content: string;
@Column({ comment:'任务ID, 周期任务的主键或者是即时任务的主键', type:'varchar', default:'', length:50})
task_id: string;
@Column({ comment:'{name:"任务来源ID"}', type:'int', default:null, width:0})
task_id: number;
@Column({ comment:'任务参数', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"任务参数"}', type:'varchar', default:'null', length:50})
task_params: string;
@Column({ comment:'任务类型:  1-抓图  2-雷达扫描  3-除尘 ', type:'int', default:null, width:0})
@Column({ comment:'{name:"任务类型",dict:{"1":"抓图","2":"雷达扫描","3":"除尘"}}', type:'int', default:null, width:0})
task_type: number;
}
src/app/modules/business/entity/trubinelocation.ts
@@ -2,29 +2,29 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 斗轮机信息
        */
        * 斗轮机信息
        */
@EntityModel('t_base_dou_trubine_location') 
export class Trubinelocation extends BaseEntity { 
@Column({ comment:'高度', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"高度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50})
elevation: string;
@Column({ comment:'方位角', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"方位角",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50})
heading_angle: string;
@Column({ comment:'经度', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"纬度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50})
latitude: string;
@Column({ comment:'纬度', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"经度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50})
longitude: string;
@Column({ comment:'精度', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"精度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50})
precision: string;
@Column({ comment:'备注', type:'varchar', default:'', length:50})
@Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50})
remark: string;
@Column({ comment:'1-启用   0-禁用', type:'int', default:1, width:0})
@Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0})
status: number;
}
src/app/modules/business/entity/tuser.ts
@@ -2,8 +2,8 @@
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        *
        */
        *
        */
@EntityModel('t_user') 
export class Tuser extends BaseEntity { 
@Column({ comment:'年龄', type:'int', default:null, width:0})
src/app/modules/business/service/basedeviceinfo.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Basedeviceinfo } from '../entity/basedeviceinfo';
/**
        * 设备信息表
        */
        * 设备信息
        */
@Provide()
export class BasedeviceinfoService extends DataService { 
    @InjectEntityModel(Basedeviceinfo)
    basedeviceinfo: Repository<Basedeviceinfo>
    @InjectEntityModel(Basedeviceinfo)
    basedeviceinfo: Repository<Basedeviceinfo>
}
src/app/modules/business/service/basedeviceparams.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Basedeviceparams } from '../entity/basedeviceparams';
/**
        * 设备参数表
        */
        * 设备参数
        */
@Provide()
export class BasedeviceparamsService extends DataService { 
    @InjectEntityModel(Basedeviceparams)
    basedeviceparams: Repository<Basedeviceparams>
    @InjectEntityModel(Basedeviceparams)
    basedeviceparams: Repository<Basedeviceparams>
}
src/app/modules/business/service/basedevicesection.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Basedevicesection } from '../entity/basedevicesection';
/**
        * 设备组件
        */
        * 设备组件
        */
@Provide()
export class BasedevicesectionService extends DataService { 
    @InjectEntityModel(Basedevicesection)
    basedevicesection: Repository<Basedevicesection>
    @InjectEntityModel(Basedevicesection)
    basedevicesection: Repository<Basedevicesection>
}
src/app/modules/business/service/basedevicestatus.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Basedevicestatus } from '../entity/basedevicestatus';
/**
        * 设备状态表
        */
        * 设备状态
        */
@Provide()
export class BasedevicestatusService extends DataService { 
    @InjectEntityModel(Basedevicestatus)
    basedevicestatus: Repository<Basedevicestatus>
    @InjectEntityModel(Basedevicestatus)
    basedevicestatus: Repository<Basedevicestatus>
}
src/app/modules/business/service/colletdata.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Colletdata } from '../entity/colletdata';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@Provide()
export class ColletdataService extends DataService { 
    @InjectEntityModel(Colletdata)
    colletdata: Repository<Colletdata>
    @InjectEntityModel(Colletdata)
    colletdata: Repository<Colletdata>
}
src/app/modules/business/service/colletmeta.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Colletmeta } from '../entity/colletmeta';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@Provide()
export class ColletmetaService extends DataService { 
    @InjectEntityModel(Colletmeta)
    colletmeta: Repository<Colletmeta>
    @InjectEntityModel(Colletmeta)
    colletmeta: Repository<Colletmeta>
}
src/app/modules/business/service/comconfig.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Comconfig } from '../entity/comconfig';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@Provide()
export class ComconfigService extends DataService { 
    @InjectEntityModel(Comconfig)
    comconfig: Repository<Comconfig>
    @InjectEntityModel(Comconfig)
    comconfig: Repository<Comconfig>
}
src/app/modules/business/service/deviceattachment.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Deviceattachment } from '../entity/deviceattachment';
/**
        * 设备相关的附件
        */
        * 设备相关的附件
        */
@Provide()
export class DeviceattachmentService extends DataService { 
    @InjectEntityModel(Deviceattachment)
    deviceattachment: Repository<Deviceattachment>
    @InjectEntityModel(Deviceattachment)
    deviceattachment: Repository<Deviceattachment>
}
src/app/modules/business/service/devicegroup.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Devicegroup } from '../entity/devicegroup';
/**
        * 设备分组表
        */
        * 设备分组
        */
@Provide()
export class DevicegroupService extends DataService { 
    @InjectEntityModel(Devicegroup)
    devicegroup: Repository<Devicegroup>
    @InjectEntityModel(Devicegroup)
    devicegroup: Repository<Devicegroup>
}
src/app/modules/business/service/deviceopreraterecord.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Deviceopreraterecord } from '../entity/deviceopreraterecord';
/**
        * 设备运维记录
        */
        * 设备运维记录
        */
@Provide()
export class DeviceopreraterecordService extends DataService { 
    @InjectEntityModel(Deviceopreraterecord)
    deviceopreraterecord: Repository<Deviceopreraterecord>
    @InjectEntityModel(Deviceopreraterecord)
    deviceopreraterecord: Repository<Deviceopreraterecord>
}
src/app/modules/business/service/doutrubine.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Doutrubine } from '../entity/doutrubine';
/**
        * 斗轮机信息
        */
        * 斗轮机信息
        */
@Provide()
export class DoutrubineService extends DataService { 
    @InjectEntityModel(Doutrubine)
    doutrubine: Repository<Doutrubine>
    @InjectEntityModel(Doutrubine)
    doutrubine: Repository<Doutrubine>
}
src/app/modules/business/service/execrecord.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Execrecord } from '../entity/execrecord';
/**
        * 任务执行记录表
        */
        * 任务执行记录
        */
@Provide()
export class ExecrecordService extends DataService { 
    @InjectEntityModel(Execrecord)
    execrecord: Repository<Execrecord>
    @InjectEntityModel(Execrecord)
    execrecord: Repository<Execrecord>
}
src/app/modules/business/service/interfacelist.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Interfacelist } from '../entity/interfacelist';
/**
        * 接口清单
        */
        * 接口清单
        */
@Provide()
export class InterfacelistService extends DataService { 
    @InjectEntityModel(Interfacelist)
    interfacelist: Repository<Interfacelist>
    @InjectEntityModel(Interfacelist)
    interfacelist: Repository<Interfacelist>
}
src/app/modules/business/service/interfacerecord.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Interfacerecord } from '../entity/interfacerecord';
/**
        * 组合模型
        */
        * 组合模型
        */
@Provide()
export class InterfacerecordService extends DataService { 
    @InjectEntityModel(Interfacerecord)
    interfacerecord: Repository<Interfacerecord>
    @InjectEntityModel(Interfacerecord)
    interfacerecord: Repository<Interfacerecord>
}
src/app/modules/business/service/messagerecord.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Messagerecord } from '../entity/messagerecord';
/**
        * 任务消息记录
        */
        * 任务消息记录
        */
@Provide()
export class MessagerecordService extends DataService { 
    @InjectEntityModel(Messagerecord)
    messagerecord: Repository<Messagerecord>
    @InjectEntityModel(Messagerecord)
    messagerecord: Repository<Messagerecord>
}
src/app/modules/business/service/metadata.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Metadata } from '../entity/metadata';
/**
        * 监测采集原数据
        */
        * 监测采集原数据
        */
@Provide()
export class MetadataService extends DataService { 
    @InjectEntityModel(Metadata)
    metadata: Repository<Metadata>
    @InjectEntityModel(Metadata)
    metadata: Repository<Metadata>
}
src/app/modules/business/service/modelcombination.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Modelcombination } from '../entity/modelcombination';
/**
        * 组合模型
        */
        * 组合模型
        */
@Provide()
export class ModelcombinationService extends DataService { 
    @InjectEntityModel(Modelcombination)
    modelcombination: Repository<Modelcombination>
    @InjectEntityModel(Modelcombination)
    modelcombination: Repository<Modelcombination>
}
src/app/modules/business/service/modelstatic.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Modelstatic } from '../entity/modelstatic';
/**
        * 静态模型数据
        */
        * 静态模型数据
        */
@Provide()
export class ModelstaticService extends DataService { 
    @InjectEntityModel(Modelstatic)
    modelstatic: Repository<Modelstatic>
    @InjectEntityModel(Modelstatic)
    modelstatic: Repository<Modelstatic>
}
src/app/modules/business/service/periodicsetting.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Periodicsetting } from '../entity/periodicsetting';
/**
        * 分组任务参数设置表
        */
        * 分组任务参数设置
        */
@Provide()
export class PeriodicsettingService extends DataService { 
    @InjectEntityModel(Periodicsetting)
    periodicsetting: Repository<Periodicsetting>
    @InjectEntityModel(Periodicsetting)
    periodicsetting: Repository<Periodicsetting>
}
src/app/modules/business/service/planinventory.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Planinventory } from '../entity/planinventory';
/**
        * 盘煤计划
        */
        * 盘煤计划
        */
@Provide()
export class PlaninventoryService extends DataService { 
    @InjectEntityModel(Planinventory)
    planinventory: Repository<Planinventory>
    @InjectEntityModel(Planinventory)
    planinventory: Repository<Planinventory>
}
src/app/modules/business/service/pointcloud.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Pointcloud } from '../entity/pointcloud';
/**
        * 监测元数据
        */
        * 监测元数据
        */
@Provide()
export class PointcloudService extends DataService { 
    @InjectEntityModel(Pointcloud)
    pointcloud: Repository<Pointcloud>
    @InjectEntityModel(Pointcloud)
    pointcloud: Repository<Pointcloud>
}
src/app/modules/business/service/pointmodel.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Pointmodel } from '../entity/pointmodel';
/**
        * 点云模型
        */
        * 点云模型
        */
@Provide()
export class PointmodelService extends DataService { 
    @InjectEntityModel(Pointmodel)
    pointmodel: Repository<Pointmodel>
    @InjectEntityModel(Pointmodel)
    pointmodel: Repository<Pointmodel>
}
src/app/modules/business/service/statdata.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Statdata } from '../entity/statdata';
/**
        * 监测统计
        */
        * 监测统计
        */
@Provide()
export class StatdataService extends DataService { 
    @InjectEntityModel(Statdata)
    statdata: Repository<Statdata>
    @InjectEntityModel(Statdata)
    statdata: Repository<Statdata>
}
src/app/modules/business/service/taskimmediately.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Taskimmediately } from '../entity/taskimmediately';
/**
        * 即时任务记录表
        */
        * 即时任务记录
        */
@Provide()
export class TaskimmediatelyService extends DataService { 
    @InjectEntityModel(Taskimmediately)
    taskimmediately: Repository<Taskimmediately>
    @InjectEntityModel(Taskimmediately)
    taskimmediately: Repository<Taskimmediately>
}
src/app/modules/business/service/taskmonitor.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Taskmonitor } from '../entity/taskmonitor';
/**
        * 监测任务表
        */
        * 监测任务
        */
@Provide()
export class TaskmonitorService extends DataService { 
    @InjectEntityModel(Taskmonitor)
    taskmonitor: Repository<Taskmonitor>
    @InjectEntityModel(Taskmonitor)
    taskmonitor: Repository<Taskmonitor>
}
src/app/modules/business/service/trubinelocation.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Trubinelocation } from '../entity/trubinelocation';
/**
        * 斗轮机信息
        */
        * 斗轮机信息
        */
@Provide()
export class TrubinelocationService extends DataService { 
    @InjectEntityModel(Trubinelocation)
    trubinelocation: Repository<Trubinelocation>
    @InjectEntityModel(Trubinelocation)
    trubinelocation: Repository<Trubinelocation>
}
src/app/modules/business/service/tuser.ts
@@ -5,10 +5,10 @@
import { DataService } from '../../base/service/dataapi/dataapi';
import { Tuser } from '../entity/tuser';
/**
        *
        */
        *
        */
@Provide()
export class TuserService extends DataService { 
    @InjectEntityModel(Tuser)
    tuser: Repository<Tuser>
    @InjectEntityModel(Tuser)
    tuser: Repository<Tuser>
}