mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-08 05:27:59 +00:00
feat SDK分账接口联调, 修改菜单关键词字段, 添加PGSQL脚本数据
This commit is contained in:
@@ -144,7 +144,7 @@ public class AllocationReceiverService {
|
||||
AllocationReceiver receiver = allocationReceiverManager.findByReceiverNo(param.getReceiverNo())
|
||||
.orElseThrow(() -> new PayFailureException("该接收方不存在"));
|
||||
if (groupReceiverManager.isUsed(receiver.getId())){
|
||||
throw new PayFailureException("该接收方已被使用删除");
|
||||
throw new PayFailureException("该接收方已被使用,无法被删除");
|
||||
}
|
||||
// 获取策略
|
||||
PayChannelEnum channelEnum = PayChannelEnum.findByCode(receiver.getChannel());
|
||||
|
@@ -111,6 +111,7 @@ public class AllocationService {
|
||||
if (Objects.equals(order.getStatus(),AllocOrderStatusEnum.IGNORE.getCode())){
|
||||
return new AllocationResult()
|
||||
.setAllocationNo(order.getAllocationNo())
|
||||
.setBizAllocationNo(order.getBizAllocationNo())
|
||||
.setStatus(order.getStatus());
|
||||
}
|
||||
|
||||
@@ -140,6 +141,7 @@ public class AllocationService {
|
||||
allocationOrderManager.updateById(order);
|
||||
return new AllocationResult()
|
||||
.setAllocationNo(order.getAllocationNo())
|
||||
.setBizAllocationNo(order.getBizAllocationNo())
|
||||
.setStatus(order.getStatus());
|
||||
} finally {
|
||||
lockTemplate.releaseLock(lock);
|
||||
@@ -188,6 +190,7 @@ public class AllocationService {
|
||||
allocationOrderManager.updateById(order);
|
||||
return new AllocationResult()
|
||||
.setAllocationNo(order.getAllocationNo())
|
||||
.setBizAllocationNo(order.getBizAllocationNo())
|
||||
.setStatus(order.getStatus());
|
||||
} finally {
|
||||
lockTemplate.releaseLock(lock);
|
||||
@@ -241,6 +244,7 @@ public class AllocationService {
|
||||
allocationOrderManager.updateById(allocationOrder);
|
||||
return new AllocationResult()
|
||||
.setAllocationNo(allocationOrder.getAllocationNo())
|
||||
.setBizAllocationNo(allocationOrder.getBizAllocationNo())
|
||||
.setStatus(allocationOrder.getStatus());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user