Browse Source

update gitignore

魏超 6 years ago
parent
commit
bd931e918d
27 changed files with 360 additions and 88 deletions
  1. 21
    21
      CODE/smart-community/app-api/src/main/java/com/community/huiju/config/HttpSessionConfig.java
  2. 34
    34
      CODE/smart-community/app-api/src/main/java/com/community/huiju/config/entity/UserElement.java
  3. 41
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BannerController.java
  4. 13
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/ToBannerMapper.java
  5. 145
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/ToBanner.java
  6. 16
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/BannerServiceI.java
  7. 28
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BannerServiceImpl.java
  8. 29
    0
      CODE/smart-community/app-api/src/main/resources/mapper/ToBannerMapper.xml
  9. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/FastJsonSerializer.class
  10. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisConfiguration.class
  11. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisJsonSerializer.class
  12. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisObjectSerializer.class
  13. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisSerializer.class
  14. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisTemplate.class
  15. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/SerializationFailedException.class
  16. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/SingleRedisTemplate.class
  17. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/BeanTools.class
  18. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/CommonUtils.class
  19. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/CookieUtil.class
  20. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/DESUtils.class
  21. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/DateUtils.class
  22. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/EnumUtils.class
  23. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/HttpClientUtils.class
  24. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/MD5Utils.class
  25. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/QRCodeGeneratorUtils.class
  26. BIN
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/StringConverter.class
  27. 33
    33
      CODE/smart-community/zuul/src/main/java/com/community/huiju/config/entity/UserElement.java

+ 21
- 21
CODE/smart-community/app-api/src/main/java/com/community/huiju/config/HttpSessionConfig.java View File

@@ -1,21 +1,21 @@
1
-package com.community.huiju.config;
2
-
3
-import org.springframework.context.annotation.Bean;
4
-import org.springframework.context.annotation.Configuration;
5
-import org.springframework.session.jdbc.config.annotation.web.http.EnableJdbcHttpSession;
6
-import org.springframework.session.web.http.HeaderHttpSessionIdResolver;
7
-import org.springframework.session.web.http.HttpSessionIdResolver;
8
-
9
-/**
10
- * @author weiximei
11
- */
12
-@Configuration
13
-@EnableJdbcHttpSession
14
-public class HttpSessionConfig {
15
-
16
-    @Bean
17
-    public HttpSessionIdResolver httpSessionIdResolver() {
18
-        return HeaderHttpSessionIdResolver.xAuthToken();
19
-    }
20
-
21
-}
1
+package com.community.huiju.config;
2
+
3
+import org.springframework.context.annotation.Bean;
4
+import org.springframework.context.annotation.Configuration;
5
+import org.springframework.session.jdbc.config.annotation.web.http.EnableJdbcHttpSession;
6
+import org.springframework.session.web.http.HeaderHttpSessionIdResolver;
7
+import org.springframework.session.web.http.HttpSessionIdResolver;
8
+
9
+/**
10
+ * @author weiximei
11
+ */
12
+@Configuration
13
+@EnableJdbcHttpSession
14
+public class HttpSessionConfig {
15
+
16
+    @Bean
17
+    public HttpSessionIdResolver httpSessionIdResolver() {
18
+        return HeaderHttpSessionIdResolver.xAuthToken();
19
+    }
20
+
21
+}

+ 34
- 34
CODE/smart-community/app-api/src/main/java/com/community/huiju/config/entity/UserElement.java View File

