update 查询提现记录

This commit is contained in:
2024-01-06 09:36:06 +08:00
parent e18288fdb5
commit 6872a18575
2 changed files with 11 additions and 3 deletions

View File

@@ -6,8 +6,10 @@ import com.google.common.collect.Lists;
import com.huifu.adapay.core.exception.BaseAdaPayException; import com.huifu.adapay.core.exception.BaseAdaPayException;
import com.jsowell.adapay.dto.QueryWithdrawListDTO; import com.jsowell.adapay.dto.QueryWithdrawListDTO;
import com.jsowell.adapay.service.AdapayService; import com.jsowell.adapay.service.AdapayService;
import com.jsowell.common.constant.Constants;
import com.jsowell.common.core.page.PageResponse; import com.jsowell.common.core.page.PageResponse;
import com.jsowell.common.util.DateUtils; import com.jsowell.common.util.DateUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.domain.ClearingWithdrawInfo; import com.jsowell.pile.domain.ClearingWithdrawInfo;
import com.jsowell.pile.mapper.ClearingWithdrawInfoMapper; import com.jsowell.pile.mapper.ClearingWithdrawInfoMapper;
import com.jsowell.pile.service.ClearingWithdrawInfoService; import com.jsowell.pile.service.ClearingWithdrawInfoService;
@@ -141,7 +143,13 @@ public class ClearingWithdrawInfoServiceImpl implements ClearingWithdrawInfoServ
vo.setMerchantId(clearingWithdrawInfo.getMerchantId()); vo.setMerchantId(clearingWithdrawInfo.getMerchantId());
vo.setWithdrawCode(clearingWithdrawInfo.getWithdrawCode()); vo.setWithdrawCode(clearingWithdrawInfo.getWithdrawCode());
vo.setApplicationTime(DateUtils.formatDateTime(clearingWithdrawInfo.getApplicationTime())); vo.setApplicationTime(DateUtils.formatDateTime(clearingWithdrawInfo.getApplicationTime()));
vo.setStatusDesc(clearingWithdrawInfo.getWithdrawStatus()); String statusDesc = null;
if (StringUtils.equals(clearingWithdrawInfo.getWithdrawStatus(), Constants.ZERO)) {
statusDesc = "处理中";
} else if (StringUtils.equals(clearingWithdrawInfo.getWithdrawStatus(), Constants.ONE)){
statusDesc = "已提现";
}
vo.setStatusDesc(statusDesc);
vo.setCashAmt(clearingWithdrawInfo.getCreditedAmt()); vo.setCashAmt(clearingWithdrawInfo.getCreditedAmt());
resultList.add(vo); resultList.add(vo);
} }

View File

@@ -143,9 +143,9 @@ public class SettleOrderReportServiceImpl implements ISettleOrderReportService {
vo.setClearingBillCode(clearingBillVO.getClearingBillCode()); vo.setClearingBillCode(clearingBillVO.getClearingBillCode());
vo.setWithdrawCode(clearingBillVO.getWithdrawCode()); vo.setWithdrawCode(clearingBillVO.getWithdrawCode());
String withdrawStatus = null; String withdrawStatus = null;
if (StringUtils.equals(clearingBillVO.getWithdrawStatus(), "0")) { if (StringUtils.equals(clearingBillVO.getWithdrawStatus(), Constants.ZERO)) {
withdrawStatus = "处理中"; withdrawStatus = "处理中";
} else if (StringUtils.equals(clearingBillVO.getWithdrawStatus(), "1")){ } else if (StringUtils.equals(clearingBillVO.getWithdrawStatus(), Constants.ONE)){
withdrawStatus = "已提现"; withdrawStatus = "已提现";
} }
vo.setWithdrawStatus(withdrawStatus); vo.setWithdrawStatus(withdrawStatus);