Commit c998fd9f by songyinghui

feature: 订单转化

parent 1e8476bb
......@@ -9,6 +9,9 @@ import com.gic.business.order.enums.OrderEnum;
import com.gic.business.order.qdto.ordermanage.OrderInfoQDTO;
import com.gic.business.order.service.ordermanage.OrderInfoOutApiService;
import com.gic.commons.util.GICMQClientUtil;
import com.gic.content.api.dto.setting.ContentSettingDTO;
import com.gic.content.api.enums.ContentMallShopType;
import com.gic.content.api.service.ContentSettingApiService;
import com.gic.enterprise.api.constant.EnterpriseServiceEnum;
import com.gic.enterprise.api.dto.enterprise.EnterpriseUsingStatusDTO;
import com.gic.enterprise.api.service.EnterpriseUseForbidService;
......@@ -56,6 +59,8 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
private MaterialDataAdaptor materialDataAdaptor;
@Autowired
private EnterpriseUseForbidService enterpriseUseForbidService;
@Autowired
private ContentSettingApiService contentSettingApiService;
private static final String ORDER_EVENT_RETRY = "orderEventRetryMQ";
......@@ -82,6 +87,19 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
return ServiceResponse.success();
}
String enterpriseId = orderEventMqBO.getEnterpriseId();
ServiceResponse<ContentSettingDTO> response = contentSettingApiService.queryContentSettingInfo(enterpriseId);
if (!response.isSuccess() || response.getResult() == null) {
log.info("查询企业内容配置异常 {}", enterpriseId);
return ServiceResponse.success();
}
if (!ContentMallShopType.GIC_MALL.getCode().equals(response.getResult().getMallShopType())) {
log.info("当前企业内容配置非微商城 {}", JSON.toJSONString(response));
return ServiceResponse.success();
}
OrderInfoQDTO orderInfoQDTO = new OrderInfoQDTO();
orderInfoQDTO.setEnterpriseId(orderEventMqBO.getEnterpriseId());
orderInfoQDTO.setOrderNumber(orderEventMqBO.getOrderNumber());
......@@ -208,6 +226,17 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
return ServiceResponse.success();
}
ServiceResponse<ContentSettingDTO> response = contentSettingApiService.queryContentSettingInfo(enterpriseId);
if (!response.isSuccess() || response.getResult() == null) {
log.info("查询企业内容配置异常 {}", enterpriseId);
return ServiceResponse.success();
}
if (!ContentMallShopType.WEIMO_MALL.getCode().equals(response.getResult().getMallShopType())) {
log.info("当前企业内容配置非微盟商城 {}", JSON.toJSONString(response));
return ServiceResponse.success();
}
String memberId = memberOrderBo.getMemberId();
String orderId = memberOrderBo.getOrderId();
String orderNumber = memberOrderBo.getOrderNumber();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment