月为单位 查用户
This commit is contained in:
@@ -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 > #{startTime}
|
||||
and create_time < #{endTime}
|
||||
and state = 1
|
||||
and user_id = #{userId}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectUserMemberList" resultType="Map">
|
||||
|
||||
Reference in New Issue
Block a user