瀏覽代碼

合并本地分支

魏超 6 年之前
父節點
當前提交
495bc8d5dc

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

@@ -1,7 +1,10 @@
1 1
 package com.community.huiju.controller;
2 2
 
3
+import com.community.commom.constant.Constant;
3 4
 import com.community.commom.mode.ResponseBean;
5
+import com.community.huiju.model.TpActivity;
4 6
 import com.community.huiju.model.TpAnnouncement;
7
+import com.community.huiju.model.TpMessage;
5 8
 import com.community.huiju.service.SocialServiceI;
6 9
 import io.swagger.annotations.Api;
7 10
 import io.swagger.annotations.ApiImplicitParam;
@@ -11,6 +14,8 @@ import org.springframework.beans.factory.annotation.Autowired;
11 14
 import org.springframework.cloud.context.config.annotation.RefreshScope;
12 15
 import org.springframework.web.bind.annotation.*;
13 16
 
17
+import java.util.List;
18
+
14 19
 /**
15 20
  * @author weichaochao
16 21
  * @Title: SocialController
@@ -42,5 +47,30 @@ public class SocialController {
42 47
         ResponseBean responseBean = new ResponseBean();
43 48
         return responseBean;
44 49
     }
45
-
50
+    
51
+    @ApiOperation(value = "按小区获取分页公告列表", notes = "按小区获取分页公告列表,公告标题模糊查询")
52
+    @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
53
+            @ApiImplicitParam(paramType = "query", dataType = "String", name = "title", value = "公告标题"),
54
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
55
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")})
56
+    @RequestMapping(value = "/announcements/{communityId}",method = RequestMethod.GET)
57
+    public ResponseBean getAnnouncements(@PathVariable Integer communityId,@RequestParam String title,@RequestParam Integer pageNum,@RequestParam Integer pageSize){
58
+        ResponseBean responseBean = new ResponseBean();
59
+        List<TpAnnouncement> announcementList = socialServiceI.getAnnouncements(communityId,title,pageNum,pageSize);
60
+        responseBean.addSuccess(announcementList);
61
+        return responseBean;
62
+    }
63
+    
64
+    @ApiOperation(value = "按小区获取分页活动列表", notes = "按小区获取分页活动列表,公告标题模糊查询")
65
+    @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
66
+            @ApiImplicitParam(paramType = "query", dataType = "String", name = "title", value = "活动标题"),
67
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
68
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")})
69
+    @RequestMapping(value = "/activitys/{communityId}",method = RequestMethod.GET)
70
+    public ResponseBean getActivitys(@PathVariable Integer communityId,@RequestParam String title,@RequestParam Integer pageNum,@RequestParam Integer pageSize){
71
+        ResponseBean responseBean = new ResponseBean();
72
+        List<TpActivity> activityList = socialServiceI.getActivitys(communityId,title,pageNum,pageSize);
73
+        responseBean.addSuccess(activityList);
74
+        return responseBean;
75
+    }
46 76
 }

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

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

+ 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
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivity.java 查看文件

@@ -38,6 +38,8 @@ public class TpActivity {
38 38
     private Integer updateUser;
39 39
 
40 40
     private Date updateDate;
41
+    
42
+    private String userName;
41 43
 
42 44
     public Integer getId() {
43 45
         return id;
@@ -182,4 +184,12 @@ public class TpActivity {
182 184
     public void setUpdateDate(Date updateDate) {
183 185
         this.updateDate = updateDate;
184 186
     }
187
+    
188
+    public String getUserName() {
189
+        return userName;
190
+    }
191
+    
192
+    public void setUserName(String userName) {
193
+        this.userName = userName;
194
+    }
185 195
 }

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

@@ -22,6 +22,8 @@ public class TpAnnouncement {
22 22
     private String status;
23 23
 
24 24
     private Integer createUser;
25
+    
26
+    private String userName;
25 27
 
26 28
     private Date createDate;
27 29
 
@@ -132,4 +134,12 @@ public class TpAnnouncement {
132 134
     public void setUpdateDate(Date updateDate) {
133 135
         this.updateDate = updateDate;
134 136
     }
137
+    
138
+    public String getUserName() {
139
+        return userName;
140
+    }
141
+    
142
+    public void setUserName(String userName) {
143
+        this.userName = userName;
144
+    }
135 145
 }

+ 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
+}

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

@@ -27,6 +27,7 @@ public class MessageServiceImpl implements MessageServiceI {
27 27
 	 */
28 28
 	@Override
29 29
 	public Map<String, Object> getMessageTotal(Integer communityId) {
30
+		//todo
30 31
 		Integer userId = 1;
31 32
 		return tpMessageMapper.getMessageTotal(userId,communityId);
32 33
 	}
@@ -41,6 +42,7 @@ public class MessageServiceImpl implements MessageServiceI {
41 42
 	 */
42 43
 	@Override
43 44
 	public List<TpMessage> getMessages(Integer communityId, Integer pageNum, Integer pageSize,Integer modelType) {
45
+		//todo
44 46
 		Integer userId = 1;
45 47
 		pageNum = null == pageNum ? 1 : pageNum;
46 48
 		pageSize = null == pageSize ? 10 : pageSize;

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

@@ -7,6 +7,7 @@
7 7
     <result column="activity_title" property="activityTitle" jdbcType="VARCHAR" />
8 8
     <result column="activity_carousel_img" property="activityCarouselImg" jdbcType="VARCHAR" />
9 9
     <result column="activity_content" property="activityContent" jdbcType="VARCHAR" />
10
+    <result column="user_name" property="userName" jdbcType="VARCHAR" />
10 11
     <result column="sort" property="sort" jdbcType="INTEGER" />
11 12
     <result column="sign_up_count" property="signUpCount" jdbcType="INTEGER" />
12 13
     <result column="sign_up_max" property="signUpMax" jdbcType="INTEGER" />
@@ -246,4 +247,27 @@
246 247
       update_date = #{updateDate,jdbcType=TIMESTAMP}
247 248
     where id = #{id,jdbcType=INTEGER}
248 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>
249 273
 </mapper>

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

@@ -259,5 +259,7 @@
259 259
         AND STATUS = 1
260 260
         AND advice_type = 1
261 261
         AND model_type = #{modelType,jdbcType=INTEGER}
262
+    ORDER BY
263
+    create_date DESC
262 264
   </select>
263 265
 </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>

+ 289
- 277
文档/MYSQL/smartCommunity.pdb
文件差異過大導致無法顯示
查看文件