xiaoyong931011
2023-05-26 9f335de3384f48c9021f49d44ba8f3925fdb114c
src/main/resources/mapper/modules/MallScoreRecordMapper.xml
@@ -41,4 +41,11 @@
        order by a.created_time desc
    </select>
    <select id="selectSurplusCntByMemberId" resultType="java.math.BigDecimal">
        select
               IFNULL(sum(IFNULL(surplus_cnt,0)),0)
        from mall_score_record
        where member_id = #{memberId}
    </select>
</mapper>