xiaoyong931011
2023-05-11 75478fa7a2dbf6bdcab7f96c1348475150a67b70
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>