Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
796081cf7b
@ -65,4 +65,18 @@
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<compilerArgs>
|
||||
<arg>-implicit:class</arg> <!-- 可选值:none、class -->
|
||||
</compilerArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@ -318,7 +318,7 @@ public class UserOrdersServiceImpl extends ServiceImpl<UserOrdersMapper, EbikeUs
|
||||
public void refund(Long orderId) {
|
||||
QueryWrapper queryWrapper = QueryWrapper.create()
|
||||
.where(EBIKE_USER_ORDERS.ORDER_ID.eq(orderId))
|
||||
.where(EBIKE_USER_ORDERS.STATUS.eq(OrderStatus.PAID));
|
||||
.where(EBIKE_USER_ORDERS.STATUS.eq(OrderStatus.REFUND_APPLYING));
|
||||
EbikeUserOrders userOrders = this.mapper.selectOneByQuery(queryWrapper);
|
||||
userOrders.setStatus(OrderStatus.REFUNDING);
|
||||
this.mapper.update(userOrders);
|
||||
@ -338,7 +338,7 @@ public class UserOrdersServiceImpl extends ServiceImpl<UserOrdersMapper, EbikeUs
|
||||
public void rejectRefund(Long orderId) {
|
||||
QueryWrapper queryWrapper = QueryWrapper.create()
|
||||
.where(EBIKE_USER_ORDERS.ORDER_ID.eq(orderId))
|
||||
.where(EBIKE_USER_ORDERS.STATUS.eq(OrderStatus.REFUNDING));
|
||||
.where(EBIKE_USER_ORDERS.STATUS.eq(OrderStatus.REFUND_APPLYING));
|
||||
EbikeUserOrders userOrders = this.mapper.selectOneByQuery(queryWrapper);
|
||||
userOrders.setStatus(OrderStatus.REFUND_REJECTED);
|
||||
this.mapper.update(userOrders);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user