master
2022-03-08 8a81242ea5187759f38981039b87db41aed90a38
更改实体类中的表名
4个文件已添加
2个文件已修改
123 ■■■■■ 已修改文件
src/app/modules/deviceGroup/entity/deviceGroup.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/douMsg/config.ts 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/douMsg/controller/admin/douMsg.ts 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/douMsg/controller/app/douMsg.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/douMsg/entity/douMsg.ts 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/taskSetting/entity/taskSetting.ts 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/app/modules/deviceGroup/entity/deviceGroup.ts
@@ -5,7 +5,7 @@
/**
 * 商品
 */
@EntityModel('devicegroup_fcs')
@EntityModel('t_base_device_group')
export class DemodeviceGroupEntity extends BaseEntity {
  @PrimaryGeneratedColumn({ comment: 'id' })
  id: number;
src/app/modules/douMsg/config.ts
New file
@@ -0,0 +1,16 @@
import { Application } from 'egg';
import { ModuleConfig } from '@cool-midway/core';
/**
 * 模块配置
 */
export default (app: Application) => {
  return {
    // 模块名称
    name: 'douMsg',
    // 模块描述
    description: '斗轮机信息',
    // 中间件,只对本模块有效
    middlewares: [],
  } as ModuleConfig;
};
src/app/modules/douMsg/controller/admin/douMsg.ts
New file
@@ -0,0 +1,13 @@
import { Provide } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { DemodouMsgEntity } from '../../entity/douMsg';
/**
 * 描述
 */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: DemodouMsgEntity,
})
export class DemoAdmindouMsgController extends BaseController { }
src/app/modules/douMsg/controller/app/douMsg.ts
New file
@@ -0,0 +1,15 @@
import { Provide } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { DemodouMsgEntity } from '../../entity/douMsg';
/**
 * test
 */
@Provide()
@CoolController(
  {
    api: ['add', 'delete', 'update', 'info', 'list', 'page'],
    entity: DemodouMsgEntity
  }
)
export class DemoAppdouMsgController extends BaseController { }
src/app/modules/douMsg/entity/douMsg.ts
New file
@@ -0,0 +1,57 @@
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column, PrimaryGeneratedColumn } from 'typeorm';
/**
 * 商品
 */
@EntityModel('t_base_dou_trubine')
export class DemodouMsgEntity extends BaseEntity {
  @PrimaryGeneratedColumn({ comment: 'id' })
  id: number;
  @Column({ comment: '斗轮机名称' })
  trubine_name: string;
  @Column({ comment: '斗轮机编号' })
  trubine_no: string;
  @Column({ comment: '斗轮机类别', default: null })
  trubine_type: string;
  @Column({ comment: '型号尺寸', default: null })
  trubine_size: string;
  @Column({ comment: '煤堆1', default: null })
  rated_windrow: string;
  @Column({ comment: '煤堆2', default: null })
  max_windrow: string;
  @Column({ comment: 'rated_reclaiming', default: null })
  rated_reclaiming: string;
  @Column({ comment: 'max_reclaiming', default: null })
  max_reclaiming: string;
  @Column({ comment: '旋转直径', default: null })
  diameter_wheel: string;
  @Column({ comment: '旋转直径', default: null })
  pie_height_up: string;
  @Column({ comment: '旋转直径', default: null })
  pie_height_down: string;
  @Column({ comment: 'dou_wheel_volumn', default: null })
  dou_wheel_volumn: string;
  @Column({ comment: 'petch_angle', default: null })
  petch_angle: string;
  @Column({ comment: '备注', default: null })
  remark: string;
  @Column({ comment: '状态', default: 1 })
  status: boolean;
}
src/app/modules/taskSetting/entity/taskSetting.ts
@@ -5,36 +5,36 @@
/**
 * 商品
 */
@EntityModel('tasksetting_fcs')
@EntityModel('t_task_periodic_setting')
export class DemotaskSettingEntity extends BaseEntity {
  @PrimaryGeneratedColumn({ comment: 'id' })
  id: number;
  @Column({ comment: '设备分组ID' })
  group_id: string;
  group_id: number;
  @Column({ comment: '周期任务' })
  crontab_rule: string;
  @Column({ comment: '任务类型', default: "无" })
  task_type: string;
  @Column({ comment: '任务类型', default: null })
  task_type: number;
  @Column({ comment: '任务内容描述', default: "无" })
  @Column({ comment: '任务内容描述', default: null })
  task_content: string;
  @Column({ comment: '任务命令格式', default: "无" })
  @Column({ comment: '任务命令格式', default: null })
  task_command: string;
  @Column({ comment: '任务参数', default: "无" })
  @Column({ comment: '任务参数', default: null })
  task_params: string;
  @Column({ comment: '设置人' })
  operator: string;
  @Column({ comment: '任务结束时间', default: "无" })
  end_time: string;
  @Column({ comment: '任务结束时间', default: null })
  end_time: Date;
  @Column({ comment: '备注', default: "无" })
  @Column({ comment: '备注', default: null })
  remark: string;
  @Column({ comment: '状态', default: true })