提现审核增加成功提现次数和成功提现金额
This commit is contained in:
parent
a58f429783
commit
57b2253d9d
|
|
@ -88,7 +88,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, Course> implements
|
|||
|
||||
private void setCache(String key, String value) {
|
||||
key = getIndexKey(key);
|
||||
redisUtils.set(key, value, 60);
|
||||
redisUtils.set(key, value, 600);
|
||||
}
|
||||
|
||||
private String getCache(String key) {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
|
|||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 提现申请
|
||||
|
|
@ -112,4 +113,16 @@ public class CashOut implements Serializable {
|
|||
*/
|
||||
@TableField(exist = false)
|
||||
private Integer isAgree;
|
||||
|
||||
/**
|
||||
* 成功提现金额总和
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private BigDecimal total;
|
||||
|
||||
/**
|
||||
* 成功提现次数
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private Long count;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,10 +76,13 @@
|
|||
<select id="selectCashOutPage" resultType="com.sqx.modules.pay.entity.CashOut">
|
||||
SELECT c.*,
|
||||
ifnull(u.user_name,"用户不存在") as userName,
|
||||
s.username as sysUserName
|
||||
s.username as sysUserName,
|
||||
ifnull(t.total,0.00) as total,
|
||||
ifnull(t.count,0) as count
|
||||
FROM cash_out c
|
||||
left join tb_user u on c.user_id = u.user_id
|
||||
left join sys_user s on s.user_id= c.sys_user_id
|
||||
left join (select user_id,format(sum(money),2) as total,count(*) as count from cash_out where state = 1 GROUP BY user_id) t on c.user_id = t.user_id
|
||||
<where>
|
||||
<if test="cashOut.userName!=null and cashOut.userName!=''">
|
||||
and u.user_name like concat("%",#{cashOut.userName},"%")
|
||||
|
|
|
|||
Loading…
Reference in New Issue