zss
6 天以前 83abd7b427e84f6813e1a017912cf61676103316
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>