zss
6 天以前 9347c9a4a91f9e0b6562fe72a25aa06a76a928e7
src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml
@@ -43,5 +43,13 @@
            </if>
        </where>
    </select>
    <select id="selectPayment" resultType="com.ruoyi.home.dto.IncomeExpenseAnalysisDto">
        SELECT DATE_FORMAT(payment_date, #{dateFormat}) AS dateStr,
               IFNULL(SUM(payment_amount), 0)            AS amount
        FROM account_purchase_payment
        WHERE payment_date BETWEEN #{startDate} AND #{endDate}
        GROUP BY dateStr
        ORDER BY dateStr
    </select>
</mapper>