From f5e5d411b38f5819551f9acedef62dcf0832bc2c Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期三, 16 三月 2022 19:51:15 +0800
Subject: [PATCH] after merge wang

---
 src/app/modules/business/entity/devicegroup.ts              |   21 
 src/app/modules/business/controller/colletmeta.ts           |   18 
 src/app/modules/business/service/interfacelist.ts           |   14 
 src/app/modules/business/controller/deviceattachment.ts     |   18 
 src/app/modules/business/controller/trubinelocation.ts      |   18 
 src/app/modules/business/service/execrecord.ts              |   14 
 src/app/modules/business/controller/basedevicesection.ts    |   18 
 src/app/modules/business/controller/doutrubine.ts           |   18 
 src/app/modules/business/entity/colletdata.ts               |   30 
 src/app/modules/business/service/pointcloud.ts              |   14 
 src/app/modules/business/controller/tuser.ts                |   18 
 src/app/modules/business/entity/basedevicestatus.ts         |   30 
 src/app/modules/business/service/colletmeta.ts              |   14 
 src/app/modules/business/controller/deviceopreraterecord.ts |   18 
 src/app/modules/business/controller/modelcombination.ts     |   18 
 src/app/modules/business/controller/messagerecord.ts        |   18 
 src/app/modules/business/service/metadata.ts                |   14 
 src/app/modules/business/controller/taskmonitor.ts          |   18 
 src/app/modules/base/controller/dataController.ts           |   77 ++
 src/app/modules/business/controller/metadata.ts             |   18 
 src/app/modules/business/entity/pointmodel.ts               |   39 +
 src/app/modules/business/entity/pointcloud.ts               |   12 
 src/app/modules/business/controller/interfacelist.ts        |   18 
 src/app/modules/business/entity/interfacerecord.ts          |   36 
 src/app/modules/business/service/colletdata.ts              |   14 
 src/app/modules/business/entity/doutrubine.ts               |   54 +
 src/app/modules/business/controller/interfacerecord.ts      |   18 
 src/app/modules/business/controller/basedevicestatus.ts     |   18 
 src/app/modules/business/service/basedeviceparams.ts        |   14 
 src/app/modules/base/utils/createEntity.ts                  |  181 ++++
 src/app/modules/business/service/devicegroup.ts             |   14 
 src/app/modules/business/service/taskimmediately.ts         |   14 
 src/app/modules/business/entity/interfacelist.ts            |   48 +
 src/app/modules/business/service/basedeviceinfo.ts          |   14 
 src/app/modules/business/service/periodicsetting.ts         |   14 
 src/app/modules/base/controller/admin/open.ts               |  106 --
 src/app/modules/business/service/modelstatic.ts             |   14 
 src/app/modules/business/service/trubinelocation.ts         |   14 
 src/app/modules/business/controller/execrecord.ts           |   18 
 src/app/modules/business/entity/metadata.ts                 |   39 +
 src/app/modules/business/entity/deviceattachment.ts         |   36 
 src/app/modules/business/entity/planinventory.ts            |   33 
 src/app/modules/business/service/interfacerecord.ts         |   14 
 src/app/modules/business/service/modelcombination.ts        |   14 
 src/app/modules/business/service/comconfig.ts               |   14 
 src/app/modules/business/entity/basedeviceinfo.ts           |   66 +
 src/app/modules/business/controller/basedeviceinfo.ts       |   18 
 src/app/modules/business/service/basedevicesection.ts       |   14 
 src/app/modules/business/service/taskmonitor.ts             |   14 
 src/app/modules/business/entity/trubinelocation.ts          |   30 
 src/app/modules/business/entity/tuser.ts                    |   27 
 src/app/modules/business/controller/pointmodel.ts           |   18 
 src/app/modules/business/controller/devicegroup.ts          |   18 
 src/app/modules/business/service/deviceopreraterecord.ts    |   14 
 src/app/modules/business/controller/colletdata.ts           |   18 
 src/app/modules/business/controller/basedeviceparams.ts     |   18 
 src/app/modules/business/entity/statdata.ts                 |   45 +
 src/app/modules/business/config.ts                          |   18 
 src/app/modules/business/entity/periodicsetting.ts          |   39 +
 src/app/modules/business/entity/taskmonitor.ts              |   45 +
 src/app/modules/business/service/deviceattachment.ts        |   14 
 src/app/modules/business/controller/taskimmediately.ts      |   18 
 src/app/modules/business/controller/modelstatic.ts          |   18 
 src/app/modules/business/controller/periodicsetting.ts      |   18 
 src/app/modules/business/entity/messagerecord.ts            |   36 
 src/app/modules/business/entity/modelcombination.ts         |   30 
 src/app/modules/business/entity/execrecord.ts               |   54 +
 src/app/modules/business/service/pointmodel.ts              |   14 
 src/app/modules/business/service/tuser.ts                   |   14 
 src/app/modules/business/entity/taskimmediately.ts          |   36 
 src/app/modules/business/service/basedevicestatus.ts        |   14 
 src/app/modules/business/service/planinventory.ts           |   14 
 src/app/modules/business/entity/basedeviceparams.ts         |   33 
 src/app/modules/business/controller/comconfig.ts            |   18 
 src/app/modules/business/service/messagerecord.ts           |   14 
 src/app/modules/business/entity/colletmeta.ts               |   21 
 src/app/modules/business/entity/comconfig.ts                |   24 
 src/app/modules/business/entity/modelstatic.ts              |   27 
 src/app/modules/business/controller/statdata.ts             |   18 
 src/app/modules/business/controller/pointcloud.ts           |   18 
 src/app/modules/business/service/doutrubine.ts              |   14 
 src/app/modules/business/controller/planinventory.ts        |   18 
 src/app/modules/business/entity/basedevicesection.ts        |   30 
 src/app/modules/business/entity/deviceopreraterecord.ts     |   33 
 src/app/modules/business/service/statdata.ts                |   14 
 85 files changed, 2,124 insertions(+), 76 deletions(-)

diff --git a/src/app/modules/base/controller/admin/open.ts b/src/app/modules/base/controller/admin/open.ts
index 53816af..6c05a10 100644
--- a/src/app/modules/base/controller/admin/open.ts
+++ b/src/app/modules/base/controller/admin/open.ts
@@ -15,13 +15,16 @@
 import { BaseSysParamService } from '../../service/sys/param';
 import { DataService } from '../../service/dataapi/dataapi';
 import { CommEntity } from '../../entity/app/commentity';
+import { CreateEntityUtil } from '../../utils/createEntity';
 
 /**
  * 涓嶉渶瑕佺櫥褰曠殑鍚庡彴鎺ュ彛
  */
 @Provide()
