浏览代码

合并到主分支

傅行帆 6 年前
父节点
当前提交
75c0de89bc
共有 64 个文件被更改,包括 3724 次插入79 次删除
  1. 13
    0
      CODE/smart-community/app-api/pom.xml
  2. 48
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/cache/AppkeyCache.java
  3. 31
    9
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/impl/PhoneCodeImpl.java
  4. 7
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BannerController.java
  5. 15
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/CodeController.java
  6. 32
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MessageController.java
  7. 91
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java
  8. 51
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/TicketController.java
  9. 19
    18
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java
  10. 2
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/ToBannerMapper.java
  11. 25
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivityMapper.java
  12. 27
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpAnnouncementMapper.java
  13. 17
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpCarouselSettingMapper.java
  14. 4
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpMessageMapper.java
  15. 21
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpSocialViewMapper.java
  16. 29
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTicketMapper.java
  17. 33
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTicketRecordCommentMapper.java
  18. 19
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTicketRecordMapper.java
  19. 19
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionMapper.java
  20. 10
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUser.java
  21. 195
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivity.java
  22. 145
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpAnnouncement.java
  23. 43
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpCarouselSetting.java
  24. 75
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpSocialView.java
  25. 205
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTicket.java
  26. 65
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTicketRecord.java
  27. 105
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTicketRecordComment.java
  28. 175
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransaction.java
  29. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/BannerServiceI.java
  30. 10
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/ITaUserService.java
  31. 25
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/ITicketService.java
  32. 19
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/MessageServiceI.java
  33. 44
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java
  34. 10
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/TpActivityServiceI.java
  35. 2
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BannerServiceImpl.java
  36. 32
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MessageServiceImpl.java
  37. 111
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java
  38. 68
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java
  39. 164
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TicketServiceImpl.java
  40. 15
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpActivityServiceImpl.java
  41. 45
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TaUserVO.java
  42. 44
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TpTicketInfoVO.java
  43. 48
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TpTicketVO.java
  44. 11
    1
      CODE/smart-community/app-api/src/main/resources/application.yml
  45. 12
    0
      CODE/smart-community/app-api/src/main/resources/log4j.properties
  46. 14
    3
      CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml
  47. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/ToBannerMapper.xml
  48. 273
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpActivityMapper.xml
  49. 186
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpAnnouncementMapper.xml
  50. 82
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpCarouselSettingMapper.xml
  51. 18
    1
      CODE/smart-community/app-api/src/main/resources/mapper/TpMessageMapper.xml
  52. 128
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpSocialViewMapper.xml
  53. 287
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpTicketMapper.xml
  54. 160
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpTicketRecordCommentMapper.xml
  55. 106
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpTicketRecordMapper.xml
  56. 235
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml
  57. 20
    0
      CODE/smart-community/community-common/src/main/java/com/community/commom/constant/Constant.java
  58. 二进制
      CODE/smart-community/community-common/target/classes/com/community/commom/constant/Constant.class
  59. 二进制
      CODE/smart-community/community-common/target/classes/com/community/commom/redis/SingleRedisTemplate.class
  60. 二进制
      CODE/smart-community/community-common/target/classes/com/community/commom/utils/HttpClientUtils.class
  61. 3
    0
      CODE/smart-community/zuul/src/main/resources/bootstrap.yml
  62. 14
    10
      文档/MYSQL/smartCommunity.pdb
  63. 14
    10
      文档/MYSQL/smartCommunity.pdm
  64. 二进制
      文档/需求/app接口需求-第二版.xlsx

+ 13
- 0
CODE/smart-community/app-api/pom.xml 查看文件

@@ -71,6 +71,12 @@
71 71
 			<version>1.3.2</version>
72 72
 		</dependency>
73 73
 
74
+		<dependency>
75
+			<groupId>com.github.pagehelper</groupId>
76
+			<artifactId>pagehelper-spring-boot-starter</artifactId>
77
+			<version>1.2.3</version>
78
+		</dependency>
79
+
74 80
 		<dependency>
75 81
 			<groupId>mysql</groupId>
76 82
 			<artifactId>mysql-connector-java</artifactId>
@@ -149,6 +155,13 @@
149 155
 			<version>2.6</version>
150 156
 		</dependency>
151 157
 
158
+		<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
159
+		<dependency>
160
+			<groupId>com.squareup.okhttp3</groupId>
161
+			<artifactId>okhttp</artifactId>
162
+			<version>3.11.0</version>
163
+		</dependency>
164
+
152 165
 
153 166
 
154 167
 	</dependencies>

+ 48
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/cache/AppkeyCache.java 查看文件

@@ -0,0 +1,48 @@
1
+package com.community.huiju.common.code.cache;
2
+
3
+import com.community.commom.constant.Constant;
4
+import com.google.common.cache.CacheBuilder;
5
+import com.google.common.cache.CacheLoader;
6
+import com.google.common.cache.LoadingCache;
7
+import lombok.extern.slf4j.Slf4j;
8
+
9
+import java.util.concurrent.ExecutionException;
10
+import java.util.concurrent.TimeUnit;
11
+
12
+/**
13
+ * 缓存
14
+ * @author weiximei
15
+ */
16
+@Slf4j
17
+public class AppkeyCache {
18
+
19
+    // .refreshAfterWrite(3, TimeUnit.HOURS)// 给定时间内没有被读/写访问,则回收。
20
+    static LoadingCache<String, Object> cache = CacheBuilder.newBuilder()
21
+            .expireAfterAccess(Constant.CACHE_EXPIRE, TimeUnit.HOURS)// 缓存过期时间和redis缓存时长一样
22
+            .maximumSize(Constant.CACHE_SIZE).// 设置缓存个数
23
+            build(new CacheLoader<String, Object>() {
24
+            @Override
25
+            /** 当本地缓存命没有中时,调用load方法获取结果并将结果缓存 **/
26
+            public String load(String appKey) throws Exception {
27
+                return null;
28
+            }
29
+
30
+    });
31
+
32
+    public static Object getCache(String appKey) {
33
+        Object value = null;
34
+        try {
35
+            value = cache.get(appKey);
36
+        } catch (ExecutionException e) {
37
+            e.printStackTrace();
38
+        }
39
+        return value;
40
+    }
41
+
42
+    public static void setCache(String appKey,Object appValue){
43
+        log.info("缓存的key-value: {}-{}", appKey,appValue);
44
+        cache.put(appKey,appValue);
45
+    }
46
+
47
+
48
+}

+ 31
- 9
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/impl/PhoneCodeImpl.java 查看文件

@@ -1,15 +1,16 @@
1 1
 package com.community.huiju.common.code.impl;
2 2
 
3
-import com.alibaba.fastjson.JSONObject;
4 3
 import com.community.commom.constant.Constant;
5 4
 import com.community.huiju.common.code.ICode;
6
-import com.community.huiju.common.code.entity.CodeEntity;
7
-import lombok.extern.log4j.Log4j;
8 5
 import lombok.extern.slf4j.Slf4j;
6
+import okhttp3.*;
9 7
 import org.springframework.beans.factory.annotation.Autowired;
10 8
 import org.springframework.stereotype.Service;
11 9
 import org.springframework.web.client.RestTemplate;
12 10
 
11
+import java.io.IOException;
12
+import java.util.concurrent.TimeUnit;
13
+
13 14
 /**
14 15
  * 手机验证码
15 16
  * @author weiximei
@@ -18,25 +19,46 @@ import org.springframework.web.client.RestTemplate;
18 19
 @Slf4j
19 20
 public class PhoneCodeImpl implements ICode {
20 21
 
22
+    public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");
23
+
21 24
     @Autowired
22 25
     private RestTemplate restTemplate;
23 26
 
27
+    public OkHttpClient getClient() {
28
+        OkHttpClient client  = new OkHttpClient.Builder()
29
+                .connectTimeout(10, TimeUnit.SECONDS)
30
+                .writeTimeout(10,TimeUnit.SECONDS)
31
+                .readTimeout(20, TimeUnit.SECONDS)
32
+                .build();
33
+        return client;
34
+    }
24 35
 
25 36
     @Override
26 37
     public boolean sendCode(String phone, String code) {
27 38
         boolean bool = false;
28
-        CodeEntity codeEntity = new CodeEntity();
29
-        codeEntity.setCode(Constant.CODE);
30
-        codeEntity.setTel(phone);
31
-        codeEntity.setParams("[\""+code+"\"]");
32 39
         try {
33
-            String result = restTemplate.postForObject(Constant.REQUEST_URL, JSONObject.toJSONString(codeEntity),String.class);
40
+            String result = null;
41
+            OkHttpClient client = getClient();
42
+            RequestBody body = RequestBody.create(JSON, "{\"code\":\""+Constant.CODE+"\"," + "\"tel\":\""+phone+"\"," + "\"params\":[\""+code+"\"]}");
43
+            Request request = new Request.Builder()
44
+                    .url(Constant.REQUEST_URL)
45
+                    .post(body)
46
+                    .build();
47
+            Response response = client.newCall(request).execute();
48
+            if (response.isSuccessful()) {
49
+                result = response.body().string();
50
+            } else {
51
+                throw new IOException("Unexpected code " + response);
52
+            }
53
+
54
+
55
+
34 56
             if ("发送成功".equals(result)) {
35 57
                 bool = true;
36 58
                 log.info("手机号 {} 验证码 {} 发送成功!",phone,code);
37 59
             }else {
38 60
                 bool = false;
39
-                log.error("短信发送验证码失败!{}",result);
61
+                log.error("短信发送验证码失败!{}", result);
40 62
             }
41 63
         } catch (Exception e){
42 64
             e.printStackTrace();

+ 7
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BannerController.java 查看文件

@@ -4,10 +4,13 @@ import com.community.commom.mode.ResponseBean;
4 4
 import com.community.huiju.model.ToBanner;
5 5
 import com.community.huiju.service.BannerServiceI;
6 6
 import io.swagger.annotations.Api;
7
+import io.swagger.annotations.ApiImplicitParam;
8
+import io.swagger.annotations.ApiImplicitParams;
7 9
 import io.swagger.annotations.ApiOperation;
8 10
 import org.springframework.beans.factory.annotation.Autowired;
9 11
 import org.springframework.cloud.context.config.annotation.RefreshScope;
10 12
 import org.springframework.util.CollectionUtils;
13
+import org.springframework.web.bind.annotation.PathVariable;
11 14
 import org.springframework.web.bind.annotation.RequestMapping;
12 15
 import org.springframework.web.bind.annotation.RequestMethod;
13 16
 import org.springframework.web.bind.annotation.RestController;
@@ -30,10 +33,11 @@ public class BannerController {
30 33
     private BannerServiceI bannerService;
31 34
 
32 35
     @ApiOperation(value = "首页运营banner接口", notes = "获取首页运营banner")
33
-    @RequestMapping(value = "/banners", method = RequestMethod.GET)
34
-    public ResponseBean selectToBannerImg(){
36
+    @RequestMapping(value = "/banner/{bannerId}", method = RequestMethod.GET)
37
+    @ApiImplicitParams({ @ApiImplicitParam(paramType = "query", dataType = "Long", name = "bannerId", value = "运营banner图Id") })
38
+    public ResponseBean selectToBannerImg(@PathVariable("bannerId")Integer bannerId){
35 39
         ResponseBean responseBean = new ResponseBean();
36
-        List<ToBanner> toBannerList = bannerService.viewBannerImg();
40
+        ToBanner toBannerList = bannerService.viewBannerImg(bannerId);
37 41
         responseBean.addSuccess(toBannerList);
38 42
         return responseBean;
39 43
     }

+ 15
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/CodeController.java 查看文件

@@ -1,17 +1,22 @@
1 1
 package com.community.huiju.controller;
2 2
 
3
+import com.community.commom.constant.Constant;
3 4
 import com.community.commom.mode.ResponseBean;
4 5
 import com.community.huiju.common.code.ICode;
6
+import com.community.huiju.common.code.cache.AppkeyCache;
5 7
 import io.swagger.annotations.Api;
6 8
 import io.swagger.annotations.ApiImplicitParam;
7 9
 import io.swagger.annotations.ApiImplicitParams;
8 10
 import io.swagger.annotations.ApiOperation;
11
+import lombok.extern.slf4j.Slf4j;
9 12
 import org.springframework.beans.factory.annotation.Autowired;
10 13
 import org.springframework.beans.factory.annotation.Qualifier;
11 14
 import org.springframework.cloud.context.config.annotation.RefreshScope;
12 15
 import org.springframework.web.bind.annotation.RequestMapping;
13 16
 import org.springframework.web.bind.annotation.RequestMethod;
17
+import org.springframework.web.bind.annotation.RequestParam;
14 18
 import org.springframework.web.bind.annotation.RestController;
19
+import sun.rmi.runtime.Log;
15 20
 
16 21
 import javax.servlet.http.HttpSession;
17 22
 
@@ -19,9 +24,10 @@ import javax.servlet.http.HttpSession;
19 24
  * @author weiximei
20 25
  */
21 26
 @RestController
22
-@RequestMapping("/code")
27
+@RequestMapping("/")
23 28
 @RefreshScope
24 29
 @Api("获取验证码的API")
