售后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>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.10</version>
<version>2.7.12</version>
</parent>
<properties>

View File

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