xiaoyong931011
2023-05-26 aafb8d5ced6cfeae10f0e7c70460f1e3f9a4c9d5
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>