Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -29,6 +29,7 @@ import org.springframework.http.ResponseEntity; | ... | @@ -29,6 +29,7 @@ import org.springframework.http.ResponseEntity; |
| 29 | import org.springframework.stereotype.Service; | 29 | import org.springframework.stereotype.Service; |
| 30 | import org.springframework.web.client.RestTemplate; | 30 | import org.springframework.web.client.RestTemplate; |
| 31 | 31 | ||
| 32 | +import java.math.BigDecimal; | ||
| 32 | import java.text.ParseException; | 33 | import java.text.ParseException; |
| 33 | import java.time.LocalDateTime; | 34 | import java.time.LocalDateTime; |
| 34 | 35 | ||
| ... | @@ -123,7 +124,7 @@ public class PayServiceClient { | ... | @@ -123,7 +124,7 @@ public class PayServiceClient { |
| 123 | final var build = ClientCustomerOrderModification.newBuilder() | 124 | final var build = ClientCustomerOrderModification.newBuilder() |
| 124 | .setId(orderId) | 125 | .setId(orderId) |
| 125 | .setShouldUpdatePayTime(true).setPayTime(DateUtil.parseDate(paymentCallbackResult.getTransDate(), "yyyyMMddHHmmss").getTime()) | 126 | .setShouldUpdatePayTime(true).setPayTime(DateUtil.parseDate(paymentCallbackResult.getTransDate(), "yyyyMMddHHmmss").getTime()) |
| 126 | - .setShouldUpdatePayPrice(true).setPayPrice(Convert.toInt(paymentCallbackResult.getRealAmount())) | 127 | + .setShouldUpdatePayPrice(true).setPayPrice(Convert.toBigDecimal(paymentCallbackResult.getRealAmount()).multiply(new BigDecimal("100")).intValue()) |
| 127 | .setShouldUpdatePayStatus(true).setPayStatus(PayStatusEnum.SUCCEED) | 128 | .setShouldUpdatePayStatus(true).setPayStatus(PayStatusEnum.SUCCEED) |
| 128 | .setShouldUpdateTransactionId(true).setTransactionId(paymentCallbackResult.getTransSN()) | 129 | .setShouldUpdateTransactionId(true).setTransactionId(paymentCallbackResult.getTransSN()) |
| 129 | .build(); | 130 | .build(); | ... | ... |
-
Please register or login to post a comment