@@ -1,34 +1,34 @@
1
-package com.community.huiju.config.entity;
2
-
3
-import lombok.AllArgsConstructor;
4
-import lombok.Data;
5
-import lombok.NoArgsConstructor;
6
-
7
-import java.io.Serializable;
8
-import java.util.Date;
9
-
10
-/**
11
- * session 基础类
12
- */
13
-@Data
14
-@AllArgsConstructor
15
-@NoArgsConstructor
16
-public class UserElement implements Serializable {
17
-
18
-    /** 用户唯一标识符 **/
19
-    private Integer id;
20
-
21
-    /** 用户名 **/
22
-    private String userName;
23
-
24
-    /** 登陆名 **/
25
-    private String loginName;
26
-
27
-    /** 邮箱 **/
28
-    private String email;
29
-
30
-    /** 用户状态 **/
31
-    private String status;
32
-
33
-
34
-}
1
+package com.community.huiju.config.entity;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+
7
+import java.io.Serializable;
8
+import java.util.Date;
9
+
10
+/**
11
+ * session 基础类
12
+ */
13
+@Data
14
+@AllArgsConstructor
15
+@NoArgsConstructor
16
+public class UserElement implements Serializable {
17
+
18
+    /** 用户唯一标识符 **/
19
+    private Integer id;
20
+
21
+    /** 用户名 **/
22
+    private String userName;
23
+
24
+    /** 登陆名 **/
25
+    private String loginName;
26
+
27
+    /** 邮箱 **/
28
+    private String email;
29
+
30
+    /** 用户状态 **/
31
+    private String status;
32
+
33
+
34
+}

+ 41
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BannerController.java View File

@@ -0,0 +1,41 @@
1
+package com.community.huiju.controller;
2
+
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.huiju.model.ToBanner;
5
+import com.community.huiju.service.BannerServiceI;
6
+import io.swagger.annotations.Api;
7
+import io.swagger.annotations.ApiOperation;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.cloud.context.config.annotation.RefreshScope;
10
+import org.springframework.util.CollectionUtils;
11
+import org.springframework.web.bind.annotation.RequestMapping;
12
+import org.springframework.web.bind.annotation.RequestMethod;
13
+import org.springframework.web.bind.annotation.RestController;
14
+
15
+import java.util.List;
16
+
17
+/**
18
+ * @author weichaochao
19
+ * @Title: BannerController
20
+ * @Description: 首页运营banner入口类
21
+ * @date 2018/10/22
22
+ */
23
+@RestController
24
+@RefreshScope
25
+@RequestMapping("/")
26
+@Api("首页运营banner接口类")
27
+public class BannerController {
28
+
29
+    @Autowired
30
+    private BannerServiceI bannerService;
31
+
32
+    @ApiOperation(value = "首页运营banner接口", notes = "获取首页运营banner")
33
+    @RequestMapping(value = "/banners", method = RequestMethod.GET)
34
+    public ResponseBean selectToBannerImg(){
35
+        ResponseBean responseBean = new ResponseBean();
36
+        List<ToBanner> toBannerList = bannerService.viewBannerImg();
37
+        responseBean.addSuccess(toBannerList);
38
+        return responseBean;
39
+    }
40
+
41
+}

+ 13
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/ToBannerMapper.java View File

@@ -0,0 +1,13 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.ToBanner;
4
+import org.apache.ibatis.annotations.Mapper;
5
+
6
+import java.util.List;
7
+
8
+@Mapper
9
+public interface ToBannerMapper {
10
+
11
+    List<ToBanner> selectByCommunityId(String nowTime);
12
+
13
+}

+ 145
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/ToBanner.java View File

