|
|
@@ -20,6 +20,7 @@ import com.cyksj.model.entity.OrderDon;
|
|
|
import com.cyksj.model.request.ExchangeCodeReq;
|
|
|
import com.cyksj.model.views.ExternalExchangeCodeView;
|
|
|
import com.cyksj.service.exchange.ExchangeCodeService;
|
|
|
+import com.cyksj.service.mange.CmsOrderDonService;
|
|
|
import com.cyksj.service.order.OrderCommonService;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
|
import com.ejlchina.searcher.SearchResult;
|
|
|
@@ -56,6 +57,8 @@ public class ExternalController {
|
|
|
|
|
|
private final ExchangeCodeService exchangeCodeService;
|
|
|
|
|
|
+ private final CmsOrderDonService cmsOrderDonService;
|
|
|
+
|
|
|
/**
|
|
|
* 知乎 特殊镜像规格 兑换码列表
|
|
|
*/
|
|
|
@@ -112,6 +115,11 @@ public class ExternalController {
|
|
|
GoodsDonSku sku = skuMapper.selectById(orderDon.getSkuId());
|
|
|
orderCommonService.clearUnrealGoodsDetail(orderDon, goodsDon.getType(), sku);
|
|
|
|
|
|
+ //清除gtpUser
|
|
|
+ if (orderDon.getOrderType() == 1) {
|
|
|
+ cmsOrderDonService.delMirrorUser(goodsDon.getId(), orderDon.getRelationId());
|
|
|
+ }
|
|
|
+
|
|
|
//重新生成兑换码
|
|
|
ExchangeCodeReq exchangeCodeReq = new ExchangeCodeReq();
|
|
|
exchangeCodeReq.setNumber(1);
|