rev:成品日报
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
LEFT JOIN st_ivt_structattr attr ON attr.struct_id = ivt.struct_id
|
||||
LEFT JOIN pdm_bi_subpackagerelation sub ON ivt.pcsn = sub.container_name
|
||||
WHERE
|
||||
DATEDIFF( NOW(), sub.date_of_production ) >= SUBSTRING_INDEX(sub.quality_guaran_period,'天',1)
|
||||
DATEDIFF( NOW(), sub.date_of_production ) > SUBSTRING_INDEX(sub.quality_guaran_period,'天',1)
|
||||
AND ivt.canuse_qty > '0'
|
||||
|
||||
GROUP BY attr.stor_id
|
||||
@@ -107,7 +107,7 @@
|
||||
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.package_box_sn = attr.storagevehicle_code
|
||||
AND ivt.pcsn = sub.container_name
|
||||
WHERE
|
||||
DATEDIFF( NOW(), sub.date_of_production ) < '90'
|
||||
DATEDIFF( NOW(), sub.date_of_production ) <= '90'
|
||||
AND ivt.canuse_qty > '0'
|
||||
|
||||
GROUP BY attr.stor_id
|
||||
|
||||
Reference in New Issue
Block a user