|
|
|
@ -17,21 +17,23 @@ public interface HighGasClassGroupTaskMapperExt { |
|
|
|
|
" COUNT(1) refuelNum," + |
|
|
|
|
" 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" + |
|
|
|
|
" where goods_type = 3 " + |
|
|
|
|
" and gas_class_group_task_id = #{gasClassGroupTaskId} " + |
|
|
|
|
" and child_orde_status in (2,3)" + |
|
|
|
|
" LEFT JOIN high_order b on b.id = a.order_id" + |
|
|
|
|
" where a.goods_type = 3 " + |
|
|
|
|
" and a.gas_class_group_task_id = #{gasClassGroupTaskId} " + |
|
|
|
|
" and b.order_status in (2,3)" + |
|
|
|
|
"</script>") |
|
|
|
|
Map<String, Object> countRefuelData(@Param("gasClassGroupTaskId") Long gasClassGroupTaskId); |
|
|
|
|
|
|
|
|
|
@Select("<script>" + |
|
|
|
|
" select " + |
|
|
|
|
" select" + |
|
|
|
|
" case when SUM(a.total_price) is not null then SUM(a.total_price) else 0 end refundPrice," + |
|
|
|
|
" COUNT(1) refundNum," + |
|
|
|
|
" 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" + |
|
|
|
|
" where goods_type = 3 " + |
|
|
|
|
" and gas_class_group_task_id = #{gasClassGroupTaskId} " + |
|
|
|
|
" and child_orde_status in (4)" + |
|
|
|
|
" LEFT JOIN high_order b on b.id = a.order_id" + |
|
|
|
|
" where a.goods_type = 3 " + |
|
|
|
|
" and a.gas_class_group_task_id = #{gasClassGroupTaskId}" + |
|
|
|
|
" and b.order_status in (4)" + |
|
|
|
|
"</script>") |
|
|
|
|
Map<String, Object> countRefundData(@Param("gasClassGroupTaskId") Long gasClassGroupTaskId); |
|
|
|
|
|
|
|
|
@ -48,7 +50,8 @@ public interface HighGasClassGroupTaskMapperExt { |
|
|
|
|
" COUNT(1) refuelNum," + |
|
|
|
|
" 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" + |
|
|
|
|
" where gas_class_group_task_id = #{gasClassGroupTaskId} and goods_type = 3 and child_orde_status in (2,3)" + |
|
|
|
|
" LEFT JOIN high_order b on b.id = a.order_id" + |
|
|
|
|
" where a.gas_class_group_task_id = #{gasClassGroupTaskId} and a.goods_type = 3 and b.order_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 <![CDATA[ `status` <> 0 ]]> " + |
|
|
|
|
"</script>") |
|
|
|
|