月为单位 查用户

This commit is contained in:
2025-01-06 20:33:53 +08:00
parent d4183436e6
commit f13daaf01e
3 changed files with 13 additions and 6 deletions

View File

@@ -141,10 +141,14 @@
order by d.pay_time desc
</select>
<select id="instantselectSumPay" resultType="Double">
select sum(money) from pay_details where 1=1
and date_format(create_time,'%Y-%m')=date_format(#{date},'%Y-%m')
and state=1 and user_id=#{userId}
</select>
select sum(money)
from pay_details
where 1 = 1
and create_time &gt; #{startTime}
and create_time &lt; #{endTime}
and state = 1
and user_id = #{userId}
</select>
<select id="selectUserMemberList" resultType="Map">