Authored by zhengwen.ge

去掉不必要的引用

1 package com.yoho.unions.server.restapi; 1 package com.yoho.unions.server.restapi;
2 2
3 -import javax.annotation.Resource;  
4 -  
5 -import com.yoho.service.model.union.request.UnionTimeBO;  
6 -import org.slf4j.Logger;  
7 -import org.slf4j.LoggerFactory;  
8 -import org.springframework.stereotype.Controller;  
9 -import org.springframework.web.bind.annotation.RequestMapping;  
10 -import org.springframework.web.bind.annotation.ResponseBody;  
11 -  
12 -import com.alibaba.fastjson.JSON;  
13 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
14 import com.yoho.service.model.union.request.ActiveUnionRequestBO; 4 import com.yoho.service.model.union.request.ActiveUnionRequestBO;
15 import com.yoho.service.model.union.request.AddUnionRequestBO; 5 import com.yoho.service.model.union.request.AddUnionRequestBO;
@@ -17,6 +7,13 @@ import com.yoho.service.model.union.response.ActiveUnionResponseBO; @@ -17,6 +7,13 @@ import com.yoho.service.model.union.response.ActiveUnionResponseBO;
17 import com.yoho.service.model.union.response.UnionResponseBO; 7 import com.yoho.service.model.union.response.UnionResponseBO;
18 import com.yoho.unions.server.service.DingdangService; 8 import com.yoho.unions.server.service.DingdangService;
19 import com.yoho.unions.server.service.MainUnionService; 9 import com.yoho.unions.server.service.MainUnionService;
  10 +import org.slf4j.Logger;
  11 +import org.slf4j.LoggerFactory;
  12 +import org.springframework.stereotype.Controller;
  13 +import org.springframework.web.bind.annotation.RequestMapping;
  14 +import org.springframework.web.bind.annotation.ResponseBody;
  15 +
  16 +import javax.annotation.Resource;
20 17
21 @Controller 18 @Controller
22 @RequestMapping("/UnionRest") 19 @RequestMapping("/UnionRest")
@@ -2,7 +2,6 @@ package com.yoho.unions.server.service; @@ -2,7 +2,6 @@ package com.yoho.unions.server.service;
2 2
3 import com.yoho.service.model.union.request.ActiveUnionRequestBO; 3 import com.yoho.service.model.union.request.ActiveUnionRequestBO;
4 import com.yoho.service.model.union.request.AddUnionRequestBO; 4 import com.yoho.service.model.union.request.AddUnionRequestBO;
5 -import com.yoho.service.model.union.request.UnionTimeBO;  
6 import com.yoho.service.model.union.response.UnionResponseBO; 5 import com.yoho.service.model.union.response.UnionResponseBO;
7 6
8 /** 7 /**
1 package com.yoho.unions.server.service.impl; 1 package com.yoho.unions.server.service.impl;
2 2
3 -import javax.annotation.Resource;  
4 -  
5 -import com.yoho.error.exception.ServiceException;  
6 -import com.yoho.service.model.union.request.UnionTimeBO;  
7 -import com.yoho.unions.common.redis.RedisValueCache;  
8 -import com.yoho.unions.dal.IMktMarketingUrlDAO;  
9 -import com.yoho.unions.dal.IUnionActivityLogsDAO;  
10 -import com.yoho.unions.dal.IUnionClickLogsDAO;  
11 -import com.yoho.unions.dal.model.MktMarketingUrl;  
12 -import com.yoho.unions.dal.model.UnionActivityLogs;  
13 -import com.yoho.unions.dal.model.UnionClickLogs;  
14 -import org.apache.commons.lang.StringUtils;  
15 -import org.apache.commons.lang3.tuple.Pair;  
16 -import org.apache.http.HttpStatus;  
17 -import org.slf4j.Logger;  
18 -import org.slf4j.LoggerFactory;  
19 -import org.springframework.stereotype.Service;  
20 -  
21 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
22 import com.netflix.config.DynamicIntProperty; 4 import com.netflix.config.DynamicIntProperty;
23 import com.netflix.config.DynamicPropertyFactory; 5 import com.netflix.config.DynamicPropertyFactory;
@@ -26,12 +8,26 @@ import com.yoho.service.model.union.request.ActiveUnionRequestBO; @@ -26,12 +8,26 @@ import com.yoho.service.model.union.request.ActiveUnionRequestBO;
26 import com.yoho.service.model.union.request.AddUnionRequestBO; 8 import com.yoho.service.model.union.request.AddUnionRequestBO;
27 import com.yoho.service.model.union.response.UnionResponseBO; 9 import com.yoho.service.model.union.response.UnionResponseBO;
28 import com.yoho.unions.common.enums.SourceEnum; 10 import com.yoho.unions.common.enums.SourceEnum;
  11 +import com.yoho.unions.common.redis.RedisValueCache;
29 import com.yoho.unions.common.utils.DateUtil; 12 import com.yoho.unions.common.utils.DateUtil;
30 import com.yoho.unions.common.utils.HttpUtils; 13 import com.yoho.unions.common.utils.HttpUtils;
  14 +import com.yoho.unions.dal.IMktMarketingUrlDAO;
  15 +import com.yoho.unions.dal.IUnionActivityLogsDAO;
  16 +import com.yoho.unions.dal.IUnionClickLogsDAO;
31 import com.yoho.unions.dal.IUnionsActiveRecordDAO; 17 import com.yoho.unions.dal.IUnionsActiveRecordDAO;
  18 +import com.yoho.unions.dal.model.MktMarketingUrl;
  19 +import com.yoho.unions.dal.model.UnionActivityLogs;
  20 +import com.yoho.unions.dal.model.UnionClickLogs;
32 import com.yoho.unions.dal.model.UnionsActiveRecord; 21 import com.yoho.unions.dal.model.UnionsActiveRecord;
33 import com.yoho.unions.server.service.DingdangService; 22 import com.yoho.unions.server.service.DingdangService;
  23 +import org.apache.commons.lang.StringUtils;
  24 +import org.apache.commons.lang3.tuple.Pair;
  25 +import org.apache.http.HttpStatus;
  26 +import org.slf4j.Logger;
  27 +import org.slf4j.LoggerFactory;
  28 +import org.springframework.stereotype.Service;
34 29
  30 +import javax.annotation.Resource;
35 import java.util.List; 31 import java.util.List;
36 import java.util.concurrent.TimeUnit; 32 import java.util.concurrent.TimeUnit;
37 33