style 代码格式微调

This commit is contained in:
DaxPay
2024-12-20 18:02:29 +08:00
parent 0d3b7bf872
commit 9830930717
6 changed files with 3 additions and 10 deletions

View File

@@ -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("支付订单不存在"));
// 是否开启自动完结

View File

@@ -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)){

View File

@@ -14,8 +14,4 @@ import org.springframework.stereotype.Service;
@RequiredArgsConstructor
public class AllocationSyncTaskService {
/**
* 分账同步
*/
}