KKSU
2023-12-01 ff8b0d3fa80f8f6e11adb7bd059efdf03ba30e2b
src/main/resources/mapper/modules/MallAchieveRecordMapper.xml
@@ -28,4 +28,10 @@
        where date_format(achieve_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d');
    </select>
    <select id="selectSumAchieveByMemberId" resultType="java.math.BigDecimal">
        select IFNULL(sum(IFNULL(amount,0)),0)
        from mall_achieve_record
        where  member_id = #{memberId};
    </select>
</mapper>