| | |
| | | /** |
| | | * 商品 |
| | | */ |
| | | @EntityModel('devicegroup_fcs') |
| | | @EntityModel('t_base_device_group') |
| | | export class DemodeviceGroupEntity extends BaseEntity { |
| | | @PrimaryGeneratedColumn({ comment: 'id' }) |
| | | id: number; |
| New file |
| | |
| | | import { Application } from 'egg'; |
| | | import { ModuleConfig } from '@cool-midway/core'; |
| | | |
| | | /** |
| | | * 模块配置 |
| | | */ |
| | | export default (app: Application) => { |
| | | return { |
| | | // 模块名称 |
| | | name: 'douMsg', |
| | | // 模块描述 |
| | | description: '斗轮机信息', |
| | | // 中间件,只对本模块有效 |
| | | middlewares: [], |
| | | } as ModuleConfig; |
| | | }; |
| New file |
| | |
| | | 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 { } |
| New file |
| | |
| | | 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 { } |
| New file |
| | |
| | | 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; |
| | | } |
| | |
| | | /** |
| | | * 商品 |
| | | */ |
| | | @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 }) |