@@ -0,0 +1,145 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class ToBanner {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String bannerDescription;
11
+
12
+    private Integer sort;
13
+
14
+    private String bannerCover;
15
+
16
+    private Integer bannerPosition;
17
+
18
+    private Date effTime;
19
+
20
+    private Date expTime;
21
+
22
+    private String bannerType;
23
+
24
+    private String externalLink;
25
+
26
+    private String bannerTitle;
27
+
28
+    private Integer createUser;
29
+
30
+    private Date createDate;
31
+
32
+    private String bannerContent;
33
+
34
+    public Integer getId() {
35
+        return id;
36
+    }
37
+
38
+    public void setId(Integer id) {
39
+        this.id = id;
40
+    }
41
+
42
+    public Integer getCommunityId() {
43
+        return communityId;
44
+    }
45
+
46
+    public void setCommunityId(Integer communityId) {
47
+        this.communityId = communityId;
48
+    }
49
+
50
+    public String getBannerDescription() {
51
+        return bannerDescription;
52
+    }
53
+
54
+    public void setBannerDescription(String bannerDescription) {
55
+        this.bannerDescription = bannerDescription == null ? null : bannerDescription.trim();
56
+    }
57
+
58
+    public Integer getSort() {
59
+        return sort;
60
+    }
61
+
62
+    public void setSort(Integer sort) {
63
+        this.sort = sort;
64
+    }
65
+
66
+    public String getBannerCover() {
67
+        return bannerCover;
68
+    }
69
+
70
+    public void setBannerCover(String bannerCover) {
71
+        this.bannerCover = bannerCover == null ? null : bannerCover.trim();
72
+    }
73
+
74
+    public Integer getBannerPosition() {
75
+        return bannerPosition;
76
+    }
77
+
78
+    public void setBannerPosition(Integer bannerPosition) {
79
+        this.bannerPosition = bannerPosition;
80
+    }
81
+
82
+    public Date getEffTime() {
83
+        return effTime;
84
+    }
85
+
86
+    public void setEffTime(Date effTime) {
87
+        this.effTime = effTime;
88
+    }
89
+
90
+    public Date getExpTime() {
91
+        return expTime;
92
+    }
93
+
94
+    public void setExpTime(Date expTime) {
95
+        this.expTime = expTime;
96
+    }
97
+
98
+    public String getBannerType() {
99
+        return bannerType;
100
+    }
101
+
102
+    public void setBannerType(String bannerType) {
103
+        this.bannerType = bannerType == null ? null : bannerType.trim();
104
+    }
105
+
106
+    public String getExternalLink() {
107
+        return externalLink;
108
+    }
109
+
110
+    public void setExternalLink(String externalLink) {
111
+        this.externalLink = externalLink == null ? null : externalLink.trim();
112
+    }
113
+
114
+    public String getBannerTitle() {
115
+        return bannerTitle;
116
+    }
117
+
118
+    public void setBannerTitle(String bannerTitle) {
119
+        this.bannerTitle = bannerTitle == null ? null : bannerTitle.trim();
120
+    }
121
+
122
+    public Integer getCreateUser() {
123
+        return createUser;
124
+    }
125
+
126
+    public void setCreateUser(Integer createUser) {
127
+        this.createUser = createUser;
128
+    }
129
+
130
+    public Date getCreateDate() {
131
+        return createDate;
132
+    }
133
+
134
+    public void setCreateDate(Date createDate) {
135
+        this.createDate = createDate;
136
+    }
137
+
138
+    public String getBannerContent() {
139
+        return bannerContent;
140
+    }
141
+
142
+    public void setBannerContent(String bannerContent) {
143
+        this.bannerContent = bannerContent == null ? null : bannerContent.trim();
144
+    }
145
+}

+ 16
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/BannerServiceI.java View File

@@ -0,0 +1,16 @@
1
+package com.community.huiju.service;
2
+
3
+import com.community.huiju.model.ToBanner;
4
+
5
+import java.util.List;
6
+
7
+/**
8
+ * @author weichaochao
9
+ * @Title: BannerServiceI
10
+ * @date 2018/10/22
11
+ */
12
+public interface BannerServiceI {
13
+
14
+    List<ToBanner> viewBannerImg();
15
+
16
+}

+ 28
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BannerServiceImpl.java View File

@@ -0,0 +1,28 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.community.commom.utils.DateUtils;
4
+import com.community.huiju.dao.ToBannerMapper;
5
+import com.community.huiju.model.ToBanner;
6
+import com.community.huiju.service.BannerServiceI;
7
+import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.stereotype.Service;
9
+
10
+import java.util.List;
11
+
12
+/**
13
+ * @author weichaochao
14
+ * @Title: BannerServiceImpl
15
+ * @date 2018/10/22
16
+ */
17
+@Service("/BannerService")
18
+public class BannerServiceImpl implements BannerServiceI {
19
+
20
+    @Autowired
21
+    private ToBannerMapper toBannerMapper;
22
+
23
+    @Override
24
+    public List<ToBanner> viewBannerImg() {
25
+        String nowTime = DateUtils.getDate("yyyy-MM-dd");
26
+        return toBannerMapper.selectByCommunityId(nowTime);
27
+    }
28
+}

