售后bugfix

This commit is contained in:
taozi
2023-06-17 13:38:22 +08:00
parent c61840a7cd
commit 031b44dec8
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.10</version> <version>2.7.12</version>
</parent> </parent>
<properties> <properties>

View File

@ -67,7 +67,7 @@ public class StoreAfterSalesController {
.eq(StoreAfterSales::getOrderCode, salesCheckDto.getOrderCode()) .eq(StoreAfterSales::getOrderCode, salesCheckDto.getOrderCode())
.eq(StoreAfterSales::getId, salesCheckDto.getSalesId()) .eq(StoreAfterSales::getId, salesCheckDto.getSalesId())
.one(); .one();
if (storeAfterSales.getServiceType() == 0) { if (salesCheckDto.getApprovalStatus().equals(0) && storeAfterSales.getServiceType() == 0) {
BigDecimal bigDecimal = new BigDecimal("100"); BigDecimal bigDecimal = new BigDecimal("100");
int payPrice = bigDecimal.multiply(storeAfterSales.getRefundAmount()).intValue(); int payPrice = bigDecimal.multiply(storeAfterSales.getRefundAmount()).intValue();
YxStoreOrderQueryVo orderInfo = storeOrderService.getOrderInfo(salesCheckDto.getOrderCode(), null); YxStoreOrderQueryVo orderInfo = storeOrderService.getOrderInfo(salesCheckDto.getOrderCode(), null);