Commit c3927772262f741b55de6a540dc4d0f6c54a25d1

Authored by 王言钊
1 parent fefacc4e

优化:将无用的包引用自动删除

Showing 23 changed files with 30 additions and 176 deletions
src/main/java/com/cnlive/shenhe/api/AvsampleCallBackControllerApi.java
1 package com.cnlive.shenhe.api; 1 package com.cnlive.shenhe.api;
2 2
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 -import com.cnlive.shenhe.bean.ErrorEnum;  
5 -import com.cnlive.shenhe.bean.ResponseBean;  
6 import com.cnlive.shenhe.entity.ShyVideos; 4 import com.cnlive.shenhe.entity.ShyVideos;
7 import com.cnlive.shenhe.serviceImpl.VideosServiceImpl; 5 import com.cnlive.shenhe.serviceImpl.VideosServiceImpl;
8 import com.cnlive.shenhe.utils.CommonConst; 6 import com.cnlive.shenhe.utils.CommonConst;
@@ -10,15 +8,8 @@ import com.cnlive.shenhe.utils.CommonUtils; @@ -10,15 +8,8 @@ import com.cnlive.shenhe.utils.CommonUtils;
10 import org.slf4j.Logger; 8 import org.slf4j.Logger;
11 import org.slf4j.LoggerFactory; 9 import org.slf4j.LoggerFactory;
12 import org.springframework.beans.factory.annotation.Autowired; 10 import org.springframework.beans.factory.annotation.Autowired;
13 -import org.springframework.beans.factory.annotation.Value;  
14 import org.springframework.stereotype.Controller; 11 import org.springframework.stereotype.Controller;
15 -import org.springframework.ui.Model;  
16 -import org.springframework.web.bind.annotation.GetMapping;  
17 -import org.springframework.web.bind.annotation.PostMapping;  
18 -import org.springframework.web.bind.annotation.RequestBody;  
19 -import org.springframework.web.bind.annotation.RequestMapping;  
20 -import org.springframework.web.bind.annotation.ResponseBody;  
21 -import org.springframework.web.servlet.ModelAndView; 12 +import org.springframework.web.bind.annotation.*;
22 13
23 import java.util.List; 14 import java.util.List;
24 15
src/main/java/com/cnlive/shenhe/api/ChannelControllerApi.java
@@ -5,7 +5,6 @@ import com.cnlive.shenhe.bean.ErrorEnum; @@ -5,7 +5,6 @@ import com.cnlive.shenhe.bean.ErrorEnum;
5 import com.cnlive.shenhe.bean.ResponseBean; 5 import com.cnlive.shenhe.bean.ResponseBean;
6 import com.cnlive.shenhe.entity.ShyChannel; 6 import com.cnlive.shenhe.entity.ShyChannel;
7 import com.cnlive.shenhe.serviceImpl.ChannelServiceImpl; 7 import com.cnlive.shenhe.serviceImpl.ChannelServiceImpl;
8 -import com.cnlive.shenhe.utils.AuditPass;  
9 import com.cnlive.shenhe.utils.CommonConst; 8 import com.cnlive.shenhe.utils.CommonConst;
10 import com.cnlive.shenhe.utils.CommonUtils; 9 import com.cnlive.shenhe.utils.CommonUtils;
11 import org.slf4j.Logger; 10 import org.slf4j.Logger;
src/main/java/com/cnlive/shenhe/api/CommentsControllerApi.java
@@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject; @@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject;
4 import com.cnlive.shenhe.bean.ErrorEnum; 4 import com.cnlive.shenhe.bean.ErrorEnum;
5 import com.cnlive.shenhe.bean.ResponseBean; 5 import com.cnlive.shenhe.bean.ResponseBean;
6 import com.cnlive.shenhe.entity.ShyComments; 6 import com.cnlive.shenhe.entity.ShyComments;
7 -import com.cnlive.shenhe.entity.ShyTopic;  
8 import com.cnlive.shenhe.serviceImpl.CommentsServiceImpl; 7 import com.cnlive.shenhe.serviceImpl.CommentsServiceImpl;
9 import com.cnlive.shenhe.serviceImpl.TopicServiceImpl; 8 import com.cnlive.shenhe.serviceImpl.TopicServiceImpl;
10 import com.cnlive.shenhe.utils.AuditPass; 9 import com.cnlive.shenhe.utils.AuditPass;
@@ -13,7 +12,6 @@ import com.cnlive.shenhe.utils.CommonUtils; @@ -13,7 +12,6 @@ import com.cnlive.shenhe.utils.CommonUtils;
13 import org.slf4j.Logger; 12 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory; 13 import org.slf4j.LoggerFactory;
15 import org.springframework.beans.factory.annotation.Autowired; 14 import org.springframework.beans.factory.annotation.Autowired;
16 -import org.springframework.beans.factory.annotation.Value;  
17 import org.springframework.stereotype.Controller; 15 import org.springframework.stereotype.Controller;
18 import org.springframework.web.bind.annotation.PostMapping; 16 import org.springframework.web.bind.annotation.PostMapping;
19 import org.springframework.web.bind.annotation.RequestMapping; 17 import org.springframework.web.bind.annotation.RequestMapping;
src/main/java/com/cnlive/shenhe/api/LiveApplyControllerApi.java
1 package com.cnlive.shenhe.api; 1 package com.cnlive.shenhe.api;
2 2
3 -import com.alibaba.fastjson.JSON;  
4 -import com.alibaba.fastjson.JSONArray;  
5 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
6 -import com.cnlive.shenhe.bean.ErrorEnum;  
7 -import com.cnlive.shenhe.bean.ResponseBean;  
8 -import com.cnlive.shenhe.entity.ShyLive;  
9 import com.cnlive.shenhe.entity.ShyLiveapply; 4 import com.cnlive.shenhe.entity.ShyLiveapply;
10 -import com.cnlive.shenhe.entity.ShyVideos;  
11 import com.cnlive.shenhe.serviceImpl.LiveApplyServiceImpl; 5 import com.cnlive.shenhe.serviceImpl.LiveApplyServiceImpl;
12 -import com.cnlive.shenhe.serviceImpl.VideosServiceImpl;  
13 -import com.cnlive.shenhe.utils.AntiFraudUtil;  
14 import com.cnlive.shenhe.utils.CommonConst; 6 import com.cnlive.shenhe.utils.CommonConst;
15 import com.cnlive.shenhe.utils.CommonUtils; 7 import com.cnlive.shenhe.utils.CommonUtils;
16 -  
17 -import java.sql.Timestamp;  
18 -import java.util.Date;  
19 -import java.util.HashMap;  
20 -import java.util.List;  
21 -import java.util.Map;  
22 -import java.util.UUID;  
23 -  
24 -import org.apache.commons.lang3.StringUtils;  
25 import org.slf4j.Logger; 8 import org.slf4j.Logger;
26 import org.slf4j.LoggerFactory; 9 import org.slf4j.LoggerFactory;
27 import org.springframework.beans.factory.annotation.Autowired; 10 import org.springframework.beans.factory.annotation.Autowired;
28 import org.springframework.stereotype.Controller; 11 import org.springframework.stereotype.Controller;
29 import org.springframework.web.bind.annotation.PostMapping; 12 import org.springframework.web.bind.annotation.PostMapping;
30 -import org.springframework.web.bind.annotation.RequestBody;  
31 import org.springframework.web.bind.annotation.RequestMapping; 13 import org.springframework.web.bind.annotation.RequestMapping;
32 -import org.springframework.web.bind.annotation.RequestMethod;  
33 import org.springframework.web.bind.annotation.ResponseBody; 14 import org.springframework.web.bind.annotation.ResponseBody;
34 -import com.cnlive.shenhe.utils.AntiFraudUtil; 15 +
  16 +import java.sql.Timestamp;
  17 +import java.util.Date;
  18 +import java.util.List;
35 19
36 20
37 @SuppressWarnings("unused") 21 @SuppressWarnings("unused")
src/main/java/com/cnlive/shenhe/api/LiveControllerApi.java
1 package com.cnlive.shenhe.api; 1 package com.cnlive.shenhe.api;
2 2
3 import com.alibaba.fastjson.JSON; 3 import com.alibaba.fastjson.JSON;
4 -import com.alibaba.fastjson.JSONArray;  
5 import com.alibaba.fastjson.JSONObject; 4 import com.alibaba.fastjson.JSONObject;
6 -import com.cnlive.shenhe.bean.ErrorEnum;  
7 -import com.cnlive.shenhe.bean.ResponseBean;  
8 import com.cnlive.shenhe.entity.ShyLive; 5 import com.cnlive.shenhe.entity.ShyLive;
9 -import com.cnlive.shenhe.entity.ShyVideos;  
10 import com.cnlive.shenhe.serviceImpl.LiveServiceImpl; 6 import com.cnlive.shenhe.serviceImpl.LiveServiceImpl;
11 -import com.cnlive.shenhe.serviceImpl.VideosServiceImpl;  
12 import com.cnlive.shenhe.utils.AntiFraudUtil; 7 import com.cnlive.shenhe.utils.AntiFraudUtil;
13 import com.cnlive.shenhe.utils.CommonUtils; 8 import com.cnlive.shenhe.utils.CommonUtils;
14 -  
15 -import java.sql.Timestamp;  
16 -import java.util.Date;  
17 -import java.util.HashMap;  
18 -import java.util.List;  
19 -import java.util.Map;  
20 -import java.util.UUID;  
21 -  
22 import org.apache.commons.lang3.StringUtils; 9 import org.apache.commons.lang3.StringUtils;
23 import org.slf4j.Logger; 10 import org.slf4j.Logger;
24 import org.slf4j.LoggerFactory; 11 import org.slf4j.LoggerFactory;
25 import org.springframework.beans.factory.annotation.Autowired; 12 import org.springframework.beans.factory.annotation.Autowired;
26 import org.springframework.stereotype.Controller; 13 import org.springframework.stereotype.Controller;
27 -import org.springframework.web.bind.annotation.PostMapping;  
28 -import org.springframework.web.bind.annotation.RequestBody;  
29 -import org.springframework.web.bind.annotation.RequestMapping;  
30 -import org.springframework.web.bind.annotation.RequestMethod;  
31 -import org.springframework.web.bind.annotation.ResponseBody;  
32 -import com.cnlive.shenhe.utils.AntiFraudUtil; 14 +import org.springframework.web.bind.annotation.*;
  15 +
  16 +import java.sql.Timestamp;
  17 +import java.util.Date;
  18 +import java.util.List;
  19 +import java.util.UUID;
