mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-14 05:40:25 +00:00
style 代码格式微调
This commit is contained in:
@@ -85,7 +85,7 @@ public class PayOrderService {
|
||||
/**
|
||||
* 自动分账
|
||||
*/
|
||||
public void autoAllocation(Long id){
|
||||
public void autoAllocation(@NotNull(message = "支付订单id不能为空") Long id){
|
||||
try {
|
||||
PayOrder payOrder = payOrderManager.findById(id).orElseThrow(() -> new TradeNotExistException("支付订单不存在"));
|
||||
// 是否开启自动完结
|
||||
|
@@ -72,7 +72,6 @@ public class PaySyncService {
|
||||
if (Objects.equals(payOrder.getStatus(), WAIT.getCode())){
|
||||
throw new TradeStatusErrorException("订单未开始支付, 请重新确认支付状态");
|
||||
}
|
||||
|
||||
// 加锁
|
||||
LockInfo lock = lockTemplate.lock("sync:pay" + payOrder.getId(),10000,200);
|
||||
if (Objects.isNull(lock)){
|
||||
|
@@ -14,8 +14,4 @@ import org.springframework.stereotype.Service;
|
||||
@RequiredArgsConstructor
|
||||
public class AllocationSyncTaskService {
|
||||
|
||||
/**
|
||||
* 分账同步
|
||||
*/
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user