| | |
| | | import { BaseEntity } from '@cool-midway/core'; |
| | | import { Column, Double } from 'typeorm'; |
| | | /** |
| | | * 监测任务表 |
| | | */ |
| | | * 监测任务 |
| | | */ |
| | | @EntityModel('t_task_monitor') |
| | | export class Taskmonitor extends BaseEntity { |
| | | @Column({ comment:'周期任务周期设置,调度表达式', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"周期任务周期设置",tips:"调度表达式"}', type:'varchar', default:'null', length:50}) |
| | | crontab_rule: string; |
| | | |
| | | @Column({ comment:'1-周期任务 0-即时性任务', type:'int', default:null, width:0}) |
| | | @Column({ comment:'{name:"是否周期任务",dict:{"1":"周期任务","0":"即时性任务"}}', type:'int', default:null, width:0}) |
| | | is_periodic: number; |
| | | |
| | | @Column({ comment:'设备逻辑id集合,逗号分隔', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | logic_ids: string; |
| | | |
| | | @Column({ comment:'', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"操作者"}', type:'varchar', default:'null', length:50}) |
| | | operator: string; |
| | | |
| | | @Column({ comment:'', type:'datetime'}) |
| | | @Column({ comment:'{name:"操作时间"}', type:'datetime'}) |
| | | opertate_time: Date; |
| | | |
| | | @Column({ comment:'备注', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'0-未执行 1-执行中 2-已执行', type:'int', default:0, width:0}) |
| | | @Column({ comment:'{name:"状态",dict:{"1":"已发送", "0":"未发送"}}', type:'int', default:0, width:0}) |
| | | status: number; |
| | | |
| | | @Column({ comment:'', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"任务指令"}', type:'varchar', default:'null', length:50}) |
| | | task_command: string; |
| | | |
| | | @Column({ comment:'', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"任务内容"}', type:'varchar', default:'null', length:100}) |
| | | task_content: string; |
| | | |
| | | @Column({ comment:'任务ID, 周期任务的主键或者是即时任务的主键', type:'varchar', default:'', length:50}) |
| | | task_id: string; |
| | | @Column({ comment:'{name:"任务来源ID"}', type:'int', default:null, width:0}) |
| | | task_id: number; |
| | | |
| | | @Column({ comment:'任务参数', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"任务参数"}', type:'varchar', default:'null', length:50}) |
| | | task_params: string; |
| | | |
| | | @Column({ comment:'任务类型: 1-抓图 2-雷达扫描 3-除尘 ', type:'int', default:null, width:0}) |
| | | @Column({ comment:'{name:"任务类型",dict:{"1":"抓图","2":"雷达扫描","3":"除尘"}}', type:'int', default:null, width:0}) |
| | | task_type: number; |
| | | |
| | | } |