dingxin 6 年前
父节点
当前提交
095e52bef5

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

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

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

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 查看文件

217
             tpActivity.setUserName(tpUser.getUserName());
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
         Integer signType = tpActivitySignIn == null ? 0 : 1;
221
         Integer signType = tpActivitySignIn == null ? 0 : 1;
222
         tpActivity.setSignType(signType);
222
         tpActivity.setSignType(signType);
223
 
223
 

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

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

+ 1
- 1
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToUserServerImpl.java 查看文件

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

+ 9
- 9
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaUserLicenseOrderServiceImpl.java 查看文件

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

12
 import com.community.commom.utils.BeanTools;
12
 import com.community.commom.utils.BeanTools;
13
 import com.community.huiju.common.base.QRCode;
13
 import com.community.huiju.common.base.QRCode;
14
 import com.community.huiju.common.perproties.QRCodePerproties;
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
 import com.community.huiju.exception.WisdomException;
16
 import com.community.huiju.exception.WisdomException;
20
 import com.community.huiju.model.*;
17
 import com.community.huiju.model.*;
21
 import com.community.huiju.service.ITdImagesService;
18
 import com.community.huiju.service.ITdImagesService;
74
 
71
 
75
     @Autowired
72
     @Autowired
76
     private QRCodePerproties qrCodePerproties;
73
     private QRCodePerproties qrCodePerproties;
74
+    @Autowired
75
+    private TpActivitySignInMapper tpActivitySignInMapper;
77
 
76
 
78
     @Override
77
     @Override
79
     public ResponseBean listQuery(String parameter, UserElement userElement) {
78
     public ResponseBean listQuery(String parameter, UserElement userElement) {
107
                 User updateUser = iUserService.getById(activity.getUpdateUser());
106
                 User updateUser = iUserService.getById(activity.getUpdateUser());
108
                 activityVO.setUpdateUserName(updateUser.getUserName());
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
             return activityVO;
114
             return activityVO;
113
         }).collect(Collectors.toList());
115
         }).collect(Collectors.toList());
114
 
116
 

+ 6
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivitySignUpServiceImpl.java 查看文件

47
     @Autowired
47
     @Autowired
48
     private TaSysRoleMapper taSysRoleMapper;
48
     private TaSysRoleMapper taSysRoleMapper;
49
 
49
 
50
+    @Autowired
51
+    private TaUserVerifyMapper taUserVerifyMapper;
52
+
50
 
53
 
51
 
54
 
52
     @Override
55
     @Override
79
             ActivitySignUpVO activitySignUpVO = new ActivitySignUpVO();
82
             ActivitySignUpVO activitySignUpVO = new ActivitySignUpVO();
80
             BeanTools.copyProperties(e, activitySignUpVO);
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
             activitySignUpVO.setUserName(taUser.getUserName());
89
             activitySignUpVO.setUserName(taUser.getUserName());
85
             activitySignUpVO.setPhone(taUser.getLoginName());
90
             activitySignUpVO.setPhone(taUser.getLoginName());

+ 3
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpRentalHouseServiceImpl.java 查看文件

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

+ 1
- 1
VUECODE/smart-property-manage/src/views/message/index.vue 查看文件

200
     },
200
     },
201
     // 活动
201
     // 活动
202
      activityDetails(id) { // 查看活动
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
     ticketDetails(id) {
206
     ticketDetails(id) {

+ 6
- 3
VUECODE/smart-property-manage/src/views/social/activity/add/index.vue 查看文件

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

+ 3
- 3
VUECODE/smart-property-manage/src/views/social/activity/edi/index.vue 查看文件

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

+ 2
- 1
VUECODE/smart-property-manage/src/views/social/activity/info/index.vue 查看文件

1
 <template>
1
 <template>
2
   <div id="root">
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
       <el-form-item label="活动标题">
4
       <el-form-item label="活动标题">
5
         <span>{{ ruleForm.activityTitle }}</span>
5
         <span>{{ ruleForm.activityTitle }}</span>
6
       </el-form-item>
6
       </el-form-item>
97
   },
97
   },
98
   mounted() {
98
   mounted() {
99
     this.ruleForm.id = this.$route.query.id
99
     this.ruleForm.id = this.$route.query.id
100
+    console.log('this.ruleForm.id',this.ruleForm.id)
100
     this.getById()
101
     this.getById()
101
   },
102
   },
102
   methods: {
103
   methods: {