33 20
34 21
35 @SuppressWarnings("unused") 22 @SuppressWarnings("unused")
src/main/java/com/cnlive/shenhe/config/MyInterceptor.java
1 package com.cnlive.shenhe.config; 1 package com.cnlive.shenhe.config;
2 2
3 -import org.omg.PortableInterceptor.Interceptor;  
4 import org.springframework.stereotype.Component; 3 import org.springframework.stereotype.Component;
5 import org.springframework.web.servlet.HandlerInterceptor; 4 import org.springframework.web.servlet.HandlerInterceptor;
6 import org.springframework.web.servlet.ModelAndView; 5 import org.springframework.web.servlet.ModelAndView;
src/main/java/com/cnlive/shenhe/controller/ChannelController.java
@@ -24,7 +24,6 @@ import org.springframework.ui.Model; @@ -24,7 +24,6 @@ import org.springframework.ui.Model;
24 import org.springframework.web.bind.annotation.*; 24 import org.springframework.web.bind.annotation.*;
25 25
26 import javax.servlet.http.HttpSession; 26 import javax.servlet.http.HttpSession;
27 -import java.util.Date;  
28 import java.util.HashMap; 27 import java.util.HashMap;
29 import java.util.List; 28 import java.util.List;
30 import java.util.Map; 29 import java.util.Map;
src/main/java/com/cnlive/shenhe/controller/CommentsController.java
@@ -17,7 +17,6 @@ import com.cnlive.shenhe.utils.AuditPass; @@ -17,7 +17,6 @@ import com.cnlive.shenhe.utils.AuditPass;
17 import com.cnlive.shenhe.utils.CommonConst; 17 import com.cnlive.shenhe.utils.CommonConst;
18 import com.cnlive.shenhe.utils.CommonUtils; 18 import com.cnlive.shenhe.utils.CommonUtils;
19 import com.github.pagehelper.PageInfo; 19 import com.github.pagehelper.PageInfo;
20 -  
21 import org.apache.poi.xssf.usermodel.XSSFCell; 20 import org.apache.poi.xssf.usermodel.XSSFCell;
22 import org.apache.poi.xssf.usermodel.XSSFRow; 21 import org.apache.poi.xssf.usermodel.XSSFRow;
23 import org.apache.poi.xssf.usermodel.XSSFSheet; 22 import org.apache.poi.xssf.usermodel.XSSFSheet;
@@ -25,7 +24,6 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook; @@ -25,7 +24,6 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
25 import org.slf4j.Logger; 24 import org.slf4j.Logger;
26 import org.slf4j.LoggerFactory; 25 import org.slf4j.LoggerFactory;
27 import org.springframework.beans.factory.annotation.Autowired; 26 import org.springframework.beans.factory.annotation.Autowired;
28 -import org.springframework.beans.factory.annotation.Value;  
29 import org.springframework.stereotype.Controller; 27 import org.springframework.stereotype.Controller;
30 import org.springframework.ui.Model; 28 import org.springframework.ui.Model;
31 import org.springframework.web.bind.annotation.*; 29 import org.springframework.web.bind.annotation.*;
@@ -33,14 +31,7 @@ import org.springframework.web.bind.annotation.*; @@ -33,14 +31,7 @@ import org.springframework.web.bind.annotation.*;
33 import javax.servlet.ServletOutputStream; 31 import javax.servlet.ServletOutputStream;
34 import javax.servlet.http.HttpServletResponse; 32 import javax.servlet.http.HttpServletResponse;
35 import javax.servlet.http.HttpSession; 33 import javax.servlet.http.HttpSession;
36 -  
37 -import java.awt.color.CMMException;  
38 -import java.io.BufferedInputStream;  
39 -import java.io.BufferedOutputStream;  
40 -import java.io.ByteArrayInputStream;  
41 -import java.io.ByteArrayOutputStream;  
42 -import java.io.InputStream;  
43 -import java.util.Date; 34 +import java.io.*;
44 import java.util.List; 35 import java.util.List;
45 36
46 37
src/main/java/com/cnlive/shenhe/controller/ContentController.java
@@ -3,7 +3,6 @@ package com.cnlive.shenhe.controller; @@ -3,7 +3,6 @@ package com.cnlive.shenhe.controller;
3 import com.cnlive.shenhe.bean.ErrorEnum; 3 import com.cnlive.shenhe.bean.ErrorEnum;
4 import com.cnlive.shenhe.bean.ResponseBean; 4 import com.cnlive.shenhe.bean.ResponseBean;
5 import com.cnlive.shenhe.bean.SessionUser; 5 import com.cnlive.shenhe.bean.SessionUser;
6 -import com.cnlive.shenhe.dto.CommentsDTO;  
7 import com.cnlive.shenhe.dto.ContentDTO; 6 import com.cnlive.shenhe.dto.ContentDTO;
8 import com.cnlive.shenhe.entity.ShyContent; 7 import com.cnlive.shenhe.entity.ShyContent;
9 import com.cnlive.shenhe.entity.ShySites; 8 import com.cnlive.shenhe.entity.ShySites;
@@ -27,7 +26,6 @@ import javax.servlet.ServletOutputStream; @@ -27,7 +26,6 @@ import javax.servlet.ServletOutputStream;
27 import javax.servlet.http.HttpServletResponse; 26 import javax.servlet.http.HttpServletResponse;
28 import javax.servlet.http.HttpSession; 27 import javax.servlet.http.HttpSession;
29 import java.io.*; 28 import java.io.*;
30 -import java.util.Date;  
31 import java.util.List; 29 import java.util.List;
32 30
33 31
src/main/java/com/cnlive/shenhe/controller/NotSpeakController.java
1 package com.cnlive.shenhe.controller; 1 package com.cnlive.shenhe.controller;
2 2
3 -import com.alibaba.fastjson.JSONObject;  
4 -import com.cnlive.shenhe.bean.ErrorEnum; 3 +
5 import com.cnlive.shenhe.bean.ResponseBean; 4 import com.cnlive.shenhe.bean.ResponseBean;
6 import com.cnlive.shenhe.bean.SessionUser; 5 import com.cnlive.shenhe.bean.SessionUser;
7 import com.cnlive.shenhe.dto.NotSpeakDTO; 6 import com.cnlive.shenhe.dto.NotSpeakDTO;
8 -import com.cnlive.shenhe.entity.ShyComments;  
9 -import com.cnlive.shenhe.entity.ShyContent;  
10 import com.cnlive.shenhe.entity.ShyNotspeak; 7 import com.cnlive.shenhe.entity.ShyNotspeak;
11 import com.cnlive.shenhe.entity.ShySites; 8 import com.cnlive.shenhe.entity.ShySites;
12 import com.cnlive.shenhe.entity.ShyUsers; 9 import com.cnlive.shenhe.entity.ShyUsers;
13 -import com.cnlive.shenhe.entity.ShyVideos;  
14 -import com.cnlive.shenhe.serviceImpl.CommentsServiceImpl;  
15 -import com.cnlive.shenhe.serviceImpl.ContentServiceImpl;  
16 -import com.cnlive.shenhe.serviceImpl.NotspeakServiceImpl;  
17 -import com.cnlive.shenhe.serviceImpl.SitesServiceImpl;  
18 -import com.cnlive.shenhe.serviceImpl.UsersServiceImpl; 10 +import com.cnlive.shenhe.serviceImpl.*;
19 import com.cnlive.shenhe.utils.AuditPass; 11 import com.cnlive.shenhe.utils.AuditPass;
20 -import com.cnlive.shenhe.utils.CommonConst;  
21 import com.cnlive.shenhe.utils.CommonUtils; 12 import com.cnlive.shenhe.utils.CommonUtils;
22 import com.github.pagehelper.PageInfo; 13 import com.github.pagehelper.PageInfo;
23 import org.slf4j.Logger; 14 import org.slf4j.Logger;
24 import org.slf4j.LoggerFactory; 15 import org.slf4j.LoggerFactory;
25 import org.springframework.beans.factory.annotation.Autowired; 16 import org.springframework.beans.factory.annotation.Autowired;
26 -import org.springframework.beans.factory.annotation.Value;  
27 import org.springframework.stereotype.Controller; 17 import org.springframework.stereotype.Controller;
28 import org.springframework.ui.Model; 18 import org.springframework.ui.Model;
29 -import org.springframework.web.bind.annotation.*; 19 +import org.springframework.web.bind.annotation.GetMapping;
  20 +import org.springframework.web.bind.annotation.PostMapping;
  21 +import org.springframework.web.bind.annotation.RequestMapping;
  22 +import org.springframework.web.bind.annotation.ResponseBody;
