KKSU
2024-02-28 1ec33ec01e45efb45b28b786d80e74671f654b7d
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>