|
|
@@ -26,6 +26,7 @@ import com.cyksj.service.pay.AliPayCommonService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.dao.DuplicateKeyException;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
@@ -132,5 +133,14 @@ public class UserMirrorShopOrderServiceImpl implements UserMirrorShopOrderServic
|
|
|
orderDon.setBuyerId(buyerId);
|
|
|
orderDon.setStatus(UserMirrorShopFeeOrderDon.Status.hasPayment);
|
|
|
feeOrderDonMapper.updateById(orderDon);
|
|
|
+
|
|
|
+ try {
|
|
|
+ UserMirrorShop userMirrorShop = new UserMirrorShop();
|
|
|
+ userMirrorShop.setUserId(orderDon.getUserId());
|
|
|
+ userMirrorShop.setStatus(true);
|
|
|
+ userMirrorShopMapper.insert(userMirrorShop);
|
|
|
+ } catch (DuplicateKeyException e) {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|