修改可提现判断
This commit is contained in:
@@ -27,7 +27,7 @@ public interface CashOutDao extends BaseMapper<CashOut> {
|
|||||||
|
|
||||||
Double selectCashOutSum(@Param("userId") Long userId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
Double selectCashOutSum(@Param("userId") Long userId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||||
|
|
||||||
Integer selectTodayCashCount(@Param("userId") Long userId, @Param("state") Integer state,@Param("time") String time);
|
Integer selectTodayCashCount(@Param("userId") Long userId, @Param("stateList") List<Integer> stateList,@Param("time") String time);
|
||||||
|
|
||||||
Double selectSysUserCashOutSum(@Param("sysUserId") Long sysUserId, @Param("time") String time);
|
Double selectSysUserCashOutSum(@Param("sysUserId") Long sysUserId, @Param("time") String time);
|
||||||
|
|
||||||
|
|||||||
@@ -188,7 +188,13 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectTodayCashCount" resultType="java.lang.Integer">
|
<select id="selectTodayCashCount" resultType="java.lang.Integer">
|
||||||
select count(*) from cash_out where create_at > #{time} and user_id=#{userId} and state=#{state} and withdraw_type=1;
|
select count(*) from cash_out where create_at > #{time} and user_id=#{userId}
|
||||||
|
and state in
|
||||||
|
<foreach collection="stateList" item="state" open="(" separator="," close=")">
|
||||||
|
#{state}
|
||||||
|
</foreach>
|
||||||
|
and state=#{state}
|
||||||
|
and withdraw_type=1;
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user