|
@@ -56,6 +56,7 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.aop.framework.AopContext;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.Assert;
|
|
@@ -74,6 +75,10 @@ public class UserTicketOrderServiceImpl extends
|
|
|
|
|
|
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
|
|
|
|
+
|
|
|
+ @Value("${bind.channelId}")
|
|
|
+ private Long bindChannelId;
|
|
|
+
|
|
|
@Autowired
|
|
|
private ITicketBoxService ticketBoxService;
|
|
|
|
|
@@ -213,6 +218,13 @@ public class UserTicketOrderServiceImpl extends
|
|
|
userTicketOrder.setShareInfo(JSONObject.toJSONString(userShareVO));
|
|
|
}
|
|
|
}
|
|
|
+ } else {
|
|
|
+ // 野生用户绑定固定的经销商
|
|
|
+ UserShareVO tempUserShareVO = new UserShareVO();
|
|
|
+ tempUserShareVO.setSuid(bindChannelId);
|
|
|
+ tempUserShareVO.setType(UserShareVO.SHARE_TYPE_SITE);
|
|
|
+ userTicketOrder.setChannelId(bindChannelId);
|
|
|
+ userTicketOrder.setShareInfo(JSONObject.toJSONString(tempUserShareVO));
|
|
|
}
|
|
|
}
|
|
|
save(userTicketOrder);
|