@Select("select count(*) from user_asset where uid = #{uid} and amount >0 and coin != 'BASE' ")
@Select("select count(*) from user_asset where uid = #{uid} and amount >0 and coin != 'BASE' ")
IntegergetCount(@Param("uid")Stringuid);
IntegergetCount(@Param("uid")Stringuid);
@Select("select IFNULL(sum(a.amount * b.original_price),0) from user_asset a left join goods_sku b on a.coin = b.coin_name where a.uid = #{uid} and a.amount > 0 and a.coin != 'BASE'")
@Select("select IFNULL(sum(a.amount * b.original_price),0) from user_asset a left join goods_sku b on a.goods_coin = b.coin_name where a.uid = #{uid} and a.amount > 0 and a.goods_coin != #{mallCoin}")