select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId
from iot_data.super_aggregate_output
where output =]]> 0
and ts =]]> #{startDate} and ts #{endDate}
AND workstation_id =#{workstationId}
ORDER BY ts asc
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId
from iot_data.super_aggregate_output
where output =]]> 0
and factory_date = #{factoryDate}
and shift_index = #{shiftIndex}
AND workstation_id IN
#{id}
ORDER BY ts asc
SELECT ts,
pre_ts AS preTs,
output,
cur_output AS curOutput,
pre_output AS preOutput,
calendar_code AS calendarCode,
factory_year AS factoryYear,
factory_month AS factoryMonth,
factory_week AS factoryWeek,
factory_date AS factoryDate,
shift_index AS shiftIndex,
shift_time_type AS shiftTimeType,
program,
product_code AS productCode,
product_name AS productName,
workstation_id AS workstationId
FROM
iot_data.super_aggregate_output
WHERE
output >= 0
AND workstation_id IN
#{id}
and factory_date BETWEEN #{beginTime} AND #{endTime}
ORDER BY ts asc
SELECT
output,
factory_date AS factoryDate,
shift_index AS shiftIndex,
shift_time_type AS shiftTimeType,
factory_month AS factoryMonth,
factory_week AS factoryWeek,
workstation_id AS workstationId
FROM
iot_data.aggregate_output_${workstationId}
WHERE
output >= 0
and factory_date BETWEEN #{beginTime} AND #{endTime}
ORDER BY ts asc
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId,
employee_id as employeeId
from iot_data.super_aggregate_output
where workstation_id = #{workstationId}
and output > 0
and employee_id = #{employeeId}
and factory_date >= #{startTime}
and factory_date <= #{endTime}
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId,
employee_id as employeeId
from iot_data.super_aggregate_output
where workstation_id = #{workstationId}
and output > 0
and employee_id = #{employeeId}
and factory_week in
#{week}
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId,
employee_id as employeeId
from iot_data.super_aggregate_output
where workstation_id = #{workstationId}
and output > 0
and employee_id = #{employeeId}
and factory_month in
#{month}
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId,
employee_id as employeeId
from iot_data.super_aggregate_output
where employee_id = #{employeeId}
and workstation_id is not null
and output > 0
and factory_date = #{time}
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId,
employee_id as employeeId
from iot_data.super_aggregate_output
where employee_id = #{employeeId}
and workstation_id is not null
and output > 0
and factory_week = #{week}
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId,
employee_id as employeeId
from iot_data.super_aggregate_output
where employee_id = #{employeeId}
and workstation_id is not null
and output > 0
and factory_month = #{month}
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId,
employee_id as employeeId
from iot_data.super_aggregate_output
where workstation_id = #{workstationId}
and employee_id is not null
and output > 0
and factory_date = #{time}
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId,
employee_id as employeeId
from iot_data.super_aggregate_output
where workstation_id = #{workstationId}
and employee_id is not null
and output > 0
and factory_week = #{week}
select ts,
pre_ts as preTs,
output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId,
employee_id as employeeId
from iot_data.super_aggregate_output
where workstation_id = #{workstationId}
and employee_id is not null
and output > 0
and factory_month = #{month}
pre_time as preTime,
output as output,
cur_output as curOutput,
pre_output as preOutput,
calendar_code as calendarCode,
factory_year as factoryYear,
factory_month as factoryMonth,
factory_week as factoryWeek,
factory_date as factoryDate,
shift_index as shiftIndex,
shift_time_type as shiftTimeType,
program,
product_code as productCode,
product_name as productName,
workstation_id as workstationId
select
from root.f2.aggregate_output_*
where output =]]> 0
and factory_date =]]> #{startFatoryDate} and factory_date #{endFatoryDate}
AND workstation_id IN
#{id}
align by device
select
from root.f2.aggregate_output_*
where time =]]> #{startDate} and time #{endDate}
AND output =]]> 0
AND workstation_id IN
#{id}
align by device