|
@@ -127,10 +127,10 @@ SELECT b.Month,a.AnnualAudit from (select extract(month from ApplyTime) time ,C
|
|
|
WHERE ApplyTime >= '` + where +`' AND ApplyTime < '` + timedone +`' AND Status = '11'
|
|
WHERE ApplyTime >= '` + where +`' AND ApplyTime < '` + timedone +`' AND Status = '11'
|
|
|
group by extract(month from ApplyTime)) a
|
|
group by extract(month from ApplyTime)) a
|
|
|
RIGHT JOIN OilCountMonth b ON b.Month = a.time) AnnualAudit
|
|
RIGHT JOIN OilCountMonth b ON b.Month = a.time) AnnualAudit
|
|
|
-LEFT JOIN (SELECT b.Month,a.Store from (select extract(month from ApplyTime) time ,COUNT(*) Store
|
|
|
|
|
|
|
+LEFT JOIN (SELECT b.Month,a.Store from (select extract(month from StorageOn) time ,COUNT(*) Store
|
|
|
from OilSupplierCert
|
|
from OilSupplierCert
|
|
|
- WHERE ApplyTime >= '` + where +`' AND ApplyTime < '` + timedone +`' AND InFlag = '1'
|
|
|
|
|
- group by extract(month from ApplyTime)) a
|
|
|
|
|
|
|
+ WHERE StorageOn >= '` + where +`' AND StorageOn < '` + timedone +`' AND InFlag = '1'
|
|
|
|
|
+ group by extract(month from StorageOn)) a
|
|
|
RIGHT JOIN OilCountMonth b ON b.Month = a.time) Store ON AnnualAudit.Month = Store.Month
|
|
RIGHT JOIN OilCountMonth b ON b.Month = a.time) Store ON AnnualAudit.Month = Store.Month
|
|
|
LEFT JOIN (SELECT b.Month,a.Append from (select extract(month from ApplyDate) time ,COUNT(*) Append
|
|
LEFT JOIN (SELECT b.Month,a.Append from (select extract(month from ApplyDate) time ,COUNT(*) Append
|
|
|
from OilSupplierCertAppend
|
|
from OilSupplierCertAppend
|