xiaoyong931011
2021-06-30 b9857b9a19ae585d342b74fca6ee26277019e65c
gc-shop/src/main/resources/mapper/shop/ScoreDetailsMapper.xml
@@ -35,4 +35,10 @@
        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>