30 23
31 import javax.servlet.http.HttpSession; 24 import javax.servlet.http.HttpSession;
32 -import java.util.Date;  
33 import java.util.List; 25 import java.util.List;
34 26
35 27
src/main/java/com/cnlive/shenhe/controller/TopicController.java
@@ -23,8 +23,6 @@ import org.springframework.ui.Model; @@ -23,8 +23,6 @@ import org.springframework.ui.Model;
23 import org.springframework.web.bind.annotation.*; 23 import org.springframework.web.bind.annotation.*;
24 24
25 import javax.servlet.http.HttpSession; 25 import javax.servlet.http.HttpSession;
26 -  
27 -import java.util.Date;  
28 import java.util.HashMap; 26 import java.util.HashMap;
29 import java.util.List; 27 import java.util.List;
30 import java.util.Map; 28 import java.util.Map;
src/main/java/com/cnlive/shenhe/serviceImpl/ChannelServiceImpl.java
@@ -18,7 +18,6 @@ import org.springframework.beans.factory.annotation.Autowired; @@ -18,7 +18,6 @@ import org.springframework.beans.factory.annotation.Autowired;
18 import org.springframework.stereotype.Service; 18 import org.springframework.stereotype.Service;
19 import tk.mybatis.mapper.entity.Example; 19 import tk.mybatis.mapper.entity.Example;
20 20
21 -import java.util.Date;  
22 import java.util.List; 21 import java.util.List;
23 22
24 /** 23 /**
src/main/java/com/cnlive/shenhe/serviceImpl/CommentsServiceImpl.java
@@ -6,7 +6,6 @@ import com.cnlive.shenhe.entity.ShyComments; @@ -6,7 +6,6 @@ import com.cnlive.shenhe.entity.ShyComments;
6 import com.cnlive.shenhe.entity.ShySites; 6 import com.cnlive.shenhe.entity.ShySites;
7 import com.cnlive.shenhe.entity.ShyUsers; 7 import com.cnlive.shenhe.entity.ShyUsers;
8 import com.cnlive.shenhe.mapper.ShyCommentsMapper; 8 import com.cnlive.shenhe.mapper.ShyCommentsMapper;
9 -import com.cnlive.shenhe.mapper.ShyNotspeakMapper;  
10 import com.cnlive.shenhe.mapper.ShySitesMapper; 9 import com.cnlive.shenhe.mapper.ShySitesMapper;
11 import com.cnlive.shenhe.mapper.ShyUsersMapper; 10 import com.cnlive.shenhe.mapper.ShyUsersMapper;
12 import com.cnlive.shenhe.utils.AuditPass; 11 import com.cnlive.shenhe.utils.AuditPass;
@@ -21,7 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired; @@ -21,7 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired;
21 import org.springframework.stereotype.Service; 20 import org.springframework.stereotype.Service;
22 import tk.mybatis.mapper.entity.Example; 21 import tk.mybatis.mapper.entity.Example;
23 22
24 -import java.util.Date;  
25 import java.util.List; 23 import java.util.List;
26 24
27 /** 25 /**
src/main/java/com/cnlive/shenhe/serviceImpl/EmailServiceImpl.java
1 package com.cnlive.shenhe.serviceImpl; 1 package com.cnlive.shenhe.serviceImpl;
2 2
3 -import com.alibaba.fastjson.JSONObject; 3 +
4 import com.cnlive.shenhe.dto.EmailDTO; 4 import com.cnlive.shenhe.dto.EmailDTO;
5 import com.cnlive.shenhe.entity.ShyEmail; 5 import com.cnlive.shenhe.entity.ShyEmail;
6 -import com.cnlive.shenhe.entity.ShySites;  
7 -import com.cnlive.shenhe.entity.ShyUsers;  
8 -import com.cnlive.shenhe.entity.ShyUsersfree;  
9 import com.cnlive.shenhe.mapper.ShyEmailMapper; 6 import com.cnlive.shenhe.mapper.ShyEmailMapper;
10 -import com.cnlive.shenhe.mapper.ShyUsersMapper;  
11 -import com.cnlive.shenhe.mapper.ShyUsersfreeMapper;  
12 -import com.cnlive.shenhe.utils.AuditPass;  
13 import com.cnlive.shenhe.utils.CommonUtils; 7 import com.cnlive.shenhe.utils.CommonUtils;
14 import com.github.pagehelper.PageHelper; 8 import com.github.pagehelper.PageHelper;
15 import com.github.pagehelper.PageInfo; 9 import com.github.pagehelper.PageInfo;
16 -  
17 -import java.util.ArrayList;  
18 -import java.util.Arrays;  
19 -import java.util.List;  
20 -  
21 import org.slf4j.Logger; 10 import org.slf4j.Logger;
22 import org.slf4j.LoggerFactory; 11 import org.slf4j.LoggerFactory;
23 import org.springframework.beans.factory.annotation.Autowired; 12 import org.springframework.beans.factory.annotation.Autowired;
24 import org.springframework.stereotype.Service; 13 import org.springframework.stereotype.Service;
25 import tk.mybatis.mapper.entity.Example; 14 import tk.mybatis.mapper.entity.Example;
26 15
  16 +import java.util.ArrayList;
  17 +import java.util.Arrays;
  18 +import java.util.List;
  19 +
27 /** 20 /**
28 * @Auther: 周伟鹏 21 * @Auther: 周伟鹏
29 * @Date: 2018/11/29 14:23 22 * @Date: 2018/11/29 14:23
src/main/java/com/cnlive/shenhe/serviceImpl/LiveApplyServiceImpl.java
1 package com.cnlive.shenhe.serviceImpl; 1 package com.cnlive.shenhe.serviceImpl;
2 2
3 -import com.alibaba.fastjson.JSON;  
4 -import com.alibaba.fastjson.JSONArray;  
5 -import com.alibaba.fastjson.JSONObject; 3 +
6 import com.cnlive.shenhe.bean.ErrorEnum; 4 import com.cnlive.shenhe.bean.ErrorEnum;
7 import com.cnlive.shenhe.bean.ResponseBean; 5 import com.cnlive.shenhe.bean.ResponseBean;
8 import com.cnlive.shenhe.dto.LiveApplyDTO; 6 import com.cnlive.shenhe.dto.LiveApplyDTO;
9 -import com.cnlive.shenhe.entity.ShyChannel;  
10 -import com.cnlive.shenhe.entity.ShyLive;  
11 import com.cnlive.shenhe.entity.ShyLiveapply; 7 import com.cnlive.shenhe.entity.ShyLiveapply;
12 -import com.cnlive.shenhe.entity.ShySites;  
13 import com.cnlive.shenhe.entity.ShyUsers; 8 import com.cnlive.shenhe.entity.ShyUsers;
14 -import com.cnlive.shenhe.entity.ShyUsersfree;  
15 -import com.cnlive.shenhe.entity.ShyVideofilter;  
16 -import com.cnlive.shenhe.entity.ShyVideos;  
17 -import com.cnlive.shenhe.job.VideosJob;  
18 import com.cnlive.shenhe.mapper.ShyLiveMapper; 9 import com.cnlive.shenhe.mapper.ShyLiveMapper;
19 import com.cnlive.shenhe.mapper.ShyLiveapplyMapper; 10 import com.cnlive.shenhe.mapper.ShyLiveapplyMapper;
20 -import com.cnlive.shenhe.mapper.ShySitesMapper;  
21 import com.cnlive.shenhe.mapper.ShyUsersMapper; 11 import com.cnlive.shenhe.mapper.ShyUsersMapper;
22 -import com.cnlive.shenhe.mapper.ShyVideosMapper;  
23 -import com.cnlive.shenhe.utils.AntiFraudUtil;  
24 -import com.cnlive.shenhe.utils.AuditPass;  
25 import com.cnlive.shenhe.utils.CommonConst; 12 import com.cnlive.shenhe.utils.CommonConst;
26 import com.cnlive.shenhe.utils.CommonUtils; 13 import com.cnlive.shenhe.utils.CommonUtils;
27 import com.github.pagehelper.PageHelper; 14 import com.github.pagehelper.PageHelper;
28 import com.github.pagehelper.PageInfo; 15 import com.github.pagehelper.PageInfo;
29 -  
30 -  
31 import org.apache.ibatis.session.RowBounds; 16 import org.apache.ibatis.session.RowBounds;
32 import org.slf4j.Logger; 17 import org.slf4j.Logger;
33 import org.slf4j.LoggerFactory; 18 import org.slf4j.LoggerFactory;
34 import org.springframework.beans.factory.annotation.Autowired; 19 import org.springframework.beans.factory.annotation.Autowired;
35 -import org.springframework.beans.factory.annotation.Value;  
36 import org.springframework.stereotype.Service; 20 import org.springframework.stereotype.Service;
37 import tk.mybatis.mapper.entity.Example; 21 import tk.mybatis.mapper.entity.Example;
38 22
39 import java.sql.Timestamp; 23 import java.sql.Timestamp;
40 import java.text.ParseException; 24 import java.text.ParseException;
41 -import java.util.ArrayList;  
42 -import java.util.Arrays;  
43 -import java.util.HashMap;  
44 import java.util.List; 25 import java.util.List;
45 -import java.util.Map;  
46 26
47 /** 27 /**
48 * @Auther: liwei 28 * @Auther: liwei
src/main/java/com/cnlive/shenhe/serviceImpl/LiveServiceImpl.java
@@ -6,21 +6,15 @@ import com.cnlive.shenhe.dto.LiveDTO; @@ -6,21 +6,15 @@ import com.cnlive.shenhe.dto.LiveDTO;
6 import com.cnlive.shenhe.entity.ShyLive; 6 import com.cnlive.shenhe.entity.ShyLive;
7 import com.cnlive.shenhe.entity.ShyUsers; 7 import com.cnlive.shenhe.entity.ShyUsers;
8 import com.cnlive.shenhe.mapper.ShyLiveMapper; 8 import com.cnlive.shenhe.mapper.ShyLiveMapper;
9 -import com.cnlive.shenhe.mapper.ShySitesMapper;  
10 import com.cnlive.shenhe.mapper.ShyUsersMapper; 9 import com.cnlive.shenhe.mapper.ShyUsersMapper;
11 -import com.cnlive.shenhe.mapper.ShyVideosMapper;  
12 -import com.cnlive.shenhe.utils.AuditPass;  
13 import com.cnlive.shenhe.utils.CommonConst; 10 import com.cnlive.shenhe.utils.CommonConst;
14 import com.cnlive.shenhe.utils.CommonUtils; 11 import com.cnlive.shenhe.utils.CommonUtils;
15 import com.github.pagehelper.PageHelper; 12 import com.github.pagehelper.PageHelper;
16 import com.github.pagehelper.PageInfo; 13 import com.github.pagehelper.PageInfo;
17 -  
18 -  
19 import org.apache.ibatis.session.RowBounds; 14 import org.apache.ibatis.session.RowBounds;
20 import org.slf4j.Logger; 15 import org.slf4j.Logger;
21 import org.slf4j.LoggerFactory; 16 import org.slf4j.LoggerFactory;
22 import org.springframework.beans.factory.annotation.Autowired; 17 import org.springframework.beans.factory.annotation.Autowired;
23 -import org.springframework.beans.factory.annotation.Value;  
24 import org.springframework.stereotype.Service; 18 import org.springframework.stereotype.Service;
25 import tk.mybatis.mapper.entity.Example; 19 import tk.mybatis.mapper.entity.Example;
26 20
src/main/java/com/cnlive/shenhe/serviceImpl/NotspeakServiceImpl.java
1 package com.cnlive.shenhe.serviceImpl; 1 package com.cnlive.shenhe.serviceImpl;
2 2
3 -import com.alibaba.fastjson.JSONArray; 3 +
4 import com.alibaba.fastjson.JSONObject; 4 import com.alibaba.fastjson.JSONObject;
5 import com.cnlive.shenhe.bean.ResponseBean; 5 import com.cnlive.shenhe.bean.ResponseBean;
6 import com.cnlive.shenhe.dto.NotSpeakDTO; 6 import com.cnlive.shenhe.dto.NotSpeakDTO;
7 import com.cnlive.shenhe.entity.ShyComments; 7 import com.cnlive.shenhe.entity.ShyComments;
8 -import com.cnlive.shenhe.entity.ShyContent;  
9 -import com.cnlive.shenhe.entity.ShyLive;  
10 import com.cnlive.shenhe.entity.ShyNotspeak; 8 import com.cnlive.shenhe.entity.ShyNotspeak;
11 -import com.cnlive.shenhe.entity.ShySites;  
12 -import com.cnlive.shenhe.entity.ShyTopic;  
13 -import com.cnlive.shenhe.entity.ShyUsers;  
14 -import com.cnlive.shenhe.entity.ShyVideofilter;  
15 -import com.cnlive.shenhe.entity.ShyVideos;  
16 import com.cnlive.shenhe.mapper.ShyCommentsMapper; 9 import com.cnlive.shenhe.mapper.ShyCommentsMapper;
17 -import com.cnlive.shenhe.mapper.ShyContentMapper;  
18 import com.cnlive.shenhe.mapper.ShyNotspeakMapper; 10 import com.cnlive.shenhe.mapper.ShyNotspeakMapper;
19 import com.cnlive.shenhe.mapper.ShySitesMapper; 11 import com.cnlive.shenhe.mapper.ShySitesMapper;
20 -import com.cnlive.shenhe.mapper.ShyTopicMapper;  
21 import com.cnlive.shenhe.mapper.ShyUsersMapper; 12 import com.cnlive.shenhe.mapper.ShyUsersMapper;
22 -import com.cnlive.shenhe.utils.AntiFraudUtil;  
23 import com.cnlive.shenhe.utils.AuditPass; 13 import com.cnlive.shenhe.utils.AuditPass;
24 import com.cnlive.shenhe.utils.CommonConst; 14 import com.cnlive.shenhe.utils.CommonConst;
25 import com.cnlive.shenhe.utils.CommonUtils; 15 import com.cnlive.shenhe.utils.CommonUtils;
@@ -34,14 +24,7 @@ import org.springframework.beans.factory.annotation.Value; @@ -34,14 +24,7 @@ import org.springframework.beans.factory.annotation.Value;
34 import org.springframework.stereotype.Service; 24 import org.springframework.stereotype.Service;
35 import tk.mybatis.mapper.entity.Example; 25 import tk.mybatis.mapper.entity.Example;
36 26
37 -import java.sql.Timestamp;  
38 -import java.text.ParseException;  
39 -import java.util.ArrayList;  
40 -import java.util.Date;  
41 -import java.util.HashMap;  
42 import java.util.List; 27 import java.util.List;
43 -import java.util.Map;  
44 -import java.util.UUID;  
45 28
46 /** 29 /**
47 * @Auther: liwei 30 * @Auther: liwei
src/main/java/com/cnlive/shenhe/serviceImpl/SitesServiceImpl.java
@@ -4,7 +4,6 @@ import com.cnlive.shenhe.dto.SitesDTO; @@ -4,7 +4,6 @@ import com.cnlive.shenhe.dto.SitesDTO;
4 import com.cnlive.shenhe.entity.ShySites; 4 import com.cnlive.shenhe.entity.ShySites;
5 import com.cnlive.shenhe.entity.ShyUsers; 5 import com.cnlive.shenhe.entity.ShyUsers;
6 import com.cnlive.shenhe.mapper.ShySitesMapper; 6 import com.cnlive.shenhe.mapper.ShySitesMapper;
7 -import com.cnlive.shenhe.utils.CommonConst;  
8 import com.cnlive.shenhe.utils.CommonUtils; 7 import com.cnlive.shenhe.utils.CommonUtils;
9 import com.github.pagehelper.PageHelper; 8 import com.github.pagehelper.PageHelper;
10 import com.github.pagehelper.PageInfo; 9 import com.github.pagehelper.PageInfo;
src/main/java/com/cnlive/shenhe/serviceImpl/TopicServiceImpl.java
1 package com.cnlive.shenhe.serviceImpl; 1 package com.cnlive.shenhe.serviceImpl;
2 2
3 -import com.alibaba.fastjson.JSONArray;  
4 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
5 import com.cnlive.shenhe.dto.TopicDTO; 4 import com.cnlive.shenhe.dto.TopicDTO;
6 import com.cnlive.shenhe.entity.ShyComments; 5 import com.cnlive.shenhe.entity.ShyComments;
7 import com.cnlive.shenhe.entity.ShyContent; 6 import com.cnlive.shenhe.entity.ShyContent;
8 -import com.cnlive.shenhe.entity.ShyLive;  
9 -import com.cnlive.shenhe.entity.ShySites;  
10 import com.cnlive.shenhe.entity.ShyTopic; 7 import com.cnlive.shenhe.entity.ShyTopic;
11 -import com.cnlive.shenhe.entity.ShyUsers;  
12 -import com.cnlive.shenhe.entity.ShyVideofilter;  
13 -import com.cnlive.shenhe.entity.ShyVideos;  
14 import com.cnlive.shenhe.mapper.ShyCommentsMapper; 8 import com.cnlive.shenhe.mapper.ShyCommentsMapper;
15 -import com.cnlive.shenhe.mapper.ShyContentMapper;  
16 import com.cnlive.shenhe.mapper.ShySitesMapper; 9 import com.cnlive.shenhe.mapper.ShySitesMapper;
17 import com.cnlive.shenhe.mapper.ShyTopicMapper; 10 import com.cnlive.shenhe.mapper.ShyTopicMapper;
18 import com.cnlive.shenhe.mapper.ShyUsersMapper; 11 import com.cnlive.shenhe.mapper.ShyUsersMapper;
19 -import com.cnlive.shenhe.utils.AntiFraudUtil;  
20 -import com.cnlive.shenhe.utils.AuditPass;  
21 import com.cnlive.shenhe.utils.CommonConst; 12 import com.cnlive.shenhe.utils.CommonConst;
22 import com.cnlive.shenhe.utils.CommonUtils; 13 import com.cnlive.shenhe.utils.CommonUtils;
23 import com.cnlive.shenhe.utils.TransitServiceUtils; 14 import com.cnlive.shenhe.utils.TransitServiceUtils;
@@ -31,14 +22,8 @@ import org.springframework.beans.factory.annotation.Value; @@ -31,14 +22,8 @@ import org.springframework.beans.factory.annotation.Value;
31 import org.springframework.stereotype.Service; 22 import org.springframework.stereotype.Service;
32 import tk.mybatis.mapper.entity.Example; 23 import tk.mybatis.mapper.entity.Example;
33 24
34 -import java.sql.Timestamp;  
35 -import java.text.ParseException;  
36 -import java.util.ArrayList;  
37 import java.util.Date; 25 import java.util.Date;
38 -import java.util.HashMap;  
39 import java.util.List; 26 import java.util.List;
40 -import java.util.Map;  
41 -import java.util.UUID;  
42 27
43 /** 28 /**
44 * @Auther: liwei 29 * @Auther: liwei
src/main/java/com/cnlive/shenhe/serviceImpl/UsersServiceImpl.java
1 package com.cnlive.shenhe.serviceImpl; 1 package com.cnlive.shenhe.serviceImpl;
2 2
3 import com.cnlive.shenhe.dto.UsersDTO; 3 import com.cnlive.shenhe.dto.UsersDTO;
4 -import com.cnlive.shenhe.entity.ShySites;  
5 import com.cnlive.shenhe.entity.ShyUsers; 4 import com.cnlive.shenhe.entity.ShyUsers;
6 import com.cnlive.shenhe.mapper.ShyUsersMapper; 5 import com.cnlive.shenhe.mapper.ShyUsersMapper;
7 import com.cnlive.shenhe.utils.CommonUtils; 6 import com.cnlive.shenhe.utils.CommonUtils;
8 import com.github.pagehelper.PageHelper; 7 import com.github.pagehelper.PageHelper;
9 import com.github.pagehelper.PageInfo; 8 import com.github.pagehelper.PageInfo;
10 -  
11 -import java.util.List;  
12 -  
13 import org.springframework.beans.factory.annotation.Autowired; 9 import org.springframework.beans.factory.annotation.Autowired;
14 import org.springframework.stereotype.Service; 10 import org.springframework.stereotype.Service;
15 import tk.mybatis.mapper.entity.Example; 11 import tk.mybatis.mapper.entity.Example;
16 12
  13 +import java.util.List;
  14 +
17 /** 15 /**
18 * @Auther: 周伟鹏 16 * @Auther: 周伟鹏
19 * @Date: 2018/11/29 14:23 17 * @Date: 2018/11/29 14:23
src/main/java/com/cnlive/shenhe/serviceImpl/UsersfreeServiceImpl.java
@@ -9,16 +9,13 @@ import com.cnlive.shenhe.utils.AuditPass; @@ -9,16 +9,13 @@ import com.cnlive.shenhe.utils.AuditPass;
9 import com.cnlive.shenhe.utils.CommonUtils; 9 import com.cnlive.shenhe.utils.CommonUtils;
10 import com.github.pagehelper.PageHelper; 10 import com.github.pagehelper.PageHelper;
11 import com.github.pagehelper.PageInfo; 11 import com.github.pagehelper.PageInfo;
12 -  
13 -import tk.mybatis.mapper.entity.Example;  
14 -  
15 -import java.util.List;  
16 -  
17 import org.slf4j.Logger; 12 import org.slf4j.Logger;
18 import org.slf4j.LoggerFactory; 13 import org.slf4j.LoggerFactory;
19 import org.springframework.beans.factory.annotation.Autowired; 14 import org.springframework.beans.factory.annotation.Autowired;
20 -import org.springframework.beans.factory.annotation.Value;  
21 import org.springframework.stereotype.Service; 15 import org.springframework.stereotype.Service;
  16 +import tk.mybatis.mapper.entity.Example;
  17 +
  18 +import java.util.List;
22 19
23 /** 20 /**
24 * @Auther: 李伟 21 * @Auther: 李伟
src/main/java/com/cnlive/shenhe/serviceImpl/VideofilterServiceImpl.java
1 package com.cnlive.shenhe.serviceImpl; 1 package com.cnlive.shenhe.serviceImpl;
2 2
3 -import com.cnlive.shenhe.entity.ShyComments;  
4 -import com.cnlive.shenhe.entity.ShySites;  
5 import com.cnlive.shenhe.entity.ShyVideofilter; 3 import com.cnlive.shenhe.entity.ShyVideofilter;
6 -import com.cnlive.shenhe.mapper.ShySitesMapper;  
7 import com.cnlive.shenhe.mapper.ShyVideofilterMapper; 4 import com.cnlive.shenhe.mapper.ShyVideofilterMapper;
8 -import com.cnlive.shenhe.utils.CommonUtils;  
9 -import com.github.pagehelper.PageHelper;  
10 -import com.github.pagehelper.PageInfo;  
11 import org.springframework.beans.factory.annotation.Autowired; 5 import org.springframework.beans.factory.annotation.Autowired;
12 import org.springframework.stereotype.Service; 6 import org.springframework.stereotype.Service;
13 -import tk.mybatis.mapper.entity.Example;  
14 7
15 import java.util.List; 8 import java.util.List;
16 9
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
@@ -25,7 +25,6 @@ import org.springframework.beans.factory.annotation.Value; @@ -25,7 +25,6 @@ import org.springframework.beans.factory.annotation.Value;
25 import org.springframework.stereotype.Service; 25 import org.springframework.stereotype.Service;
26 import tk.mybatis.mapper.entity.Example; 26 import tk.mybatis.mapper.entity.Example;
27 27
28 -import java.sql.Timestamp;  
29 import java.text.ParseException; 28 import java.text.ParseException;
30 import java.util.Date; 29 import java.util.Date;
31 import java.util.List; 30 import java.util.List;