Helius
2021-11-10 e497a05ce312d26864b0c23cad97da9eb32c2cc1
gc-shop/src/main/resources/mapper/shop/ScoreDetailsMapper.xml
@@ -27,4 +27,18 @@
        order by a.CREATED_TIME desc
    </select>
    <select id="selectXcxScoreDetailsList" resultType="com.xzx.gc.shop.vo.XcxScoreDetailsVo">
        select
            *
            ,change_score score
        from xzx_score_details
        where user_id=#{record.userId}
        order by id desc
    </select>
    <select id="selectTotalScoreByUserId" resultType="java.math.BigDecimal">
        select sum(change_score)
        from xzx_score_details
        where user_id=#{userId} and type=#{type}
    </select>
</mapper>