|
|
@@ -155,7 +155,7 @@
|
|
|
SELECT
|
|
|
count(case when wo.status = 8 then 1 end) totalComplete,
|
|
|
count(case when wo.status not in (1, 9, 10, 11) then 1 end) totalTake,
|
|
|
- count(case when wo.status not in (3, 4, 5, 6) then 1 end) totalExecute,
|
|
|
+ count(case when wo.status in (3, 4, 5, 6) then 1 end) totalExecute,
|
|
|
count(DISTINCT case when lo.status in (0, 1, 2, 3) then lo.id end) totalUnfinished,
|
|
|
IFNULL(SUM(wo.entrust_amount), 0.0) entrustAmount, IFNULL(SUM(wo.load_amount), 0.0) loadAmount,
|
|
|
IFNULL(SUM(wo.unload_amount), 0.0) unloadAmount, IFNULL(SUM(wo.deficit_amount), 0.0) deficitAmount,
|