增加 定时删除无用数据

master
wangh 3 years ago
parent 5749da514f
commit b3968972cd

@ -51,7 +51,7 @@
end) as order_type end) as order_type
, Sum(Store_Qty) as stock , Sum(Store_Qty) as stock
, Store_Code , Store_Code
from IMOS_LO_STORE_DETIAL losd from IMOS_LO_BIN losd
where Store_Code =#{id} where Store_Code =#{id}
and Material_Code is not null and Material_Code is not null
and Store_Qty > 0 and Store_Qty > 0
@ -953,7 +953,7 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
substr( substr(
MATERIAL_NAME, MATERIAL_NAME,
instr(MATERIAL_NAME, '-', 1, 1) + 1, instr(MATERIAL_NAME, '-', 1, 1) + 1,
instr(MATERIAL_NAME, ',', 1, 1) - 2 - instr(MATERIAL_NAME, '-', 1, 1) + 1) as name instr(MATERIAL_NAME, ',', 1, 2) - 2 - instr(MATERIAL_NAME, '-', 1, 1) + 1) as name
from IMOS_PR_PRODUCT_BARCODE ippb from IMOS_PR_PRODUCT_BARCODE ippb
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb
on 1 = 1 on 1 = 1

Loading…
Cancel
Save