mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-11 10:49:52 +08:00
新增接口, 设置订单待补缴金额
This commit is contained in:
@@ -784,7 +784,7 @@ public class TempController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 重试订单退款接口/重试退款按钮 (批量)
|
* 重试订单退款接口/重试退款按钮 (批量)
|
||||||
* http://localhost:8080/order/retryRefundOrderBatch
|
* http://localhost:8080/temp/retryRefundOrderBatch
|
||||||
*/
|
*/
|
||||||
@PostMapping("/retryRefundOrderBatch")
|
@PostMapping("/retryRefundOrderBatch")
|
||||||
public RestApiResponse<?> retryRefundOrderBatch(@RequestBody ApplyRefundDTO dto) {
|
public RestApiResponse<?> retryRefundOrderBatch(@RequestBody ApplyRefundDTO dto) {
|
||||||
@@ -801,4 +801,21 @@ public class TempController extends BaseController {
|
|||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设置订单待补缴金额
|
||||||
|
* http://localhost:8080/temp/setOrderSupplementAmount
|
||||||
|
*/
|
||||||
|
@PostMapping("/setOrderSupplementAmount")
|
||||||
|
public RestApiResponse<?> setOrderSupplementAmount(HttpServletRequest request, @RequestBody OrderSupplementAmountDTO dto) {
|
||||||
|
RestApiResponse<?> response;
|
||||||
|
try {
|
||||||
|
orderBasicInfoService.setOrderSupplementAmount(dto);
|
||||||
|
response = new RestApiResponse<>();
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("设置订单待补缴金额error,", e);
|
||||||
|
response = new RestApiResponse<>(e);
|
||||||
|
}
|
||||||
|
return response;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -557,4 +557,10 @@ public interface OrderBasicInfoService{
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<AfterSettleOrderDTO> queryAfterSettleOrderDTOList(List<String> orderCodeList);
|
List<AfterSettleOrderDTO> queryAfterSettleOrderDTOList(List<String> orderCodeList);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设置订单补缴金额
|
||||||
|
* @param dto
|
||||||
|
*/
|
||||||
|
void setOrderSupplementAmount(OrderSupplementAmountDTO dto);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4977,5 +4977,18 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
|||||||
return null;
|
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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user