|
@@ -43,11 +43,12 @@
|
|
|
|
|
|
<select id="orderWorkStatistics" resultType="map" parameterType="map">
|
|
|
SELECT
|
|
|
- sum( case when s.type=0 then 0.0 when s.type=1 and s.executorSort>s.currentSort then 0.2 when s.type=1 and s.executorSort = s.currentSort then 0.5 when s.type=3 and s.status='3' then 1.0 else 0.9 end) as total
|
|
|
+ sum( case when s.type=0 then 0.0 when s.executorSort>s.currentSort then 0.2 when s.executorSort = s.currentSort then 0.5 when s.procedure_name like '%下料%' and s.status='3' then 1.0 else 0.9 end) as total
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
|
t.status,
|
|
|
+ t.procedure_name,
|
|
|
n.complete_batch_sort as currentSort,
|
|
|
n2.complete_batch_sort as executorSort,
|
|
|
ifnull(t.procedure_sort, 0) as type,
|