Commit a832eb9c by guojuxing

已审批,不能取消

parent cd1f3e1e
...@@ -177,6 +177,9 @@ public class CashWithdrawalApiServiceImpl implements CashWithdrawalApiService{ ...@@ -177,6 +177,9 @@ public class CashWithdrawalApiServiceImpl implements CashWithdrawalApiService{
if (record == null) { if (record == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "提现流水号错误,查无数据"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "提现流水号错误,查无数据");
} }
if (record.getCashWithdrawalStatus().intValue() != WithdrawalStatusEnum.TO_BE_EXAMINE.getCode()) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "已审批,不能取消");
}
record.setCashWithdrawalStatus(WithdrawalStatusEnum.CANCEL.getCode()); record.setCashWithdrawalStatus(WithdrawalStatusEnum.CANCEL.getCode());
cashWithdrawalService.update(record); cashWithdrawalService.update(record);
return ServiceResponse.success(); return ServiceResponse.success();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment