Merge branch 'cc_20260422_feeItemId'

This commit is contained in:
suzhuhong
2026-04-23 10:46:31 +08:00
3 changed files with 5 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ public interface AdjustmentOrderService {
* @param transferAmount
* @return
*/
Boolean calculateAmount(Long id ,String transferAmount);
Boolean calculateAmount(String no ,String transferAmount);
/**
* 确认充值

View File

@@ -371,8 +371,8 @@ public class AdjustmentOrderServiceImpl implements AdjustmentOrderService {
}
@Override
public Boolean calculateAmount(Long id, String transferAmount) {
AdjustmentOrderDO adjustmentOrderDO = adjustmentOrderDAO.getById(id);
public Boolean calculateAmount(String no, String transferAmount) {
AdjustmentOrderDO adjustmentOrderDO = adjustmentOrderDAO.getByAdjustmentNo(no);
if (adjustmentOrderDO==null){
log.info("calculateAmount:费用单/费用调整单为空");
return Boolean.FALSE;

View File

@@ -272,7 +272,7 @@ public class SplitOrderServiceImpl implements SplitOrderService {
//如果是分账完成 需要变更单据已分账金额
if (AllocationPayStatusEnum.PAID.getStatus().equals(accountTransferDTO.getTradeStatus())){
log.info("confirmSplitOrder 分账完成分账单ID{}",id);
adjustmentOrderService.calculateAmount(id,accountTransferDTO.getAmount());
adjustmentOrderService.calculateAmount(existing.getRelatedDocNo(),accountTransferDTO.getAmount());
}
return result > 0;
}
@@ -313,7 +313,7 @@ public class SplitOrderServiceImpl implements SplitOrderService {
splitOrderDAO.update(split);
if (AllocationPayStatusEnum.PAID.getStatus().equals(billDetail.getTradeStatus())){
log.info("confirmSplitOrder 分账完成分账单ID{}",split.getId());
adjustmentOrderService.calculateAmount(split.getId(),billDetail.getAmount());
adjustmentOrderService.calculateAmount(split.getRelatedDocNo(),billDetail.getAmount());
}
return null;
}