zss
6 天以前 3ac318e2f614e8c57a0a9a6d175d2909ba1dbc21
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 #{startStr} AND #{endStr}
         GROUP BY dateStr
         ORDER BY dateStr
    </select>
</mapper>