1
zj
13 hours ago d615fc515fc52d6ed970c11d59a017e48de4be32
src/main/resources/mapper/UserWithdrawMapper.xml
@@ -281,5 +281,11 @@
    DELETE FROM user_withdraw WHERE user_id = #{userId}
  </delete>
  <select id="sumPendingAmtByUserId" resultType="java.math.BigDecimal">
    select ifnull(sum(with_amt), 0)
    from user_withdraw
    where user_id = #{userId}
      and with_status = 0
  </select>
</mapper>