Browse Source

查询优化

master
DESKTOP-5DIJMF9\admin 2 weeks ago
parent
commit
52fdfec985
  1. 8
      lxapp/src/wql/mes/md/pb/QSTORC_ZPWLBQ_01.wql

8
lxapp/src/wql/mes/md/pb/QSTORC_ZPWLBQ_01.wql

@ -104,7 +104,7 @@
)
ENDOPTION
OPTION 输入.material <> ""
( cm.material_code LIKE 输入.material OR cm.material_name LIKE 输入.material)
cm.material_code = 输入.material
ENDOPTION
GROUP BY cm.carrier_no ) b ON a.carrier_no = b.carrier_no AND b.stack_time = a.stack_time
INNER JOIN ST_BS_Carrier carr ON carr.carrier_no = a.carrier_no AND carr.is_active = '1' and carr.SYSISDELETE = '0'
@ -176,7 +176,7 @@
)
ENDOPTION
OPTION 输入.material <> ""
( cm.material_code LIKE 输入.material OR cm.material_name LIKE 输入.material)
cm.material_code = 输入.material
ENDOPTION
GROUP BY cm.carrier_no ) b
ON a.carrier_no = b.carrier_no AND b.stack_time = a.stack_time
@ -250,7 +250,7 @@
)
ENDOPTION
OPTION 输入.material <> ""
( cm.material_code LIKE 输入.material OR cm.material_name LIKE 输入.material)
cm.material_code = 输入.material
ENDOPTION
OPTION 输入.carrier_no <> ""
( z.carrier_no LIKE 输入.carrier_no)
@ -329,7 +329,7 @@
)
ENDOPTION
OPTION 输入.material <> ""
( cm.material_code LIKE 输入.material OR cm.material_name LIKE 输入.material)
cm.material_code = 输入.material
ENDOPTION
OPTION 输入.carrier_no <> ""
( cm.carrier_no LIKE 输入.carrier_no)

Loading…
Cancel
Save