Bladeren bron

提交 我参加的活动,加上姓名

魏熙美 6 jaren geleden
bovenliggende
commit
f92fbde7bf

+ 10
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivity.java Bestand weergeven

@@ -43,6 +43,8 @@ public class TpActivity {
43 43
     
44 44
     private String userName;
45 45
 
46
+    private String userRole;
47
+
46 48
     private String signInCode;
47 49
 
48 50
     public String getSignInCode() {
@@ -240,4 +242,12 @@ public class TpActivity {
240 242
     public void setImgList(List<String> imgList) {
241 243
         this.imgList = imgList;
242 244
     }
245
+
246
+    public String getUserRole() {
247
+        return userRole;
248
+    }
249
+
250
+    public void setUserRole(String userRole) {
251
+        this.userRole = userRole;
252
+    }
243 253
 }

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Bestand weergeven

@@ -644,6 +644,7 @@ public class SocialServiceImpl implements SocialServiceI {
644 644
         Map<String, Object> parameter = Maps.newHashMap();
645 645
         Page<TpActivity> pageList = PageHelper.startPage(pageNum, paeSize);
646 646
         List<TpActivity> tpActivity = tpActivityMapper.selecttpActivity(userElement.getUserVerifyId(), userElement.getCommunityId());
647
+        tpActivity.forEach(e -> e.setUserRole("物业"));
647 648
         parameter.put("list", tpActivity);
648 649
         parameter.put("total", pageList.getTotal());
649 650
         responseBean.addSuccess(parameter);

+ 7
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpActivityMapper.xml Bestand weergeven

@@ -22,7 +22,8 @@
22 22
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
23 23
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
24 24
     <result column="sign_in_code" property="signInCode" jdbcType="VARCHAR" />
25
-
25
+    <result column="userRole" property="userRole"/>
26
+    <result column="userName" property="userName"/>
26 27
   </resultMap>
27 28
   <sql id="Base_Column_List" >
28 29
     id, community_id, activity_title, activity_carousel_img, activity_content, sort, 
@@ -295,9 +296,13 @@
295 296
   </select>
296 297
 
297 298
   <select id="selecttpActivity" resultMap="BaseResultMap">
298
-    SELECT * FROM
299
+    SELECT
300
+    a.*,
301
+    tu.user_name as userName
302
+    FROM
299 303
     tp_activity a
300 304
     LEFT JOIN tp_activity_sign_up tr ON tr.activity_id = a.id
305
+    LEFT JOIN tp_user tu ON a.create_user = tu.id
301 306
     WHERE tr.ta_user_id = #{id}
302 307
     AND tr.community_id =#{communityId}
303 308
     order by a.create_date desc

+ 1
- 0
VUECODE/smart-operate-manage/src/views/login/index.vue Bestand weergeven

@@ -109,6 +109,7 @@ export default {
109 109
               this.$router.push({ name: 'index' })
110 110
             } else {
111 111
               this.loading = false
112
+              this.$message.error(res.message)
112 113
             }
113 114
           }).catch(() => {
114 115
             this.loading = false

+ 1
- 0
VUECODE/smart-property-manage/src/App.vue Bestand weergeven

@@ -9,3 +9,4 @@ export default {
9 9
   name: 'App'
10 10
 }
11 11
 </script>
12
+