Browse Source

提现修改

liweifan 3 years ago
parent
commit
48fc173882

+ 10 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/UserWithdrawalServiceImpl.java

@@ -82,7 +82,16 @@ public class UserWithdrawalServiceImpl extends ServiceImpl<UserWithdrawalDao, Us
     @Override
     public IPage<UserWithdrawalVo> selectPage(IPage<UserWithdrawalVo> page, TeacherWithdrawalSearch query) {
         List<UserWithdrawalVo> withdrawalVoList = baseMapper.selectPage(page, query);
-        withdrawalVoList.forEach(o -> o.setBankCard(ValueUtil.fuzzyBankCard(o.getBankCard())));
+        withdrawalVoList.forEach(o -> {
+            if(AuthStatusEnum.DOING.equals(o.getAuthStatus())){
+                o.setWithdrawStatus("DOING");
+            }else if(TradeStatusEnum.succeeded.equals(o.getTradeStatus())){
+                o.setWithdrawStatus("SUCCESS");
+            }else{
+                o.setWithdrawStatus("FAILED");
+            }
+            o.setBankCard(ValueUtil.fuzzyBankCard(o.getBankCard()));
+        });
         return page.setRecords(withdrawalVoList);
     }
 

+ 10 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/vo/UserWithdrawalVo.java

@@ -21,9 +21,10 @@ public class UserWithdrawalVo extends UserWithdrawal {
 	private String	withdrawaUser;
 	@ApiModelProperty("结算手机号 ")
 	private String phone;
-
 	@ApiModelProperty("审核人 ")
 	private String verifyUser;
+	@ApiModelProperty("提现状态 DOING 审核中 FAILED 未通过 SUCCESS 提现成功 ")
+	private String withdrawStatus;
 
 	public String getBankName() {
 		return bankName;
@@ -72,4 +73,12 @@ public class UserWithdrawalVo extends UserWithdrawal {
 	public void setRealName(String realName) {
 		this.realName = realName;
 	}
+
+	public String getWithdrawStatus() {
+		return withdrawStatus;
+	}
+
+	public void setWithdrawStatus(String withdrawStatus) {
+		this.withdrawStatus = withdrawStatus;
+	}
 }