新增接口, 设置订单待补缴金额

This commit is contained in:
Guoqs
2025-04-01 16:17:04 +08:00
parent 0e7e1d9373
commit 3ff52f85f0
4 changed files with 57 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
package com.jsowell.pile.dto;
import lombok.Data;
import java.math.BigDecimal;
/**
* 订单补缴金额DTO
*/
@Data
public class OrderSupplementAmountDTO {
// 订单编号
private String orderCode;
// 补缴金额
private BigDecimal supplementAmount;
// 备注
private String remark;
}

View File

@@ -557,4 +557,10 @@ public interface OrderBasicInfoService{
* @return
*/
List<AfterSettleOrderDTO> queryAfterSettleOrderDTOList(List<String> orderCodeList);
/**
* 设置订单补缴金额
* @param dto
*/
void setOrderSupplementAmount(OrderSupplementAmountDTO dto);
}

View File

@@ -4977,5 +4977,18 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
return null;
}
@Override
public void setOrderSupplementAmount(OrderSupplementAmountDTO dto) {
// 查询订单主表
OrderBasicInfo orderBasicInfo = this.getOrderInfoByOrderCode(dto.getOrderCode());
if (orderBasicInfo != null) {
// 修改订单主表中的字段, order_status, remedial_amount
orderBasicInfo.setOrderStatus(OrderStatusEnum.STAY_RETROACTIVE_AMOUNT.getValue());
orderBasicInfo.setRemedialAmount(dto.getSupplementAmount());
updateOrderBasicInfo(orderBasicInfo);
logger.info("设置订单待补缴金额, orderCode:{}, supplementAmount:{}, 备注:{}", dto.getOrderCode(), dto.getSupplementAmount(), dto.getRemark());
}
}
}