src/main/resources/mapper/account/sales/AccountSalesCollectionMapper.xml
@@ -85,5 +85,13 @@ order by sor.id DESC </select> <select id="selectIncomeStats" resultType="com.ruoyi.home.dto.IncomeExpenseAnalysisDto"> SELECT DATE_FORMAT(collection_date, #{dateFormat}) AS dateStr, IFNULL(SUM(collection_amount), 0) AS amount FROM account_sales_collection WHERE collection_date BETWEEN #{startDate} AND #{endDate} GROUP BY dateStr ORDER BY dateStr </select> </mapper>