Commit cd1f3e1e by guojuxing

已取消的不能审批

parent 153e81ac
...@@ -89,6 +89,9 @@ public class CashWithdrawalApiServiceImpl implements CashWithdrawalApiService{ ...@@ -89,6 +89,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.CANCEL.getCode()) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "已取消");
}
// 操作人相关信息 // 操作人相关信息
getOperationUserInfo(record, dto); getOperationUserInfo(record, dto);
...@@ -115,6 +118,10 @@ public class CashWithdrawalApiServiceImpl implements CashWithdrawalApiService{ ...@@ -115,6 +118,10 @@ 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.CANCEL.getCode()) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "已取消");
}
// 操作人相关信息 // 操作人相关信息
getOperationUserInfo(record, dto); getOperationUserInfo(record, dto);
......
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