更新
This commit is contained in:
@@ -174,6 +174,8 @@
|
||||
status_type = '05'
|
||||
AND
|
||||
IFNULL( end_time, '' ) = ''
|
||||
and
|
||||
device.is_active = '1'
|
||||
OPTION 输入.workprocedure_id <> ""
|
||||
device.workprocedure_id = 输入.workprocedure_id
|
||||
ENDOPTION
|
||||
@@ -192,6 +194,8 @@
|
||||
status_type = '03'
|
||||
AND
|
||||
IFNULL( end_time, '' ) = ''
|
||||
and
|
||||
device.is_active = '1'
|
||||
OPTION 输入.workprocedure_id <> ""
|
||||
device.workprocedure_id = 输入.workprocedure_id
|
||||
ENDOPTION
|
||||
@@ -209,6 +213,8 @@
|
||||
INNER JOIN pdm_bi_devicerunstatusrecord run ON run.device_id = device.device_id AND IFNULL(run.end_time,'') =''
|
||||
WHERE
|
||||
shift.is_delete = '0'
|
||||
and
|
||||
device.is_active = '1'
|
||||
AND
|
||||
shift.order_status <> '04'
|
||||
AND
|
||||
@@ -258,6 +264,8 @@
|
||||
pdm_bi_device device
|
||||
LEFT JOIN pdm_bi_devicerunstatusrecord run ON run.device_id = device.device_id AND IFNULL(run.end_time,'') = ''
|
||||
LEFT JOIN pdm_bi_workprocedure pro ON pro.workprocedure_id = device.workprocedure_id
|
||||
where
|
||||
device.is_active = '1'
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
Reference in New Issue
Block a user