|
@@ -279,7 +279,7 @@
|
|
|
left join (select invoice_id,
|
|
|
sum(case
|
|
|
when unit = '米' then
|
|
|
- t.total * t.length3 / 1000
|
|
|
+ t.total * t.length / 1000
|
|
|
else
|
|
|
0
|
|
|
end) length_total,
|
|
@@ -622,7 +622,7 @@
|
|
|
<select id="sharpDataCount" resultType="java.util.Map">
|
|
|
|
|
|
with material_Sum as
|
|
|
- (select trunc(PIPE_TYPE_WIDTH) sharpData, sum( case when unit = '米' then length3 * total else 0 end) / 1000 total
|
|
|
+ (select trunc(PIPE_TYPE_WIDTH) sharpData, sum( case when unit = '米' then length * total else 0 end) / 1000 total
|
|
|
from (select t1.*
|
|
|
from (select a.*
|
|
|
from tf_ywpn_materialinvoice_w a
|