dingxin vor 6 Jahren
Ursprung
Commit
095e52bef5

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java Datei anzeigen

@@ -83,7 +83,7 @@ public class SocialController extends BaseController {
83 83
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")})
84 84
     public ResponseBean cancelSignActivity(@PathVariable(value = "communityId") Integer communityId, @RequestParam("activityId") Integer activityId, HttpSession session) {
85 85
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
86
-        Integer userId = userElement.getId();
86
+        Integer userId = userElement.getUserVerifyId();
87 87
         
88 88
         ResponseBean responseBean = new ResponseBean();
89 89
         
@@ -108,7 +108,7 @@ public class SocialController extends BaseController {
108 108
                                      @RequestParam("activityId") Integer activityId,
109 109
                                      HttpSession session) {
110 110
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
111
-        Integer userId = userElement.getId();
111
+        Integer userId = userElement.getUserVerifyId();
112 112
 
113 113
         ResponseBean responseBean = new ResponseBean();
114 114
         if (!check(communityId)) {

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivitySignInMapper.java Datei anzeigen

@@ -23,6 +23,6 @@ public interface TpActivitySignInMapper {
23 23
      * 查询当前人员是否已签到
24 24
      *
25 25
      */
26
-    TpActivitySignIn selectSing(@Param("activityId") Integer activityId,@Param("userID") Integer userID);
26
+    TpActivitySignIn selectSing(@Param("activityId") Integer activityId,@Param("userID") Integer userID,@Param("communityId") Integer communityId);
27 27
 
28 28
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Datei anzeigen

@@ -217,7 +217,7 @@ public class SocialServiceImpl implements SocialServiceI {
217 217
             tpActivity.setUserName(tpUser.getUserName());
218 218
         }
219 219
         //查看当前人是否签到
220
-        TpActivitySignIn tpActivitySignIn = tpActivitySignInMapper.selectSing(activityId, userId);
220
+        TpActivitySignIn tpActivitySignIn = tpActivitySignInMapper.selectSing(activityId, userId,communityId);
221 221
         Integer signType = tpActivitySignIn == null ? 0 : 1;
222 222
         tpActivity.setSignType(signType);
223 223
 

+ 1
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpActivitySignInMapper.xml Datei anzeigen

@@ -147,6 +147,7 @@
147 147
     where
148 148
     activity_id = #{activityId,jdbcType=INTEGER}
149 149
     and ta_user_id = #{userID,jdbcType=INTEGER}
150
+    and community_id = #{communityId,jdbcType=INTEGER}
150 151
   </select>
151 152
 
152 153
   <select id="toSignUp" resultMap="BaseResultMap">

+ 1
- 1
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToUserServerImpl.java Datei anzeigen

@@ -396,7 +396,7 @@ public class ToUserServerImpl implements IToUserService {
396 396
                 return responseBean;
397 397
             }
398 398
         }
399
-        // 手机号不存时可以更新
399
+        // 手机号不存时可以更新
400 400
         if (null == operateTel){
401 401
             toOperateTelMapper.updateByPrimaryKey(toOperateTel);
402 402
             responseBean.addSuccess("成功");

+ 9
- 9
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaUserLicenseOrderServiceImpl.java Datei anzeigen

@@ -74,23 +74,23 @@ public class TaUserLicenseOrderServiceImpl extends ServiceImpl<TaUserLicenseOrde
74 74
         Row row = sheet.createRow(0);
75 75
         Cell cell = row.createCell(0);
76 76
         cell.setCellValue("编号");
77
-        cell = row.createCell(0);
78
-        cell.setCellValue("车牌号");
79 77
         cell = row.createCell(1);
80
-        cell.setCellValue("续期时长(月)");
78
+        cell.setCellValue("车牌号");
81 79
         cell = row.createCell(2);
82
-        cell.setCellValue("续期费用(元)");
80
+        cell.setCellValue("续期时长(月)");
83 81
         cell = row.createCell(3);
84
-        cell.setCellValue("缴费订单号");
82
+        cell.setCellValue("续期费用(元)");
85 83
         cell = row.createCell(4);
86
-        cell.setCellValue("缴费人手机号");
84
+        cell.setCellValue("缴费订单号");
87 85
         cell = row.createCell(5);
88
-        cell.setCellValue("缴费人姓名");
86
+        cell.setCellValue("缴费人手机号");
89 87
         cell = row.createCell(6);
90
-        cell.setCellValue("缴费方式");
88
+        cell.setCellValue("缴费人姓名");
91 89
         cell = row.createCell(7);
92
-        cell.setCellValue("延期后到期日");
90
+        cell.setCellValue("缴费方式");
93 91
         cell = row.createCell(8);
92
+        cell.setCellValue("延期后到期日");
93
+        cell = row.createCell(9);
94 94
         cell.setCellValue("缴费完成时间");
95 95
 
96 96
         DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss");

+ 8
- 6
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivityServiceImpl.java Datei anzeigen

@@ -12,10 +12,7 @@ import com.community.commom.session.UserElement;
12 12
 import com.community.commom.utils.BeanTools;
13 13
 import com.community.huiju.common.base.QRCode;
14 14
 import com.community.huiju.common.perproties.QRCodePerproties;
15
-import com.community.huiju.dao.MessageMapper;
16
-import com.community.huiju.dao.TaUserMapper;
17
-import com.community.huiju.dao.TdImagesMapper;
18
-import com.community.huiju.dao.TpActivityMapper;
15
+import com.community.huiju.dao.*;
19 16
 import com.community.huiju.exception.WisdomException;
20 17
 import com.community.huiju.model.*;
21 18
 import com.community.huiju.service.ITdImagesService;
@@ -74,6 +71,8 @@ public class TpActivityServiceImpl extends ServiceImpl<TpActivityMapper, TpActiv
74 71
 
75 72
     @Autowired
76 73
     private QRCodePerproties qrCodePerproties;
74
+    @Autowired
75
+    private TpActivitySignInMapper tpActivitySignInMapper;
77 76
 
78 77
     @Override
79 78
     public ResponseBean listQuery(String parameter, UserElement userElement) {
@@ -107,8 +106,11 @@ public class TpActivityServiceImpl extends ServiceImpl<TpActivityMapper, TpActiv
107 106
                 User updateUser = iUserService.getById(activity.getUpdateUser());
108 107
                 activityVO.setUpdateUserName(updateUser.getUserName());
109 108
             }
110
-            // TODO 临时数据
111
-            activityVO.setSignInCount(1);
109
+            QueryWrapper<TpActivitySignIn> tpActivitySignIn= new QueryWrapper<>();
110
+            tpActivitySignIn.eq("activity_id",activity.getId());
111
+            tpActivitySignIn.eq("community_id",activity.getCommunityId());
112
+            Integer tpActivitySignInCount= tpActivitySignInMapper.selectCount(tpActivitySignIn);
113
+            activityVO.setSignInCount(tpActivitySignInCount);
112 114
             return activityVO;
113 115
         }).collect(Collectors.toList());
114 116
 

+ 6
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivitySignUpServiceImpl.java Datei anzeigen

@@ -47,6 +47,9 @@ public class TpActivitySignUpServiceImpl extends ServiceImpl<TpActivitySignUpMap
47 47
     @Autowired
48 48
     private TaSysRoleMapper taSysRoleMapper;
49 49
 
50
+    @Autowired
51
+    private TaUserVerifyMapper taUserVerifyMapper;
52
+
50 53
 
51 54
 
52 55
     @Override
@@ -79,7 +82,9 @@ public class TpActivitySignUpServiceImpl extends ServiceImpl<TpActivitySignUpMap
79 82
             ActivitySignUpVO activitySignUpVO = new ActivitySignUpVO();
80 83
             BeanTools.copyProperties(e, activitySignUpVO);
81 84
 
82
-            TaUser taUser = taUserMapper.selectById(e.getTaUserId());
85
+            //根据房产ID-去查询用户ID
86
+            TaUserVerify taUserVerify= taUserVerifyMapper.selectById(e.getTaUserId());
87
+            TaUser taUser = taUserMapper.selectById(taUserVerify.getUserId());
83 88
 
84 89
             activitySignUpVO.setUserName(taUser.getUserName());
85 90
             activitySignUpVO.setPhone(taUser.getLoginName());

+ 3
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpRentalHouseServiceImpl.java Datei anzeigen

@@ -134,7 +134,9 @@ public class TpRentalHouseServiceImpl extends ServiceImpl<TpRentalHouseMapper, T
134 134
 		tpRentalHouseImgQueryWrapper.eq("rental_house_id",tpRentalHouse.getId());
135 135
 		tpRentalHouseImgQueryWrapper.eq("img_type","1");
136 136
 		TpRentalHouseImg tpRentalHouseImg = tpRentalHouseImgMapper.selectOne(tpRentalHouseImgQueryWrapper);
137
-		tpRentalHouse.setAppListImg(tpRentalHouseImg.getImgUrl());
137
+		if (null != tpRentalHouseImg){
138
+			tpRentalHouse.setAppListImg(tpRentalHouseImg.getImgUrl());
139
+		}
138 140
 		//获取公寓轮播图图片
139 141
 		QueryWrapper<TpRentalHouseImg> carouseQueryWrapper = new QueryWrapper<>();
140 142
 		carouseQueryWrapper.eq("community_id", tpRentalHouse.getCommunityId());

+ 1
- 1
VUECODE/smart-property-manage/src/views/message/index.vue Datei anzeigen

@@ -200,7 +200,7 @@ export default {
200 200
     },
201 201
     // 活动
202 202
      activityDetails(id) { // 查看活动
203
-      this.$router.push({ name: 'activity-info', params: { id: id }})
203
+      this.$router.push({ name: 'activity-info', query: { id: id }})
204 204
     },
205 205
     //工单
206 206
     ticketDetails(id) {

+ 6
- 3
VUECODE/smart-property-manage/src/views/social/activity/add/index.vue Datei anzeigen

@@ -5,7 +5,7 @@
5 5
         <el-input v-model="ruleForm.activityTitle" placeholder="20字以内" style="width: 620px;"/>
6 6
       </el-form-item>
7 7
       <el-form-item label="活动轮播图" prop="activityCarouselImg">
8
-        <span style="color: darkgray;">轮播图为横幅位展示图片,不会显示在活动详情页</span>
8
+        <span style="color: darkgray;font-size:14px">轮播图为横幅位展示图片,不会显示在活动详情页</span>
9 9
         <div >
10 10
           <el-upload
11 11
             :show-file-list="false"
@@ -62,7 +62,7 @@
62 62
         </div>
63 63
       </el-form-item>
64 64
       <div style="width: 500px;">
65
-        <span style="color: darkgray;">选择扫码签到,活动发布后点击活动详情可以下载二维码图片,打印图片放置到活动现场,参加活动的用户即可扫码签到,方便统计活动实际参与人数。</span>
65
+        <span style="color: darkgray;font-size:14px">选择扫码签到,活动发布后点击活动详情可以下载二维码图片,打印图片放置到活动现场,参加活动的用户即可扫码签到,方便统计活动实际参与人数。</span>
66 66
       </div>
67 67
       <el-form-item label="权重值" prop="sort" style="margin-top: 20px;">
68 68
         <div style="display: flex; width: 620px; justify-content: flex-end;">
@@ -70,7 +70,7 @@
70 70
         </div>
71 71
       </el-form-item>
72 72
       <div style="width: 500px;">
73
-        <span style="color: darkgray;">权重值越大,在活动列表中排序越靠前,权重相同时按发布时间排序</span>
73
+        <span style="color: darkgray;font-size:14px">权重值越大,在活动列表中排序越靠前,权重相同时按发布时间排序</span>
74 74
       </div>
75 75
       <el-form-item style="display: flex; justify-content: center; margin-top: 20px;">
76 76
         <el-button type="primary" @click="resetForm('ruleForm')">存为草稿</el-button>
@@ -128,6 +128,9 @@ export default {
128 128
       uploadImgUrl: process.env.BASE_API + '/uploadimage'
129 129
     }
130 130
   },
131
+  // created() {
132
+  //   this.ruleForm.activityContent = `<p><span style="color: darkgray;">iiiiii</span></p>`
133
+  // },
131 134
   methods: {
132 135
     submitForm(formName) {
133 136
       this.$refs[formName].validate((valid) => {

+ 3
- 3
VUECODE/smart-property-manage/src/views/social/activity/edi/index.vue Datei anzeigen

@@ -5,7 +5,7 @@
5 5
         <el-input v-model="ruleForm.activityTitle" placeholder="15字以内"/>
6 6
       </el-form-item>
7 7
       <el-form-item label="活动轮播图" prop="activityCarouselImg">
8
-        <span style="color: darkgray;">轮播图为横幅位展示图片,不会显示在活动详情页</span>
8
+        <span style="color: darkgray;font-size:14px">轮播图为横幅位展示图片,不会显示在活动详情页</span>
9 9
         <div >
10 10
           <div style="width: 500px;">
11 11
             <el-upload
@@ -65,7 +65,7 @@
65 65
         </div>
66 66
       </el-form-item>
67 67
       <div style="width: 500px;">
68
-        <span style="color: darkgray;">选择扫码签到,活动发布后点击活动详情可以下载二维码图片,打印图片放置到活动现场,参加活动的用户即可扫码签到,方便统计活动实际参与人数。</span>
68
+        <span style="color: darkgray;font-size:14px">选择扫码签到,活动发布后点击活动详情可以下载二维码图片,打印图片放置到活动现场,参加活动的用户即可扫码签到,方便统计活动实际参与人数。</span>
69 69
       </div>
70 70
       <el-form-item prop="sort" label="权重值" style="margin-top: 20px;">
71 71
         <div style="display: flex; width: 620px;  justify-content: flex-end;">
@@ -73,7 +73,7 @@
73 73
         </div>
74 74
       </el-form-item>
75 75
       <div style="width: 500px;">
76
-        <span style="color: darkgray;">权重值越大,在活动列表中排序越靠前,权重相同时按发布时间排序</span>
76
+        <span style="color: darkgray;font-size:14px">权重值越大,在活动列表中排序越靠前,权重相同时按发布时间排序</span>
77 77
       </div>
78 78
       <el-form-item style="display: flex; justify-content: center; margin-top: 20px;">
79 79
         <el-button type="primary" @click="submitForm('ruleForm')">发布</el-button>

+ 2
- 1
VUECODE/smart-property-manage/src/views/social/activity/info/index.vue Datei anzeigen

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div id="root">
3
-    <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-position="left" label-width="180px" class="ruleForm">
3
+    <el-form ref="ruleForm" :model="ruleForm" label-position="left" label-width="180px" class="ruleForm">
4 4
       <el-form-item label="活动标题">
5 5
         <span>{{ ruleForm.activityTitle }}</span>
6 6
       </el-form-item>
@@ -97,6 +97,7 @@ export default {
97 97
   },
98 98
   mounted() {
99 99
     this.ruleForm.id = this.$route.query.id
100
+    console.log('this.ruleForm.id',this.ruleForm.id)
100 101
     this.getById()
101 102
   },
102 103
   methods: {