This commit is contained in:
777
2025-12-08 10:51:08 +08:00
parent a71249ed12
commit c5bd376851
5 changed files with 69 additions and 1 deletions

View File

@@ -64,5 +64,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and pay_time between #{startTime} and #{endTime}
</select>
<select id="totalPage" resultType="com.ruoyi.cai.dto.admin.vo.order.RechargeOrderCountAdminVo">
select date(t1.pay_time) as countDate,t1.appid,t1.price,count(1) as totalNum
from cai_recharge_order t1
where t1.pay_status = 1
<if test="query.countDate != null">
and date(pay_time) = #{query.countDate}
</if>
<if test="query.appid != null">
and appid = #{query.appid}
</if>
group by date(t1.pay_time), t1.appid, t1.price
order by countDate desc, appid,price
</select>
</mapper>