+ 29
- 0
CODE/smart-community/app-api/src/main/resources/mapper/ToBannerMapper.xml View File

@@ -0,0 +1,29 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.ToBannerMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.ToBanner" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="banner_description" property="bannerDescription" jdbcType="VARCHAR" />
8
+    <result column="sort" property="sort" jdbcType="INTEGER" />
9
+    <result column="banner_cover" property="bannerCover" jdbcType="VARCHAR" />
10
+    <result column="banner_position" property="bannerPosition" jdbcType="INTEGER" />
11
+    <result column="eff_time" property="effTime" jdbcType="TIMESTAMP" />
12
+    <result column="exp_time" property="expTime" jdbcType="TIMESTAMP" />
13
+    <result column="banner_type" property="bannerType" jdbcType="CHAR" />
14
+    <result column="external_link" property="externalLink" jdbcType="VARCHAR" />
15
+    <result column="banner_title" property="bannerTitle" jdbcType="VARCHAR" />
16
+    <result column="banner_content" property="bannerContent" jdbcType="VARCHAR" />
17
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
18
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
19
+  </resultMap>
20
+  <sql id="Base_Column_List" >
21
+    id, community_id, banner_description, sort, banner_cover, banner_position, eff_time, 
22
+    exp_time, banner_type, external_link, banner_title, banner_content, create_user, create_date
23
+  </sql>
24
+  <select id="selectByCommunityId" resultMap="BaseResultMap" parameterType="java.lang.String">
25
+    select
26
+    <include refid="Base_Column_List"></include>
27
+    from to_banner t where t.eff_time &lt; #{nowTime} and t.exp_time &gt; #{nowTime} order by t.sort, t.eff_time
28
+  </select>
29
+</mapper>

BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/FastJsonSerializer.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisConfiguration.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisJsonSerializer.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisObjectSerializer.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisSerializer.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/RedisTemplate.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/SerializationFailedException.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/redis/SingleRedisTemplate.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/BeanTools.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/CommonUtils.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/CookieUtil.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/DESUtils.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/DateUtils.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/EnumUtils.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/HttpClientUtils.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/MD5Utils.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/QRCodeGeneratorUtils.class View File


BIN
CODE/smart-community/community-common/target/classes/com/community/commom/utils/StringConverter.class View File


+ 33
- 33
CODE/smart-community/zuul/src/main/java/com/community/huiju/config/entity/UserElement.java View File

@@ -1,33 +1,33 @@
1
-package com.community.huiju.config.entity;
2
-
3
-import lombok.AllArgsConstructor;
4
-import lombok.Data;
5
-import lombok.NoArgsConstructor;
6
-
7
-import java.io.Serializable;
8
-
9
-/**
10
- * session 基础类
11
- */
12
-@Data
13
-@AllArgsConstructor
14
-@NoArgsConstructor
15
-public class UserElement implements Serializable {
16
-
17
-    /** 用户唯一标识符 **/
18
-    private Integer id;
19
-
20
-    /** 用户名 **/
21
-    private String userName;
22
-
23
-    /** 登陆名 **/
24
-    private String loginName;
25
-
26
-    /** 邮箱 **/
27
-    private String email;
28
-
29
-    /** 用户状态 **/
30
-    private String status;
31
-
32
-
33
-}
1
+package com.community.huiju.config.entity;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+
7
+import java.io.Serializable;
8
+
9
+/**
10
+ * session 基础类
11
+ */
12
+@Data
13
+@AllArgsConstructor
14
+@NoArgsConstructor
15
+public class UserElement implements Serializable {
16
+
17
+    /** 用户唯一标识符 **/
18
+    private Integer id;
19
+
20
+    /** 用户名 **/
21
+    private String userName;
22
+
23
+    /** 登陆名 **/
24
+    private String loginName;
25
+
26
+    /** 邮箱 **/
27
+    private String email;
28
+
29
+    /** 用户状态 **/
30
+    private String status;
31
+
32
+
33
+}