This commit is contained in:
2022-08-08 19:36:21 +08:00
parent 02f5ec1bd3
commit 6ea0f433ce
9 changed files with 34 additions and 28 deletions

View File

@@ -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