1 班次加工数的配置 1 tn_busi_da_num_consume=60,2 脚本以服务脚本模式运行 tn_tsdb.ini配置里的common 中增加配置auto_shift_num=1 tn_busi_da_num_sqlite_to_center=60,1(配置成线程模式更好些,脚本模式可能要等待其他脚本模式运行完才能运行) 配置成线程或脚本模式运行

2 班次加工数的生成逻辑是基于设备的班次日历,以及设备启动的工单 select a.eqpt_id,b.calendar_date as shift_date,b.shift_id,b.start_time,b.end_time from bs_wt_eqpt_calendar a left join bs_wt_eqpt_calendar_shift b on a.eqpt_calendar_id=b.eqpt_calendar_id where b.start_time GETDATE()-0.1
基于设备有在启动的工单wo_code,获取当前的时间是否在start_time,end_time 内,如果在时间内,则生成相应的 eqpt_id ,shift_date,shift_id,wo_code的一条记录。在start_time,end_time 范围内的数据都会累计到该条记录中

Copyright © TouchNet 2015 all right reserved,powered by Gitbook最后修订时间: 2022-06-21 09:21:04

results matching ""

    No results matching ""