新增管理端消费趋势接口

This commit is contained in:
gaoqr
2025-09-02 09:50:02 +08:00
parent a132de5b07
commit a8a9bac5d4
4 changed files with 18 additions and 8 deletions
@@ -22,8 +22,11 @@
select sum(cash_amount_change) as amount
<include refid="dateFormat"/>
from income_expense_details
where organ_id = #{organId}
and create_time between #{req.createTime[0]} and #{req.createTime[1]}
where create_time between #{req.createTime[0]} and #{req.createTime[1]}
<if test="organId != null">
and organ_id = #{organId}
</if>
GROUP BY date
</select>
</mapper>