Helius
2022-05-27 54cc7a8fb98d345fc2b97c895598b24d8b47d705
zq-erp/src/main/resources/mybatis/mapper/hive/MoneyCardUseFlowDao.xml
@@ -366,6 +366,12 @@
         set car_use_id=#{cardId}
      where vip_id=#{vipId} and type='会员充值'
   </update>
   <select id="selectCardUseAmount" resultType="java.lang.Double">
      select IFNULL(ABS(sum(IFNULL(total, 0))), 0)
      from money_card_use_flow
      where car_use_id=#{cardId} and type='消费扣款'
   </select>
</mapper>