|
|
|
@ -17,7 +17,6 @@ public interface HighGasClassGroupTaskMapperExt { |
|
|
|
|
" COUNT(1) refuelNum," + |
|
|
|
|
" case when SUM(a.gas_liters_preferences) is not null then SUM(a.gas_liters_preferences) else 0 end refuelLiters" + |
|
|
|
|
" from high_child_order a" + |
|
|
|
|
" LEFT JOIN high_order b on b.id = a.order_id" + |
|
|
|
|
" where goods_type = 3 " + |
|
|
|
|
" and gas_class_group_task_id = #{gasClassGroupTaskId} " + |
|
|
|
|
" and child_orde_status in (2,3)" + |
|
|
|
@ -30,7 +29,6 @@ public interface HighGasClassGroupTaskMapperExt { |
|
|
|
|
" COUNT(1) refundNum," + |
|
|
|
|
" case when SUM(a.gas_liters_preferences) is not null then SUM(a.gas_liters_preferences) else 0 end refundLiters" + |
|
|
|
|
" from high_child_order a" + |
|
|
|
|
" LEFT JOIN high_order b on b.id = a.order_id" + |
|
|
|
|
" where goods_type = 3 " + |
|
|
|
|
" and gas_class_group_task_id = #{gasClassGroupTaskId} " + |
|
|
|
|
" and child_orde_status in (4)" + |
|
|
|
@ -52,7 +50,7 @@ public interface HighGasClassGroupTaskMapperExt { |
|
|
|
|
" from high_child_order a" + |
|
|
|
|
" 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" + |
|
|
|
|
" WHERE a.merchant_store_id = #{gasId} and `status` <> 0 " + |
|
|
|
|
" WHERE a.merchant_store_id = #{gasId} and <![CDATA[ `status` <> 0 ]]> " + |
|
|
|
|
"</script>") |
|
|
|
|
List<Map<String, Object>> countOilData(@Param("gasId") Long gasId, @Param("gasClassGroupTaskId") Long gasClassGroupTaskId); |
|
|
|
|
} |
|
|
|
|