|
|
@ -15,7 +15,7 @@ public interface HighGasClassGroupTaskMapperExt { |
|
|
|
" select " + |
|
|
|
" select " + |
|
|
|
" case when SUM(a.total_price) is not null then SUM(a.total_price) else 0 end refuelPrice," + |
|
|
|
" case when SUM(a.total_price) is not null then SUM(a.total_price) else 0 end refuelPrice," + |
|
|
|
" COUNT(1) refuelNum," + |
|
|
|
" COUNT(1) refuelNum," + |
|
|
|
" case when SUM(a.gas_liters_preferences) is not null then SUM(a.gas_liters_preferences) else 0 end refuelLiters" + |
|
|
|
" case when SUM(a.gas_oil_liters) is not null then SUM(a.gas_oil_liters) else 0 end refuelLiters" + |
|
|
|
" from high_child_order a" + |
|
|
|
" from high_child_order a" + |
|
|
|
" where goods_type = 3 " + |
|
|
|
" where goods_type = 3 " + |
|
|
|
" and gas_class_group_task_id = #{gasClassGroupTaskId} " + |
|
|
|
" and gas_class_group_task_id = #{gasClassGroupTaskId} " + |
|
|
@ -27,7 +27,7 @@ public interface HighGasClassGroupTaskMapperExt { |
|
|
|
" select " + |
|
|
|
" select " + |
|
|
|
" case when SUM(a.total_price) is not null then SUM(a.total_price) else 0 end refundPrice," + |
|
|
|
" case when SUM(a.total_price) is not null then SUM(a.total_price) else 0 end refundPrice," + |
|
|
|
" COUNT(1) refundNum," + |
|
|
|
" COUNT(1) refundNum," + |
|
|
|
" case when SUM(a.gas_liters_preferences) is not null then SUM(a.gas_liters_preferences) else 0 end refundLiters" + |
|
|
|
" case when SUM(a.gas_oil_liters) is not null then SUM(a.gas_oil_liters) else 0 end refundLiters" + |
|
|
|
" from high_child_order a" + |
|
|
|
" from high_child_order a" + |
|
|
|
" where goods_type = 3 " + |
|
|
|
" where goods_type = 3 " + |
|
|
|
" and gas_class_group_task_id = #{gasClassGroupTaskId} " + |
|
|
|
" and gas_class_group_task_id = #{gasClassGroupTaskId} " + |
|
|
@ -46,7 +46,7 @@ public interface HighGasClassGroupTaskMapperExt { |
|
|
|
" LEFT JOIN (select gas_oil_no," + |
|
|
|
" LEFT JOIN (select gas_oil_no," + |
|
|
|
" case when SUM(a.total_price) is not null then SUM(a.total_price) else 0 end refuelPrice," + |
|
|
|
" case when SUM(a.total_price) is not null then SUM(a.total_price) else 0 end refuelPrice," + |
|
|
|
" COUNT(1) refuelNum," + |
|
|
|
" COUNT(1) refuelNum," + |
|
|
|
" case when SUM(a.gas_liters_preferences) is not null then SUM(a.gas_liters_preferences) else 0 end refuelLiters" + |
|
|
|
" case when SUM(a.gas_oil_liters) is not null then SUM(a.gas_oil_liters) else 0 end refuelLiters" + |
|
|
|
" from high_child_order a" + |
|
|
|
" from high_child_order a" + |
|
|
|
" where gas_class_group_task_id = #{gasClassGroupTaskId} and goods_type = 3 and child_orde_status in (2,3)" + |
|
|
|
" where gas_class_group_task_id = #{gasClassGroupTaskId} and goods_type = 3 and child_orde_status in (2,3)" + |
|
|
|
" GROUP BY a.gas_oil_no) b on b.gas_oil_no = a.oil_no" + |
|
|
|
" GROUP BY a.gas_oil_no) b on b.gas_oil_no = a.oil_no" + |
|
|
|