-@CoolController({api: ['add', 'delete', 'update', 'info', 'list', 'page'],
-entity: CommEntity})
+@CoolController({
+  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
+  entity: CommEntity
+})
 export class BaseOpenController extends BaseController {
   @Inject()
   baseSysLoginService: BaseSysLoginService;
@@ -31,6 +34,9 @@
 
   @Inject()
   dataService: DataService;
+
+  @Inject()
+  createEntityUtil: CreateEntityUtil;
 
   @Inject()
   ctx: Context;
@@ -90,8 +96,6 @@
    */
   @Get('/getdata', { summary: '鏁版嵁鎺ュ彛' })
   async getData(@Query(ALL) params: any) {
-    ``
-    console.log('-------------------------------------------------------');
     console.log(params);
     return this.ok(await this.dataService.getData(params));
   }
@@ -107,79 +111,29 @@
   @Get('/createEntity', {})
   async createEntity() {
     console.log('鐢熸垚缁煎悎瀹炰綋绫讳换鍔″紑濮嬫墽琛�');
-    const startTime = Date.now();
-    const columns = await this.dataService.getDataByNative({ "bid": "getColumns", "pageindex": "1", "pagesize": "300" })  //bid_obj_[0], query?.pageindex || null , query?.pagesize || null, query
-    // console.log(columns)
-    const columnstr = [];
-    columnstr.push(`import { EntityModel } from '@midwayjs/orm';
-    import { BaseEntity } from '@cool-midway/core';
-    import { Column, Double } from 'typeorm';
-    
-    /**
-     * 缁煎悎瀹炰綋绫�
-     */
-    @EntityModel('t_sys_comm_column')
-    export class CommEntity extends BaseEntity { \n`)
-    columns.forEach(element => {  //{ column_name: 'avg_task_time', data_type: 'int' },
-      //select table_name,column_name,data_type,column_type,is_nullable,column_default,ordinal_position,column_key,column_comment from view_columninfo order by table_name,column_name;
-      columnstr.push(`@Column({ comment:'${element.column_comment}', type:'${element.data_type}', default:'${element.column_default}'})\n`)
-      //varchar  int   text  double  datetime  bigint   enum  mediumtext  longtext  tinyint  decimal
-      let fieldType = 'string';
-      switch (element.data_type) {
-        case 'varchar':
-          fieldType = 'string'
-          break;
-        case 'text':
-          fieldType = 'string'
-          break;
-        case 'int':
-          fieldType = 'number'
-          break;
-        case 'bigint':
-          fieldType = 'number'
-          break;
-        case 'tinyint':
-          fieldType = 'number'
-          break;
-        case 'datetime':
-          fieldType = 'Date'
-          break;    
-        case 'double':
-          fieldType = 'Double'
-          break;   
-        case 'decimal':
-          fieldType = 'Double'
-          break;   
-        default:
-          break;
-      }
-      // let fieldType = element.data_type=='varchar' ? 'string' : element.data_type=='int' ? 'number' : element.data_type=='bigint' ? 'number' : element.data_type=='tinyint' ? 'number' 
-      columnstr.push(`${element.tbname}_${element.column_name}: ${fieldType};\n`)
-      columnstr.push(`\n`)
-    });
-    columnstr.push(`}`)
-    if (fs.existsSync('../entity/app/commentity.ts')) {
-      console.log(' file is exists')
-    } else {
-      console.log(' file is not exists')
-      // API
-      fs.writeFile('./src/app/modules/base/entity/app/commentity.ts',
-        columnstr.join(''), (error) => {
-          // 鍒涘缓澶辫触
-          if (error) {
-            console.log(`鍒涘缓澶辫触锛�${error}`)
-          }
-          // 鍒涘缓鎴愬姛
-          console.log(`鍒涘缓鎴愬姛锛乣)
 
-        })
-    }
-    //璇诲彇鏂囦欢鍐呭锛屽苟杞寲涓篔son瀵硅薄
-    // let userBugsJson = JSON.parse(fs.readFileSync("app/public/static/Data.json", "utf8"));
-    // //鑾峰彇Json閲宬ey涓篸ata鐨勬暟鎹�
-    // const data = userBugsJson['data'];
-    // return data;
-    console.log(`鐢熸垚缁煎悎瀹炰綋绫讳换鍔$粨鏉燂紝鑰楁椂:${Date.now() - startTime}ms`);
+    let tables = await this.dataService.getDataByNative({ "bid": "getTableNeedCreate", "pageindex": "1", "pagesize": "300" })
+    let columns = await this.dataService.getDataByNative({ "bid": "getColumns", "pageindex": "1", "pagesize": "300" })  //bid_obj_[0], query?.pageindex || null , query?.pagesize || null, query
+    console.log(`${tables.length} and columnlength ${columns.length}`)
+    let tabs = {};
+    tables.forEach(element => {
+      tabs[element.name] = element;
+    });
+    columns.forEach(element => {
+      let tbname = element.table_name;
+      if (!tabs[tbname]) {
+        tabs[tbname] = {}
+      }
+      if (!tabs[tbname].tbcolumn) {
+        tabs[tbname].tbcolumn = [];
+      }
+      tabs[tbname].tbcolumn.push(element)
+    });
+    Object.keys(tabs).forEach(key => {
+      this.createEntityUtil.createEntity(tabs[key])
+      this.createEntityUtil.createService(tabs[key])
+      this.createEntityUtil.createController(tabs[key])
+    })
   }
 
 }
diff --git a/src/app/modules/base/controller/dataController.ts b/src/app/modules/base/controller/dataController.ts
new file mode 100644
index 0000000..feba0dc
--- /dev/null
+++ b/src/app/modules/base/controller/dataController.ts
@@ -0,0 +1,77 @@
+import { Provide, Inject, Get, Post,Query, Body, ALL } from '@midwayjs/decorator';
+import {
+  CoolController,
+  BaseController,
+  ICoolCache,
+  ICoolFile,
+} from '@cool-midway/core';
+import { Context } from 'egg';
+import { DataService } from '../service/dataapi/dataapi';
+
+/**
+ * 閫氱敤鏁版嵁鐨勫悗鍙版帴鍙�
+ */
+@Provide()
+@CoolController()
+export class DataController extends BaseController {
+  @Inject('cool:eps:open')
+  eps;
+
+  @Inject('cool:cache')
+  coolCache: ICoolCache;
+
+  @Inject('cool:file')
+  coolFile: ICoolFile;
+
+  @Inject()
+  ctx: Context;
+  
+  @Inject()
+  dataService: DataService;
+
+  /**
+   * 瀹炰綋淇℃伅涓庤矾寰�
+   * @returns
+   */
+  @Get('/eps', { summary: '瀹炰綋淇℃伅涓庤矾寰�' })
+  public async getEps() {
+    console.log(this.coolCache.getMode());
+    return this.ok(this.eps);
+  }
+
+  /**
+   * 鏂囦欢涓婁紶
+   */
+  @Post('/upload', { summary: '鏂囦欢涓婁紶' })
+  async upload() {
+    return this.ok(await this.coolFile.upload(this.ctx));
+  }
+
+  /**
+   * 鏂囦欢涓婁紶妯″紡锛屾湰鍦版垨鑰呬簯瀛樺偍
+   */
+  @Get('/uploadMode', { summary: '鏂囦欢涓婁紶妯″紡' })
+  async uploadMode() {
+    return this.ok(this.coolFile.getMode());
+  }
+
+  
+  /**
+   * 鑾峰緱鏁版嵁
+   */
+   @Get('/getdata', { summary: '鏁版嵁鎺ュ彛' })
+   async getData(@Query(ALL) params: any) {
+     console.log(params);
+     return this.ok(await this.dataService.getData(params));
+   }
+ 
+   /**
+    * 鑾峰緱鏁版嵁
+    */
+   @Post('/postdata', { summary: '鏁版嵁鎺ュ彛' })
+   async postData(@Query(ALL) params: any) {
+     return this.ok(await this.dataService.getData(params));
+   }
+ 
+  
+}
diff --git a/src/app/modules/base/utils/createEntity.ts b/src/app/modules/base/utils/createEntity.ts
new file mode 100644
index 0000000..633207d
--- /dev/null
+++ b/src/app/modules/base/utils/createEntity.ts
@@ -0,0 +1,181 @@
+import { Inject, Provide } from "@midwayjs/decorator"
+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;
+                }
+
+                // 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--------------------`);
+    }
+
+
+    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(`鍒涘缓鎴愬姛锛乣)
+                })
+        }
+    }
+
+
+    firstToUpper3(str){
+        return str.toLowerCase().replace(/( |^)[a-z]/g,(L)=>L.toUpperCase());
+    }
+
+}
diff --git a/src/app/modules/business/config.ts b/src/app/modules/business/config.ts
new file mode 100644
index 0000000..e65df6b
--- /dev/null
+++ b/src/app/modules/business/config.ts
@@ -0,0 +1,18 @@
+import { Application } from 'egg';
+import { ModuleConfig } from '@cool-midway/core';
+
+/**
+ * 绀轰緥
+ */
+export default (app: Application) => {
+  return {
+    // 妯″潡鍚嶇О
+    name: 'business',
+    // 妯″潡鎻忚堪
+    description: '涓氬姟鎺ュ彛',
+    // 涓棿浠�
+    middlewares: [],
+    // 鍏ㄥ眬涓棿浠�
+    globalMiddlewares: [],
+  } as ModuleConfig;
+};
\ No newline at end of file
diff --git a/src/app/modules/business/controller/basedeviceinfo.ts b/src/app/modules/business/controller/basedeviceinfo.ts
new file mode 100644
index 0000000..3d08063
--- /dev/null
+++ b/src/app/modules/business/controller/basedeviceinfo.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator';
+import { CoolController, BaseController } from '@cool-midway/core';
+import { Basedeviceinfo } from '../entity/basedeviceinfo';
+import { BasedeviceinfoService } from '../service/basedeviceinfo';
+import { DataController } from '../../base/controller/dataController';
+/**
+        * 璁惧淇℃伅琛�
+        */
+@Provide()
+@CoolController({ 
+  api: ['add', 'delete', 'update', 'list'],
+  entity: Basedeviceinfo,
+  service: BasedeviceinfoService,
+})
+export class BasedeviceinfoController extends DataController {
+  @Inject()
+  basedeviceinfoService: BasedeviceinfoService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/basedeviceparams.ts b/src/app/modules/business/controller/basedeviceparams.ts
new file mode 100644
index 0000000..a9975e5
--- /dev/null
+++ b/src/app/modules/business/controller/basedeviceparams.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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'],
+  entity: Basedeviceparams,
+  service: BasedeviceparamsService,
+})
+export class BasedeviceparamsController extends DataController {
+  @Inject()
+  basedeviceparamsService: BasedeviceparamsService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/basedevicesection.ts b/src/app/modules/business/controller/basedevicesection.ts
new file mode 100644
index 0000000..3ed61fe
--- /dev/null
+++ b/src/app/modules/business/controller/basedevicesection.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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'],
+  entity: Basedevicesection,
+  service: BasedevicesectionService,
+})
+export class BasedevicesectionController extends DataController {
+  @Inject()
+  basedevicesectionService: BasedevicesectionService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/basedevicestatus.ts b/src/app/modules/business/controller/basedevicestatus.ts
new file mode 100644
index 0000000..1b390f3
--- /dev/null
+++ b/src/app/modules/business/controller/basedevicestatus.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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'],
+  entity: Basedevicestatus,
+  service: BasedevicestatusService,
+})
+export class BasedevicestatusController extends DataController {
+  @Inject()
+  basedevicestatusService: BasedevicestatusService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/colletdata.ts b/src/app/modules/business/controller/colletdata.ts
new file mode 100644
index 0000000..5cac8dc
--- /dev/null
+++ b/src/app/modules/business/controller/colletdata.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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'],
+  entity: Colletdata,
+  service: ColletdataService,
+})
+export class ColletdataController extends DataController {
+  @Inject()
+  colletdataService: ColletdataService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/colletmeta.ts b/src/app/modules/business/controller/colletmeta.ts
new file mode 100644
index 0000000..ff8ed89
--- /dev/null
+++ b/src/app/modules/business/controller/colletmeta.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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'],
+  entity: Colletmeta,
+  service: ColletmetaService,
+})
+export class ColletmetaController extends DataController {
+  @Inject()
+  colletmetaService: ColletmetaService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/comconfig.ts b/src/app/modules/business/controller/comconfig.ts
new file mode 100644
index 0000000..f08a2ee
--- /dev/null
+++ b/src/app/modules/business/controller/comconfig.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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'],
+  entity: Comconfig,
+  service: ComconfigService,
+})
+export class ComconfigController extends DataController {
+  @Inject()
+  comconfigService: ComconfigService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/deviceattachment.ts b/src/app/modules/business/controller/deviceattachment.ts
new file mode 100644
index 0000000..04b0f01
--- /dev/null
+++ b/src/app/modules/business/controller/deviceattachment.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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'],
+  entity: Deviceattachment,
+  service: DeviceattachmentService,
+})
+export class DeviceattachmentController extends DataController {
+  @Inject()
+  deviceattachmentService: DeviceattachmentService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/devicegroup.ts b/src/app/modules/business/controller/devicegroup.ts
new file mode 100644
index 0000000..bb5eb75
--- /dev/null
+++ b/src/app/modules/business/controller/devicegroup.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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'],
+  entity: Devicegroup,
+  service: DevicegroupService,
+})
+export class DevicegroupController extends DataController {
+  @Inject()
+  devicegroupService: DevicegroupService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/deviceopreraterecord.ts b/src/app/modules/business/controller/deviceopreraterecord.ts
new file mode 100644
index 0000000..fe144cd
--- /dev/null
+++ b/src/app/modules/business/controller/deviceopreraterecord.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class DeviceopreraterecordController extends DataController {
+  @Inject()
+  deviceopreraterecordService: DeviceopreraterecordService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/doutrubine.ts b/src/app/modules/business/controller/doutrubine.ts
new file mode 100644
index 0000000..746d105
--- /dev/null
+++ b/src/app/modules/business/controller/doutrubine.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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'],
+  entity: Doutrubine,
+  service: DoutrubineService,
+})
+export class DoutrubineController extends DataController {
+  @Inject()
+  doutrubineService: DoutrubineService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/execrecord.ts b/src/app/modules/business/controller/execrecord.ts
new file mode 100644
index 0000000..80b2346
--- /dev/null
+++ b/src/app/modules/business/controller/execrecord.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class ExecrecordController extends DataController {
+  @Inject()
+  execrecordService: ExecrecordService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/interfacelist.ts b/src/app/modules/business/controller/interfacelist.ts
new file mode 100644
index 0000000..fd1c371
--- /dev/null
+++ b/src/app/modules/business/controller/interfacelist.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class InterfacelistController extends DataController {
+  @Inject()
+  interfacelistService: InterfacelistService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/interfacerecord.ts b/src/app/modules/business/controller/interfacerecord.ts
new file mode 100644
index 0000000..b9e6b2a
--- /dev/null
+++ b/src/app/modules/business/controller/interfacerecord.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class InterfacerecordController extends DataController {
+  @Inject()
+  interfacerecordService: InterfacerecordService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/messagerecord.ts b/src/app/modules/business/controller/messagerecord.ts
new file mode 100644
index 0000000..5cc1c8b
--- /dev/null
+++ b/src/app/modules/business/controller/messagerecord.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class MessagerecordController extends DataController {
+  @Inject()
+  messagerecordService: MessagerecordService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/metadata.ts b/src/app/modules/business/controller/metadata.ts
new file mode 100644
index 0000000..8b81980
--- /dev/null
+++ b/src/app/modules/business/controller/metadata.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class MetadataController extends DataController {
+  @Inject()
+  metadataService: MetadataService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/modelcombination.ts b/src/app/modules/business/controller/modelcombination.ts
new file mode 100644
index 0000000..c676c44
--- /dev/null
+++ b/src/app/modules/business/controller/modelcombination.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class ModelcombinationController extends DataController {
+  @Inject()
+  modelcombinationService: ModelcombinationService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/modelstatic.ts b/src/app/modules/business/controller/modelstatic.ts
new file mode 100644
index 0000000..41e43fd
--- /dev/null
+++ b/src/app/modules/business/controller/modelstatic.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class ModelstaticController extends DataController {
+  @Inject()
+  modelstaticService: ModelstaticService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/periodicsetting.ts b/src/app/modules/business/controller/periodicsetting.ts
new file mode 100644
index 0000000..7c97585
--- /dev/null
+++ b/src/app/modules/business/controller/periodicsetting.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class PeriodicsettingController extends DataController {
+  @Inject()
+  periodicsettingService: PeriodicsettingService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/planinventory.ts b/src/app/modules/business/controller/planinventory.ts
new file mode 100644
index 0000000..e63d74a
--- /dev/null
+++ b/src/app/modules/business/controller/planinventory.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class PlaninventoryController extends DataController {
+  @Inject()
+  planinventoryService: PlaninventoryService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/pointcloud.ts b/src/app/modules/business/controller/pointcloud.ts
new file mode 100644
index 0000000..4c54b01
--- /dev/null
+++ b/src/app/modules/business/controller/pointcloud.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class PointcloudController extends DataController {
+  @Inject()
+  pointcloudService: PointcloudService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/pointmodel.ts b/src/app/modules/business/controller/pointmodel.ts
new file mode 100644
index 0000000..501da30
--- /dev/null
+++ b/src/app/modules/business/controller/pointmodel.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class PointmodelController extends DataController {
+  @Inject()
+  pointmodelService: PointmodelService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/statdata.ts b/src/app/modules/business/controller/statdata.ts
new file mode 100644
index 0000000..9eb37e9
--- /dev/null
+++ b/src/app/modules/business/controller/statdata.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class StatdataController extends DataController {
+  @Inject()
+  statdataService: StatdataService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/taskimmediately.ts b/src/app/modules/business/controller/taskimmediately.ts
new file mode 100644
index 0000000..41ef9f8
--- /dev/null
+++ b/src/app/modules/business/controller/taskimmediately.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class TaskimmediatelyController extends DataController {
+  @Inject()
+  taskimmediatelyService: TaskimmediatelyService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/taskmonitor.ts b/src/app/modules/business/controller/taskmonitor.ts
new file mode 100644
index 0000000..753192e
--- /dev/null
+++ b/src/app/modules/business/controller/taskmonitor.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class TaskmonitorController extends DataController {
+  @Inject()
+  taskmonitorService: TaskmonitorService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/trubinelocation.ts b/src/app/modules/business/controller/trubinelocation.ts
new file mode 100644
index 0000000..cac6ca2
--- /dev/null
+++ b/src/app/modules/business/controller/trubinelocation.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class TrubinelocationController extends DataController {
+  @Inject()
+  trubinelocationService: TrubinelocationService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/controller/tuser.ts b/src/app/modules/business/controller/tuser.ts
new file mode 100644
index 0000000..040a403
--- /dev/null
+++ b/src/app/modules/business/controller/tuser.ts
@@ -0,0 +1,18 @@
+import { ALL, Body, Inject, Post, Provide } 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,
+})
+export class TuserController extends DataController {
+  @Inject()
+  tuserService: TuserService;
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/basedeviceinfo.ts b/src/app/modules/business/entity/basedeviceinfo.ts
new file mode 100644
index 0000000..981efae
--- /dev/null
+++ b/src/app/modules/business/entity/basedeviceinfo.ts
@@ -0,0 +1,66 @@
+import { EntityModel } from '@midwayjs/orm';
+import { BaseEntity } from '@cool-midway/core';
+import { Column, Double } from 'typeorm';
+/**
+        * 璁惧淇℃伅琛�
+        */
+@EntityModel('t_base_deviceinfo') 
+export class Basedeviceinfo extends BaseEntity { 
+@Column({ comment:'璁惧楂樺害', type:'varchar', default:'', length:50})
+altitude: string;
+
+@Column({ comment:'璐﹀彿', type:'varchar', default:'', length:50})
+device_account: string;
+
+@Column({ comment:'鍞竴绱㈠紩锛岃澶囩墿鐞唅d锛屽鍘傜紪鍙枫�乻ubscribeno绛�', type:'varchar', default:'', length:50})
+device_id: string;
+
+@Column({ comment:'绔彛', type:'varchar', default:'', length:50})
+device_port: string;
+
+@Column({ comment:'瀵嗙爜', type:'varchar', default:'', length:50})
+device_psw: string;
+
+@Column({ comment:'璁惧绮惧害', type:'varchar', default:'', length:50})
+dimension: string;
+
+@Column({ comment:'', type:'varchar', default:'', length:50})
+heading_angle: string;
+
+@Column({ comment:'IP鍦板潃', type:'varchar', default:'', length:50})
+ipaddres: string;
+
+@Column({ comment:'绾害锛岀簿纭埌灏忔暟鐐瑰悗6浣�', type:'varchar', default:'', length:50})
+latitude: string;
+
+@Column({ comment:'瀹夎浣嶇疆锛�**鐪�**甯�**鍖�**璺�**鍙�**妤�**鏂逛綅', type:'varchar', default:'', length:50})
+location: string;
+
+@Column({ comment:'璁惧閫昏緫ID', type:'varchar', default:'', length:50})
+logic_id: string;
+
+@Column({ comment:'缁忓害锛岀簿纭埌灏忔暟鐐瑰悗6浣�', type:'varchar', default:'', length:50})
+longitude: string;
+
+@Column({ comment:'璁惧鍚嶇О', type:'varchar', default:'', length:50})
+name: string;
+
+@Column({ comment:'杩愮淮璐熻矗浜�', type:'varchar', default:'', length:50})
+opertator: string;
+
+@Column({ comment:'淇话瑙�', type:'varchar', default:'', length:50})
+petch_angle: string;
+
+@Column({ comment:'鑸悜瑙�', type:'varchar', default:'', length:50})
+precision: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'妯粴瑙�', type:'varchar', default:'', length:50})
+roll_angle: string;
+
+@Column({ comment:'鐘舵��,1-鍚敤  0-鍋滅敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/basedeviceparams.ts b/src/app/modules/business/entity/basedeviceparams.ts
new file mode 100644
index 0000000..d442f8f
--- /dev/null
+++ b/src/app/modules/business/entity/basedeviceparams.ts
@@ -0,0 +1,33 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+configurator: string;
+
+@Column({ comment:'璁惧鐗╃悊ID', type:'varchar', default:'', length:50})
+device_id: string;
+
+@Column({ comment:'璁惧閫昏緫ID', type:'varchar', default:'', length:50})
+logic_id: string;
+
+@Column({ comment:'key', type:'varchar', default:'', length:50})
+param_key: string;
+
+@Column({ comment:'鍙傛暟绫诲瀷', type:'int', default:null, width:0})
+param_type: number;
+
+@Column({ comment:'鍙傛暟鍊�', type:'varchar', default:'', length:50})
+param_value: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'鐘舵��,1-鍚敤  0-鍋滅敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/basedevicesection.ts b/src/app/modules/business/entity/basedevicesection.ts
new file mode 100644
index 0000000..025e88d
--- /dev/null
+++ b/src/app/modules/business/entity/basedevicesection.ts
@@ -0,0 +1,30 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+configurator: string;
+
+@Column({ comment:'璁惧鐗╃悊ID', type:'varchar', default:'', length:50})
+device_id: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'缁勪欢鍚嶇О', type:'varchar', default:'', length:50})
+section_name: string;
+
+@Column({ comment:'椤哄簭缂栧彿', type:'varchar', default:'', length:50})
+section_sort: string;
+
+@Column({ comment:'缁勪欢绫诲瀷', type:'int', default:null, width:0})
+section_type: number;
+
+@Column({ comment:'鐘舵��,1-鍚敤  0-鍋滅敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/basedevicestatus.ts b/src/app/modules/business/entity/basedevicestatus.ts
new file mode 100644
index 0000000..c7e0b3b
--- /dev/null
+++ b/src/app/modules/business/entity/basedevicestatus.ts
@@ -0,0 +1,30 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+alarm_type: number;
+
+@Column({ comment:'璁惧鐗╃悊ID', type:'varchar', default:'', length:50})
+device_id: string;
+
+@Column({ comment:'璁惧閫昏緫ID', type:'varchar', default:'', length:50})
+logic_id: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'涓婃姤鍐呭锛屽彲浠ユ槸json鏍煎紡', type:'varchar', default:'', length:50})
+report_content: string;
+
+@Column({ comment:'涓婃姤鏃堕棿', type:'datetime'})
+report_time: Date;
+
+@Column({ comment:'鐘舵��,1-鍚敤  0-鍋滅敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/colletdata.ts b/src/app/modules/business/entity/colletdata.ts
new file mode 100644
index 0000000..b7087e3
--- /dev/null
+++ b/src/app/modules/business/entity/colletdata.ts
@@ -0,0 +1,30 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+data_content: string;
+
+@Column({ comment:'鏁版嵁瀛樺偍璺緞锛寀rl鏍煎紡锛屽煙鍚嶅彲鐢辨湇鍔$鎴栬�呭墠绔厤缃繘琛岃闂�', type:'varchar', default:'', length:50})
+data_path: string;
+
+@Column({ comment:'1-鍛ㄦ湡浠诲姟   0-鍗虫椂鎬т换鍔�', type:'int', default:null, width:0})
+is_periodic: number;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'', 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})
+task_monitor_id: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/colletmeta.ts b/src/app/modules/business/entity/colletmeta.ts
new file mode 100644
index 0000000..2d79509
--- /dev/null
+++ b/src/app/modules/business/entity/colletmeta.ts
@@ -0,0 +1,21 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+collet_data_id: number;
+
+@Column({ comment:'', type:'int', default:null, width:0})
+meta_data_id: number;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/comconfig.ts b/src/app/modules/business/entity/comconfig.ts
new file mode 100644
index 0000000..39cd7c9
--- /dev/null
+++ b/src/app/modules/business/entity/comconfig.ts
@@ -0,0 +1,24 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+com_model_id: number;
+
+@Column({ comment:'', type:'int', default:null, width:0})
+model_id: number;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'', type:'varchar', default:'', length:50})
+sortby: string;
+
+@Column({ comment:'', type:'int', default:null, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/deviceattachment.ts b/src/app/modules/business/entity/deviceattachment.ts
new file mode 100644
index 0000000..4e01a23
--- /dev/null
+++ b/src/app/modules/business/entity/deviceattachment.ts
@@ -0,0 +1,36 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+attach_name: string;
+
+@Column({ comment:'椤哄簭缂栧彿', type:'varchar', default:'', length:50})
+attach_sort: string;
+
+@Column({ comment:'闄勪欢绫诲瀷锛� 1-浣跨敤璇存槑  2-瀹夎浣嶇疆鐓х墖 ...', type:'varchar', default:'', length:50})
+attach_type: string;
+
+@Column({ comment:'闄勪欢璁块棶璺緞', type:'varchar', default:'', length:50})
+attach_url: string;
+
+@Column({ comment:'闄勪欢鎻愪緵浜�', type:'varchar', default:'', length:50})
+configurator: string;
+
+@Column({ comment:'璁惧鐗╃悊ID', type:'varchar', default:'', length:50})
+device_id: string;
+
+@Column({ comment:'閫昏緫ID', type:'varchar', default:'', length:50})
+logic_id: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'鐘舵��,1-鍚敤  0-鍋滅敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/devicegroup.ts b/src/app/modules/business/entity/devicegroup.ts
new file mode 100644
index 0000000..405e142
--- /dev/null
+++ b/src/app/modules/business/entity/devicegroup.ts
@@ -0,0 +1,21 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+configurator: string;
+
+@Column({ comment:'閫昏緫ID', type:'varchar', default:'null', length:255})
+logic_id: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:255})
+remark: string;
+
+@Column({ comment:'鐘舵��', type:'tinyint', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/deviceopreraterecord.ts b/src/app/modules/business/entity/deviceopreraterecord.ts
new file mode 100644
index 0000000..6c25cf6
--- /dev/null
+++ b/src/app/modules/business/entity/deviceopreraterecord.ts
@@ -0,0 +1,33 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+device_id: string;
+
+@Column({ comment:'璁惧閫昏緫ID', type:'varchar', default:'', length:50})
+logic_id: string;
+
+@Column({ comment:'杩愮淮鍐呭', type:'varchar', default:'', length:50})
+operate_content: string;
+
+@Column({ comment:'杩愮淮绫诲瀷  1-宸℃  2-缁翠慨', type:'varchar', default:'', length:50})
+operate_type: string;
+
+@Column({ comment:'杩愮淮浜哄憳', type:'varchar', default:'', length:50})
+operater: string;
+
+@Column({ comment:'闄勪欢璁块棶璺緞', type:'varchar', default:'', length:50})
+pic_url: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'鐘舵��,1-鍚敤  0-鍋滅敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/doutrubine.ts b/src/app/modules/business/entity/doutrubine.ts
new file mode 100644
index 0000000..e8ae292
--- /dev/null
+++ b/src/app/modules/business/entity/doutrubine.ts
@@ -0,0 +1,54 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+diameter_wheel: string;
+
+@Column({ comment:'dou_wheel_volumn', type:'varchar', default:'null', length:255})
+dou_wheel_volumn: string;
+
+@Column({ comment:'max_reclaiming', type:'varchar', default:'null', length:255})
+max_reclaiming: string;
+
+@Column({ comment:'鐓ゅ爢2', type:'varchar', default:'null', length:255})
+max_windrow: string;
+
+@Column({ comment:'petch_angle', type:'varchar', default:'null', length:255})
+petch_angle: string;
+
+@Column({ comment:'鏃嬭浆鐩村緞', type:'varchar', default:'null', length:255})
+pie_height_down: string;
+
+@Column({ comment:'鏃嬭浆鐩村緞', type:'varchar', default:'null', length:255})
+pie_height_up: string;
+
+@Column({ comment:'rated_reclaiming', type:'varchar', default:'null', length:255})
+rated_reclaiming: string;
+
+@Column({ comment:'鐓ゅ爢1', type:'varchar', default:'null', length:255})
+rated_windrow: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'null', length:255})
+remark: string;
+
+@Column({ comment:'鐘舵��', type:'tinyint', default:1, width:0})
+status: number;
+
+@Column({ comment:'鏂楄疆鏈哄悕绉�', type:'varchar', default:'null', length:255})
+trubine_name: string;
+
+@Column({ comment:'鏂楄疆鏈虹紪鍙�', type:'varchar', default:'null', length:255})
+trubine_no: string;
+
+@Column({ comment:'鍨嬪彿灏哄', type:'varchar', default:'null', length:255})
+trubine_size: string;
+
+@Column({ comment:'鏂楄疆鏈虹被鍒�', type:'varchar', default:'null', length:255})
+trubine_type: string;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/execrecord.ts b/src/app/modules/business/entity/execrecord.ts
new file mode 100644
index 0000000..c3608f7
--- /dev/null
+++ b/src/app/modules/business/entity/execrecord.ts
@@ -0,0 +1,54 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+device_id: string;
+
+@Column({ comment:'璁惧鎵ц浠诲姟鏃跺埢鐨勭浉鍏冲弬鏁帮紝json鏍煎紡銆�', type:'varchar', default:'', length:50})
+device_params: string;
+
+@Column({ comment:'缁撴潫鏃堕棿锛屼换鍔℃墽琛屽畬鎴愭椂闂�', type:'datetime'})
+end_time: Date;
+
+@Column({ comment:'鎵ц缁撴灉', type:'varchar', default:'', length:50})
+exec_result: string;
+
+@Column({ comment:'鎵ц鑰楁椂', type:'varchar', default:'', length:50})
+exec_time: string;
+
+@Column({ comment:'1-鍛ㄦ湡浠诲姟   0-鍗虫椂鎬т换鍔�', type:'int', default:null, width:0})
+is_periodic: number;
+
+@Column({ comment:'璁惧鐨勯�昏緫ID', type:'varchar', default:'', length:50})
+logic_id: string;
+
+@Column({ comment:'鏈嶅姟绔暟鎹帴鏀舵椂闂�', type:'datetime'})
+receive_time: Date;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'鏁版嵁鍥炰紶鏃堕棿', type:'datetime'})
+send_time: Date;
+
+@Column({ comment:'寮�濮嬫椂闂达紝璁惧鏀跺埌鎸囦护鏃堕棿', type:'datetime'})
+start_time: Date;
+
+@Column({ comment:'鏃犳剰涔夛紝妗嗘灦闇�瑕�', type:'int', default:1, width:0})
+status: number;
+
+@Column({ comment:'浠诲姟鎸囦护', type:'varchar', default:'', length:50})
+task_command: string;
+
+@Column({ comment:'浠诲姟ID锛屽搴攖_task_periodic_setting鐨勪富閿紝鎴栬�卼_task_immediately涓婚敭', type:'int', default:null, width:0})
+task_id: number;
+
+@Column({ comment:'鐩戞祴璁板綍ID锛屽搴攖_task_monitor鐨勪富閿�', type:'int', default:null, width:0})
+task_monitor_id: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/interfacelist.ts b/src/app/modules/business/entity/interfacelist.ts
new file mode 100644
index 0000000..bad8a81
--- /dev/null
+++ b/src/app/modules/business/entity/interfacelist.ts
@@ -0,0 +1,48 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+auth_account: string;
+
+@Column({ comment:'瀵嗙爜', type:'varchar', default:'', length:50})
+auth_psw: string;
+
+@Column({ comment:'璁よ瘉鏂瑰紡', type:'varchar', default:'', length:50})
+interface_auth: string;
+
+@Column({ comment:'鎺ュ彛IP', type:'varchar', default:'', length:50})
+interface_ip: string;
+
+@Column({ comment:'鎺ュ彛鍚嶇О', type:'varchar', default:'', length:50})
+interface_name: string;
+
+@Column({ comment:'绔彛', type:'varchar', default:'', length:50})
+interface_port: string;
+
+@Column({ comment:'鎺ュ彛鍗忚', type:'varchar', default:'', length:50})
+interface_protocal: string;
+
+@Column({ comment:'鎺ュ彛绫诲瀷', type:'varchar', default:'', length:50})
+interface_type: string;
+
+@Column({ comment:'鎺ュ彛鍦板潃', type:'varchar', default:'', length:50})
+interface_url: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'', type:'varchar', default:'', length:50})
+share_service: string;
+
+@Column({ comment:'', type:'varchar', default:'', length:50})
+share_url: string;
+
+@Column({ comment:'', type:'int', default:null, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/interfacerecord.ts b/src/app/modules/business/entity/interfacerecord.ts
new file mode 100644
index 0000000..32e85ca
--- /dev/null
+++ b/src/app/modules/business/entity/interfacerecord.ts
@@ -0,0 +1,36 @@
+import { EntityModel } from '@midwayjs/orm';
+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'})
+end_time: Date;
+
+@Column({ comment:'鎺ュ彛璋冪敤鍦板潃', type:'varchar', default:'', length:50})
+interface_direct: string;
+
+@Column({ comment:'鎺ュ彛娓呭崟ID', type:'varchar', default:'', length:50})
+interface_id: string;
+
+@Column({ comment:'璋冪敤鍙傛暟锛宩son鏍煎紡', type:'varchar', default:'', length:50})
+params: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'璇锋眰绫诲瀷', type:'varchar', default:'', length:50})
+request_type: string;
+
+@Column({ comment:'璋冪敤缁撴灉', type:'varchar', default:'', length:50})
+result: string;
+
+@Column({ comment:'寮�濮嬫椂闂�', type:'datetime'})
+start_time: Date;
+
+@Column({ comment:'1-鍚敤   0-绂佺敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/messagerecord.ts b/src/app/modules/business/entity/messagerecord.ts
new file mode 100644
index 0000000..451558e
--- /dev/null
+++ b/src/app/modules/business/entity/messagerecord.ts
@@ -0,0 +1,36 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+message: string;
+
+@Column({ comment:'鍙戦�佹簮 ', type:'varchar', default:'', length:50})
+msg_source: string;
+
+@Column({ comment:'鍙戦�佺洰鏍�', type:'varchar', default:'', length:50})
+msg_target: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'鍙戦�佹椂闂�', type:'datetime'})
+send_time: Date;
+
+@Column({ comment:'娑堟伅鐘舵�� 1-宸插彂閫�   0-鏈彂閫�  榛樿涓�0', type:'int', default:0, 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})
+task_monitor_id: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/metadata.ts b/src/app/modules/business/entity/metadata.ts
new file mode 100644
index 0000000..3ed4d83
--- /dev/null
+++ b/src/app/modules/business/entity/metadata.ts
@@ -0,0 +1,39 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+data_content: string;
+
+@Column({ comment:'鏁版嵁鏂囦欢璺緞锛寀rl鏍煎紡锛屽煙鍚嶅彲鐢卞墠绔垨鑰呮湇鍔$閰嶇疆', type:'varchar', default:'', length:50})
+data_path: string;
+
+@Column({ comment:'璁惧ID', type:'varchar', default:'', length:50})
+device_id: string;
+
+@Column({ comment:'鎵ц璁板綍', type:'int', default:null, width:0})
+exec_record_id: number;
+
+@Column({ comment:'1-鍛ㄦ湡浠诲姟   0-鍗虫椂鎬т换鍔�', type:'int', default:null, width:0})
+is_periodic: number;
+
+@Column({ comment:'閫昏緫ID', type:'varchar', default:'', length:50})
+logic_id: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'鐘舵�侊紝1-鏈夋晥  0-鏃犳晥  榛樿涓�1', 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})
+task_monitor_id: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/modelcombination.ts b/src/app/modules/business/entity/modelcombination.ts
new file mode 100644
index 0000000..6f850ff
--- /dev/null
+++ b/src/app/modules/business/entity/modelcombination.ts
@@ -0,0 +1,30 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+data_content: string;
+
+@Column({ comment:'鏁版嵁鏂囦欢璺緞锛寀rl鏍煎紡锛屽煙鍚嶅彲鐢辨湇鍔$鎴栬�呭墠绔厤缃�', type:'varchar', default:'', length:50})
+data_path: string;
+
+@Column({ comment:'1-鍛ㄦ湡浠诲姟   0-鍗虫椂浠诲姟', type:'int', default:null, width:0})
+is_periodic: number;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'1-鍚敤   0-绂佺敤', type:'int', default:null, 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})
+task_monitor_id: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/modelstatic.ts b/src/app/modules/business/entity/modelstatic.ts
new file mode 100644
index 0000000..de5558f
--- /dev/null
+++ b/src/app/modules/business/entity/modelstatic.ts
@@ -0,0 +1,27 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+data_content: string;
+
+@Column({ comment:'鏁版嵁鏂囦欢璺緞锛屽瓨鏀緐rl', type:'varchar', default:'', length:50})
+data_path: string;
+
+@Column({ comment:'鐗╃悊妯″瀷鐨勯�昏緫ID', type:'varchar', default:'', length:50})
+logic_id: string;
+
+@Column({ comment:'', type:'varchar', default:'', length:50})
+name: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'鐘舵�侊紝 1-鍚敤  0-绂佺敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/periodicsetting.ts b/src/app/modules/business/entity/periodicsetting.ts
new file mode 100644
index 0000000..9604e10
--- /dev/null
+++ b/src/app/modules/business/entity/periodicsetting.ts
@@ -0,0 +1,39 @@
+import { EntityModel } from '@midwayjs/orm';
+import { BaseEntity } from '@cool-midway/core';
+import { Column, Double } from 'typeorm';
+/**
+        * 鍒嗙粍浠诲姟鍙傛暟璁剧疆琛�
+        */
+@EntityModel('t_task_periodic_setting') 
+export class Periodicsetting extends BaseEntity { 
+@Column({ comment:'鍛ㄦ湡浠诲姟', type:'varchar', default:'null', length:255})
+crontab_rule: string;
+
+@Column({ comment:'浠诲姟缁撴潫鏃堕棿', type:'datetime'})
+end_time: Date;
+
+@Column({ comment:'璁惧鍒嗙粍ID', type:'int', default:null, width:0})
+group_id: number;
+
+@Column({ comment:'璁剧疆浜�', type:'varchar', default:'null', length:255})
+operator: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'null', length:255})
+remark: string;
+
+@Column({ comment:'鐘舵��', type:'tinyint', default:1, width:0})
+status: number;
+
+@Column({ comment:'浠诲姟鍛戒护鏍煎紡', type:'varchar', default:'null', length:255})
+task_command: string;
+
+@Column({ comment:'浠诲姟鍐呭鎻忚堪', type:'varchar', default:'null', length:255})
+task_content: string;
+
+@Column({ comment:'浠诲姟鍙傛暟', type:'varchar', default:'null', length:255})
+task_params: string;
+
+@Column({ comment:'浠诲姟绫诲瀷', type:'int', default:null, width:0})
+task_type: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/planinventory.ts b/src/app/modules/business/entity/planinventory.ts
new file mode 100644
index 0000000..a9fa5e1
--- /dev/null
+++ b/src/app/modules/business/entity/planinventory.ts
@@ -0,0 +1,33 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+coal_marker: string;
+
+@Column({ comment:'鐓ゅ爢浣撶Н', type:'varchar', default:'', length:50})
+coal_volume: string;
+
+@Column({ comment:'鐓ゅ爢閲嶉噺锛屽崟浣嶅惃', type:'varchar', default:'', length:50})
+coal_weight: string;
+
+@Column({ comment:'缁勫悎鐐逛簯ID', type:'int', default:null, width:0})
+com_model_id: number;
+
+@Column({ comment:'鐩樼叅璁″垝ID', type:'int', default:null, width:0})
+plan_id: number;
+
+@Column({ comment:'鐩樼叅鍚嶇О', type:'varchar', default:'', length:50})
+plan_name: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'1-鍚敤   0-绂佺敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/pointcloud.ts b/src/app/modules/business/entity/pointcloud.ts
new file mode 100644
index 0000000..8e9acaf
--- /dev/null
+++ b/src/app/modules/business/entity/pointcloud.ts
@@ -0,0 +1,12 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+remark: string;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/pointmodel.ts b/src/app/modules/business/entity/pointmodel.ts
new file mode 100644
index 0000000..e3562b4
--- /dev/null
+++ b/src/app/modules/business/entity/pointmodel.ts
@@ -0,0 +1,39 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+data_content: string;
+
+@Column({ comment:'鏁版嵁鏂囦欢璺緞锛屽瓨鏀緐rl', type:'varchar', default:'', length:50})
+data_path: string;
+
+@Column({ comment:'璁惧鐗╃悊ID', type:'varchar', default:'', length:50})
+device_id: string;
+
+@Column({ comment:'1-鍛ㄦ湡浠诲姟   0-鍗虫椂鎬т换鍔�', type:'int', default:null, width:0})
+is_periodic: number;
+
+@Column({ comment:'鐐逛簯鏁版嵁鏉ユ簮鐨勮澶囬�昏緫缂栧彿', type:'varchar', default:'', length:50})
+logic_id: string;
+
+@Column({ comment:'鐐逛簯鍚嶇О锛屾牸寮忥細浠�${logic_id#YYYYMMDDHHMMSS}', type:'varchar', default:'', length:50})
+name: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'鐘舵�侊紝 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})
+task_monitor_id: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/statdata.ts b/src/app/modules/business/entity/statdata.ts
new file mode 100644
index 0000000..a910a95
--- /dev/null
+++ b/src/app/modules/business/entity/statdata.ts
@@ -0,0 +1,45 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+avg_caculater_time: number;
+
+@Column({ comment:'骞冲潎鏂囦欢澶у皬', type:'int', default:null, width:0})
+avg_filesize: number;
+
+@Column({ comment:'骞冲潎鑺辫垂鏃堕棿锛屽崟浣嶆绉�', type:'int', default:null, width:0})
+avg_task_time: number;
+
+@Column({ comment:'鏁版嵁浼犺緭鏃堕棿锛屾绉�', type:'int', default:null, width:0})
+avg_transmission_time: number;
+
+@Column({ comment:'CPU 鍗犵敤鐜囷紝鐧惧垎姣�', type:'int', default:null, width:0})
+cpu_rate: number;
+
+@Column({ comment:'缁熻鎴鏃堕棿', type:'datetime'})
+end_time: Date;
+
+@Column({ comment:'鍐呭瓨锛�', type:'int', default:null, width:0})
+memory: number;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'缁熻璧峰鏃堕棿', type:'datetime'})
+start_time: Date;
+
+@Column({ comment:'', type:'int', default:1, width:0})
+status: number;
+
+@Column({ comment:'浠诲姟绫诲瀷:  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})
+time: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/taskimmediately.ts b/src/app/modules/business/entity/taskimmediately.ts
new file mode 100644
index 0000000..e1406aa
--- /dev/null
+++ b/src/app/modules/business/entity/taskimmediately.ts
@@ -0,0 +1,36 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+logic_ids: string;
+
+@Column({ comment:'璁剧疆鏃堕棿', type:'varchar', default:'', length:50})
+operate_time: string;
+
+@Column({ comment:'鎿嶄綔浜�', type:'varchar', default:'', length:50})
+operator: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'0-鏈墽琛�    1-鎵ц涓�    2-宸叉墽琛�', type:'int', default:null, width:0})
+status: number;
+
+@Column({ comment:'浠诲姟鎸囦护', type:'varchar', default:'', length:50})
+task_command: string;
+
+@Column({ comment:'浠诲姟鍐呭鎻忚堪', type:'varchar', default:'', length:50})
+task_content: string;
+
+@Column({ comment:'浠诲姟鍙傛暟,濡傜偣浜戝弬鏁�', type:'varchar', default:'', length:50})
+task_params: string;
+
+@Column({ comment:'浠诲姟绫诲瀷:  1-鎶撳浘  2-闆疯揪鎵弿  3-闄ゅ皹 ', type:'int', default:null, width:0})
+task_type: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/taskmonitor.ts b/src/app/modules/business/entity/taskmonitor.ts
new file mode 100644
index 0000000..8482533
--- /dev/null
+++ b/src/app/modules/business/entity/taskmonitor.ts
@@ -0,0 +1,45 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+crontab_rule: string;
+
+@Column({ comment:'1-鍛ㄦ湡浠诲姟   0-鍗虫椂鎬т换鍔�', type:'int', default:null, width:0})
+is_periodic: number;
+
+@Column({ comment:'璁惧閫昏緫id闆嗗悎,閫楀彿鍒嗛殧', type:'varchar', default:'', length:50})
+logic_ids: string;
+
+@Column({ comment:'', type:'varchar', default:'', length:50})
+operator: string;
+
+@Column({ comment:'', type:'datetime'})
+opertate_time: Date;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'0-鏈墽琛�    1-鎵ц涓�    2-宸叉墽琛�', type:'int', default:0, width:0})
+status: number;
+
+@Column({ comment:'', type:'varchar', default:'', length:50})
+task_command: string;
+
+@Column({ comment:'', type:'varchar', default:'', length:50})
+task_content: string;
+
+@Column({ comment:'浠诲姟ID锛� 鍛ㄦ湡浠诲姟鐨勪富閿垨鑰呮槸鍗虫椂浠诲姟鐨勪富閿�', type:'varchar', default:'', length:50})
+task_id: string;
+
+@Column({ comment:'浠诲姟鍙傛暟', type:'varchar', default:'', length:50})
+task_params: string;
+
+@Column({ comment:'浠诲姟绫诲瀷:  1-鎶撳浘  2-闆疯揪鎵弿  3-闄ゅ皹 ', type:'int', default:null, width:0})
+task_type: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/trubinelocation.ts b/src/app/modules/business/entity/trubinelocation.ts
new file mode 100644
index 0000000..76ded79
--- /dev/null
+++ b/src/app/modules/business/entity/trubinelocation.ts
@@ -0,0 +1,30 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+elevation: string;
+
+@Column({ comment:'鏂逛綅瑙�', type:'varchar', default:'', length:50})
+heading_angle: string;
+
+@Column({ comment:'缁忓害', type:'varchar', default:'', length:50})
+latitude: string;
+
+@Column({ comment:'绾害', type:'varchar', default:'', length:50})
+longitude: string;
+
+@Column({ comment:'绮惧害', type:'varchar', default:'', length:50})
+precision: string;
+
+@Column({ comment:'澶囨敞', type:'varchar', default:'', length:50})
+remark: string;
+
+@Column({ comment:'1-鍚敤   0-绂佺敤', type:'int', default:1, width:0})
+status: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/entity/tuser.ts b/src/app/modules/business/entity/tuser.ts
new file mode 100644
index 0000000..c04b089
--- /dev/null
+++ b/src/app/modules/business/entity/tuser.ts
@@ -0,0 +1,27 @@
+import { EntityModel } from '@midwayjs/orm';
+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})
+age: number;
+
+@Column({ comment:'鍑虹敓鏃ユ湡', type:'datetime'})
+birthDate: Date;
+
+@Column({ comment:'澶村儚', type:'varchar', default:'null', length:255})
+headImg: string;
+
+@Column({ comment:'浠嬬粛', type:'varchar', default:'null', length:255})
+introduce: string;
+
+@Column({ comment:'濮撳悕', type:'varchar', default:'null', length:255})
+name: string;
+
+@Column({ comment:'鎬у埆 0-鏈煡 1-鐢� 2-濂�', type:'tinyint', default:0, width:0})
+type: number;
+
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/basedeviceinfo.ts b/src/app/modules/business/service/basedeviceinfo.ts
new file mode 100644
index 0000000..60a5bab
--- /dev/null
+++ b/src/app/modules/business/service/basedeviceinfo.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Basedeviceinfo } from '../entity/basedeviceinfo';
+/**
+        * 璁惧淇℃伅琛�
+        */
+@Provide()
+export class BasedeviceinfoService extends DataService { 
+    @InjectEntityModel(Basedeviceinfo) 
+    basedeviceinfo: Repository<Basedeviceinfo> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/basedeviceparams.ts b/src/app/modules/business/service/basedeviceparams.ts
new file mode 100644
index 0000000..121db63
--- /dev/null
+++ b/src/app/modules/business/service/basedeviceparams.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Basedeviceparams } from '../entity/basedeviceparams';
+/**
+        * 璁惧鍙傛暟琛�
+        */
+@Provide()
+export class BasedeviceparamsService extends DataService { 
+    @InjectEntityModel(Basedeviceparams) 
+    basedeviceparams: Repository<Basedeviceparams> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/basedevicesection.ts b/src/app/modules/business/service/basedevicesection.ts
new file mode 100644
index 0000000..d80d1a0
--- /dev/null
+++ b/src/app/modules/business/service/basedevicesection.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Basedevicesection } from '../entity/basedevicesection';
+/**
+        * 璁惧缁勪欢
+        */
+@Provide()
+export class BasedevicesectionService extends DataService { 
+    @InjectEntityModel(Basedevicesection) 
+    basedevicesection: Repository<Basedevicesection> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/basedevicestatus.ts b/src/app/modules/business/service/basedevicestatus.ts
new file mode 100644
index 0000000..7a3f68c
--- /dev/null
+++ b/src/app/modules/business/service/basedevicestatus.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Basedevicestatus } from '../entity/basedevicestatus';
+/**
+        * 璁惧鐘舵�佽〃
+        */
+@Provide()
+export class BasedevicestatusService extends DataService { 
+    @InjectEntityModel(Basedevicestatus) 
+    basedevicestatus: Repository<Basedevicestatus> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/colletdata.ts b/src/app/modules/business/service/colletdata.ts
new file mode 100644
index 0000000..05f16eb
--- /dev/null
+++ b/src/app/modules/business/service/colletdata.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Colletdata } from '../entity/colletdata';
+/**
+        * 鐩戞祴鍏冩暟鎹�
+        */
+@Provide()
+export class ColletdataService extends DataService { 
+    @InjectEntityModel(Colletdata) 
+    colletdata: Repository<Colletdata> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/colletmeta.ts b/src/app/modules/business/service/colletmeta.ts
new file mode 100644
index 0000000..4881a1f
--- /dev/null
+++ b/src/app/modules/business/service/colletmeta.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Colletmeta } from '../entity/colletmeta';
+/**
+        * 鐩戞祴鍏冩暟鎹�
+        */
+@Provide()
+export class ColletmetaService extends DataService { 
+    @InjectEntityModel(Colletmeta) 
+    colletmeta: Repository<Colletmeta> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/comconfig.ts b/src/app/modules/business/service/comconfig.ts
new file mode 100644
index 0000000..0f6e1bf
--- /dev/null
+++ b/src/app/modules/business/service/comconfig.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Comconfig } from '../entity/comconfig';
+/**
+        * 鐩戞祴鍏冩暟鎹�
+        */
+@Provide()
+export class ComconfigService extends DataService { 
+    @InjectEntityModel(Comconfig) 
+    comconfig: Repository<Comconfig> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/deviceattachment.ts b/src/app/modules/business/service/deviceattachment.ts
new file mode 100644
index 0000000..21f563b
--- /dev/null
+++ b/src/app/modules/business/service/deviceattachment.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Deviceattachment } from '../entity/deviceattachment';
+/**
+        * 璁惧鐩稿叧鐨勯檮浠�
+        */
+@Provide()
+export class DeviceattachmentService extends DataService { 
+    @InjectEntityModel(Deviceattachment) 
+    deviceattachment: Repository<Deviceattachment> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/devicegroup.ts b/src/app/modules/business/service/devicegroup.ts
new file mode 100644
index 0000000..0ee5ec0
--- /dev/null
+++ b/src/app/modules/business/service/devicegroup.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Devicegroup } from '../entity/devicegroup';
+/**
+        * 璁惧鍒嗙粍琛�
+        */
+@Provide()
+export class DevicegroupService extends DataService { 
+    @InjectEntityModel(Devicegroup) 
+    devicegroup: Repository<Devicegroup> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/deviceopreraterecord.ts b/src/app/modules/business/service/deviceopreraterecord.ts
new file mode 100644
index 0000000..81f685a
--- /dev/null
+++ b/src/app/modules/business/service/deviceopreraterecord.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Deviceopreraterecord } from '../entity/deviceopreraterecord';
+/**
+        * 璁惧杩愮淮璁板綍
+        */
+@Provide()
+export class DeviceopreraterecordService extends DataService { 
+    @InjectEntityModel(Deviceopreraterecord) 
+    deviceopreraterecord: Repository<Deviceopreraterecord> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/doutrubine.ts b/src/app/modules/business/service/doutrubine.ts
new file mode 100644
index 0000000..df77009
--- /dev/null
+++ b/src/app/modules/business/service/doutrubine.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Doutrubine } from '../entity/doutrubine';
+/**
+        * 鏂楄疆鏈轰俊鎭�
+        */
+@Provide()
+export class DoutrubineService extends DataService { 
+    @InjectEntityModel(Doutrubine) 
+    doutrubine: Repository<Doutrubine> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/execrecord.ts b/src/app/modules/business/service/execrecord.ts
new file mode 100644
index 0000000..3506e69
--- /dev/null
+++ b/src/app/modules/business/service/execrecord.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Execrecord } from '../entity/execrecord';
+/**
+        * 浠诲姟鎵ц璁板綍琛�
+        */
+@Provide()
+export class ExecrecordService extends DataService { 
+    @InjectEntityModel(Execrecord) 
+    execrecord: Repository<Execrecord> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/interfacelist.ts b/src/app/modules/business/service/interfacelist.ts
new file mode 100644
index 0000000..5dd3fb1
--- /dev/null
+++ b/src/app/modules/business/service/interfacelist.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Interfacelist } from '../entity/interfacelist';
+/**
+        * 鎺ュ彛娓呭崟
+        */
+@Provide()
+export class InterfacelistService extends DataService { 
+    @InjectEntityModel(Interfacelist) 
+    interfacelist: Repository<Interfacelist> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/interfacerecord.ts b/src/app/modules/business/service/interfacerecord.ts
new file mode 100644
index 0000000..8efed6d
--- /dev/null
+++ b/src/app/modules/business/service/interfacerecord.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Interfacerecord } from '../entity/interfacerecord';
+/**
+        * 缁勫悎妯″瀷
+        */
+@Provide()
+export class InterfacerecordService extends DataService { 
+    @InjectEntityModel(Interfacerecord) 
+    interfacerecord: Repository<Interfacerecord> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/messagerecord.ts b/src/app/modules/business/service/messagerecord.ts
new file mode 100644
index 0000000..452489b
--- /dev/null
+++ b/src/app/modules/business/service/messagerecord.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Messagerecord } from '../entity/messagerecord';
+/**
+        * 浠诲姟娑堟伅璁板綍
+        */
+@Provide()
+export class MessagerecordService extends DataService { 
+    @InjectEntityModel(Messagerecord) 
+    messagerecord: Repository<Messagerecord> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/metadata.ts b/src/app/modules/business/service/metadata.ts
new file mode 100644
index 0000000..8652b3e
--- /dev/null
+++ b/src/app/modules/business/service/metadata.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Metadata } from '../entity/metadata';
+/**
+        * 鐩戞祴閲囬泦鍘熸暟鎹�
+        */
+@Provide()
+export class MetadataService extends DataService { 
+    @InjectEntityModel(Metadata) 
+    metadata: Repository<Metadata> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/modelcombination.ts b/src/app/modules/business/service/modelcombination.ts
new file mode 100644
index 0000000..aac5f43
--- /dev/null
+++ b/src/app/modules/business/service/modelcombination.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Modelcombination } from '../entity/modelcombination';
+/**
+        * 缁勫悎妯″瀷
+        */
+@Provide()
+export class ModelcombinationService extends DataService { 
+    @InjectEntityModel(Modelcombination) 
+    modelcombination: Repository<Modelcombination> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/modelstatic.ts b/src/app/modules/business/service/modelstatic.ts
new file mode 100644
index 0000000..4c4fefe
--- /dev/null
+++ b/src/app/modules/business/service/modelstatic.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Modelstatic } from '../entity/modelstatic';
+/**
+        * 闈欐�佹ā鍨嬫暟鎹�
+        */
+@Provide()
+export class ModelstaticService extends DataService { 
+    @InjectEntityModel(Modelstatic) 
+    modelstatic: Repository<Modelstatic> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/periodicsetting.ts b/src/app/modules/business/service/periodicsetting.ts
new file mode 100644
index 0000000..30dda3b
--- /dev/null
+++ b/src/app/modules/business/service/periodicsetting.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Periodicsetting } from '../entity/periodicsetting';
+/**
+        * 鍒嗙粍浠诲姟鍙傛暟璁剧疆琛�
+        */
+@Provide()
+export class PeriodicsettingService extends DataService { 
+    @InjectEntityModel(Periodicsetting) 
+    periodicsetting: Repository<Periodicsetting> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/planinventory.ts b/src/app/modules/business/service/planinventory.ts
new file mode 100644
index 0000000..46feaad
--- /dev/null
+++ b/src/app/modules/business/service/planinventory.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Planinventory } from '../entity/planinventory';
+/**
+        * 鐩樼叅璁″垝
+        */
+@Provide()
+export class PlaninventoryService extends DataService { 
+    @InjectEntityModel(Planinventory) 
+    planinventory: Repository<Planinventory> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/pointcloud.ts b/src/app/modules/business/service/pointcloud.ts
new file mode 100644
index 0000000..c3e481f
--- /dev/null
+++ b/src/app/modules/business/service/pointcloud.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Pointcloud } from '../entity/pointcloud';
+/**
+        * 鐩戞祴鍏冩暟鎹�
+        */
+@Provide()
+export class PointcloudService extends DataService { 
+    @InjectEntityModel(Pointcloud) 
+    pointcloud: Repository<Pointcloud> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/pointmodel.ts b/src/app/modules/business/service/pointmodel.ts
new file mode 100644
index 0000000..ca05882
--- /dev/null
+++ b/src/app/modules/business/service/pointmodel.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Pointmodel } from '../entity/pointmodel';
+/**
+        * 鐐逛簯妯″瀷
+        */
+@Provide()
+export class PointmodelService extends DataService { 
+    @InjectEntityModel(Pointmodel) 
+    pointmodel: Repository<Pointmodel> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/statdata.ts b/src/app/modules/business/service/statdata.ts
new file mode 100644
index 0000000..70020e6
--- /dev/null
+++ b/src/app/modules/business/service/statdata.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Statdata } from '../entity/statdata';
+/**
+        * 鐩戞祴缁熻
+        */
+@Provide()
+export class StatdataService extends DataService { 
+    @InjectEntityModel(Statdata) 
+    statdata: Repository<Statdata> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/taskimmediately.ts b/src/app/modules/business/service/taskimmediately.ts
new file mode 100644
index 0000000..0c35d36
--- /dev/null
+++ b/src/app/modules/business/service/taskimmediately.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Taskimmediately } from '../entity/taskimmediately';
+/**
+        * 鍗虫椂浠诲姟璁板綍琛�
+        */
+@Provide()
+export class TaskimmediatelyService extends DataService { 
+    @InjectEntityModel(Taskimmediately) 
+    taskimmediately: Repository<Taskimmediately> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/taskmonitor.ts b/src/app/modules/business/service/taskmonitor.ts
new file mode 100644
index 0000000..077a54a
--- /dev/null
+++ b/src/app/modules/business/service/taskmonitor.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Taskmonitor } from '../entity/taskmonitor';
+/**
+        * 鐩戞祴浠诲姟琛�
+        */
+@Provide()
+export class TaskmonitorService extends DataService { 
+    @InjectEntityModel(Taskmonitor) 
+    taskmonitor: Repository<Taskmonitor> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/trubinelocation.ts b/src/app/modules/business/service/trubinelocation.ts
new file mode 100644
index 0000000..8d59a67
--- /dev/null
+++ b/src/app/modules/business/service/trubinelocation.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Trubinelocation } from '../entity/trubinelocation';
+/**
+        * 鏂楄疆鏈轰俊鎭�
+        */
+@Provide()
+export class TrubinelocationService extends DataService { 
+    @InjectEntityModel(Trubinelocation) 
+    trubinelocation: Repository<Trubinelocation> 
+}
\ No newline at end of file
diff --git a/src/app/modules/business/service/tuser.ts b/src/app/modules/business/service/tuser.ts
new file mode 100644
index 0000000..8916fd2
--- /dev/null
+++ b/src/app/modules/business/service/tuser.ts
@@ -0,0 +1,14 @@
+import { Provide } from '@midwayjs/decorator';
+import { BaseService } from '@cool-midway/core';
+import { InjectEntityModel } from '@midwayjs/orm';
+import { Repository } from 'typeorm';
+import { DataService } from '../../base/service/dataapi/dataapi';
+import { Tuser } from '../entity/tuser';
+/**
+        * 
+        */
+@Provide()
+export class TuserService extends DataService { 
+    @InjectEntityModel(Tuser) 
+    tuser: Repository<Tuser> 
+}
\ No newline at end of file

--
Gitblit v1.9.1