|
@@ -80,6 +80,9 @@ public class FlowServiceImpl extends AbstractService<Flow> implements FlowServic
|
|
|
if (freezd == null){
|
|
|
return Result.genFailResult("冻结记录未找到");
|
|
|
}
|
|
|
+ if (freezd.getStatus() != 1){
|
|
|
+ return Result.genFailResult("冻结状态有异常");
|
|
|
+ }
|
|
|
Flow oldFlow = findById(freezd.getBizId());
|
|
|
if (oldFlow == null){
|
|
|
return Result.genFailResult("冻结记录未找到");
|
|
@@ -90,7 +93,7 @@ public class FlowServiceImpl extends AbstractService<Flow> implements FlowServic
|
|
|
return Result.genFailResult("冻结账号未找到");
|
|
|
}
|
|
|
Date today = DateUtil.date();
|
|
|
- Flow flow = Flow.builder().amount(freezd.getAmount()).bizType(5001)
|
|
|
+ Flow flow = Flow.builder().amount(freezd.getAmount()).bizType(BizTypeEnum.UNFREEZE.getKey())
|
|
|
.bizNo(oldFlow.getBizNo()).createTime(today).updateTime(today).transTime(today)
|
|
|
.debitAccount(oldFlow.getDebitAccount()).creditAccount(oldFlow.getCreditAccount())
|
|
|
.bizId(oldFlow.getBizId()).type(5).userId(account.getUserId())
|