30
+@Slf4j
25 31
 public class CodeController {
26 32
 
27 33
     @Autowired
@@ -30,12 +36,17 @@ public class CodeController {
30 36
 
31 37
     @ApiOperation(value = "获取手机验证码", notes = "根据手机号发送验证码")
32 38
     @ApiImplicitParams({@ApiImplicitParam(paramType = "query",dataType = "String",name = "phone",value = "手机号")})
33
-    @RequestMapping(value = "/sendCode",method = RequestMethod.GET)
34
-    public ResponseBean sendCode(String phone, HttpSession session) {
39
+    @RequestMapping(value = "/code/sendCode",method = RequestMethod.POST)
40
+    public ResponseBean sendCode(@RequestParam String phone, HttpSession session) {
35 41
         ResponseBean response = new ResponseBean();
36 42
         int code = (int) ((Math.random()*9+1)*1000);
37
-        boolean result = iCode.sendCode(phone,String.valueOf(code));
43
+        //boolean result = iCode.sendCode(phone,String.valueOf(code));
44
+        boolean result = true;
38 45
         if (result) {
46
+            log.info("{} 验证码: {}",phone,code);
47
+            // 设置缓存
48
+            AppkeyCache.setCache(phone,String.valueOf(code));
49
+            //session.setAttribute(Constant.SESSION_PHONE_CODE,String.valueOf(code));
39 50
             response.addSuccess("发送成功!");
40 51
         } else {
41 52
             response.addError("发送失败!");

+ 32
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MessageController.java 查看文件

@@ -1,7 +1,9 @@
1 1
 package com.community.huiju.controller;
2 2
 
3
+import com.community.commom.constant.Constant;
3 4
 import com.community.commom.mode.ResponseBean;
4 5
 import com.community.huiju.model.ToCommunities;
6
+import com.community.huiju.model.TpMessage;
5 7
 import com.community.huiju.service.MessageServiceI;
6 8
 import io.swagger.annotations.Api;
7 9
 import io.swagger.annotations.ApiImplicitParam;
@@ -9,6 +11,7 @@ import io.swagger.annotations.ApiImplicitParams;
9 11
 import io.swagger.annotations.ApiOperation;
10 12
 import org.springframework.beans.factory.annotation.Autowired;
11 13
 import org.springframework.cloud.context.config.annotation.RefreshScope;
14
+import org.springframework.web.bind.annotation.PathVariable;
12 15
 import org.springframework.web.bind.annotation.RequestMapping;
13 16
 import org.springframework.web.bind.annotation.RequestMethod;
14 17
 import org.springframework.web.bind.annotation.RequestParam;
@@ -30,12 +33,37 @@ public class MessageController {
30 33
 	@Autowired
31 34
 	private MessageServiceI messageService;
32 35
 	
33
-	@ApiOperation(value = "根据小区名获取小区列表", notes = "根据小区名获取小区列表")
34
-	@RequestMapping(value = "/message/total",method = RequestMethod.GET)
35
-	public ResponseBean getMessageTotal(){
36
+	@ApiOperation(value = "按小区获取消息总数", notes = "按小区获取个人消息总数")
37
+	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id") })
38
+	@RequestMapping(value = "/message/{communityId}/total",method = RequestMethod.GET)
39
+	public ResponseBean getMessageTotal(@PathVariable Integer communityId){
36 40
 		ResponseBean responseBean = new ResponseBean();
37
-		Map<String,Object> totalMap = messageService.getMessageTotal();
41
+		Map<String,Object> totalMap = messageService.getMessageTotal(communityId);
38 42
 		responseBean.addSuccess(totalMap);
39 43
 		return responseBean;
40 44
 	}
45
+	
46
+	@ApiOperation(value = "按小区获取分页消息", notes = "按小区获取分页消息")
47
+	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
48
+			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
49
+			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")})
50
+	@RequestMapping(value = "/message/{communityId}/news",method = RequestMethod.GET)
51
+	public ResponseBean getNews(@PathVariable Integer communityId,@RequestParam Integer pageNum,@RequestParam Integer pageSize){
52
+		ResponseBean responseBean = new ResponseBean();
53
+		List<TpMessage> newsList = messageService.getMessages(communityId,pageNum,pageSize, Constant.MODEL_TYPE_NEWS);
54
+		responseBean.addSuccess(newsList);
55
+		return responseBean;
56
+	}
57
+	
58
+	@ApiOperation(value = "按小区获取分页待办", notes = "按小区获取分页待办")
59
+	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
60
+			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
61
+			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")})
62
+	@RequestMapping(value = "/message/{communityId}/upcoming",method = RequestMethod.GET)
63
+	public ResponseBean getUpcoming(@PathVariable Integer communityId,@RequestParam Integer pageNum,@RequestParam Integer pageSize){
64
+		ResponseBean responseBean = new ResponseBean();
65
+		List<TpMessage> upcomingList = messageService.getMessages(communityId,pageNum,pageSize,Constant.MODEL_TYPE_UPCOMING);
66
+		responseBean.addSuccess(upcomingList);
67
+		return responseBean;
68
+	}
41 69
 }

+ 91
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java 查看文件

@@ -0,0 +1,91 @@
1
+package com.community.huiju.controller;
2
+
3
+import com.community.commom.constant.Constant;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.huiju.model.TpActivity;
6
+import com.community.huiju.model.TpAnnouncement;
7
+import com.community.huiju.model.TpMessage;
8
+import com.community.huiju.service.SocialServiceI;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiImplicitParam;
11
+import io.swagger.annotations.ApiImplicitParams;
12
+import io.swagger.annotations.ApiOperation;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.cloud.context.config.annotation.RefreshScope;
15
+import org.springframework.web.bind.annotation.*;
16
+
17
+import java.util.List;
18
+
19
+/**
20
+ * @author weichaochao
21
+ * @Title: SocialController
22
+ * @date 2018/10/23
23
+ */
24
+@RestController
25
+@RefreshScope
26
+@RequestMapping("/")
27
+@Api("app端论坛相关的API")
28
+public class SocialController {
29
+
30
+    @Autowired
31
+    private SocialServiceI socialServiceI;
32
+
33
+    @RequestMapping(value = "/announcement/{communityId}", method = RequestMethod.GET)
34
+    @ApiOperation(value = "论坛公告帖子详情", notes = "获取论坛公告帖子详情")
35
+    @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
36
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "id", value = "公告帖子id")})
37
+    public ResponseBean findAnnouncementDetail(@PathVariable(value = "communityId")Integer communityId, @RequestParam("id") Integer id){
38
+        ResponseBean responseBean = new ResponseBean();
39
+        TpAnnouncement tpAnnouncement = socialServiceI.findAnnouncementDetail(id, communityId);
40
+        responseBean.addSuccess(tpAnnouncement);
41
+        return responseBean;
42
+    }
43
+
44
+    @RequestMapping(value = "/sign", method = RequestMethod.GET)
45
+    @ApiOperation(value = "活动报名接口", notes = "活动报名接口")
46
+    @ApiImplicitParams({ @ApiImplicitParam(paramType = "query", dataType = "Long", name = "communityId", value = "小区Id") })
47
+    public ResponseBean SignActivity(@PathVariable(value = "communityId")Integer communityId){
48
+        ResponseBean responseBean = new ResponseBean();
49
+        return responseBean;
50
+    }
51
+    
52
+    @ApiOperation(value = "按小区获取分页公告列表", notes = "按小区获取分页公告列表,公告标题模糊查询")
53
+    @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
54
+            @ApiImplicitParam(paramType = "query", dataType = "String", name = "title", value = "公告标题"),
55
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
56
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")})
57
+    @RequestMapping(value = "/announcements/{communityId}",method = RequestMethod.GET)
58
+    public ResponseBean getAnnouncements(@PathVariable Integer communityId,@RequestParam String title,@RequestParam Integer pageNum,@RequestParam Integer pageSize){
59
+        ResponseBean responseBean = new ResponseBean();
60
+        List<TpAnnouncement> announcementList = socialServiceI.getAnnouncements(communityId,title,pageNum,pageSize);
61
+        responseBean.addSuccess(announcementList);
62
+        return responseBean;
63
+    }
64
+
65
+    @ApiOperation(value = "获取公告轮播图", notes = "获取公告轮播图")
66
+    @ApiImplicitParams({
67
+            @ApiImplicitParam(paramType = "query",dataType = "String",name = "communityId",value = "小区id"),
68
+            @ApiImplicitParam(paramType = "query",dataType = "String",name = "sum",value = "显示的条数")
69
+    })
70
+    @RequestMapping(value = "/announcement/announcementCarouselImg/{communityId}",method = RequestMethod.GET)
71
+    public ResponseBean getAnnouncement(@PathVariable(value = "communityId")Integer communityId ,@RequestParam("sum") Integer sum){
72
+        ResponseBean responseBean = new ResponseBean();
73
+        List<TpAnnouncement> agreement = socialServiceI.getAnnouncement(communityId,sum);
74
+        responseBean.addSuccess(agreement);
75
+        return responseBean;
76
+    }
77
+
78
+    
79
+    @ApiOperation(value = "按小区获取分页活动列表", notes = "按小区获取分页活动列表,公告标题模糊查询")
80
+    @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
81
+            @ApiImplicitParam(paramType = "query", dataType = "String", name = "title", value = "活动标题"),
82
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
83
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")})
84
+    @RequestMapping(value = "/activitys/{communityId}",method = RequestMethod.GET)
85
+    public ResponseBean getActivitys(@PathVariable Integer communityId,@RequestParam String title,@RequestParam Integer pageNum,@RequestParam Integer pageSize){
86
+        ResponseBean responseBean = new ResponseBean();
87
+        List<TpActivity> activityList = socialServiceI.getActivitys(communityId,title,pageNum,pageSize);
88
+        responseBean.addSuccess(activityList);
89
+        return responseBean;
90
+    }
91
+}

+ 51
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/TicketController.java 查看文件

@@ -0,0 +1,51 @@
1
+package com.community.huiju.controller;
2
+
3
+import com.community.commom.constant.Constant;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.huiju.config.entity.UserElement;
6
+import com.community.huiju.model.TaUser;
7
+import com.community.huiju.model.TpTicket;
8
+import com.community.huiju.service.ITicketService;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiImplicitParam;
11
+import io.swagger.annotations.ApiImplicitParams;
12
+import io.swagger.annotations.ApiOperation;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.cloud.context.config.annotation.RefreshScope;
15
+import org.springframework.web.bind.annotation.*;
16
+
17
+import javax.servlet.http.HttpSession;
18
+
19
+@RestController
20
+@RefreshScope
21
+@RequestMapping("/")
22
+@Api("工单API")
23
+public class TicketController {
24
+
25
+    @Autowired
26
+    private ITicketService iTicketService;
27
+
28
+    @RequestMapping(value = "/ticket/service/{communityId}",method = RequestMethod.GET)
29
+    @ApiOperation(value = "获取 报修/投诉/联系单 各3条数据",notes = "根据 小区编号,第几页,一页多少行")
30
+    @ApiImplicitParams({
31
+            @ApiImplicitParam(paramType = "query",dataType = "String",name = "communityId",value = "小区编号"),
32
+            @ApiImplicitParam(paramType = "query",dataType = "String",name = "pageCode",value = "第几页"),
33
+            @ApiImplicitParam(paramType = "query",dataType = "String",name = "pageSize",value = "一页多少数据"),
34
+    })
35
+    public ResponseBean getService(@PathVariable(value = "communityId") String communityId,
36
+                                   @RequestParam(value = "pageCode",defaultValue = "1") Integer pageCode,
37
+                                   @RequestParam(value = "pageSize",defaultValue = "3") Integer pageSize,
38
+                                   HttpSession session) {
39
+        ResponseBean response = new ResponseBean();
40
+
41
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
42
+
43
+        TpTicket tpTicket = new TpTicket();
44
+        tpTicket.setCommunityId(Integer.valueOf(communityId));
45
+        tpTicket.setTaUserId(userElement.getId());
46
+
47
+        response = iTicketService.getList(tpTicket,pageCode,pageSize);
48
+        return response;
49
+    }
50
+
51
+}

+ 19
- 18
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java 查看文件

@@ -2,9 +2,11 @@ package com.community.huiju.controller;
2 2
 
3 3
 import com.community.commom.constant.Constant;
4 4
 import com.community.commom.mode.ResponseBean;
5
+import com.community.huiju.common.code.cache.AppkeyCache;
5 6
 import com.community.huiju.config.entity.UserElement;
6 7
 import com.community.huiju.model.TaUser;
7 8
 import com.community.huiju.service.ITaUserService;
9
+import com.community.huiju.vo.TaUserVO;
8 10
 import io.swagger.annotations.Api;
9 11
 import io.swagger.annotations.ApiImplicitParam;
10 12
 import io.swagger.annotations.ApiImplicitParams;
@@ -12,12 +14,10 @@ import io.swagger.annotations.ApiOperation;
12 14
 import org.springframework.beans.BeanUtils;
13 15
 import org.springframework.beans.factory.annotation.Autowired;
14 16
 import org.springframework.cloud.context.config.annotation.RefreshScope;
15
-import org.springframework.web.bind.annotation.RequestBody;
16
-import org.springframework.web.bind.annotation.RequestMapping;
17
-import org.springframework.web.bind.annotation.RequestMethod;
18
-import org.springframework.web.bind.annotation.RestController;
17
+import org.springframework.web.bind.annotation.*;
19 18
 
20 19
 import javax.servlet.http.HttpSession;
20
+import javax.xml.crypto.dsig.keyinfo.PGPData;
21 21
 
22 22
 /**
23 23
  * 用户控制器
@@ -25,7 +25,7 @@ import javax.servlet.http.HttpSession;
25 25
  */
26 26
 @RestController
27 27
 @RefreshScope
28
-@RequestMapping("/user")
28
+@RequestMapping("/")
29 29
 @Api("用户相关操作")
30 30
 public class UserController {
31 31
 
@@ -34,27 +34,28 @@ public class UserController {
34 34
 
35 35
     @ApiOperation(value = "登录", notes = "根据登录名和密码")
36 36
     @ApiImplicitParams({
37
+            @ApiImplicitParam(paramType = "query",dataType = "String",name = "communityId",value = "小区"),
37 38
             @ApiImplicitParam(paramType = "query",dataType = "String",name = "loginName",value = "手机号"),
38 39
             @ApiImplicitParam(paramType = "query",dataType = "String",name = "loginPassword",value = "密码")
39 40
     })
40
-    @RequestMapping(value = "/login",method = RequestMethod.POST)
41
-    public ResponseBean login(@RequestBody TaUser user, HttpSession session){
42
-        ResponseBean responseBean = iTaUserService.login(user);
43
-        TaUser taUser = (TaUser) responseBean.getData();
44
-
45
-//        userElement.setStatus(taUser.getStatus());
46
-//        userElement.setLoginName(taUser.getLoginName());
47
-//        userElement.setUserName(taUser.getUserName());
48
-//        userElement.setEmail(taUser.getEmail());
49
-//        userElement.setId(taUser.getId());
50
-        if (null != taUser) {
41
+    @RequestMapping(value = "/user/login/{communityId}",method = RequestMethod.POST)
42
+    public ResponseBean login(@RequestParam(value = "loginName") String loginName,
43
+                              @RequestParam(value = "code",defaultValue = "") String code,
44
+                              @PathVariable(value = "communityId") String communityId,
45
+                              HttpSession session){
46
+        ResponseBean responseBean = iTaUserService.login(loginName,communityId,code);
47
+        TaUserVO userVO = (TaUserVO) responseBean.getData();
48
+
49
+        if (null != userVO) {
51 50
             UserElement userElement = new UserElement();
52
-            BeanUtils.copyProperties(taUser,userElement);
51
+            BeanUtils.copyProperties(userVO,userElement);
53 52
             session.setAttribute(Constant.APP_USER_SESSION,userElement);
53
+            userVO.setToken(session.getId());
54 54
         }
55
-
56 55
         return responseBean;
57 56
 
58 57
     }
59 58
 
59
+
60
+
60 61
 }

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/ToBannerMapper.java 查看文件

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

+ 25
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivityMapper.java 查看文件

@@ -0,0 +1,25 @@
1
+package com.community.huiju.dao;
2
+
3
+
4
+import com.community.huiju.model.TpActivity;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
9
+
10
+@Mapper
11
+public interface TpActivityMapper {
12
+    int deleteByPrimaryKey(Integer id);
13
+
14
+    int insert(TpActivity record);
15
+
16
+    int insertSelective(TpActivity record);
17
+
18
+    TpActivity selectByPrimaryKey(Integer id);
19
+
20
+    int updateByPrimaryKeySelective(TpActivity record);
21
+
22
+    int updateByPrimaryKey(TpActivity record);
23
+    
24
+    List<TpActivity> getActivitys(@Param("communityId")Integer communityId,@Param("title") String title);
25
+}

+ 27
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpAnnouncementMapper.java 查看文件

@@ -0,0 +1,27 @@
1
+package com.community.huiju.dao;
2
+
3
+
4
+import com.community.huiju.model.TpAnnouncement;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
9
+
10
+@Mapper
11
+public interface TpAnnouncementMapper {
12
+    int deleteByPrimaryKey(Integer id);
13
+
14
+    int insert(TpAnnouncement record);
15
+
16
+    int insertSelective(TpAnnouncement record);
17
+
18
+    TpAnnouncement selectByPrimaryKey(@Param("id") Integer id, @Param("communityId") Integer communityId);
19
+
20
+    int updateByPrimaryKeySelective(@Param("id")Integer id, @Param("viewCount")Integer viewCount);
21
+
22
+    int updateByPrimaryKey(TpAnnouncement record);
23
+	
24
+	List<TpAnnouncement> getAnnouncements(@Param("communityId") Integer communityId,@Param("title") String title);
25
+
26
+    List<TpAnnouncement> getAnnouncement(@Param("communityId")Integer communityId, @Param("sum")Integer sum);
27
+}

+ 17
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpCarouselSettingMapper.java 查看文件

@@ -0,0 +1,17 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpCarouselSetting;
4
+
5
+public interface TpCarouselSettingMapper {
6
+    int deleteByPrimaryKey(Integer id);
7
+
8
+    int insert(TpCarouselSetting record);
9
+
10
+    int insertSelective(TpCarouselSetting record);
11
+
12
+    TpCarouselSetting selectByPrimaryKey(Integer id);
13
+
14
+    int updateByPrimaryKeySelective(TpCarouselSetting record);
15
+
16
+    int updateByPrimaryKey(TpCarouselSetting record);
17
+}

+ 4
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpMessageMapper.java 查看文件

@@ -4,6 +4,7 @@ import com.community.huiju.model.TpMessage;
4 4
 import org.apache.ibatis.annotations.Mapper;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7
+import java.util.List;
7 8
 import java.util.Map;
8 9
 
9 10
 @Mapper
@@ -20,5 +21,7 @@ public interface TpMessageMapper {
20 21
 
21 22
     int updateByPrimaryKey(TpMessage record);
22 23
     
23
-    Map<String, Object> getMessageTotal(@Param(value="userId") Integer userId);
24
+    Map<String, Object> getMessageTotal(@Param(value = "userId") Integer userId,@Param(value = "communityId") Integer communityId);
25
+    
26
+    List<TpMessage> getMessages(@Param(value = "userId") Integer userId,@Param(value = "communityId") Integer communityId, @Param(value = "modelType") Integer modelType);
24 27
 }

+ 21
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpSocialViewMapper.java 查看文件

@@ -0,0 +1,21 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpSocialView;
4
+import org.apache.ibatis.annotations.Mapper;
5
+
6
+@Mapper
7
+public interface TpSocialViewMapper {
8
+    int deleteByPrimaryKey(Integer id);
9
+
10
+    int insert(TpSocialView record);
11
+
12
+    int insertSelective(TpSocialView record);
13
+
14
+    TpSocialView selectByPrimaryKey(Integer id);
15
+
16
+    int updateByPrimaryKeySelective(TpSocialView record);
17
+
18
+    int updateByPrimaryKey(TpSocialView record);
19
+
20
+    Integer selectViewNum(TpSocialView tpSocialView);
21
+}

+ 29
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTicketMapper.java 查看文件

@@ -0,0 +1,29 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpTicket;
4
+import org.apache.ibatis.annotations.Mapper;
5
+
6
+import java.util.List;
7
+import java.util.Map;
8
+
9
+@Mapper
10
+public interface TpTicketMapper {
11
+    int deleteByPrimaryKey(Integer id);
12
+
13
+    int insert(TpTicket record);
14
+
15
+    int insertSelective(TpTicket record);
16
+
17
+    TpTicket selectByPrimaryKey(Integer id);
18
+
19
+    int updateByPrimaryKeySelective(TpTicket record);
20
+
21
+    int updateByPrimaryKey(TpTicket record);
22
+
23
+    /**
24
+     * 根据 小区ID 用户ID 类型 查询数据
25
+     * @param map
26
+     * @return
27
+     */
28
+    List<TpTicket> selectByCommuniytIdAndByTaUserIdAndByType(Map map);
29
+}

+ 33
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTicketRecordCommentMapper.java 查看文件

@@ -0,0 +1,33 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpTicketRecordComment;
4
+import org.apache.ibatis.annotations.Mapper;
5
+
6
+import java.util.List;
7
+import java.util.Map;
8
+
9
+@Mapper
10
+public interface TpTicketRecordCommentMapper {
11
+    int deleteByPrimaryKey(Integer id);
12
+
13
+    int insert(TpTicketRecordComment record);
14
+
15
+    int insertSelective(TpTicketRecordComment record);
16
+
17
+    TpTicketRecordComment selectByPrimaryKey(Integer id);
18
+
19
+    int updateByPrimaryKeySelective(TpTicketRecordComment record);
20
+
21
+    int updateByPrimaryKey(TpTicketRecordComment record);
22
+
23
+    /**
24
+     * 根据工单ID,最新的几条 查询出最新的追答记录
25
+     *
26
+     *  size 表示最新几条
27
+     *  tickerId 工单ID
28
+     *
29
+     * @param map
30
+     * @return
31
+     */
32
+    List<TpTicketRecordComment> selectByTicketId(Map map);
33
+}

+ 19
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTicketRecordMapper.java 查看文件

@@ -0,0 +1,19 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpTicketRecord;
4
+import org.apache.ibatis.annotations.Mapper;
5
+
6
+@Mapper
7
+public interface TpTicketRecordMapper {
8
+    int deleteByPrimaryKey(Integer id);
9
+
10
+    int insert(TpTicketRecord record);
11
+
12
+    int insertSelective(TpTicketRecord record);
13
+
14
+    TpTicketRecord selectByPrimaryKey(Integer id);
15
+
16
+    int updateByPrimaryKeySelective(TpTicketRecord record);
17
+
18
+    int updateByPrimaryKey(TpTicketRecord record);
19
+}

+ 19
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionMapper.java 查看文件

@@ -0,0 +1,19 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpTransaction;
4
+import org.apache.ibatis.annotations.Mapper;
5
+
6
+@Mapper
7
+public interface TpTransactionMapper {
8
+    int deleteByPrimaryKey(Integer id);
9
+
10
+    int insert(TpTransaction record);
11
+
12
+    int insertSelective(TpTransaction record);
13
+
14
+    TpTransaction selectByPrimaryKey(Integer id);
15
+
16
+    int updateByPrimaryKeySelective(TpTransaction record);
17
+
18
+    int updateByPrimaryKey(TpTransaction record);
19
+}

+ 10
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUser.java 查看文件

@@ -1,7 +1,5 @@
1 1
 package com.community.huiju.model;
2 2
 
3
-import com.alibaba.fastjson.annotation.JSONField;
4
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
5 3
 
6 4
 import java.util.Date;
7 5
 
@@ -32,6 +30,8 @@ public class TaUser {
32 30
 
33 31
     private String acceptAgreementStatus;
34 32
 
33
+    private String verifyStatus;
34
+
35 35
     private Integer createUser;
36 36
 
37 37
     private Date createDate;
@@ -144,6 +144,14 @@ public class TaUser {
144 144
         this.acceptAgreementStatus = acceptAgreementStatus == null ? null : acceptAgreementStatus.trim();
145 145
     }
146 146
 
147
+    public String getVerifyStatus() {
148
+        return verifyStatus;
149
+    }
150
+
151
+    public void setVerifyStatus(String verifyStatus) {
152
+        this.verifyStatus = verifyStatus;
153
+    }
154
+
147 155
     public Integer getCreateUser() {
148 156
         return createUser;
149 157
     }

+ 195
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivity.java 查看文件

@@ -0,0 +1,195 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpActivity {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String activityTitle;
11
+
12
+    private String activityCarouselImg;
13
+
14
+    private String activityContent;
15
+
16
+    private Integer sort;
17
+
18
+    private Integer signUpCount;
19
+
20
+    private Integer signUpMax;
21
+
22
+    private Integer viewCount;
23
+
24
+    private Date registrationStartTime;
25
+
26
+    private Date registrationEndTime;
27
+
28
+    private Date activityStartTime;
29
+
30
+    private Date activityEndTime;
31
+
32
+    private String status;
33
+
34
+    private Integer createUser;
35
+
36
+    private Date createDate;
37
+
38
+    private Integer updateUser;
39
+
40
+    private Date updateDate;
41
+    
42
+    private String userName;
43
+
44
+    public Integer getId() {
45
+        return id;
46
+    }
47
+
48
+    public void setId(Integer id) {
49
+        this.id = id;
50
+    }
51
+
52
+    public Integer getCommunityId() {
53
+        return communityId;
54
+    }
55
+
56
+    public void setCommunityId(Integer communityId) {
57
+        this.communityId = communityId;
58
+    }
59
+
60
+    public String getActivityTitle() {
61
+        return activityTitle;
62
+    }
63
+
64
+    public void setActivityTitle(String activityTitle) {
65
+        this.activityTitle = activityTitle == null ? null : activityTitle.trim();
66
+    }
67
+
68
+    public String getActivityCarouselImg() {
69
+        return activityCarouselImg;
70
+    }
71
+
72
+    public void setActivityCarouselImg(String activityCarouselImg) {
73
+        this.activityCarouselImg = activityCarouselImg == null ? null : activityCarouselImg.trim();
74
+    }
75
+
76
+    public String getActivityContent() {
77
+        return activityContent;
78
+    }
79
+
80
+    public void setActivityContent(String activityContent) {
81
+        this.activityContent = activityContent == null ? null : activityContent.trim();
82
+    }
83
+
84
+    public Integer getSort() {
85
+        return sort;
86
+    }
87
+
88
+    public void setSort(Integer sort) {
89
+        this.sort = sort;
90
+    }
91
+
92
+    public Integer getSignUpCount() {
93
+        return signUpCount;
94
+    }
95
+
96
+    public void setSignUpCount(Integer signUpCount) {
97
+        this.signUpCount = signUpCount;
98
+    }
99
+
100
+    public Integer getSignUpMax() {
101
+        return signUpMax;
102
+    }
103
+
104
+    public void setSignUpMax(Integer signUpMax) {
105
+        this.signUpMax = signUpMax;
106
+    }
107
+
108
+    public Integer getViewCount() {
109
+        return viewCount;
110
+    }
111
+
112
+    public void setViewCount(Integer viewCount) {
113
+        this.viewCount = viewCount;
114
+    }
115
+
116
+    public Date getRegistrationStartTime() {
117
+        return registrationStartTime;
118
+    }
119
+
120
+    public void setRegistrationStartTime(Date registrationStartTime) {
121
+        this.registrationStartTime = registrationStartTime;
122
+    }
123
+
124
+    public Date getRegistrationEndTime() {
125
+        return registrationEndTime;
126
+    }
127
+
128
+    public void setRegistrationEndTime(Date registrationEndTime) {
129
+        this.registrationEndTime = registrationEndTime;
130
+    }
131
+
132
+    public Date getActivityStartTime() {
133
+        return activityStartTime;
134
+    }
135
+
136
+    public void setActivityStartTime(Date activityStartTime) {
137
+        this.activityStartTime = activityStartTime;
138
+    }
139
+
140
+    public Date getActivityEndTime() {
141
+        return activityEndTime;
142
+    }
143
+
144
+    public void setActivityEndTime(Date activityEndTime) {
145
+        this.activityEndTime = activityEndTime;
146
+    }
147
+
148
+    public String getStatus() {
149
+        return status;
150
+    }
151
+
152
+    public void setStatus(String status) {
153
+        this.status = status == null ? null : status.trim();
154
+    }
155
+
156
+    public Integer getCreateUser() {
157
+        return createUser;
158
+    }
159
+
160
+    public void setCreateUser(Integer createUser) {
161
+        this.createUser = createUser;
162
+    }
163
+
164
+    public Date getCreateDate() {
165
+        return createDate;
166
+    }
167
+
168
+    public void setCreateDate(Date createDate) {
169
+        this.createDate = createDate;
170
+    }
171
+
172
+    public Integer getUpdateUser() {
173
+        return updateUser;
174
+    }
175
+
176
+    public void setUpdateUser(Integer updateUser) {
177
+        this.updateUser = updateUser;
178
+    }
179
+
180
+    public Date getUpdateDate() {
181
+        return updateDate;
182
+    }
183
+
184
+    public void setUpdateDate(Date updateDate) {
185
+        this.updateDate = updateDate;
186
+    }
187
+    
188
+    public String getUserName() {
189
+        return userName;
190
+    }
191
+    
192
+    public void setUserName(String userName) {
193
+        this.userName = userName;
194
+    }
195
+}

+ 145
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpAnnouncement.java 查看文件

@@ -0,0 +1,145 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpAnnouncement {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String announcementTitle;
11
+
12
+    private String announcementCarouselImg;
13
+
14
+    private String announcementContent;
15
+
16
+    private Integer sort;
17
+
18
+    private Integer viewCount;
19
+
20
+    private String setUpCarousel;
21
+
22
+    private String status;
23
+
24
+    private Integer createUser;
25
+    
26
+    private String userName;
27
+
28
+    private Date createDate;
29
+
30
+    private Integer updateUser;
31
+
32
+    private Date updateDate;
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 getAnnouncementTitle() {
51
+        return announcementTitle;
52
+    }
53
+
54
+    public void setAnnouncementTitle(String announcementTitle) {
55
+        this.announcementTitle = announcementTitle == null ? null : announcementTitle.trim();
56
+    }
57
+
58
+    public String getAnnouncementCarouselImg() {
59
+        return announcementCarouselImg;
60
+    }
61
+
62
+    public void setAnnouncementCarouselImg(String announcementCarouselImg) {
63
+        this.announcementCarouselImg = announcementCarouselImg == null ? null : announcementCarouselImg.trim();
64
+    }
65
+
66
+    public String getAnnouncementContent() {
67
+        return announcementContent;
68
+    }
69
+
70
+    public void setAnnouncementContent(String announcementContent) {
71
+        this.announcementContent = announcementContent == null ? null : announcementContent.trim();
72
+    }
73
+
74
+    public Integer getSort() {
75
+        return sort;
76
+    }
77
+
78
+    public void setSort(Integer sort) {
79
+        this.sort = sort;
80
+    }
81
+
82
+    public Integer getViewCount() {
83
+        return viewCount;
84
+    }
85
+
86
+    public void setViewCount(Integer viewCount) {
87
+        this.viewCount = viewCount;
88
+    }
89
+
90
+    public String getSetUpCarousel() {
91
+        return setUpCarousel;
92
+    }
93
+
94
+    public void setSetUpCarousel(String setUpCarousel) {
95
+        this.setUpCarousel = setUpCarousel == null ? null : setUpCarousel.trim();
96
+    }
97
+
98
+    public String getStatus() {
99
+        return status;
100
+    }
101
+
102
+    public void setStatus(String status) {
103
+        this.status = status == null ? null : status.trim();
104
+    }
105
+
106
+    public Integer getCreateUser() {
107
+        return createUser;
108
+    }
109
+
110
+    public void setCreateUser(Integer createUser) {
111
+        this.createUser = createUser;
112
+    }
113
+
114
+    public Date getCreateDate() {
115
+        return createDate;
116
+    }
117
+
118
+    public void setCreateDate(Date createDate) {
119
+        this.createDate = createDate;
120
+    }
121
+
122
+    public Integer getUpdateUser() {
123
+        return updateUser;
124
+    }
125
+
126
+    public void setUpdateUser(Integer updateUser) {
127
+        this.updateUser = updateUser;
128
+    }
129
+
130
+    public Date getUpdateDate() {
131
+        return updateDate;
132
+    }
133
+
134
+    public void setUpdateDate(Date updateDate) {
135
+        this.updateDate = updateDate;
136
+    }
137
+    
138
+    public String getUserName() {
139
+        return userName;
140
+    }
141
+    
142
+    public void setUserName(String userName) {
143
+        this.userName = userName;
144
+    }
145
+}

+ 43
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpCarouselSetting.java 查看文件

@@ -0,0 +1,43 @@
1
+package com.community.huiju.model;
2
+
3
+public class TpCarouselSetting {
4
+    private Integer id;
5
+
6
+    private Integer communityId;
7
+
8
+    private String carouselType;
9
+
10
+    private Integer carouselNum;
11
+
12
+    public Integer getId() {
13
+        return id;
14
+    }
15
+
16
+    public void setId(Integer id) {
17
+        this.id = id;
18
+    }
19
+
20
+    public Integer getCommunityId() {
21
+        return communityId;
22
+    }
23
+
24
+    public void setCommunityId(Integer communityId) {
25
+        this.communityId = communityId;
26
+    }
27
+
28
+    public String getCarouselType() {
29
+        return carouselType;
30
+    }
31
+
32
+    public void setCarouselType(String carouselType) {
33
+        this.carouselType = carouselType == null ? null : carouselType.trim();
34
+    }
35
+
36
+    public Integer getCarouselNum() {
37
+        return carouselNum;
38
+    }
39
+
40
+    public void setCarouselNum(Integer carouselNum) {
41
+        this.carouselNum = carouselNum;
42
+    }
43
+}

+ 75
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpSocialView.java 查看文件

@@ -0,0 +1,75 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpSocialView {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer uuid;
11
+
12
+    private String socialType;
13
+
14
+    private Integer taUserId;
15
+
16
+    private String remark;
17
+
18
+    private Date createDate;
19
+
20
+    public Integer getId() {
21
+        return id;
22
+    }
23
+
24
+    public void setId(Integer id) {
25
+        this.id = id;
26
+    }
27
+
28
+    public Integer getCommunityId() {
29
+        return communityId;
30
+    }
31
+
32
+    public void setCommunityId(Integer communityId) {
33
+        this.communityId = communityId;
34
+    }
35
+
36
+    public Integer getUuid() {
37
+        return uuid;
38
+    }
39
+
40
+    public void setUuid(Integer uuid) {
41
+        this.uuid = uuid;
42
+    }
43
+
44
+    public String getSocialType() {
45
+        return socialType;
46
+    }
47
+
48
+    public void setSocialType(String socialType) {
49
+        this.socialType = socialType == null ? null : socialType.trim();
50
+    }
51
+
52
+    public Integer getTaUserId() {
53
+        return taUserId;
54
+    }
55
+
56
+    public void setTaUserId(Integer taUserId) {
57
+        this.taUserId = taUserId;
58
+    }
59
+
60
+    public String getRemark() {
61
+        return remark;
62
+    }
63
+
64
+    public void setRemark(String remark) {
65
+        this.remark = remark == null ? null : remark.trim();
66
+    }
67
+
68
+    public Date getCreateDate() {
69
+        return createDate;
70
+    }
71
+
72
+    public void setCreateDate(Date createDate) {
73
+        this.createDate = createDate;
74
+    }
75
+}

+ 205
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTicket.java 查看文件

@@ -0,0 +1,205 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpTicket {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer taUserId;
11
+
12
+    private String ticketTitle;
13
+
14
+    private String ticketContent;
15
+
16
+    private String status;
17
+
18
+    private String type;
19
+
20
+    private String repairType;
21
+
22
+    private String ticketMatchImg1;
23
+
24
+    private String ticketMatchImg2;
25
+
26
+    private String ticketMatchImg3;
27
+
28
+    private String ticketMatchImg4;
29
+
30
+    private String ticketMatchImg5;
31
+
32
+    private Integer tpUserId;
33
+
34
+    private String score;
35
+
36
+    private String comment;
37
+
38
+    private Integer createUser;
39
+
40
+    private Date createDate;
41
+
42
+    private Integer updateUser;
43
+
44
+    private Date updateDate;
45
+
46
+    public Integer getId() {
47
+        return id;
48
+    }
49
+
50
+    public void setId(Integer id) {
51
+        this.id = id;
52
+    }
53
+
54
+    public Integer getCommunityId() {
55
+        return communityId;
56
+    }
57
+
58
+    public void setCommunityId(Integer communityId) {
59
+        this.communityId = communityId;
60
+    }
61
+
62
+    public Integer getTaUserId() {
63
+        return taUserId;
64
+    }
65
+
66
+    public void setTaUserId(Integer taUserId) {
67
+        this.taUserId = taUserId;
68
+    }
69
+
70
+    public String getTicketTitle() {
71
+        return ticketTitle;
72
+    }
73
+
74
+    public void setTicketTitle(String ticketTitle) {
75
+        this.ticketTitle = ticketTitle == null ? null : ticketTitle.trim();
76
+    }
77
+
78
+    public String getTicketContent() {
79
+        return ticketContent;
80
+    }
81
+
82
+    public void setTicketContent(String ticketContent) {
83
+        this.ticketContent = ticketContent == null ? null : ticketContent.trim();
84
+    }
85
+
86
+    public String getStatus() {
87
+        return status;
88
+    }
89
+
90
+    public void setStatus(String status) {
91
+        this.status = status == null ? null : status.trim();
92
+    }
93
+
94
+    public String getType() {
95
+        return type;
96
+    }
97
+
98
+    public void setType(String type) {
99
+        this.type = type == null ? null : type.trim();
100
+    }
101
+
102
+    public String getRepairType() {
103
+        return repairType;
104
+    }
105
+
106
+    public void setRepairType(String repairType) {
107
+        this.repairType = repairType == null ? null : repairType.trim();
108
+    }
109
+
110
+    public String getTicketMatchImg1() {
111
+        return ticketMatchImg1;
112
+    }
113
+
114
+    public void setTicketMatchImg1(String ticketMatchImg1) {
115
+        this.ticketMatchImg1 = ticketMatchImg1 == null ? null : ticketMatchImg1.trim();
116
+    }
117
+
118
+    public String getTicketMatchImg2() {
119
+        return ticketMatchImg2;
120
+    }
121
+
122
+    public void setTicketMatchImg2(String ticketMatchImg2) {
123
+        this.ticketMatchImg2 = ticketMatchImg2 == null ? null : ticketMatchImg2.trim();
124
+    }
125
+
126
+    public String getTicketMatchImg3() {
127
+        return ticketMatchImg3;
128
+    }
129
+
130
+    public void setTicketMatchImg3(String ticketMatchImg3) {
131
+        this.ticketMatchImg3 = ticketMatchImg3 == null ? null : ticketMatchImg3.trim();
132
+    }
133
+
134
+    public String getTicketMatchImg4() {
135
+        return ticketMatchImg4;
136
+    }
137
+
138
+    public void setTicketMatchImg4(String ticketMatchImg4) {
139
+        this.ticketMatchImg4 = ticketMatchImg4 == null ? null : ticketMatchImg4.trim();
140
+    }
141
+
142
+    public String getTicketMatchImg5() {
143
+        return ticketMatchImg5;
144
+    }
145
+
146
+    public void setTicketMatchImg5(String ticketMatchImg5) {
147
+        this.ticketMatchImg5 = ticketMatchImg5 == null ? null : ticketMatchImg5.trim();
148
+    }
149
+
150
+    public Integer getTpUserId() {
151
+        return tpUserId;
152
+    }
153
+
154
+    public void setTpUserId(Integer tpUserId) {
155
+        this.tpUserId = tpUserId;
156
+    }
157
+
158
+    public String getScore() {
159
+        return score;
160
+    }
161
+
162
+    public void setScore(String score) {
163
+        this.score = score == null ? null : score.trim();
164
+    }
165
+
166
+    public String getComment() {
167
+        return comment;
168
+    }
169
+
170
+    public void setComment(String comment) {
171
+        this.comment = comment == null ? null : comment.trim();
172
+    }
173
+
174
+    public Integer getCreateUser() {
175
+        return createUser;
176
+    }
177
+
178
+    public void setCreateUser(Integer createUser) {
179
+        this.createUser = createUser;
180
+    }
181
+
182
+    public Date getCreateDate() {
183
+        return createDate;
184
+    }
185
+
186
+    public void setCreateDate(Date createDate) {
187
+        this.createDate = createDate;
188
+    }
189
+
190
+    public Integer getUpdateUser() {
191
+        return updateUser;
192
+    }
193
+
194
+    public void setUpdateUser(Integer updateUser) {
195
+        this.updateUser = updateUser;
196
+    }
197
+
198
+    public Date getUpdateDate() {
199
+        return updateDate;
200
+    }
201
+
202
+    public void setUpdateDate(Date updateDate) {
203
+        this.updateDate = updateDate;
204
+    }
205
+}

+ 65
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTicketRecord.java 查看文件

@@ -0,0 +1,65 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpTicketRecord {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer ticketId;
11
+
12
+    private String status;
13
+
14
+    private Integer createUser;
15
+
16
+    private Date createDate;
17
+
18
+    public Integer getId() {
19
+        return id;
20
+    }
21
+
22
+    public void setId(Integer id) {
23
+        this.id = id;
24
+    }
25
+
26
+    public Integer getCommunityId() {
27
+        return communityId;
28
+    }
29
+
30
+    public void setCommunityId(Integer communityId) {
31
+        this.communityId = communityId;
32
+    }
33
+
34
+    public Integer getTicketId() {
35
+        return ticketId;
36
+    }
37
+
38
+    public void setTicketId(Integer ticketId) {
39
+        this.ticketId = ticketId;
40
+    }
41
+
42
+    public String getStatus() {
43
+        return status;
44
+    }
45
+
46
+    public void setStatus(String status) {
47
+        this.status = status == null ? null : status.trim();
48
+    }
49
+
50
+    public Integer getCreateUser() {
51
+        return createUser;
52
+    }
53
+
54
+    public void setCreateUser(Integer createUser) {
55
+        this.createUser = createUser;
56
+    }
57
+
58
+    public Date getCreateDate() {
59
+        return createDate;
60
+    }
61
+
62
+    public void setCreateDate(Date createDate) {
63
+        this.createDate = createDate;
64
+    }
65
+}

+ 105
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTicketRecordComment.java 查看文件

@@ -0,0 +1,105 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpTicketRecordComment {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer tickerId;
11
+
12
+    private Integer ticketRecordId;
13
+
14
+    private Integer uuid;
15
+
16
+    private String userType;
17
+
18
+    private String content;
19
+
20
+    private Integer parentId;
21
+
22
+    private String userName;
23
+
24
+    private Date createDate;
25
+
26
+    public Integer getId() {
27
+        return id;
28
+    }
29
+
30
+    public void setId(Integer id) {
31
+        this.id = id;
32
+    }
33
+
34
+    public Integer getCommunityId() {
35
+        return communityId;
36
+    }
37
+
38
+    public void setCommunityId(Integer communityId) {
39
+        this.communityId = communityId;
40
+    }
41
+
42
+    public Integer getTickerId() {
43
+        return tickerId;
44
+    }
45
+
46
+    public void setTickerId(Integer tickerId) {
47
+        this.tickerId = tickerId;
48
+    }
49
+
50
+    public Integer getTicketRecordId() {
51
+        return ticketRecordId;
52
+    }
53
+
54
+    public void setTicketRecordId(Integer ticketRecordId) {
55
+        this.ticketRecordId = ticketRecordId;
56
+    }
57
+
58
+    public Integer getUuid() {
59
+        return uuid;
60
+    }
61
+
62
+    public void setUuid(Integer uuid) {
63
+        this.uuid = uuid;
64
+    }
65
+
66
+    public String getUserType() {
67
+        return userType;
68
+    }
69
+
70
+    public void setUserType(String userType) {
71
+        this.userType = userType == null ? null : userType.trim();
72
+    }
73
+
74
+    public String getContent() {
75
+        return content;
76
+    }
77
+
78
+    public void setContent(String content) {
79
+        this.content = content == null ? null : content.trim();
80
+    }
81
+
82
+    public Integer getParentId() {
83
+        return parentId;
84
+    }
85
+
86
+    public void setParentId(Integer parentId) {
87
+        this.parentId = parentId;
88
+    }
89
+
90
+    public String getUserName() {
91
+        return userName;
92
+    }
93
+
94
+    public void setUserName(String userName) {
95
+        this.userName = userName == null ? null : userName.trim();
96
+    }
97
+
98
+    public Date getCreateDate() {
99
+        return createDate;
100
+    }
101
+
102
+    public void setCreateDate(Date createDate) {
103
+        this.createDate = createDate;
104
+    }
105
+}

+ 175
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransaction.java 查看文件

@@ -0,0 +1,175 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpTransaction {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer taUserId;
11
+
12
+    private String transactionTitle;
13
+
14
+    private String transactionContent;
15
+
16
+    private String transactionMatchImg1;
17
+
18
+    private String activityMatchImg3;
19
+
20
+    private String activityMatchImg4;
21
+
22
+    private String activityMatchImg5;
23
+
24
+    private String activityMatchImg6;
25
+
26
+    private Integer viewCount;
27
+
28
+    private String status;
29
+
30
+    private String type;
31
+
32
+    private Integer createUser;
33
+
34
+    private Date createDate;
35
+
36
+    private Integer updateUser;
37
+
38
+    private Date updateDate;
39
+
40
+    public Integer getId() {
41
+        return id;
42
+    }
43
+
44
+    public void setId(Integer id) {
45
+        this.id = id;
46
+    }
47
+
48
+    public Integer getCommunityId() {
49
+        return communityId;
50
+    }
51
+
52
+    public void setCommunityId(Integer communityId) {
53
+        this.communityId = communityId;
54
+    }
55
+
56
+    public Integer getTaUserId() {
57
+        return taUserId;
58
+    }
59
+
60
+    public void setTaUserId(Integer taUserId) {
61
+        this.taUserId = taUserId;
62
+    }
63
+
64
+    public String getTransactionTitle() {
65
+        return transactionTitle;
66
+    }
67
+
68
+    public void setTransactionTitle(String transactionTitle) {
69
+        this.transactionTitle = transactionTitle == null ? null : transactionTitle.trim();
70
+    }
71
+
72
+    public String getTransactionContent() {
73
+        return transactionContent;
74
+    }
75
+
76
+    public void setTransactionContent(String transactionContent) {
77
+        this.transactionContent = transactionContent == null ? null : transactionContent.trim();
78
+    }
79
+
80
+    public String getTransactionMatchImg1() {
81
+        return transactionMatchImg1;
82
+    }
83
+
84
+    public void setTransactionMatchImg1(String transactionMatchImg1) {
85
+        this.transactionMatchImg1 = transactionMatchImg1 == null ? null : transactionMatchImg1.trim();
86
+    }
87
+
88
+    public String getActivityMatchImg3() {
89
+        return activityMatchImg3;
90
+    }
91
+
92
+    public void setActivityMatchImg3(String activityMatchImg3) {
93
+        this.activityMatchImg3 = activityMatchImg3 == null ? null : activityMatchImg3.trim();
94
+    }
95
+
96
+    public String getActivityMatchImg4() {
97
+        return activityMatchImg4;
98
+    }
99
+
100
+    public void setActivityMatchImg4(String activityMatchImg4) {
101
+        this.activityMatchImg4 = activityMatchImg4 == null ? null : activityMatchImg4.trim();
102
+    }
103
+
104
+    public String getActivityMatchImg5() {
105
+        return activityMatchImg5;
106
+    }
107
+
108
+    public void setActivityMatchImg5(String activityMatchImg5) {
109
+        this.activityMatchImg5 = activityMatchImg5 == null ? null : activityMatchImg5.trim();
110
+    }
111
+
112
+    public String getActivityMatchImg6() {
113
+        return activityMatchImg6;
114
+    }
115
+
116
+    public void setActivityMatchImg6(String activityMatchImg6) {
117
+        this.activityMatchImg6 = activityMatchImg6 == null ? null : activityMatchImg6.trim();
118
+    }
119
+
120
+    public Integer getViewCount() {
121
+        return viewCount;
122
+    }
123
+
124
+    public void setViewCount(Integer viewCount) {
125
+        this.viewCount = viewCount;
126
+    }
127
+
128
+    public String getStatus() {
129
+        return status;
130
+    }
131
+
132
+    public void setStatus(String status) {
133
+        this.status = status == null ? null : status.trim();
134
+    }
135
+
136
+    public String getType() {
137
+        return type;
138
+    }
139
+
140
+    public void setType(String type) {
141
+        this.type = type == null ? null : type.trim();
142
+    }
143
+
144
+    public Integer getCreateUser() {
145
+        return createUser;
146
+    }
147
+
148
+    public void setCreateUser(Integer createUser) {
149
+        this.createUser = createUser;
150
+    }
151
+
152
+    public Date getCreateDate() {
153
+        return createDate;
154
+    }
155
+
156
+    public void setCreateDate(Date createDate) {
157
+        this.createDate = createDate;
158
+    }
159
+
160
+    public Integer getUpdateUser() {
161
+        return updateUser;
162
+    }
163
+
164
+    public void setUpdateUser(Integer updateUser) {
165
+        this.updateUser = updateUser;
166
+    }
167
+
168
+    public Date getUpdateDate() {
169
+        return updateDate;
170
+    }
171
+
172
+    public void setUpdateDate(Date updateDate) {
173
+        this.updateDate = updateDate;
174
+    }
175
+}

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/BannerServiceI.java 查看文件

@@ -11,6 +11,6 @@ import java.util.List;
11 11
  */
12 12
 public interface BannerServiceI {
13 13
 
14
-    List<ToBanner> viewBannerImg();
14
+    ToBanner viewBannerImg(Integer bannerId);
15 15
 
16 16
 }

+ 10
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/ITaUserService.java 查看文件

@@ -2,6 +2,7 @@ package com.community.huiju.service;
2 2
 
3 3
 import com.community.commom.mode.ResponseBean;
4 4
 import com.community.huiju.model.TaUser;
5
+import org.springframework.web.bind.annotation.RequestParam;
5 6
 
6 7
 /**
7 8
  * 用户业务 接口
@@ -16,6 +17,15 @@ public interface ITaUserService {
16 17
      */
17 18
     ResponseBean login(TaUser user);
18 19
 
20
+    /**
21
+     * 用户登录
22
+     * @param loginName
23
+     * @param communityId 小区id
24
+     * @param code 验证码
25
+     * @return 用户对象
26
+     */
27
+    ResponseBean login(String loginName,String communityId,String code);
28
+
19 29
     /**
20 30
      * 注册用户
21 31
      * @param user

+ 25
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/ITicketService.java 查看文件

@@ -0,0 +1,25 @@
1
+package com.community.huiju.service;
2
+
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.huiju.model.TpTicket;
5
+import com.community.huiju.vo.TpTicketVO;
6
+
7
+import java.util.List;
8
+
9
+/**
10
+ * 工单业务
11
+ * @author weiximei
12
+ */
13
+public interface ITicketService {
14
+
15
+    /**
16
+     * 根据 小区ID 用户ID 类型 查询数据
17
+     * @param tpTicket
18
+     * @param pageCode
19
+     * @param pageSize
20
+     * @return
21
+     */
22
+    ResponseBean getList(TpTicket tpTicket,Integer pageCode, Integer pageSize);
23
+
24
+
25
+}

+ 19
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/MessageServiceI.java 查看文件

@@ -1,7 +1,25 @@
1 1
 package com.community.huiju.service;
2 2
 
3
+import com.community.huiju.model.TpMessage;
4
+
5
+import java.util.List;
3 6
 import java.util.Map;
4 7
 
5 8
 public interface MessageServiceI {
6
-	Map<String, Object> getMessageTotal();
9
+	/**
10
+	 * 获取消息数量
11
+	 * @param communityId
12
+	 * @return
13
+	 */
14
+	Map<String, Object> getMessageTotal(Integer communityId);
15
+	
16
+	/**
17
+	 * 分页获取消息或待办
18
+	 * @param communityId
19
+	 * @param pageNum
20
+	 * @param pageSize
21
+	 * @param modelType
22
+	 * @return
23
+	 */
24
+	List<TpMessage> getMessages(Integer communityId, Integer pageNum, Integer pageSize,Integer modelType);
7 25
 }

+ 44
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java 查看文件

@@ -0,0 +1,44 @@
1
+package com.community.huiju.service;
2
+
3
+import com.community.huiju.model.TpActivity;
4
+import com.community.huiju.model.TpAnnouncement;
5
+import com.community.huiju.model.TpSocialView;
6
+
7
+import java.util.List;
8
+
9
+/**
10
+ * @author weichaochao
11
+ * @Title: SocialServiceI
12
+ * @date 2018/10/23
13
+ */
14
+public interface SocialServiceI {
15
+    TpAnnouncement findAnnouncementDetail(Integer id, Integer communityId);
16
+
17
+	/**
18
+	 * 分页获取公告列表
19
+	 * @param communityId
20
+	 * @param title
21
+	 * @param pageNum
22
+	 * @param pageSize
23
+	 * @return
24
+	 */
25
+	List<TpAnnouncement> getAnnouncements(Integer communityId, String title, Integer pageNum, Integer pageSize);
26
+
27
+	/**
28
+	 * 公告轮播图
29
+	 * @param communityId
30
+	 * @param sum
31
+	 * @return
32
+	 */
33
+	List<TpAnnouncement> getAnnouncement(Integer communityId, Integer sum);
34
+	
35
+	/**
36
+	 * 分页获取活动列表
37
+	 * @param communityId
38
+	 * @param title
39
+	 * @param pageNum
40
+	 * @param pageSize
41
+	 * @return
42
+	 */
43
+	List<TpActivity> getActivitys(Integer communityId, String title, Integer pageNum, Integer pageSize);
44
+}

+ 10
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/TpActivityServiceI.java 查看文件

@@ -0,0 +1,10 @@
1
+package com.community.huiju.service;
2
+
3
+/**
4
+ * @author weichaochao
5
+ * @Title: TpActivityServiceI
6
+ * @date 2018/10/23
7
+ */
8
+public interface TpActivityServiceI {
9
+
10
+}

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BannerServiceImpl.java 查看文件

@@ -21,8 +21,8 @@ public class BannerServiceImpl implements BannerServiceI {
21 21
     private ToBannerMapper toBannerMapper;
22 22
 
23 23
     @Override
24
-    public List<ToBanner> viewBannerImg() {
24
+    public ToBanner viewBannerImg(Integer bannerId) {
25 25
         String nowTime = DateUtils.getDate("yyyy-MM-dd");
26
-        return toBannerMapper.selectByCommunityId(nowTime);
26
+        return toBannerMapper.selectByCommunityId(bannerId, nowTime);
27 27
     }
28 28
 }

+ 32
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MessageServiceImpl.java 查看文件

@@ -1,10 +1,13 @@
1 1
 package com.community.huiju.service.impl;
2 2
 
3 3
 import com.community.huiju.dao.TpMessageMapper;
4
+import com.community.huiju.model.TpMessage;
4 5
 import com.community.huiju.service.MessageServiceI;
6
+import com.github.pagehelper.PageHelper;
5 7
 import org.springframework.beans.factory.annotation.Autowired;
6 8
 import org.springframework.stereotype.Service;
7 9
 
10
+import java.util.List;
8 11
 import java.util.Map;
9 12
 
10 13
 /**
@@ -17,9 +20,36 @@ public class MessageServiceImpl implements MessageServiceI {
17 20
 	@Autowired
18 21
 	private TpMessageMapper tpMessageMapper;
19 22
 	
23
+	/**
24
+	 * 获取消息数量
25
+	 * @param communityId
26
+	 * @return
27
+	 */
20 28
 	@Override
21
-	public Map<String, Object> getMessageTotal() {
29
+	public Map<String, Object> getMessageTotal(Integer communityId) {
30
+		//todo
22 31
 		Integer userId = 1;
23
-		return tpMessageMapper.getMessageTotal(userId);
32
+		return tpMessageMapper.getMessageTotal(userId,communityId);
33
+	}
34
+	
35
+	/**
36
+	 * 分页获取消息或待办
37
+	 * @param communityId
38
+	 * @param pageNum
39
+	 * @param pageSize
40
+	 * @param modelType
41
+	 * @return
42
+	 */
43
+	@Override
44
+	public List<TpMessage> getMessages(Integer communityId, Integer pageNum, Integer pageSize,Integer modelType) {
45
+		//todo
46
+		Integer userId = 1;
47
+		pageNum = null == pageNum ? 1 : pageNum;
48
+		pageSize = null == pageSize ? 10 : pageSize;
49
+		//使用分页插件
50
+		PageHelper.startPage(pageNum, pageSize);
51
+		// 获取数据
52
+		List<TpMessage> messageList = tpMessageMapper.getMessages(userId,communityId, modelType);
53
+		return messageList;
24 54
 	}
25 55
 }

+ 111
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java 查看文件

@@ -0,0 +1,111 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.community.commom.constant.Constant;
4
+import com.community.huiju.dao.TpAnnouncementMapper;
5
+import com.community.huiju.dao.TpSocialViewMapper;
6
+import com.community.huiju.model.TpAnnouncement;
7
+import com.community.huiju.model.TpSocialView;
8
+import com.community.huiju.service.SocialServiceI;
9
+import com.community.huiju.dao.TpActivityMapper;
10
+import com.community.huiju.dao.TpAnnouncementMapper;
11
+import com.community.huiju.model.TpActivity;
12
+import com.community.huiju.model.TpAnnouncement;
13
+import com.community.huiju.model.TpMessage;
14
+import com.community.huiju.service.SocialServiceI;
15
+import com.github.pagehelper.PageHelper;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.stereotype.Service;
18
+import org.springframework.transaction.annotation.Transactional;
19
+
20
+import java.util.Date;
21
+
22
+import java.util.List;
23
+
24
+/**
25
+ * @author weichaochao
26
+ * @Title: SocialServiceImpl
27
+ * @date 2018/10/23
28
+ */
29
+@Service("SocialService")
30
+public class SocialServiceImpl implements SocialServiceI {
31
+
32
+    @Autowired
33
+    private TpAnnouncementMapper tpAnnouncementMapper;
34
+
35
+    @Autowired
36
+    private TpSocialViewMapper tpSocialViewMapper;
37
+
38
+    @Autowired
39
+    private TpActivityMapper tpActivityMapper;
40
+    
41
+    @Override
42
+    @Transactional
43
+    public TpAnnouncement findAnnouncementDetail(Integer id, Integer communityId) {
44
+        TpSocialView tpSocialView = new TpSocialView();
45
+        //TODO
46
+        tpSocialView.setTaUserId(1);
47
+        tpSocialView.setSocialType(Constant.ANNOUNCEMENT);
48
+        tpSocialView.setCommunityId(communityId);
49
+        tpSocialView.setUuid(id);
50
+        Integer viewNum = tpSocialViewMapper.selectViewNum(tpSocialView);
51
+
52
+        if (viewNum == 0){
53
+            tpSocialView.setCreateDate(new Date());
54
+            tpSocialViewMapper.insertSelective(tpSocialView);
55
+            tpSocialView.setTaUserId(null);
56
+            Integer allViewNum = tpSocialViewMapper.selectViewNum(tpSocialView);
57
+            tpAnnouncementMapper.updateByPrimaryKeySelective(id, allViewNum);
58
+        }
59
+        return tpAnnouncementMapper.selectByPrimaryKey(id, communityId);
60
+    }
61
+
62
+    /**
63
+     * 分页获取公告列表
64
+     * @param communityId
65
+     * @param title
66
+     * @param pageNum
67
+     * @param pageSize
68
+     * @return
69
+     */
70
+    @Override
71
+    public List<TpAnnouncement> getAnnouncements(Integer communityId,String title, Integer pageNum, Integer pageSize) {
72
+        pageNum = null == pageNum ? 1 : pageNum;
73
+        pageSize = null == pageSize ? 10 : pageSize;
74
+        //使用分页插件
75
+        PageHelper.startPage(pageNum, pageSize);
76
+        // 获取数据
77
+        List<TpAnnouncement> announcementList = tpAnnouncementMapper.getAnnouncements(communityId,title);
78
+        return announcementList;
79
+    }
80
+    /**
81
+     * 根据当前小区ID查出轮播图
82
+     * @param communityId 当前小区ID
83
+     * @param sum 当前查询总数
84
+     * @return
85
+     */
86
+    @Override
87
+    public List<TpAnnouncement> getAnnouncement(Integer communityId, Integer sum) {
88
+        List<TpAnnouncement> listAnnouncement=tpAnnouncementMapper.getAnnouncement(communityId ,sum);
89
+        return listAnnouncement;
90
+    }
91
+
92
+    
93
+    /**
94
+     * 分页获取活动列表
95
+     * @param communityId
96
+     * @param title
97
+     * @param pageNum
98
+     * @param pageSize
99
+     * @return
100
+     */
101
+    @Override
102
+    public List<TpActivity> getActivitys(Integer communityId, String title, Integer pageNum, Integer pageSize) {
103
+        pageNum = null == pageNum ? 1 : pageNum;
104
+        pageSize = null == pageSize ? 10 : pageSize;
105
+        //使用分页插件
106
+        PageHelper.startPage(pageNum, pageSize);
107
+        // 获取数据
108
+        List<TpActivity> activityList = tpActivityMapper.getActivitys(communityId,title);
109
+        return activityList;
110
+    }
111
+}

+ 68
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java 查看文件

@@ -3,11 +3,15 @@ package com.community.huiju.service.impl;
3 3
 import com.community.commom.mode.ResponseBean;
4 4
 import com.community.commom.utils.AccountValidatorUtil;
5 5
 import com.community.commom.utils.MD5Utils;
6
+import com.community.huiju.common.code.cache.AppkeyCache;
6 7
 import com.community.huiju.dao.TaUserMapper;
7 8
 import com.community.huiju.model.TaUser;
8 9
 import com.community.huiju.service.ITaUserService;
10
+import com.community.huiju.vo.TaUserVO;
9 11
 import com.google.common.collect.Maps;
10 12
 import lombok.extern.slf4j.Slf4j;
13
+import org.apache.commons.lang.StringUtils;
14
+import org.springframework.beans.BeanUtils;
11 15
 import org.springframework.beans.factory.annotation.Autowired;
12 16
 import org.springframework.stereotype.Service;
13 17
 import org.springframework.transaction.annotation.Transactional;
@@ -19,7 +23,7 @@ import java.util.Map;
19 23
  * 用户业务 实现
20 24
  * @author weiximei
21 25
  */
22
-@Service("iToUserService")
26
+@Service("iTaUserService")
23 27
 @Slf4j
24 28
 public class TaUserServiceImpl implements ITaUserService {
25 29
 
@@ -56,10 +60,66 @@ public class TaUserServiceImpl implements ITaUserService {
56 60
         return response;
57 61
     }
58 62
 
63
+    @Override
64
+    public ResponseBean login(String loginName,String communityId,String code) {
65
+        ResponseBean response = new ResponseBean();
66
+        String phoneCode = (String) AppkeyCache.getCache(loginName);
67
+        if (!phoneCode.equals(code)) {
68
+            response.addError("验证码错误!");
69
+            return response;
70
+        }
71
+        // 设置验证码为null字符
72
+        AppkeyCache.setCache(loginName,"null");
73
+        log.info("{} 手机号校验结果: {}",loginName,AccountValidatorUtil.isPhone(loginName));
74
+        if (!AccountValidatorUtil.isPhone(loginName)){
75
+            response.addError("请输入正取的手机号!");
76
+            return response;
77
+        }
78
+        if (StringUtils.isBlank(communityId)) {
79
+            response.addError("请选择小区!");
80
+            return response;
81
+        }
82
+        if (StringUtils.isBlank(code)) {
83
+            response.addError("请输入验证码!");
84
+            return response;
85
+        }
86
+
87
+        Map<String,Object> map = Maps.newHashMap();
88
+        map.put("loginName",loginName);
89
+        TaUser currentUser = taUserMapper.selectByLoginName(map);
90
+        if (null != currentUser){
91
+            if (!communityId.equals(currentUser.getCommunityId()+"")) {
92
+                response.addError("用户不在此小区!");
93
+                return response;
94
+            }
95
+            TaUserVO taUserVO = new TaUserVO();
96
+            BeanUtils.copyProperties(currentUser,taUserVO);
97
+            response.addSuccess(taUserVO);
98
+            return response;
99
+        }else {
100
+            TaUser user = new TaUser();
101
+            user.setLoginName(loginName);
102
+            ResponseBean result = register(user);
103
+            response.addSuccess(result.getData());
104
+        }
105
+        return response;
106
+    }
107
+
59 108
     @Transactional
60 109
     @Override
61 110
     public ResponseBean register(TaUser user) {
62
-        ResponseBean<TaUser> response = new ResponseBean();
111
+
112
+        // TODO 注册逻辑需要完善
113
+        /**
114
+         * 1.自动生成账号的基本信息
115
+         * 2.匹配资料库 已认证 未认证
116
+         * 2.角色类型
117
+         *
118
+         * 具体看原型图
119
+         *
120
+         */
121
+
122
+        ResponseBean<TaUserVO> response = new ResponseBean();
63 123
         // 开始注册
64 124
         user.setCreateDate(new Date());
65 125
         user.setUpdateDate(new Date());
@@ -67,10 +127,14 @@ public class TaUserServiceImpl implements ITaUserService {
67 127
         user.setAcceptAgreementStatus("1");
68 128
         user.setUserName(user.getLoginName());
69 129
         user.setRemark("这是系统自动注册!");
70
-        user.setLoginPassword(MD5Utils.encode(user.getLoginPassword()));
130
+        user.setCommunityId(3);
131
+        user.setVerifyStatus("1");
132
+        //user.setLoginPassword(MD5Utils.encode(user.getLoginPassword()));
71 133
         taUserMapper.insertSelective(user);
72 134
 
73
-        response.addSuccess(user);
135
+        TaUserVO taUserVO = new TaUserVO();
136
+        BeanUtils.copyProperties(user,taUserVO);
137
+        response.addSuccess(taUserVO);
74 138
         return response;
75 139
     }
76 140
 }

+ 164
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TicketServiceImpl.java 查看文件

@@ -0,0 +1,164 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.huiju.dao.TpTicketMapper;
5
+import com.community.huiju.dao.TpTicketRecordCommentMapper;
6
+import com.community.huiju.model.TpTicket;
7
+import com.community.huiju.model.TpTicketRecordComment;
8
+import com.community.huiju.service.ITicketService;
9
+import com.community.huiju.vo.TpTicketVO;
10
+import com.github.pagehelper.PageHelper;
11
+import com.google.common.collect.Lists;
12
+import com.google.common.collect.Maps;
13
+import lombok.extern.slf4j.Slf4j;
14
+import org.apache.commons.collections.ListUtils;
15
+import org.apache.commons.lang.ObjectUtils;
16
+import org.springframework.beans.BeanUtils;
17
+import org.springframework.beans.factory.annotation.Autowired;
18
+import org.springframework.stereotype.Service;
19
+import sun.security.krb5.internal.Ticket;
20
+
21
+import java.util.List;
22
+import java.util.Map;
23
+
24
+/**
25
+ * 工单业务 实现
26
+ * @author weiximei
27
+ */
28
+@Service("iTicketService")
29
+@Slf4j
30
+public class TicketServiceImpl implements ITicketService {
31
+
32
+    @Autowired
33
+    private TpTicketMapper tpTicketMapper;
34
+
35
+    @Autowired
36
+    private TpTicketRecordCommentMapper tpTicketRecordCommentMapper;
37
+
38
+    @Override
39
+    public ResponseBean getList(TpTicket tpTicket,Integer pageCode, Integer pageSize) {
40
+
41
+        ResponseBean<Map<String,Object>> responseBean = new ResponseBean();
42
+        // 最终返回值
43
+        Map<String,Object> result = Maps.newHashMap();
44
+
45
+        // 查询参数
46
+        Map<String,Object> lastRecordMap = Maps.newHashMap();
47
+        lastRecordMap.put("size",1);
48
+
49
+
50
+        Map<String,Object> parameter = Maps.newHashMap();
51
+        parameter.put("communityId",tpTicket.getCommunityId());
52
+        parameter.put("taUserId",tpTicket.getTaUserId());
53
+        //  0 代表 报修  1 代表 投诉  2代表 联系单
54
+        parameter.put("type",0);
55
+
56
+
57
+        // 报修
58
+        PageHelper.startPage(pageCode,pageSize);
59
+        List<TpTicket> tpTicketRepairsList = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(parameter);
60
+
61
+        List<TpTicketVO> repairsList = Lists.newArrayList();
62
+        tpTicketRepairsList.stream().forEach(e->{
63
+            TpTicketVO tpTicketVO = new TpTicketVO();
64
+            BeanUtils.copyProperties(e,tpTicketVO);
65
+            // 设置工单编号
66
+            lastRecordMap.put("tickerId",e.getId());
67
+            TpTicketRecordComment comment = getTicketRecordComment(lastRecordMap);
68
+            if (null != comment) {
69
+                tpTicketVO.setCommentContent(comment.getContent());
70
+                tpTicketVO.setCommentCreateDate(comment.getCreateDate());
71
+            }
72
+
73
+
74
+            repairsList.add(tpTicketVO);
75
+        });
76
+
77
+        // 投诉
78
+        //  0 代表 报修  1 代表 投诉  2代表 联系单
79
+        parameter.put("type",1);
80
+        PageHelper.startPage(pageCode,pageSize);
81
+        List<TpTicket> tpTicketComplaintList = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(parameter);
82
+
83
+        List<TpTicketVO> complaintList = Lists.newArrayList();
84
+        tpTicketComplaintList.stream().forEach(e->{
85
+            TpTicketVO tpTicketVO = new TpTicketVO();
86
+            BeanUtils.copyProperties(e,tpTicketVO);
87
+            // 设置工单编号
88
+            lastRecordMap.put("tickerId",e.getId());
89
+            TpTicketRecordComment comment = getTicketRecordComment(lastRecordMap);
90
+            if (null != comment) {
91
+                tpTicketVO.setCommentContent(comment.getContent());
92
+                tpTicketVO.setCommentCreateDate(comment.getCreateDate());
93
+            }
94
+
95
+            complaintList.add(tpTicketVO);
96
+        });
97
+
98
+        // 联系工单
99
+        //  0 代表 报修  1 代表 投诉  2代表 联系单
100
+        parameter.put("type",2);
101
+        PageHelper.startPage(pageCode,pageSize);
102
+        List<TpTicket> tpTicketLiaisonList = tpTicketMapper.selectByCommuniytIdAndByTaUserIdAndByType(parameter);
103
+
104
+        List<TpTicketVO> liaisonList = Lists.newArrayList();
105
+        tpTicketLiaisonList.stream().forEach(e->{
106
+            TpTicketVO tpTicketVO = new TpTicketVO();
107
+            BeanUtils.copyProperties(e,tpTicketVO);
108
+            // 设置工单编号
109
+            lastRecordMap.put("tickerId",e.getId());
110
+            TpTicketRecordComment comment = getTicketRecordComment(lastRecordMap);
111
+            if (null != comment) {
112
+                tpTicketVO.setCommentContent(comment.getContent());
113
+                tpTicketVO.setCommentCreateDate(comment.getCreateDate());
114
+            }
115
+
116
+            liaisonList.add(tpTicketVO);
117
+        });
118
+
119
+        result.put("repairs",repairsList);
120
+        result.put("complaint",complaintList);
121
+        result.put("liaison",liaisonList);
122
+
123
+        responseBean.addSuccess(result);
124
+        return responseBean;
125
+    }
126
+
127
+    /**
128
+     * 公共方法, 获取一条数据
129
+     * @param map
130
+     * @return
131
+     */
132
+    private TpTicketRecordComment getTicketRecordComment(Map map){
133
+        List<TpTicketRecordComment> list = tpTicketRecordCommentMapper.selectByTicketId(map);
134
+        return null==list
135
+                ?null:list.size()==0
136
+                ?null:list.get(0);
137
+    }
138
+
139
+//    public <T> List<T> setTicketData(T t, List<Ticket> source, Map map){
140
+//        List<T> list = Lists.newArrayList();
141
+//
142
+//        // 查询参数
143
+//        Map<String,Object> lastRecordMap = Maps.newHashMap();
144
+//        lastRecordMap.put("size",1);
145
+//
146
+//        source.stream().forEach(e->{
147
+//            TpTicketVO tpTicketVO = new TpTicketVO();
148
+//            BeanUtils.copyProperties(e,tpTicketVO);
149
+//            // 设置工单编号
150
+//            lastRecordMap.put("tickerId",e.getId());
151
+//            TpTicketRecordComment comment = getTicketRecordComment(lastRecordMap);
152
+//            if (null != comment) {
153
+//                tpTicketVO.setCommentContent(comment.getContent());
154
+//                tpTicketVO.setCommentCreateDate(comment.getCreateDate());
155
+//            }
156
+//
157
+//            liaisonList.add(tpTicketVO);
158
+//        });
159
+
160
+
161
+        //return list;
162
+    //}
163
+
164
+}

+ 15
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpActivityServiceImpl.java 查看文件

@@ -0,0 +1,15 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.community.huiju.service.TpActivityServiceI;
4
+import org.springframework.stereotype.Service;
5
+
6
+/**
7
+ * @author admin
8
+ * @Title: TpActivityServiceImpl
9
+ * @Description: TODO
10
+ * @date 2018/10/23
11
+ */
12
+@Service("TpActivityService")
13
+public class TpActivityServiceImpl implements TpActivityServiceI {
14
+
15
+}

+ 45
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TaUserVO.java 查看文件

@@ -0,0 +1,45 @@
1
+package com.community.huiju.vo;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+
7
+/**
8
+ * @author weiximei
9
+ */
10
+@Data
11
+@AllArgsConstructor
12
+@NoArgsConstructor
13
+public class TaUserVO {
14
+
15
+    /** 编号 **/
16
+    private Integer id;
17
+
18
+    /** 小区编号 **/
19
+    private Integer communityId;
20
+
21
+    /** 头像 **/
22
+    private String headPortrait;
23
+
24
+    /** 用户名 **/
25
+    private String userName;
26
+
27
+    /** 登录名 **/
28
+    private String loginName;
29
+
30
+    /** 邮箱 **/
31
+    private String email;
32
+
33
+    /** 性别 **/
34
+    private String gender;
35
+
36
+    /** 认证状态 **/
37
+    private String verifyStatus;
38
+
39
+    /** 用户状态 **/
40
+    private String status;
41
+
42
+    /** 用户token **/
43
+    private String token;
44
+
45
+}

+ 44
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TpTicketInfoVO.java 查看文件

@@ -0,0 +1,44 @@
1
+package com.community.huiju.vo;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+
7
+import java.util.Date;
8
+
9
+/**
10
+ * @author weiximei
11
+ */
12
+@Data
13
+@AllArgsConstructor
14
+@NoArgsConstructor
15
+public class TpTicketInfoVO extends TpTicketVO {
16
+
17
+
18
+    /** 工单内容 **/
19
+    private String ticketContent;
20
+
21
+    /** 流转状态 **/
22
+    private String status;
23
+
24
+    /** 报修类型 0:公共区域  1: 房屋质量  2::户内设施   **/
25
+    private String repairType;
26
+
27
+    private String ticketMatchImg1;
28
+
29
+    private String ticketMatchImg2;
30
+
31
+    private String ticketMatchImg3;
32
+
33
+    private String ticketMatchImg4;
34
+
35
+    private String ticketMatchImg5;
36
+
37
+    /** 评分 **/
38
+    private String score;
39
+
40
+    /** 评语 **/
41
+    private String comment;
42
+
43
+
44
+}

+ 48
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/vo/TpTicketVO.java 查看文件

@@ -0,0 +1,48 @@
1
+package com.community.huiju.vo;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+
7
+import java.util.Date;
8
+
9
+/**
10
+ * @author weiximei
11
+ */
12
+@Data
13
+@AllArgsConstructor
14
+@NoArgsConstructor
15
+public class TpTicketVO {
16
+
17
+    /** 编号 **/
18
+    private Integer id;
19
+
20
+    /** 小区编号 **/
21
+    private Integer communityId;
22
+
23
+    /** 用户appd的id **/
24
+    private Integer taUserId;
25
+
26
+    /** ================================ **/
27
+
28
+    /** 工单标题 **/
29
+    private String ticketTitle;
30
+
31
+    /** 类型 报修/投诉/联系单 **/
32
+    private String type;
33
+
34
+    /** 受理人的id **/
35
+    private Integer tpUserId;
36
+
37
+    private Date createDate;
38
+
39
+    private Date updateDate;
40
+
41
+    /** ====================================== **/
42
+
43
+    /** 最新进展 **/
44
+    private String commentContent;
45
+
46
+    /** 最新进展的时间 **/
47
+    private Date commentCreateDate;
48
+}

+ 11
- 1
CODE/smart-community/app-api/src/main/resources/application.yml 查看文件

@@ -6,4 +6,14 @@ management:
6 6
 ## Mybatis
7 7
 mybatis:
8 8
   typeAliasesPackage: com.community.huiju.model
9
-  mapperLocations: classpath:mapper/*.xml
9
+  mapperLocations: classpath:mapper/*.xml
10
+# 分页配置
11
+pagehelper:
12
+  helper-dialect: mysql
13
+  reasonable: true
14
+  support-methods-arguments: true
15
+  params: count=countSql
16
+# 打印sql
17
+logging:
18
+  level:
19
+    com.community.huiju.dao: debug

+ 12
- 0
CODE/smart-community/app-api/src/main/resources/log4j.properties 查看文件

@@ -17,3 +17,15 @@ log4j.logger.org.springframework.transaction.support.TransactionSynchronizationM
17 17
 log4j.logger.java.sql.Connection=DEBUG
18 18
 log4j.logger.java.sql.Statement=DEBUG
19 19
 log4j.logger.java.sql.PreparedStatement=DEBUG
20
+
21
+###############Log4j 4 SQL Output start################# #DEBUG
22
+log4j.logger.com.**.dao=INFO
23
+log4j.logger.com.springframework=DEBUG
24
+log4j.logger.com.ibatis=DEBUG  
25
+log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG  
26
+log4j.logger.com.ibatis.common.jdbc.ScriptRunner=DEBUG  
27
+log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=DEBUG
28
+log4j.logger.java.sql.ResultSet=DEBUG
29
+log4j.logger.org.apache.ibatis.logging.commons.JakartaCommonsLoggingImpl=DEBUG
30
+log4j.logger.java.sql=DEBUG,CONSOLE 
31
+###############Log4j 4 SQL Output end###################

+ 14
- 3
CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml 查看文件

@@ -15,6 +15,7 @@
15 15
     <result column="remark" property="remark" jdbcType="VARCHAR" />
16 16
     <result column="parent_id" property="parentId" jdbcType="INTEGER" />
17 17
     <result column="accept_agreement_status" property="acceptAgreementStatus" jdbcType="CHAR" />
18
+    <result column="verify_status" property="verifyStatus" jdbcType="CHAR" />
18 19
     <result column="create_user" property="createUser" jdbcType="INTEGER" />
19 20
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
20 21
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
@@ -22,7 +23,7 @@
22 23
   </resultMap>
23 24
   <sql id="Base_Column_List" >
24 25
     id, community_id, building_owner_info_id, head_portrait, user_name, login_name, login_password, 
25
-    email, gender, status, remark, parent_id, accept_agreement_status, create_user, create_date, 
26
+    email, gender, status, remark, parent_id, accept_agreement_status, verify_status,create_user, create_date,
26 27
     update_user, update_date
27 28
   </sql>
28 29
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
@@ -40,13 +41,13 @@
40 41
       head_portrait, user_name, login_name, 
41 42
       login_password, email, gender, 
42 43
       status, remark, parent_id, 
43
-      accept_agreement_status, create_user, create_date, 
44
+      accept_agreement_status, verify_status, create_user, create_date,
44 45
       update_user, update_date)
45 46
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{buildingOwnerInfoId,jdbcType=INTEGER}, 
46 47
       #{headPortrait,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{loginName,jdbcType=VARCHAR}, 
47 48
       #{loginPassword,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{gender,jdbcType=CHAR}, 
48 49
       #{status,jdbcType=CHAR}, #{remark,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, 
49
-      #{acceptAgreementStatus,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
50
+      #{acceptAgreementStatus,jdbcType=CHAR}, #{verifyStatus,jdbcType=CHAR},#{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP},
50 51
       #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
51 52
   </insert>
52 53
   <insert id="insertSelective" parameterType="com.community.huiju.model.TaUser" >
@@ -91,6 +92,9 @@
91 92
       <if test="acceptAgreementStatus != null" >
92 93
         accept_agreement_status,
93 94
       </if>
95
+      <if test="verifyStatus != null">
96
+        verify_status,
97
+      </if>
94 98
       <if test="createUser != null" >
95 99
         create_user,
96 100
       </if>
@@ -144,6 +148,9 @@
144 148
       <if test="acceptAgreementStatus != null" >
145 149
         #{acceptAgreementStatus,jdbcType=CHAR},
146 150
       </if>
151
+      <if test="verifyStatus != null">
152
+        #{verifyStatus,jdbcType=CHAR},
153
+      </if>
147 154
       <if test="createUser != null" >
148 155
         #{createUser,jdbcType=INTEGER},
149 156
       </if>
@@ -197,6 +204,9 @@
197 204
       <if test="acceptAgreementStatus != null" >
198 205
         accept_agreement_status = #{acceptAgreementStatus,jdbcType=CHAR},
199 206
       </if>
207
+      <if test="verifyStatus != null">
208
+        verify_status = #{verifyStatus,jdbcType=CHAR},
209
+      </if>
200 210
       <if test="createUser != null" >
201 211
         create_user = #{createUser,jdbcType=INTEGER},
202 212
       </if>
@@ -226,6 +236,7 @@
226 236
       remark = #{remark,jdbcType=VARCHAR},
227 237
       parent_id = #{parentId,jdbcType=INTEGER},
228 238
       accept_agreement_status = #{acceptAgreementStatus,jdbcType=CHAR},
239
+      verify_status = #{verifyStatus,jdbcType=CHAR},
229 240
       create_user = #{createUser,jdbcType=INTEGER},
230 241
       create_date = #{createDate,jdbcType=TIMESTAMP},
231 242
       update_user = #{updateUser,jdbcType=INTEGER},

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/ToBannerMapper.xml 查看文件

@@ -21,9 +21,9 @@
21 21
     id, community_id, banner_description, sort, banner_cover, banner_position, eff_time, 
22 22
     exp_time, banner_type, external_link, banner_title, banner_content, create_user, create_date
23 23
   </sql>
24
-  <select id="selectByCommunityId" resultMap="BaseResultMap" parameterType="java.lang.String">
24
+  <select id="selectByCommunityId" resultMap="BaseResultMap">
25 25
     select
26 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
27
+    from to_banner t where id = #{bannerId} and t.eff_time &lt; #{nowTime} and t.exp_time &gt; #{nowTime} order by t.sort, t.eff_time
28 28
   </select>
29 29
 </mapper>

+ 273
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpActivityMapper.xml 查看文件

@@ -0,0 +1,273 @@
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.TpActivityMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpActivity" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="activity_title" property="activityTitle" jdbcType="VARCHAR" />
8
+    <result column="activity_carousel_img" property="activityCarouselImg" jdbcType="VARCHAR" />
9
+    <result column="activity_content" property="activityContent" jdbcType="VARCHAR" />
10
+    <result column="user_name" property="userName" jdbcType="VARCHAR" />
11
+    <result column="sort" property="sort" jdbcType="INTEGER" />
12
+    <result column="sign_up_count" property="signUpCount" jdbcType="INTEGER" />
13
+    <result column="sign_up_max" property="signUpMax" jdbcType="INTEGER" />
14
+    <result column="view_count" property="viewCount" jdbcType="INTEGER" />
15
+    <result column="registration_start_time" property="registrationStartTime" jdbcType="TIMESTAMP" />
16
+    <result column="registration_end_time" property="registrationEndTime" jdbcType="TIMESTAMP" />
17
+    <result column="activity_start_time" property="activityStartTime" jdbcType="TIMESTAMP" />
18
+    <result column="activity_end_time" property="activityEndTime" jdbcType="TIMESTAMP" />
19
+    <result column="status" property="status" jdbcType="CHAR" />
20
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
21
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
22
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
23
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
24
+  </resultMap>
25
+  <sql id="Base_Column_List" >
26
+    id, community_id, activity_title, activity_carousel_img, activity_content, sort, 
27
+    sign_up_count, sign_up_max, view_count, registration_start_time, registration_end_time, 
28
+    activity_start_time, activity_end_time, status, create_user, create_date, update_user, 
29
+    update_date
30
+  </sql>
31
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
32
+    select 
33
+    <include refid="Base_Column_List" />
34
+    from tp_activity
35
+    where id = #{id,jdbcType=INTEGER}
36
+  </select>
37
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
38
+    delete from tp_activity
39
+    where id = #{id,jdbcType=INTEGER}
40
+  </delete>
41
+  <insert id="insert" parameterType="com.community.huiju.model.TpActivity" >
42
+    insert into tp_activity (id, community_id, activity_title, 
43
+      activity_carousel_img, activity_content, sort, 
44
+      sign_up_count, sign_up_max, view_count, 
45
+      registration_start_time, registration_end_time, 
46
+      activity_start_time, activity_end_time, 
47
+      status, create_user, create_date, 
48
+      update_user, update_date)
49
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{activityTitle,jdbcType=VARCHAR}, 
50
+      #{activityCarouselImg,jdbcType=VARCHAR}, #{activityContent,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, 
51
+      #{signUpCount,jdbcType=INTEGER}, #{signUpMax,jdbcType=INTEGER}, #{viewCount,jdbcType=INTEGER}, 
52
+      #{registrationStartTime,jdbcType=TIMESTAMP}, #{registrationEndTime,jdbcType=TIMESTAMP}, 
53
+      #{activityStartTime,jdbcType=TIMESTAMP}, #{activityEndTime,jdbcType=TIMESTAMP}, 
54
+      #{status,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
55
+      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
56
+  </insert>
57
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpActivity" >
58
+    insert into tp_activity
59
+    <trim prefix="(" suffix=")" suffixOverrides="," >
60
+      <if test="id != null" >
61
+        id,
62
+      </if>
63
+      <if test="communityId != null" >
64
+        community_id,
65
+      </if>
66
+      <if test="activityTitle != null" >
67
+        activity_title,
68
+      </if>
69
+      <if test="activityCarouselImg != null" >
70
+        activity_carousel_img,
71
+      </if>
72
+      <if test="activityContent != null" >
73
+        activity_content,
74
+      </if>
75
+      <if test="sort != null" >
76
+        sort,
77
+      </if>
78
+      <if test="signUpCount != null" >
79
+        sign_up_count,
80
+      </if>
81
+      <if test="signUpMax != null" >
82
+        sign_up_max,
83
+      </if>
84
+      <if test="viewCount != null" >
85
+        view_count,
86
+      </if>
87
+      <if test="registrationStartTime != null" >
88
+        registration_start_time,
89
+      </if>
90
+      <if test="registrationEndTime != null" >
91
+        registration_end_time,
92
+      </if>
93
+      <if test="activityStartTime != null" >
94
+        activity_start_time,
95
+      </if>
96
+      <if test="activityEndTime != null" >
97
+        activity_end_time,
98
+      </if>
99
+      <if test="status != null" >
100
+        status,
101
+      </if>
102
+      <if test="createUser != null" >
103
+        create_user,
104
+      </if>
105
+      <if test="createDate != null" >
106
+        create_date,
107
+      </if>
108
+      <if test="updateUser != null" >
109
+        update_user,
110
+      </if>
111
+      <if test="updateDate != null" >
112
+        update_date,
113
+      </if>
114
+    </trim>
115
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
116
+      <if test="id != null" >
117
+        #{id,jdbcType=INTEGER},
118
+      </if>
119
+      <if test="communityId != null" >
120
+        #{communityId,jdbcType=INTEGER},
121
+      </if>
122
+      <if test="activityTitle != null" >
123
+        #{activityTitle,jdbcType=VARCHAR},
124
+      </if>
125
+      <if test="activityCarouselImg != null" >
126
+        #{activityCarouselImg,jdbcType=VARCHAR},
127
+      </if>
128
+      <if test="activityContent != null" >
129
+        #{activityContent,jdbcType=VARCHAR},
130
+      </if>
131
+      <if test="sort != null" >
132
+        #{sort,jdbcType=INTEGER},
133
+      </if>
134
+      <if test="signUpCount != null" >
135
+        #{signUpCount,jdbcType=INTEGER},
136
+      </if>
137
+      <if test="signUpMax != null" >
138
+        #{signUpMax,jdbcType=INTEGER},
139
+      </if>
140
+      <if test="viewCount != null" >
141
+        #{viewCount,jdbcType=INTEGER},
142
+      </if>
143
+      <if test="registrationStartTime != null" >
144
+        #{registrationStartTime,jdbcType=TIMESTAMP},
145
+      </if>
146
+      <if test="registrationEndTime != null" >
147
+        #{registrationEndTime,jdbcType=TIMESTAMP},
148
+      </if>
149
+      <if test="activityStartTime != null" >
150
+        #{activityStartTime,jdbcType=TIMESTAMP},
151
+      </if>
152
+      <if test="activityEndTime != null" >
153
+        #{activityEndTime,jdbcType=TIMESTAMP},
154
+      </if>
155
+      <if test="status != null" >
156
+        #{status,jdbcType=CHAR},
157
+      </if>
158
+      <if test="createUser != null" >
159
+        #{createUser,jdbcType=INTEGER},
160
+      </if>
161
+      <if test="createDate != null" >
162
+        #{createDate,jdbcType=TIMESTAMP},
163
+      </if>
164
+      <if test="updateUser != null" >
165
+        #{updateUser,jdbcType=INTEGER},
166
+      </if>
167
+      <if test="updateDate != null" >
168
+        #{updateDate,jdbcType=TIMESTAMP},
169
+      </if>
170
+    </trim>
171
+  </insert>
172
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpActivity" >
173
+    update tp_activity
174
+    <set >
175
+      <if test="communityId != null" >
176
+        community_id = #{communityId,jdbcType=INTEGER},
177
+      </if>
178
+      <if test="activityTitle != null" >
179
+        activity_title = #{activityTitle,jdbcType=VARCHAR},
180
+      </if>
181
+      <if test="activityCarouselImg != null" >
182
+        activity_carousel_img = #{activityCarouselImg,jdbcType=VARCHAR},
183
+      </if>
184
+      <if test="activityContent != null" >
185
+        activity_content = #{activityContent,jdbcType=VARCHAR},
186
+      </if>
187
+      <if test="sort != null" >
188
+        sort = #{sort,jdbcType=INTEGER},
189
+      </if>
190
+      <if test="signUpCount != null" >
191
+        sign_up_count = #{signUpCount,jdbcType=INTEGER},
192
+      </if>
193
+      <if test="signUpMax != null" >
194
+        sign_up_max = #{signUpMax,jdbcType=INTEGER},
195
+      </if>
196
+      <if test="viewCount != null" >
197
+        view_count = #{viewCount,jdbcType=INTEGER},
198
+      </if>
199
+      <if test="registrationStartTime != null" >
200
+        registration_start_time = #{registrationStartTime,jdbcType=TIMESTAMP},
201
+      </if>
202
+      <if test="registrationEndTime != null" >
203
+        registration_end_time = #{registrationEndTime,jdbcType=TIMESTAMP},
204
+      </if>
205
+      <if test="activityStartTime != null" >
206
+        activity_start_time = #{activityStartTime,jdbcType=TIMESTAMP},
207
+      </if>
208
+      <if test="activityEndTime != null" >
209
+        activity_end_time = #{activityEndTime,jdbcType=TIMESTAMP},
210
+      </if>
211
+      <if test="status != null" >
212
+        status = #{status,jdbcType=CHAR},
213
+      </if>
214
+      <if test="createUser != null" >
215
+        create_user = #{createUser,jdbcType=INTEGER},
216
+      </if>
217
+      <if test="createDate != null" >
218
+        create_date = #{createDate,jdbcType=TIMESTAMP},
219
+      </if>
220
+      <if test="updateUser != null" >
221
+        update_user = #{updateUser,jdbcType=INTEGER},
222
+      </if>
223
+      <if test="updateDate != null" >
224
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
225
+      </if>
226
+    </set>
227
+    where id = #{id,jdbcType=INTEGER}
228
+  </update>
229
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpActivity" >
230
+    update tp_activity
231
+    set community_id = #{communityId,jdbcType=INTEGER},
232
+      activity_title = #{activityTitle,jdbcType=VARCHAR},
233
+      activity_carousel_img = #{activityCarouselImg,jdbcType=VARCHAR},
234
+      activity_content = #{activityContent,jdbcType=VARCHAR},
235
+      sort = #{sort,jdbcType=INTEGER},
236
+      sign_up_count = #{signUpCount,jdbcType=INTEGER},
237
+      sign_up_max = #{signUpMax,jdbcType=INTEGER},
238
+      view_count = #{viewCount,jdbcType=INTEGER},
239
+      registration_start_time = #{registrationStartTime,jdbcType=TIMESTAMP},
240
+      registration_end_time = #{registrationEndTime,jdbcType=TIMESTAMP},
241
+      activity_start_time = #{activityStartTime,jdbcType=TIMESTAMP},
242
+      activity_end_time = #{activityEndTime,jdbcType=TIMESTAMP},
243
+      status = #{status,jdbcType=CHAR},
244
+      create_user = #{createUser,jdbcType=INTEGER},
245
+      create_date = #{createDate,jdbcType=TIMESTAMP},
246
+      update_user = #{updateUser,jdbcType=INTEGER},
247
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
248
+    where id = #{id,jdbcType=INTEGER}
249
+  </update>
250
+
251
+  <select id="getActivitys" resultMap="BaseResultMap">
252
+    SELECT
253
+      a.id,
254
+      a.activity_title,
255
+      a.activity_content,
256
+      a.create_date,
257
+      u.user_name AS user_name,
258
+      a.sort,
259
+      a.view_count,
260
+      a.sign_up_count
261
+  FROM
262
+      tp_activity a
263
+      LEFT JOIN tp_user u ON a.create_user = u.id
264
+      AND u.community_id = #{communityId,jdbcType=INTEGER}
265
+  WHERE
266
+      a.community_id = #{communityId,jdbcType=INTEGER}
267
+      AND ( a.STATUS = 1 OR a.STATUS = 3 )
268
+      AND a.activity_title LIKE concat('%',#{title,jdbcType=VARCHAR},'%')
269
+  ORDER BY
270
+      a.sort,
271
+      a.create_date DESC
272
+  </select>
273
+</mapper>

+ 186
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpAnnouncementMapper.xml 查看文件

@@ -0,0 +1,186 @@
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.TpAnnouncementMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpAnnouncement" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="announcement_title" property="announcementTitle" jdbcType="VARCHAR" />
8
+    <result column="announcement_carousel_img" property="announcementCarouselImg" jdbcType="VARCHAR" />
9
+    <result column="announcement_content" property="announcementContent" jdbcType="VARCHAR" />
10
+    <result column="user_name" property="userName" jdbcType="VARCHAR" />
11
+    <result column="sort" property="sort" jdbcType="INTEGER" />
12
+    <result column="view_count" property="viewCount" jdbcType="INTEGER" />
13
+    <result column="set_up_carousel" property="setUpCarousel" jdbcType="CHAR" />
14
+    <result column="status" property="status" jdbcType="CHAR" />
15
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
16
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
17
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
18
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
19
+  </resultMap>
20
+  <sql id="Base_Column_List" >
21
+    id, community_id, announcement_title, announcement_carousel_img, announcement_content, 
22
+    sort, view_count, set_up_carousel, status, create_user, create_date, update_user, 
23
+    update_date
24
+  </sql>
25
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap">
26
+    select 
27
+    <include refid="Base_Column_List" />
28
+    from tp_announcement
29
+    where id = #{id,jdbcType=INTEGER} and community_id = #{communityId,jdbcType=INTEGER}
30
+  </select>
31
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
32
+    delete from tp_announcement
33
+    where id = #{id,jdbcType=INTEGER}
34
+  </delete>
35
+  <insert id="insert" parameterType="com.community.huiju.model.TpAnnouncement" >
36
+    insert into tp_announcement (id, community_id, announcement_title, 
37
+      announcement_carousel_img, announcement_content, 
38
+      sort, view_count, set_up_carousel, 
39
+      status, create_user, create_date, 
40
+      update_user, update_date)
41
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{announcementTitle,jdbcType=VARCHAR}, 
42
+      #{announcementCarouselImg,jdbcType=VARCHAR}, #{announcementContent,jdbcType=VARCHAR}, 
43
+      #{sort,jdbcType=INTEGER}, #{viewCount,jdbcType=INTEGER}, #{setUpCarousel,jdbcType=CHAR}, 
44
+      #{status,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
45
+      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
46
+  </insert>
47
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpAnnouncement" >
48
+    insert into tp_announcement
49
+    <trim prefix="(" suffix=")" suffixOverrides="," >
50
+      <if test="id != null" >
51
+        id,
52
+      </if>
53
+      <if test="communityId != null" >
54
+        community_id,
55
+      </if>
56
+      <if test="announcementTitle != null" >
57
+        announcement_title,
58
+      </if>
59
+      <if test="announcementCarouselImg != null" >
60
+        announcement_carousel_img,
61
+      </if>
62
+      <if test="announcementContent != null" >
63
+        announcement_content,
64
+      </if>
65
+      <if test="sort != null" >
66
+        sort,
67
+      </if>
68
+      <if test="viewCount != null" >
69
+        view_count,
70
+      </if>
71
+      <if test="setUpCarousel != null" >
72
+        set_up_carousel,
73
+      </if>
74
+      <if test="status != null" >
75
+        status,
76
+      </if>
77
+      <if test="createUser != null" >
78
+        create_user,
79
+      </if>
80
+      <if test="createDate != null" >
81
+        create_date,
82
+      </if>
83
+      <if test="updateUser != null" >
84
+        update_user,
85
+      </if>
86
+      <if test="updateDate != null" >
87
+        update_date,
88
+      </if>
89
+    </trim>
90
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
91
+      <if test="id != null" >
92
+        #{id,jdbcType=INTEGER},
93
+      </if>
94
+      <if test="communityId != null" >
95
+        #{communityId,jdbcType=INTEGER},
96
+      </if>
97
+      <if test="announcementTitle != null" >
98
+        #{announcementTitle,jdbcType=VARCHAR},
99
+      </if>
100
+      <if test="announcementCarouselImg != null" >
101
+        #{announcementCarouselImg,jdbcType=VARCHAR},
102
+      </if>
103
+      <if test="announcementContent != null" >
104
+        #{announcementContent,jdbcType=VARCHAR},
105
+      </if>
106
+      <if test="sort != null" >
107
+        #{sort,jdbcType=INTEGER},
108
+      </if>
109
+      <if test="viewCount != null" >
110
+        #{viewCount,jdbcType=INTEGER},
111
+      </if>
112
+      <if test="setUpCarousel != null" >
113
+        #{setUpCarousel,jdbcType=CHAR},
114
+      </if>
115
+      <if test="status != null" >
116
+        #{status,jdbcType=CHAR},
117
+      </if>
118
+      <if test="createUser != null" >
119
+        #{createUser,jdbcType=INTEGER},
120
+      </if>
121
+      <if test="createDate != null" >
122
+        #{createDate,jdbcType=TIMESTAMP},
123
+      </if>
124
+      <if test="updateUser != null" >
125
+        #{updateUser,jdbcType=INTEGER},
126
+      </if>
127
+      <if test="updateDate != null" >
128
+        #{updateDate,jdbcType=TIMESTAMP},
129
+      </if>
130
+    </trim>
131
+  </insert>
132
+  <update id="updateByPrimaryKeySelective" >
133
+    update tp_announcement
134
+    <set >
135
+      <if test="viewCount != null" >
136
+        view_count = #{viewCount,jdbcType=INTEGER},
137
+      </if>
138
+    </set>
139
+    where id = #{id,jdbcType=INTEGER}
140
+  </update>
141
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpAnnouncement" >
142
+    update tp_announcement
143
+    set community_id = #{communityId,jdbcType=INTEGER},
144
+      announcement_title = #{announcementTitle,jdbcType=VARCHAR},
145
+      announcement_carousel_img = #{announcementCarouselImg,jdbcType=VARCHAR},
146
+      announcement_content = #{announcementContent,jdbcType=VARCHAR},
147
+      sort = #{sort,jdbcType=INTEGER},
148
+      view_count = #{viewCount,jdbcType=INTEGER},
149
+      set_up_carousel = #{setUpCarousel,jdbcType=CHAR},
150
+      status = #{status,jdbcType=CHAR},
151
+      create_user = #{createUser,jdbcType=INTEGER},
152
+      create_date = #{createDate,jdbcType=TIMESTAMP},
153
+      update_user = #{updateUser,jdbcType=INTEGER},
154
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
155
+    where id = #{id,jdbcType=INTEGER}
156
+  </update>
157
+
158
+  <select id="getAnnouncements" resultMap="BaseResultMap">
159
+    SELECT
160
+      a.id,
161
+      a.announcement_title,
162
+      a.announcement_content,
163
+      a.create_date,
164
+      u.user_name as user_name,
165
+      a.sort,
166
+      a.view_count
167
+  FROM
168
+      tp_announcement a
169
+      LEFT JOIN tp_user u ON a.create_user = u.id
170
+      AND u.community_id = #{communityId,jdbcType=INTEGER}
171
+  WHERE
172
+      a.community_id = #{communityId,jdbcType=INTEGER}
173
+      AND ( a.STATUS = 1 OR a.STATUS = 3 )
174
+      and a.announcement_title like concat('%',#{title,jdbcType=VARCHAR},'%')
175
+  ORDER BY
176
+      a.sort,
177
+      a.create_date DESC
178
+  </select>
179
+
180
+  <select id="getAnnouncement" resultMap="BaseResultMap" parameterType="com.community.huiju.model.TpAnnouncement">
181
+    select
182
+    <include refid="Base_Column_List" />
183
+    from tp_announcement
184
+    where community_id = #{communityId,jdbcType=INTEGER}  and status=1 limit  #{sum,jdbcType=INTEGER}
185
+  </select>
186
+</mapper>

+ 82
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpCarouselSettingMapper.xml 查看文件

@@ -0,0 +1,82 @@
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.TpCarouselSettingMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpCarouselSetting" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="carousel_type" property="carouselType" jdbcType="VARCHAR" />
8
+    <result column="carousel_num" property="carouselNum" jdbcType="INTEGER" />
9
+  </resultMap>
10
+  <sql id="Base_Column_List" >
11
+    id, community_id, carousel_type, carousel_num
12
+  </sql>
13
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
14
+    select 
15
+    <include refid="Base_Column_List" />
16
+    from tp_carousel_setting
17
+    where id = #{id,jdbcType=INTEGER}
18
+  </select>
19
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
20
+    delete from tp_carousel_setting
21
+    where id = #{id,jdbcType=INTEGER}
22
+  </delete>
23
+  <insert id="insert" parameterType="com.community.huiju.model.TpCarouselSetting" >
24
+    insert into tp_carousel_setting (id, community_id, carousel_type, 
25
+      carousel_num)
26
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{carouselType,jdbcType=VARCHAR}, 
27
+      #{carouselNum,jdbcType=INTEGER})
28
+  </insert>
29
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpCarouselSetting" >
30
+    insert into tp_carousel_setting
31
+    <trim prefix="(" suffix=")" suffixOverrides="," >
32
+      <if test="id != null" >
33
+        id,
34
+      </if>
35
+      <if test="communityId != null" >
36
+        community_id,
37
+      </if>
38
+      <if test="carouselType != null" >
39
+        carousel_type,
40
+      </if>
41
+      <if test="carouselNum != null" >
42
+        carousel_num,
43
+      </if>
44
+    </trim>
45
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
46
+      <if test="id != null" >
47
+        #{id,jdbcType=INTEGER},
48
+      </if>
49
+      <if test="communityId != null" >
50
+        #{communityId,jdbcType=INTEGER},
51
+      </if>
52
+      <if test="carouselType != null" >
53
+        #{carouselType,jdbcType=VARCHAR},
54
+      </if>
55
+      <if test="carouselNum != null" >
56
+        #{carouselNum,jdbcType=INTEGER},
57
+      </if>
58
+    </trim>
59
+  </insert>
60
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpCarouselSetting" >
61
+    update tp_carousel_setting
62
+    <set >
63
+      <if test="communityId != null" >
64
+        community_id = #{communityId,jdbcType=INTEGER},
65
+      </if>
66
+      <if test="carouselType != null" >
67
+        carousel_type = #{carouselType,jdbcType=VARCHAR},
68
+      </if>
69
+      <if test="carouselNum != null" >
70
+        carousel_num = #{carouselNum,jdbcType=INTEGER},
71
+      </if>
72
+    </set>
73
+    where id = #{id,jdbcType=INTEGER}
74
+  </update>
75
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpCarouselSetting" >
76
+    update tp_carousel_setting
77
+    set community_id = #{communityId,jdbcType=INTEGER},
78
+      carousel_type = #{carouselType,jdbcType=VARCHAR},
79
+      carousel_num = #{carouselNum,jdbcType=INTEGER}
80
+    where id = #{id,jdbcType=INTEGER}
81
+  </update>
82
+</mapper>

+ 18
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpMessageMapper.xml 查看文件

@@ -233,7 +233,7 @@
233 233
     where id = #{id,jdbcType=INTEGER}
234 234
   </update>
235 235
 
236
-  <select id="getMessageTotal" resultType="map" parameterType="java.lang.Integer" >
236
+  <select id="getMessageTotal" resultType="map">
237 237
     SELECT
238 238
         count( CASE WHEN model_type = 1 AND read_status = 0 THEN 1 ELSE NULL END ) AS messageTotal,
239 239
         count( CASE WHEN model_type = 2 THEN 1 ELSE NULL END ) AS toDoTotal
@@ -241,8 +241,25 @@
241 241
         tp_message
242 242
     WHERE
243 243
         uuid_type = 1
244
+        AND community_id = #{communityId,jdbcType=INTEGER}
244 245
         AND uuid = #{userId,jdbcType=INTEGER}
245 246
         AND STATUS = 1
246 247
         AND advice_type = 1
247 248
   </select>
249
+
250
+  <select id="getMessages" resultMap="BaseResultMap">
251
+    SELECT
252
+      <include refid="Base_Column_List" />
253
+    FROM
254
+        tp_message
255
+    WHERE
256
+        uuid_type = 1
257
+        AND community_id = #{communityId,jdbcType=INTEGER}
258
+        AND uuid = #{userId,jdbcType=INTEGER}
259
+        AND STATUS = 1
260
+        AND advice_type = 1
261
+        AND model_type = #{modelType,jdbcType=INTEGER}
262
+    ORDER BY
263
+    create_date DESC
264
+  </select>
248 265
 </mapper>

+ 128
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpSocialViewMapper.xml 查看文件

@@ -0,0 +1,128 @@
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.TpSocialViewMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpSocialView" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="uuid" property="uuid" jdbcType="INTEGER" />
8
+    <result column="social_type" property="socialType" jdbcType="VARCHAR" />
9
+    <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
10
+    <result column="remark" property="remark" jdbcType="VARCHAR" />
11
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
12
+  </resultMap>
13
+  <sql id="Base_Column_List" >
14
+    id, community_id, uuid, social_type, ta_user_id, remark, create_date
15
+  </sql>
16
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
17
+    select 
18
+    <include refid="Base_Column_List" />
19
+    from tp_social_view
20
+    where id = #{id,jdbcType=INTEGER}
21
+  </select>
22
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
23
+    delete from tp_social_view
24
+    where id = #{id,jdbcType=INTEGER}
25
+  </delete>
26
+  <insert id="insert" parameterType="com.community.huiju.model.TpSocialView" >
27
+    insert into tp_social_view (id, community_id, uuid, 
28
+      social_type, ta_user_id, remark, 
29
+      create_date)
30
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{uuid,jdbcType=INTEGER}, 
31
+      #{socialType,jdbcType=VARCHAR}, #{taUserId,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, 
32
+      #{createDate,jdbcType=TIMESTAMP})
33
+  </insert>
34
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpSocialView" >
35
+    insert into tp_social_view
36
+    <trim prefix="(" suffix=")" suffixOverrides="," >
37
+      <if test="id != null" >
38
+        id,
39
+      </if>
40
+      <if test="communityId != null" >
41
+        community_id,
42
+      </if>
43
+      <if test="uuid != null" >
44
+        uuid,
45
+      </if>
46
+      <if test="socialType != null" >
47
+        social_type,
48
+      </if>
49
+      <if test="taUserId != null" >
50
+        ta_user_id,
51
+      </if>
52
+      <if test="remark != null" >
53
+        remark,
54
+      </if>
55
+      <if test="createDate != null" >
56
+        create_date,
57
+      </if>
58
+    </trim>
59
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
60
+      <if test="id != null" >
61
+        #{id,jdbcType=INTEGER},
62
+      </if>
63
+      <if test="communityId != null" >
64
+        #{communityId,jdbcType=INTEGER},
65
+      </if>
66
+      <if test="uuid != null" >
67
+        #{uuid,jdbcType=INTEGER},
68
+      </if>
69
+      <if test="socialType != null" >
70
+        #{socialType,jdbcType=VARCHAR},
71
+      </if>
72
+      <if test="taUserId != null" >
73
+        #{taUserId,jdbcType=INTEGER},
74
+      </if>
75
+      <if test="remark != null" >
76
+        #{remark,jdbcType=VARCHAR},
77
+      </if>
78
+      <if test="createDate != null" >
79
+        #{createDate,jdbcType=TIMESTAMP},
80
+      </if>
81
+    </trim>
82
+  </insert>
83
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpSocialView" >
84
+    update tp_social_view
85
+    <set >
86
+      <if test="communityId != null" >
87
+        community_id = #{communityId,jdbcType=INTEGER},
88
+      </if>
89
+      <if test="uuid != null" >
90
+        uuid = #{uuid,jdbcType=INTEGER},
91
+      </if>
92
+      <if test="socialType != null" >
93
+        social_type = #{socialType,jdbcType=VARCHAR},
94
+      </if>
95
+      <if test="taUserId != null" >
96
+        ta_user_id = #{taUserId,jdbcType=INTEGER},
97
+      </if>
98
+      <if test="remark != null" >
99
+        remark = #{remark,jdbcType=VARCHAR},
100
+      </if>
101
+      <if test="createDate != null" >
102
+        create_date = #{createDate,jdbcType=TIMESTAMP},
103
+      </if>
104
+    </set>
105
+    where id = #{id,jdbcType=INTEGER}
106
+  </update>
107
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpSocialView" >
108
+    update tp_social_view
109
+    set community_id = #{communityId,jdbcType=INTEGER},
110
+      uuid = #{uuid,jdbcType=INTEGER},
111
+      social_type = #{socialType,jdbcType=VARCHAR},
112
+      ta_user_id = #{taUserId,jdbcType=INTEGER},
113
+      remark = #{remark,jdbcType=VARCHAR},
114
+      create_date = #{createDate,jdbcType=TIMESTAMP}
115
+    where id = #{id,jdbcType=INTEGER}
116
+  </update>
117
+
118
+  <select id="selectViewNum" resultType="java.lang.Integer" parameterType="com.community.huiju.model.TpSocialView">
119
+    select count(*) from tp_social_view
120
+    where
121
+    <if test="taUserId != null" >
122
+      ta_user_id = #{taUserId} and
123
+    </if>
124
+    uuid = #{uuid}
125
+    and community_id = #{communityId}
126
+    and social_type = #{socialType}
127
+  </select>
128
+</mapper>

+ 287
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpTicketMapper.xml 查看文件

@@ -0,0 +1,287 @@
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.TpTicketMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTicket" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
8
+    <result column="ticket_title" property="ticketTitle" jdbcType="VARCHAR" />
9
+    <result column="ticket_content" property="ticketContent" jdbcType="VARCHAR" />
10
+    <result column="status" property="status" jdbcType="CHAR" />
11
+    <result column="type" property="type" jdbcType="CHAR" />
12
+    <result column="repair_type" property="repairType" jdbcType="CHAR" />
13
+    <result column="ticket_match_img1" property="ticketMatchImg1" jdbcType="VARCHAR" />
14
+    <result column="ticket_match_img2" property="ticketMatchImg2" jdbcType="VARCHAR" />
15
+    <result column="ticket_match_img3" property="ticketMatchImg3" jdbcType="VARCHAR" />
16
+    <result column="ticket_match_img4" property="ticketMatchImg4" jdbcType="VARCHAR" />
17
+    <result column="ticket_match_img5" property="ticketMatchImg5" jdbcType="VARCHAR" />
18
+    <result column="tp_user_id" property="tpUserId" jdbcType="INTEGER" />
19
+    <result column="score" property="score" jdbcType="VARCHAR" />
20
+    <result column="comment" property="comment" jdbcType="VARCHAR" />
21
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
22
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
23
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
24
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
25
+  </resultMap>
26
+  <sql id="Base_Column_List" >
27
+    id, community_id, ta_user_id, ticket_title, ticket_content, status, type, repair_type, 
28
+    ticket_match_img1, ticket_match_img2, ticket_match_img3, ticket_match_img4, ticket_match_img5, 
29
+    tp_user_id, score, comment, create_user, create_date, update_user, update_date
30
+  </sql>
31
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
32
+    select 
33
+    <include refid="Base_Column_List" />
34
+    from tp_ticket
35
+    where id = #{id,jdbcType=INTEGER}
36
+  </select>
37
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
38
+    delete from tp_ticket
39
+    where id = #{id,jdbcType=INTEGER}
40
+  </delete>
41
+  <insert id="insert" parameterType="com.community.huiju.model.TpTicket" >
42
+    insert into tp_ticket (id, community_id, ta_user_id, 
43
+      ticket_title, ticket_content, status, 
44
+      type, repair_type, ticket_match_img1, 
45
+      ticket_match_img2, ticket_match_img3, ticket_match_img4, 
46
+      ticket_match_img5, tp_user_id, score, 
47
+      comment, create_user, create_date, 
48
+      update_user, update_date)
49
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{taUserId,jdbcType=INTEGER}, 
50
+      #{ticketTitle,jdbcType=VARCHAR}, #{ticketContent,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, 
51
+      #{type,jdbcType=CHAR}, #{repairType,jdbcType=CHAR}, #{ticketMatchImg1,jdbcType=VARCHAR}, 
52
+      #{ticketMatchImg2,jdbcType=VARCHAR}, #{ticketMatchImg3,jdbcType=VARCHAR}, #{ticketMatchImg4,jdbcType=VARCHAR}, 
53
+      #{ticketMatchImg5,jdbcType=VARCHAR}, #{tpUserId,jdbcType=INTEGER}, #{score,jdbcType=VARCHAR}, 
54
+      #{comment,jdbcType=VARCHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
55
+      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
56
+  </insert>
57
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpTicket" >
58
+    insert into tp_ticket
59
+    <trim prefix="(" suffix=")" suffixOverrides="," >
60
+      <if test="id != null" >
61
+        id,
62
+      </if>
63
+      <if test="communityId != null" >
64
+        community_id,
65
+      </if>
66
+      <if test="taUserId != null" >
67
+        ta_user_id,
68
+      </if>
69
+      <if test="ticketTitle != null" >
70
+        ticket_title,
71
+      </if>
72
+      <if test="ticketContent != null" >
73
+        ticket_content,
74
+      </if>
75
+      <if test="status != null" >
76
+        status,
77
+      </if>
78
+      <if test="type != null" >
79
+        type,
80
+      </if>
81
+      <if test="repairType != null" >
82
+        repair_type,
83
+      </if>
84
+      <if test="ticketMatchImg1 != null" >
85
+        ticket_match_img1,
86
+      </if>
87
+      <if test="ticketMatchImg2 != null" >
88
+        ticket_match_img2,
89
+      </if>
90
+      <if test="ticketMatchImg3 != null" >
91
+        ticket_match_img3,
92
+      </if>
93
+      <if test="ticketMatchImg4 != null" >
94
+        ticket_match_img4,
95
+      </if>
96
+      <if test="ticketMatchImg5 != null" >
97
+        ticket_match_img5,
98
+      </if>
99
+      <if test="tpUserId != null" >
100
+        tp_user_id,
101
+      </if>
102
+      <if test="score != null" >
103
+        score,
104
+      </if>
105
+      <if test="comment != null" >
106
+        comment,
107
+      </if>
108
+      <if test="createUser != null" >
109
+        create_user,
110
+      </if>
111
+      <if test="createDate != null" >
112
+        create_date,
113
+      </if>
114
+      <if test="updateUser != null" >
115
+        update_user,
116
+      </if>
117
+      <if test="updateDate != null" >
118
+        update_date,
119
+      </if>
120
+    </trim>
121
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
122
+      <if test="id != null" >
123
+        #{id,jdbcType=INTEGER},
124
+      </if>
125
+      <if test="communityId != null" >
126
+        #{communityId,jdbcType=INTEGER},
127
+      </if>
128
+      <if test="taUserId != null" >
129
+        #{taUserId,jdbcType=INTEGER},
130
+      </if>
131
+      <if test="ticketTitle != null" >
132
+        #{ticketTitle,jdbcType=VARCHAR},
133
+      </if>
134
+      <if test="ticketContent != null" >
135
+        #{ticketContent,jdbcType=VARCHAR},
136
+      </if>
137
+      <if test="status != null" >
138
+        #{status,jdbcType=CHAR},
139
+      </if>
140
+      <if test="type != null" >
141
+        #{type,jdbcType=CHAR},
142
+      </if>
143
+      <if test="repairType != null" >
144
+        #{repairType,jdbcType=CHAR},
145
+      </if>
146
+      <if test="ticketMatchImg1 != null" >
147
+        #{ticketMatchImg1,jdbcType=VARCHAR},
148
+      </if>
149
+      <if test="ticketMatchImg2 != null" >
150
+        #{ticketMatchImg2,jdbcType=VARCHAR},
151
+      </if>
152
+      <if test="ticketMatchImg3 != null" >
153
+        #{ticketMatchImg3,jdbcType=VARCHAR},
154
+      </if>
155
+      <if test="ticketMatchImg4 != null" >
156
+        #{ticketMatchImg4,jdbcType=VARCHAR},
157
+      </if>
158
+      <if test="ticketMatchImg5 != null" >
159
+        #{ticketMatchImg5,jdbcType=VARCHAR},
160
+      </if>
161
+      <if test="tpUserId != null" >
162
+        #{tpUserId,jdbcType=INTEGER},
163
+      </if>
164
+      <if test="score != null" >
165
+        #{score,jdbcType=VARCHAR},
166
+      </if>
167
+      <if test="comment != null" >
168
+        #{comment,jdbcType=VARCHAR},
169
+      </if>
170
+      <if test="createUser != null" >
171
+        #{createUser,jdbcType=INTEGER},
172
+      </if>
173
+      <if test="createDate != null" >
174
+        #{createDate,jdbcType=TIMESTAMP},
175
+      </if>
176
+      <if test="updateUser != null" >
177
+        #{updateUser,jdbcType=INTEGER},
178
+      </if>
179
+      <if test="updateDate != null" >
180
+        #{updateDate,jdbcType=TIMESTAMP},
181
+      </if>
182
+    </trim>
183
+  </insert>
184
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpTicket" >
185
+    update tp_ticket
186
+    <set >
187
+      <if test="communityId != null" >
188
+        community_id = #{communityId,jdbcType=INTEGER},
189
+      </if>
190
+      <if test="taUserId != null" >
191
+        ta_user_id = #{taUserId,jdbcType=INTEGER},
192
+      </if>
193
+      <if test="ticketTitle != null" >
194
+        ticket_title = #{ticketTitle,jdbcType=VARCHAR},
195
+      </if>
196
+      <if test="ticketContent != null" >
197
+        ticket_content = #{ticketContent,jdbcType=VARCHAR},
198
+      </if>
199
+      <if test="status != null" >
200
+        status = #{status,jdbcType=CHAR},
201
+      </if>
202
+      <if test="type != null" >
203
+        type = #{type,jdbcType=CHAR},
204
+      </if>
205
+      <if test="repairType != null" >
206
+        repair_type = #{repairType,jdbcType=CHAR},
207
+      </if>
208
+      <if test="ticketMatchImg1 != null" >
209
+        ticket_match_img1 = #{ticketMatchImg1,jdbcType=VARCHAR},
210
+      </if>
211
+      <if test="ticketMatchImg2 != null" >
212
+        ticket_match_img2 = #{ticketMatchImg2,jdbcType=VARCHAR},
213
+      </if>
214
+      <if test="ticketMatchImg3 != null" >
215
+        ticket_match_img3 = #{ticketMatchImg3,jdbcType=VARCHAR},
216
+      </if>
217
+      <if test="ticketMatchImg4 != null" >
218
+        ticket_match_img4 = #{ticketMatchImg4,jdbcType=VARCHAR},
219
+      </if>
220
+      <if test="ticketMatchImg5 != null" >
221
+        ticket_match_img5 = #{ticketMatchImg5,jdbcType=VARCHAR},
222
+      </if>
223
+      <if test="tpUserId != null" >
224
+        tp_user_id = #{tpUserId,jdbcType=INTEGER},
225
+      </if>
226
+      <if test="score != null" >
227
+        score = #{score,jdbcType=VARCHAR},
228
+      </if>
229
+      <if test="comment != null" >
230
+        comment = #{comment,jdbcType=VARCHAR},
231
+      </if>
232
+      <if test="createUser != null" >
233
+        create_user = #{createUser,jdbcType=INTEGER},
234
+      </if>
235
+      <if test="createDate != null" >
236
+        create_date = #{createDate,jdbcType=TIMESTAMP},
237
+      </if>
238
+      <if test="updateUser != null" >
239
+        update_user = #{updateUser,jdbcType=INTEGER},
240
+      </if>
241
+      <if test="updateDate != null" >
242
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
243
+      </if>
244
+    </set>
245
+    where id = #{id,jdbcType=INTEGER}
246
+  </update>
247
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpTicket" >
248
+    update tp_ticket
249
+    set community_id = #{communityId,jdbcType=INTEGER},
250
+      ta_user_id = #{taUserId,jdbcType=INTEGER},
251
+      ticket_title = #{ticketTitle,jdbcType=VARCHAR},
252
+      ticket_content = #{ticketContent,jdbcType=VARCHAR},
253
+      status = #{status,jdbcType=CHAR},
254
+      type = #{type,jdbcType=CHAR},
255
+      repair_type = #{repairType,jdbcType=CHAR},
256
+      ticket_match_img1 = #{ticketMatchImg1,jdbcType=VARCHAR},
257
+      ticket_match_img2 = #{ticketMatchImg2,jdbcType=VARCHAR},
258
+      ticket_match_img3 = #{ticketMatchImg3,jdbcType=VARCHAR},
259
+      ticket_match_img4 = #{ticketMatchImg4,jdbcType=VARCHAR},
260
+      ticket_match_img5 = #{ticketMatchImg5,jdbcType=VARCHAR},
261
+      tp_user_id = #{tpUserId,jdbcType=INTEGER},
262
+      score = #{score,jdbcType=VARCHAR},
263
+      comment = #{comment,jdbcType=VARCHAR},
264
+      create_user = #{createUser,jdbcType=INTEGER},
265
+      create_date = #{createDate,jdbcType=TIMESTAMP},
266
+      update_user = #{updateUser,jdbcType=INTEGER},
267
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
268
+    where id = #{id,jdbcType=INTEGER}
269
+  </update>
270
+
271
+  <select id="selectByCommuniytIdAndByTaUserIdAndByType" parameterType="map" resultMap="BaseResultMap" >
272
+    select
273
+    <include refid="Base_Column_List" />
274
+    from tp_ticket
275
+      <trim prefix="where" prefixOverrides="and">
276
+        <if test="communityId != null" >
277
+          and community_id = #{communityId,jdbcType=INTEGER}
278
+        </if>
279
+        <if test="taUserId != null" >
280
+          and ta_user_id = #{taUserId,jdbcType=INTEGER}
281
+        </if>
282
+        <if test="type != null" >
283
+          and type = #{type,jdbcType=CHAR}
284
+        </if>
285
+      </trim>
286
+  </select>
287
+</mapper>

+ 160
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpTicketRecordCommentMapper.xml 查看文件

@@ -0,0 +1,160 @@
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.TpTicketRecordCommentMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTicketRecordComment" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="ticker_id" property="tickerId" jdbcType="INTEGER" />
8
+    <result column="ticket_record_id" property="ticketRecordId" jdbcType="INTEGER" />
9
+    <result column="uuid" property="uuid" jdbcType="INTEGER" />
10
+    <result column="user_type" property="userType" jdbcType="CHAR" />
11
+    <result column="content" property="content" jdbcType="VARCHAR" />
12
+    <result column="parent_id" property="parentId" jdbcType="INTEGER" />
13
+    <result column="user_name" property="userName" jdbcType="VARCHAR" />
14
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
15
+  </resultMap>
16
+  <sql id="Base_Column_List" >
17
+    id, community_id, ticker_id, ticket_record_id, uuid, user_type, content, parent_id, 
18
+    user_name, create_date
19
+  </sql>
20
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
21
+    select 
22
+    <include refid="Base_Column_List" />
23
+    from tp_ticket_record_comment
24
+    where id = #{id,jdbcType=INTEGER}
25
+  </select>
26
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
27
+    delete from tp_ticket_record_comment
28
+    where id = #{id,jdbcType=INTEGER}
29
+  </delete>
30
+  <insert id="insert" parameterType="com.community.huiju.model.TpTicketRecordComment" >
31
+    insert into tp_ticket_record_comment (id, community_id, ticker_id, 
32
+      ticket_record_id, uuid, user_type, 
33
+      content, parent_id, user_name, 
34
+      create_date)
35
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{tickerId,jdbcType=INTEGER}, 
36
+      #{ticketRecordId,jdbcType=INTEGER}, #{uuid,jdbcType=INTEGER}, #{userType,jdbcType=CHAR}, 
37
+      #{content,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, 
38
+      #{createDate,jdbcType=TIMESTAMP})
39
+  </insert>
40
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpTicketRecordComment" >
41
+    insert into tp_ticket_record_comment
42
+    <trim prefix="(" suffix=")" suffixOverrides="," >
43
+      <if test="id != null" >
44
+        id,
45
+      </if>
46
+      <if test="communityId != null" >
47
+        community_id,
48
+      </if>
49
+      <if test="tickerId != null" >
50
+        ticker_id,
51
+      </if>
52
+      <if test="ticketRecordId != null" >
53
+        ticket_record_id,
54
+      </if>
55
+      <if test="uuid != null" >
56
+        uuid,
57
+      </if>
58
+      <if test="userType != null" >
59
+        user_type,
60
+      </if>
61
+      <if test="content != null" >
62
+        content,
63
+      </if>
64
+      <if test="parentId != null" >
65
+        parent_id,
66
+      </if>
67
+      <if test="userName != null" >
68
+        user_name,
69
+      </if>
70
+      <if test="createDate != null" >
71
+        create_date,
72
+      </if>
73
+    </trim>
74
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
75
+      <if test="id != null" >
76
+        #{id,jdbcType=INTEGER},
77
+      </if>
78
+      <if test="communityId != null" >
79
+        #{communityId,jdbcType=INTEGER},
80
+      </if>
81
+      <if test="tickerId != null" >
82
+        #{tickerId,jdbcType=INTEGER},
83
+      </if>
84
+      <if test="ticketRecordId != null" >
85
+        #{ticketRecordId,jdbcType=INTEGER},
86
+      </if>
87
+      <if test="uuid != null" >
88
+        #{uuid,jdbcType=INTEGER},
89
+      </if>
90
+      <if test="userType != null" >
91
+        #{userType,jdbcType=CHAR},
92
+      </if>
93
+      <if test="content != null" >
94
+        #{content,jdbcType=VARCHAR},
95
+      </if>
96
+      <if test="parentId != null" >
97
+        #{parentId,jdbcType=INTEGER},
98
+      </if>
99
+      <if test="userName != null" >
100
+        #{userName,jdbcType=VARCHAR},
101
+      </if>
102
+      <if test="createDate != null" >
103
+        #{createDate,jdbcType=TIMESTAMP},
104
+      </if>
105
+    </trim>
106
+  </insert>
107
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpTicketRecordComment" >
108
+    update tp_ticket_record_comment
109
+    <set >
110
+      <if test="communityId != null" >
111
+        community_id = #{communityId,jdbcType=INTEGER},
112
+      </if>
113
+      <if test="tickerId != null" >
114
+        ticker_id = #{tickerId,jdbcType=INTEGER},
115
+      </if>
116
+      <if test="ticketRecordId != null" >
117
+        ticket_record_id = #{ticketRecordId,jdbcType=INTEGER},
118
+      </if>
119
+      <if test="uuid != null" >
120
+        uuid = #{uuid,jdbcType=INTEGER},
121
+      </if>
122
+      <if test="userType != null" >
123
+        user_type = #{userType,jdbcType=CHAR},
124
+      </if>
125
+      <if test="content != null" >
126
+        content = #{content,jdbcType=VARCHAR},
127
+      </if>
128
+      <if test="parentId != null" >
129
+        parent_id = #{parentId,jdbcType=INTEGER},
130
+      </if>
131
+      <if test="userName != null" >
132
+        user_name = #{userName,jdbcType=VARCHAR},
133
+      </if>
134
+      <if test="createDate != null" >
135
+        create_date = #{createDate,jdbcType=TIMESTAMP},
136
+      </if>
137
+    </set>
138
+    where id = #{id,jdbcType=INTEGER}
139
+  </update>
140
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpTicketRecordComment" >
141
+    update tp_ticket_record_comment
142
+    set community_id = #{communityId,jdbcType=INTEGER},
143
+      ticker_id = #{tickerId,jdbcType=INTEGER},
144
+      ticket_record_id = #{ticketRecordId,jdbcType=INTEGER},
145
+      uuid = #{uuid,jdbcType=INTEGER},
146
+      user_type = #{userType,jdbcType=CHAR},
147
+      content = #{content,jdbcType=VARCHAR},
148
+      parent_id = #{parentId,jdbcType=INTEGER},
149
+      user_name = #{userName,jdbcType=VARCHAR},
150
+      create_date = #{createDate,jdbcType=TIMESTAMP}
151
+    where id = #{id,jdbcType=INTEGER}
152
+  </update>
153
+
154
+  <select id="selectByTicketId" parameterType="map" resultMap="BaseResultMap" >
155
+    select ttrc.* from tp_ticket tp
156
+                inner join tp_ticket_record ttr on tp.id = ttr.ticket_id
157
+                inner join tp_ticket_record_comment ttrc on ttr.ticket_id = ttrc.ticket_record_id
158
+    where tp.id=#{tickerId,jdbcType=INTEGER} order by ttrc.create_date DESC LIMIT #{size,jdbcType=INTEGER}
159
+  </select>
160
+</mapper>

+ 106
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpTicketRecordMapper.xml 查看文件

@@ -0,0 +1,106 @@
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.TpTicketRecordMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTicketRecord" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="ticket_id" property="ticketId" jdbcType="INTEGER" />
8
+    <result column="status" property="status" jdbcType="CHAR" />
9
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
10
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
11
+  </resultMap>
12
+  <sql id="Base_Column_List" >
13
+    id, community_id, ticket_id, status, create_user, create_date
14
+  </sql>
15
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
16
+    select 
17
+    <include refid="Base_Column_List" />
18
+    from tp_ticket_record
19
+    where id = #{id,jdbcType=INTEGER}
20
+  </select>
21
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
22
+    delete from tp_ticket_record
23
+    where id = #{id,jdbcType=INTEGER}
24
+  </delete>
25
+  <insert id="insert" parameterType="com.community.huiju.model.TpTicketRecord" >
26
+    insert into tp_ticket_record (id, community_id, ticket_id, 
27
+      status, create_user, create_date
28
+      )
29
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{ticketId,jdbcType=INTEGER}, 
30
+      #{status,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}
31
+      )
32
+  </insert>
33
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpTicketRecord" >
34
+    insert into tp_ticket_record
35
+    <trim prefix="(" suffix=")" suffixOverrides="," >
36
+      <if test="id != null" >
37
+        id,
38
+      </if>
39
+      <if test="communityId != null" >
40
+        community_id,
41
+      </if>
42
+      <if test="ticketId != null" >
43
+        ticket_id,
44
+      </if>
45
+      <if test="status != null" >
46
+        status,
47
+      </if>
48
+      <if test="createUser != null" >
49
+        create_user,
50
+      </if>
51
+      <if test="createDate != null" >
52
+        create_date,
53
+      </if>
54
+    </trim>
55
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
56
+      <if test="id != null" >
57
+        #{id,jdbcType=INTEGER},
58
+      </if>
59
+      <if test="communityId != null" >
60
+        #{communityId,jdbcType=INTEGER},
61
+      </if>
62
+      <if test="ticketId != null" >
63
+        #{ticketId,jdbcType=INTEGER},
64
+      </if>
65
+      <if test="status != null" >
66
+        #{status,jdbcType=CHAR},
67
+      </if>
68
+      <if test="createUser != null" >
69
+        #{createUser,jdbcType=INTEGER},
70
+      </if>
71
+      <if test="createDate != null" >
72
+        #{createDate,jdbcType=TIMESTAMP},
73
+      </if>
74
+    </trim>
75
+  </insert>
76
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpTicketRecord" >
77
+    update tp_ticket_record
78
+    <set >
79
+      <if test="communityId != null" >
80
+        community_id = #{communityId,jdbcType=INTEGER},
81
+      </if>
82
+      <if test="ticketId != null" >
83
+        ticket_id = #{ticketId,jdbcType=INTEGER},
84
+      </if>
85
+      <if test="status != null" >
86
+        status = #{status,jdbcType=CHAR},
87
+      </if>
88
+      <if test="createUser != null" >
89
+        create_user = #{createUser,jdbcType=INTEGER},
90
+      </if>
91
+      <if test="createDate != null" >
92
+        create_date = #{createDate,jdbcType=TIMESTAMP},
93
+      </if>
94
+    </set>
95
+    where id = #{id,jdbcType=INTEGER}
96
+  </update>
97
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpTicketRecord" >
98
+    update tp_ticket_record
99
+    set community_id = #{communityId,jdbcType=INTEGER},
100
+      ticket_id = #{ticketId,jdbcType=INTEGER},
101
+      status = #{status,jdbcType=CHAR},
102
+      create_user = #{createUser,jdbcType=INTEGER},
103
+      create_date = #{createDate,jdbcType=TIMESTAMP}
104
+    where id = #{id,jdbcType=INTEGER}
105
+  </update>
106
+</mapper>

+ 235
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml 查看文件

@@ -0,0 +1,235 @@
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.TpTransactionMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTransaction" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
8
+    <result column="transaction_title" property="transactionTitle" jdbcType="VARCHAR" />
9
+    <result column="transaction_content" property="transactionContent" jdbcType="VARCHAR" />
10
+    <result column="transaction_match_img1" property="transactionMatchImg1" jdbcType="VARCHAR" />
11
+    <result column="activity_match_img3" property="activityMatchImg3" jdbcType="VARCHAR" />
12
+    <result column="activity_match_img4" property="activityMatchImg4" jdbcType="VARCHAR" />
13
+    <result column="activity_match_img5" property="activityMatchImg5" jdbcType="VARCHAR" />
14
+    <result column="activity_match_img6" property="activityMatchImg6" jdbcType="VARCHAR" />
15
+    <result column="view_count" property="viewCount" jdbcType="INTEGER" />
16
+    <result column="status" property="status" jdbcType="CHAR" />
17
+    <result column="type" property="type" jdbcType="CHAR" />
18
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
19
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
20
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
21
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
22
+  </resultMap>
23
+  <sql id="Base_Column_List" >
24
+    id, community_id, ta_user_id, transaction_title, transaction_content, transaction_match_img1, 
25
+    activity_match_img3, activity_match_img4, activity_match_img5, activity_match_img6, 
26
+    view_count, status, type, create_user, create_date, update_user, update_date
27
+  </sql>
28
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
29
+    select 
30
+    <include refid="Base_Column_List" />
31
+    from tp_transaction
32
+    where id = #{id,jdbcType=INTEGER}
33
+  </select>
34
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
35
+    delete from tp_transaction
36
+    where id = #{id,jdbcType=INTEGER}
37
+  </delete>
38
+  <insert id="insert" parameterType="com.community.huiju.model.TpTransaction" >
39
+    insert into tp_transaction (id, community_id, ta_user_id, 
40
+      transaction_title, transaction_content, transaction_match_img1, 
41
+      activity_match_img3, activity_match_img4, activity_match_img5, 
42
+      activity_match_img6, view_count, status, 
43
+      type, create_user, create_date, 
44
+      update_user, update_date)
45
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{taUserId,jdbcType=INTEGER}, 
46
+      #{transactionTitle,jdbcType=VARCHAR}, #{transactionContent,jdbcType=VARCHAR}, #{transactionMatchImg1,jdbcType=VARCHAR}, 
47
+      #{activityMatchImg3,jdbcType=VARCHAR}, #{activityMatchImg4,jdbcType=VARCHAR}, #{activityMatchImg5,jdbcType=VARCHAR}, 
48
+      #{activityMatchImg6,jdbcType=VARCHAR}, #{viewCount,jdbcType=INTEGER}, #{status,jdbcType=CHAR}, 
49
+      #{type,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
50
+      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
51
+  </insert>
52
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TpTransaction" >
53
+    insert into tp_transaction
54
+    <trim prefix="(" suffix=")" suffixOverrides="," >
55
+      <if test="id != null" >
56
+        id,
57
+      </if>
58
+      <if test="communityId != null" >
59
+        community_id,
60
+      </if>
61
+      <if test="taUserId != null" >
62
+        ta_user_id,
63
+      </if>
64
+      <if test="transactionTitle != null" >
65
+        transaction_title,
66
+      </if>
67
+      <if test="transactionContent != null" >
68
+        transaction_content,
69
+      </if>
70
+      <if test="transactionMatchImg1 != null" >
71
+        transaction_match_img1,
72
+      </if>
73
+      <if test="activityMatchImg3 != null" >
74
+        activity_match_img3,
75
+      </if>
76
+      <if test="activityMatchImg4 != null" >
77
+        activity_match_img4,
78
+      </if>
79
+      <if test="activityMatchImg5 != null" >
80
+        activity_match_img5,
81
+      </if>
82
+      <if test="activityMatchImg6 != null" >
83
+        activity_match_img6,
84
+      </if>
85
+      <if test="viewCount != null" >
86
+        view_count,
87
+      </if>
88
+      <if test="status != null" >
89
+        status,
90
+      </if>
91
+      <if test="type != null" >
92
+        type,
93
+      </if>
94
+      <if test="createUser != null" >
95
+        create_user,
96
+      </if>
97
+      <if test="createDate != null" >
98
+        create_date,
99
+      </if>
100
+      <if test="updateUser != null" >
101
+        update_user,
102
+      </if>
103
+      <if test="updateDate != null" >
104
+        update_date,
105
+      </if>
106
+    </trim>
107
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
108
+      <if test="id != null" >
109
+        #{id,jdbcType=INTEGER},
110
+      </if>
111
+      <if test="communityId != null" >
112
+        #{communityId,jdbcType=INTEGER},
113
+      </if>
114
+      <if test="taUserId != null" >
115
+        #{taUserId,jdbcType=INTEGER},
116
+      </if>
117
+      <if test="transactionTitle != null" >
118
+        #{transactionTitle,jdbcType=VARCHAR},
119
+      </if>
120
+      <if test="transactionContent != null" >
121
+        #{transactionContent,jdbcType=VARCHAR},
122
+      </if>
123
+      <if test="transactionMatchImg1 != null" >
124
+        #{transactionMatchImg1,jdbcType=VARCHAR},
125
+      </if>
126
+      <if test="activityMatchImg3 != null" >
127
+        #{activityMatchImg3,jdbcType=VARCHAR},
128
+      </if>
129
+      <if test="activityMatchImg4 != null" >
130
+        #{activityMatchImg4,jdbcType=VARCHAR},
131
+      </if>
132
+      <if test="activityMatchImg5 != null" >
133
+        #{activityMatchImg5,jdbcType=VARCHAR},
134
+      </if>
135
+      <if test="activityMatchImg6 != null" >
136
+        #{activityMatchImg6,jdbcType=VARCHAR},
137
+      </if>
138
+      <if test="viewCount != null" >
139
+        #{viewCount,jdbcType=INTEGER},
140
+      </if>
141
+      <if test="status != null" >
142
+        #{status,jdbcType=CHAR},
143
+      </if>
144
+      <if test="type != null" >
145
+        #{type,jdbcType=CHAR},
146
+      </if>
147
+      <if test="createUser != null" >
148
+        #{createUser,jdbcType=INTEGER},
149
+      </if>
150
+      <if test="createDate != null" >
151
+        #{createDate,jdbcType=TIMESTAMP},
152
+      </if>
153
+      <if test="updateUser != null" >
154
+        #{updateUser,jdbcType=INTEGER},
155
+      </if>
156
+      <if test="updateDate != null" >
157
+        #{updateDate,jdbcType=TIMESTAMP},
158
+      </if>
159
+    </trim>
160
+  </insert>
161
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpTransaction" >
162
+    update tp_transaction
163
+    <set >
164
+      <if test="communityId != null" >
165
+        community_id = #{communityId,jdbcType=INTEGER},
166
+      </if>
167
+      <if test="taUserId != null" >
168
+        ta_user_id = #{taUserId,jdbcType=INTEGER},
169
+      </if>
170
+      <if test="transactionTitle != null" >
171
+        transaction_title = #{transactionTitle,jdbcType=VARCHAR},
172
+      </if>
173
+      <if test="transactionContent != null" >
174
+        transaction_content = #{transactionContent,jdbcType=VARCHAR},
175
+      </if>
176
+      <if test="transactionMatchImg1 != null" >
177
+        transaction_match_img1 = #{transactionMatchImg1,jdbcType=VARCHAR},
178
+      </if>
179
+      <if test="activityMatchImg3 != null" >
180
+        activity_match_img3 = #{activityMatchImg3,jdbcType=VARCHAR},
181
+      </if>
182
+      <if test="activityMatchImg4 != null" >
183
+        activity_match_img4 = #{activityMatchImg4,jdbcType=VARCHAR},
184
+      </if>
185
+      <if test="activityMatchImg5 != null" >
186
+        activity_match_img5 = #{activityMatchImg5,jdbcType=VARCHAR},
187
+      </if>
188
+      <if test="activityMatchImg6 != null" >
189
+        activity_match_img6 = #{activityMatchImg6,jdbcType=VARCHAR},
190
+      </if>
191
+      <if test="viewCount != null" >
192
+        view_count = #{viewCount,jdbcType=INTEGER},
193
+      </if>
194
+      <if test="status != null" >
195
+        status = #{status,jdbcType=CHAR},
196
+      </if>
197
+      <if test="type != null" >
198
+        type = #{type,jdbcType=CHAR},
199
+      </if>
200
+      <if test="createUser != null" >
201
+        create_user = #{createUser,jdbcType=INTEGER},
202
+      </if>
203
+      <if test="createDate != null" >
204
+        create_date = #{createDate,jdbcType=TIMESTAMP},
205
+      </if>
206
+      <if test="updateUser != null" >
207
+        update_user = #{updateUser,jdbcType=INTEGER},
208
+      </if>
209
+      <if test="updateDate != null" >
210
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
211
+      </if>
212
+    </set>
213
+    where id = #{id,jdbcType=INTEGER}
214
+  </update>
215
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpTransaction" >
216
+    update tp_transaction
217
+    set community_id = #{communityId,jdbcType=INTEGER},
218
+      ta_user_id = #{taUserId,jdbcType=INTEGER},
219
+      transaction_title = #{transactionTitle,jdbcType=VARCHAR},
220
+      transaction_content = #{transactionContent,jdbcType=VARCHAR},
221
+      transaction_match_img1 = #{transactionMatchImg1,jdbcType=VARCHAR},
222
+      activity_match_img3 = #{activityMatchImg3,jdbcType=VARCHAR},
223
+      activity_match_img4 = #{activityMatchImg4,jdbcType=VARCHAR},
224
+      activity_match_img5 = #{activityMatchImg5,jdbcType=VARCHAR},
225
+      activity_match_img6 = #{activityMatchImg6,jdbcType=VARCHAR},
226
+      view_count = #{viewCount,jdbcType=INTEGER},
227
+      status = #{status,jdbcType=CHAR},
228
+      type = #{type,jdbcType=CHAR},
229
+      create_user = #{createUser,jdbcType=INTEGER},
230
+      create_date = #{createDate,jdbcType=TIMESTAMP},
231
+      update_user = #{updateUser,jdbcType=INTEGER},
232
+      update_date = #{updateDate,jdbcType=TIMESTAMP}
233
+    where id = #{id,jdbcType=INTEGER}
234
+  </update>
235
+</mapper>

+ 20
- 0
CODE/smart-community/community-common/src/main/java/com/community/commom/constant/Constant.java 查看文件

@@ -24,5 +24,25 @@ public class Constant {
24 24
     /** 请求发送验证码的远程服务器地址 **/
25 25
     public static final String REQUEST_URL = "http://micservice.ycjcjy.com/sms";
26 26
 
27
+    /** 本地缓存过期时间 单位秒 **/
28
+    public static final Long CACHE_EXPIRE = 60L;
29
+
30
+    /** 本地緩存最大个数 **/
31
+    public static final Long CACHE_SIZE = 1000L;
32
+
33
+    /** 住户APP端消息 **/
34
+    public static final Integer MODEL_TYPE_NEWS = 1;
35
+    
36
+    /** 住户APP端待办 **/
37
+    public static final Integer MODEL_TYPE_UPCOMING = 2;
38
+
39
+    /** 社交公告类型**/
40
+    public static final String ANNOUNCEMENT = "announcement";
41
+
42
+    /** 社交活动类型**/
43
+    public static final String ACTIVITY = "activity";
44
+
45
+    /** 社交二手租赁类型**/
46
+    public static final String LEASE = "lease";
27 47
 
28 48
 }

二进制
CODE/smart-community/community-common/target/classes/com/community/commom/constant/Constant.class 查看文件


二进制
CODE/smart-community/community-common/target/classes/com/community/commom/redis/SingleRedisTemplate.class 查看文件


二进制
CODE/smart-community/community-common/target/classes/com/community/commom/utils/HttpClientUtils.class 查看文件


+ 3
- 0
CODE/smart-community/zuul/src/main/resources/bootstrap.yml 查看文件

@@ -24,3 +24,6 @@ eureka:
24 24
     service-url:
25 25
       defaultZone: http://localhost:8080/eureka/
26 26
 
27
+zuul:
28
+  host:
29
+    connect-timeout-millis: 200000

+ 14
- 10
文档/MYSQL/smartCommunity.pdb 查看文件

@@ -1,5 +1,9 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
+<<<<<<< HEAD
2 3
 <?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1540265676" Name="smartCommunity" Objects="588" Symbols="68" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
4
+=======
5
+<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1540286027" Name="smartCommunity" Objects="595" Symbols="69" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
6
+>>>>>>> develop
3 7
 <!-- do not edit this file -->
4 8
 
5 9
 <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@@ -12,7 +16,7 @@
12 16
 <a:Code>smartCommunity</a:Code>
13 17
 <a:CreationDate>1539048464</a:CreationDate>
14 18
 <a:Creator>szc</a:Creator>
15
-<a:ModificationDate>1540189341</a:ModificationDate>
19
+<a:ModificationDate>1540285906</a:ModificationDate>
16 20
 <a:Modifier>szc</a:Modifier>
17 21
 <a:PackageOptionsText>[FolderOptions]
18 22
 
@@ -3698,7 +3702,7 @@ PhysOpts=</a:ModelOptionsText>
3698 3702
 <a:Code>PhysicalDiagram_1</a:Code>
3699 3703
 <a:CreationDate>1539048464</a:CreationDate>
3700 3704
 <a:Creator>szc</a:Creator>
3701
-<a:ModificationDate>1540189341</a:ModificationDate>
3705
+<a:ModificationDate>1540285906</a:ModificationDate>
3702 3706
 <a:Modifier>szc</a:Modifier>
3703 3707
 <a:DisplayPreferences>[DisplayPreferences]
3704 3708
 
@@ -7920,13 +7924,13 @@ LABL 0 新宋体,8,N</a:FontList>
7920 7924
 </o:Table>
7921 7925
 <o:Table Id="o113">
7922 7926
 <a:ObjectID>E1A7CF79-7543-479E-B18A-516582F0951D</a:ObjectID>
7923
-<a:Name>tp_social_setting</a:Name>
7924
-<a:Code>tp_social_setting</a:Code>
7927
+<a:Name>tp_carousel_setting</a:Name>
7928
+<a:Code>tp_carousel_setting</a:Code>
7925 7929
 <a:CreationDate>1539140281</a:CreationDate>
7926 7930
 <a:Creator>szc</a:Creator>
7927
-<a:ModificationDate>1539141938</a:ModificationDate>
7931
+<a:ModificationDate>1540286027</a:ModificationDate>
7928 7932
 <a:Modifier>szc</a:Modifier>
7929
-<a:Comment>物业端社交设置表 (设置住户端公告和活动轮播数)</a:Comment>
7933
+<a:Comment>轮播数设置表</a:Comment>
7930 7934
 <a:TotalSavingCurrency/>
7931 7935
 <c:Columns>
7932 7936
 <o:Column Id="o293">
@@ -7956,13 +7960,13 @@ LABL 0 新宋体,8,N</a:FontList>
7956 7960
 </o:Column>
7957 7961
 <o:Column Id="o295">
7958 7962
 <a:ObjectID>6571CBA9-911D-4751-9D38-280D5CDC1641</a:ObjectID>
7959
-<a:Name>social_type</a:Name>
7960
-<a:Code>social_type</a:Code>
7963
+<a:Name>carousel_type</a:Name>
7964
+<a:Code>carousel_type</a:Code>
7961 7965
 <a:CreationDate>1539141779</a:CreationDate>
7962 7966
 <a:Creator>szc</a:Creator>
7963
-<a:ModificationDate>1539142002</a:ModificationDate>
7967
+<a:ModificationDate>1540285970</a:ModificationDate>
7964 7968
 <a:Modifier>szc</a:Modifier>
7965
-<a:Comment>社交类型: announcement 表示公告  activity 表示活动</a:Comment>
7969
+<a:Comment>轮播类型: announcement 表示公告  activity 表示活动  banner表示运营banner</a:Comment>
7966 7970
 <a:DataType>varchar(80)</a:DataType>
7967 7971
 <a:Length>80</a:Length>
7968 7972
 </o:Column>

+ 14
- 10
文档/MYSQL/smartCommunity.pdm 查看文件

@@ -1,5 +1,9 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
+<<<<<<< HEAD
2 3
 <?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1540273523" Name="smartCommunity" Objects="577" Symbols="68" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
4
+=======
5
+<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1540286027" Name="smartCommunity" Objects="595" Symbols="69" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
6
+>>>>>>> develop
3 7
 <!-- do not edit this file -->
4 8
 
5 9
 <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@@ -12,7 +16,7 @@
12 16
 <a:Code>smartCommunity</a:Code>
13 17
 <a:CreationDate>1539048464</a:CreationDate>
14 18
 <a:Creator>szc</a:Creator>
15
-<a:ModificationDate>1540189341</a:ModificationDate>
19
+<a:ModificationDate>1540285906</a:ModificationDate>
16 20
 <a:Modifier>szc</a:Modifier>
17 21
 <a:PackageOptionsText>[FolderOptions]
18 22
 
@@ -3698,7 +3702,7 @@ PhysOpts=</a:ModelOptionsText>
3698 3702
 <a:Code>PhysicalDiagram_1</a:Code>
3699 3703
 <a:CreationDate>1539048464</a:CreationDate>
3700 3704
 <a:Creator>szc</a:Creator>
3701
-<a:ModificationDate>1540189341</a:ModificationDate>
3705
+<a:ModificationDate>1540285906</a:ModificationDate>
3702 3706
 <a:Modifier>szc</a:Modifier>
3703 3707
 <a:DisplayPreferences>[DisplayPreferences]
3704 3708
 
@@ -7920,13 +7924,13 @@ LABL 0 新宋体,8,N</a:FontList>
7920 7924
 </o:Table>
7921 7925
 <o:Table Id="o113">
7922 7926
 <a:ObjectID>E1A7CF79-7543-479E-B18A-516582F0951D</a:ObjectID>
7923
-<a:Name>tp_social_setting</a:Name>
7924
-<a:Code>tp_social_setting</a:Code>
7927
+<a:Name>tp_carousel_setting</a:Name>
7928
+<a:Code>tp_carousel_setting</a:Code>
7925 7929
 <a:CreationDate>1539140281</a:CreationDate>
7926 7930
 <a:Creator>szc</a:Creator>
7927
-<a:ModificationDate>1539141938</a:ModificationDate>
7931
+<a:ModificationDate>1540286027</a:ModificationDate>
7928 7932
 <a:Modifier>szc</a:Modifier>
7929
-<a:Comment>物业端社交设置表 (设置住户端公告和活动轮播数)</a:Comment>
7933
+<a:Comment>轮播数设置表</a:Comment>
7930 7934
 <a:TotalSavingCurrency/>
7931 7935
 <c:Columns>
7932 7936
 <o:Column Id="o293">
@@ -7956,13 +7960,13 @@ LABL 0 新宋体,8,N</a:FontList>
7956 7960
 </o:Column>
7957 7961
 <o:Column Id="o295">
7958 7962
 <a:ObjectID>6571CBA9-911D-4751-9D38-280D5CDC1641</a:ObjectID>
7959
-<a:Name>social_type</a:Name>
7960
-<a:Code>social_type</a:Code>
7963
+<a:Name>carousel_type</a:Name>
7964
+<a:Code>carousel_type</a:Code>
7961 7965
 <a:CreationDate>1539141779</a:CreationDate>
7962 7966
 <a:Creator>szc</a:Creator>
7963
-<a:ModificationDate>1539142002</a:ModificationDate>
7967
+<a:ModificationDate>1540285970</a:ModificationDate>
7964 7968
 <a:Modifier>szc</a:Modifier>
7965
-<a:Comment>社交类型: announcement 表示公告  activity 表示活动</a:Comment>
7969
+<a:Comment>轮播类型: announcement 表示公告  activity 表示活动  banner表示运营banner</a:Comment>
7966 7970
 <a:DataType>varchar(80)</a:DataType>
7967 7971
 <a:Length>80</a:Length>
7968 7972
 </o:Column>

二进制
文档/需求/app接口需求-第二版.xlsx 查看文件