|
@@ -118,6 +118,14 @@ public class UserMirrorCommonServiceImpl implements UserMirrorCommonService {
|
|
|
orderDon.setOutRefundNo(outRefundNo);
|
|
orderDon.setOutRefundNo(outRefundNo);
|
|
|
orderDon.setStatus(UserMirrorShopFeeOrderDon.Status.refund);
|
|
orderDon.setStatus(UserMirrorShopFeeOrderDon.Status.refund);
|
|
|
orderDon.setRefundMoney(orderDon.getMoney());
|
|
orderDon.setRefundMoney(orderDon.getMoney());
|
|
|
|
|
+
|
|
|
|
|
+ UserMirrorShop userMirrorShop = userMirrorShopMapper.selectOne(Wrappers.lambdaQuery(UserMirrorShop.class)
|
|
|
|
|
+ .eq(UserMirrorShop::getUserId, orderDon.getUserId())
|
|
|
|
|
+ .last("limit 1"));
|
|
|
|
|
+ if (userMirrorShop != null) {
|
|
|
|
|
+ userMirrorShop.setStatus(false);
|
|
|
|
|
+ userMirrorShopMapper.updateById(userMirrorShop);
|
|
|
|
|
+ }
|
|
|
userMirrorShopFeeOrderDonMapper.updateById(orderDon);
|
|
userMirrorShopFeeOrderDonMapper.updateById(orderDon);
|
|
|
}
|
|
}
|
|
|
|
|
|