傅行帆 6 gadus atpakaļ
vecāks
revīzija
463396704a

+ 1
- 5
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/hk/HKOpenApi.java Parādīt failu

@@ -441,7 +441,7 @@ public class HKOpenApi {
441 441
         //设置时间参数
442 442
         parMap.put("time", System.currentTimeMillis());
443 443
         parMap.put("opUserUuid",HKConstant.OP_USER_UUID);
444
-        parMap.put("deviceUuids","83dfab0eef52411d991d6e621296b60a,dfd80b22f00545b8b36fa981019df83c");
444
+        parMap.put("deviceUuids","83dfab0eef52411d991d6e621296b60a,dfd80b22f00545b8b36fa981019df83c,6d4b9c4ad10b47bdbdccd8710c4d1d71,765532274ae84f9bb495d801444a7f1e");
445 445
         parMap.put("personIds",personIds);
446 446
         parMap.put("type",1);
447 447
         String params =  JSON.toJSONString(parMap);
@@ -610,10 +610,6 @@ public class HKOpenApi {
610 610
     }
611 611
     
612 612
     public static void main(String[] args) {
613
-        String data = HKOpenApi.downloadAuthorityByDeviceUuids();
614
-
615
-        System.out.println(data);
616
-
617 613
     }
618 614
 
619 615
 }

+ 9
- 9
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/FaceController.java Parādīt failu

@@ -26,47 +26,47 @@ public class FaceController {
26 26
     @ApiOperation(value = "添加人脸图片", notes = "添加人脸图片")
27 27
     @ApiImplicitParams({
28 28
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
29
-            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserID",value = "家属或租户ID,不填为本人")
29
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人")
30 30
     })
31 31
     
32 32
     @RequestMapping(value = "/addFace",method = RequestMethod.POST)
33 33
     public Object getTaFace(HttpSession session,
34 34
                             @ApiParam(value = "file" ,required = true) MultipartFile uploadFile,
35
-                            @RequestParam(required = false) Integer otherUserID){
35
+                            @RequestParam(required = false) Integer otherUserId){
36 36
         ResponseBean responseBean = new ResponseBean();
37 37
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
38 38
         Integer userId = userElement.getId();
39
-        responseBean = faceServicel.addFace(userId ,uploadFile,otherUserID);
39
+        responseBean = faceServicel.addFace(userId ,uploadFile,otherUserId);
40 40
         return responseBean;
41 41
     }
42 42
 
43 43
     @ApiOperation(value = "修改人脸图片", notes = "修改人脸图片")
44 44
     @ApiImplicitParams({
45 45
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
46
-            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserID",value = "家属或租户ID,不填为本人")
46
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人")
47 47
     })
48 48
     @RequestMapping(value = "/upDateFace",method = RequestMethod.POST)
49 49
     public Object upDateTaFace(HttpSession session,
50 50
                                @ApiParam(value = "file" ,required = true) MultipartFile uploadFile,
51
-                               @RequestParam(required = false) Integer otherUserID
51
+                               @RequestParam(required = false) Integer otherUserId
52 52
                                ){
53 53
         ResponseBean responseBean = new ResponseBean();
54 54
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
55 55
         Integer userId = userElement.getId();
56
-         responseBean = faceServicel.upDateFace(userId,uploadFile,otherUserID);
56
+         responseBean = faceServicel.upDateFace(userId,uploadFile,otherUserId);
57 57
         return responseBean;
58 58
     }
59 59
 
60 60
     @ApiOperation(value = "获取当前已录入人脸信息", notes = "获取当前已录入人脸信息")
61 61
     @ApiImplicitParams({
62 62
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
63
-            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserID",value = "家属或租户ID,不填为本人")
63
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人")
64 64
     })
65 65
     @RequestMapping(value = "/getUserIdFace",method = RequestMethod.GET)
66
-    public Object getTaFaceByUserId(HttpSession session, @RequestParam(required = false) Integer otherUserID){
66
+    public Object getTaFaceByUserId(HttpSession session, @RequestParam(required = false) Integer otherUserId){
67 67
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
68 68
         Integer userId = userElement.getId();
69
-        ResponseBean responseBean = faceServicel.getTaFaceByUserId(userId,otherUserID);
69
+        ResponseBean responseBean = faceServicel.getTaFaceByUserId(userId,otherUserId);
70 70
         return responseBean;
71 71
     }
72 72
 

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaUserMapper.java Parādīt failu

@@ -52,10 +52,10 @@ public interface TaUserMapper {
52 52
     /**
53 53
      * 判断当前用户的关联关系
54 54
      * @param userId
55
-     * @param otherUserID
55
+     * @param otherUserId
56 56
      * @return
57 57
      */
58
-    TaUser selectTaFaceParentId(@Param("id") Integer userId, @Param("otherUserID")Integer otherUserID);
58
+    TaUser selectTaFaceParentId(@Param("id") Integer userId, @Param("otherUserId")Integer otherUserId);
59 59
 
60 60
     /**
61 61
      * 查询此电话在小区是否存在

+ 5
- 5
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/FaceServiceI.java Parādīt failu

@@ -9,24 +9,24 @@ public interface FaceServiceI {
9 9
      * 添加人脸
10 10
      * @param userId 登入人ID
11 11
      *  @param  uploadFile
12
-     *  @param otherUserID 关联家属或者租客ID
12
+     *  @param otherUserId 关联家属或者租客ID
13 13
      * @return
14 14
      */
15
-    ResponseBean addFace(Integer userId ,MultipartFile uploadFile,Integer otherUserID);
15
+    ResponseBean addFace(Integer userId ,MultipartFile uploadFile,Integer otherUserId);
16 16
 
17 17
     /**
18 18
      * 更新当前人脸
19 19
      * @param userId 登入人ID
20 20
      *  @param  uploadFile
21
-     *  @param otherUserID 关联家属或者租客ID
21
+     *  @param otherUserId 关联家属或者租客ID
22 22
      * @return
23 23
      */
24
-    ResponseBean upDateFace(Integer userId ,MultipartFile uploadFile,Integer otherUserID);
24
+    ResponseBean upDateFace(Integer userId ,MultipartFile uploadFile,Integer otherUserId);
25 25
 
26 26
     /**
27 27
      * 当前登入人是否有人脸信息
28 28
      * @param userId
29 29
      * @return
30 30
      */
31
-    ResponseBean getTaFaceByUserId(Integer userId,Integer otherUserID);
31
+    ResponseBean getTaFaceByUserId(Integer userId,Integer otherUserId);
32 32
 }

+ 20
- 20
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/FaceServicelimpl.java Parādīt failu

@@ -40,18 +40,18 @@ public class FaceServicelimpl implements FaceServiceI {
40 40
 
41 41
     @Override
42 42
     @Transactional(rollbackFor = Exception.class)
43
-    public ResponseBean addFace(Integer userid, MultipartFile uploadFile,Integer otherUserID) {
43
+    public ResponseBean addFace(Integer userid, MultipartFile uploadFile,Integer otherUserId) {
44 44
         ResponseBean responseBean= new ResponseBean();
45 45
          String faceImg =img(uploadFile);
46
-        /**当otherUserID不为空时判断它是否是业主下的租客或者家属*/
47
-        if (null!= otherUserID && !userid.equals(otherUserID)) {
48
-                 responseBean = getTaFaceParentId(userid, otherUserID);
46
+        /**当otherUserId不为空时判断它是否是业主下的租客或者家属*/
47
+        if (null!= otherUserId && !userid.equals(otherUserId)) {
48
+                 responseBean = getTaFaceParentId(userid, otherUserId);
49 49
             if ("1".equals(responseBean.getCode())){
50 50
                 responseBean.getMessage();
51 51
                 return responseBean;
52 52
             }
53 53
         }
54
-            Integer activeUser = otherUserID == null?userid:otherUserID;
54
+            Integer activeUser = otherUserId == null?userid:otherUserId;
55 55
             TaUser user = taUserMapper.selectByPrimaryKey(activeUser);
56 56
             TaFace taFace = new TaFace();
57 57
             taFace.setFaceImg(faceImg);
@@ -63,7 +63,7 @@ public class FaceServicelimpl implements FaceServiceI {
63 63
             taFace.setUpdateDate(new Date());
64 64
 
65 65
         /*验证身份*/
66
-        responseBean=addVerify( activeUser,  uploadFile, otherUserID, faceImg, taFace) ;
66
+        responseBean=addVerify( activeUser,  uploadFile, otherUserId, faceImg, taFace) ;
67 67
         return responseBean;
68 68
     }
69 69
 
@@ -71,22 +71,22 @@ public class FaceServicelimpl implements FaceServiceI {
71 71
      * 修改人脸信息
72 72
       * @param userId 登入人ID
73 73
      * @param  uploadFile
74
-     * @param otherUserID 关联家属或者租客ID
74
+     * @param otherUserId 关联家属或者租客ID
75 75
      * @return
76 76
      */
77 77
     @Override
78 78
     @Transactional(rollbackFor = Exception.class)
79
-    public ResponseBean upDateFace(Integer userId, MultipartFile uploadFile,Integer otherUserID) {
79
+    public ResponseBean upDateFace(Integer userId, MultipartFile uploadFile,Integer otherUserId) {
80 80
         boolean isA = false;
81 81
       ResponseBean responseBean= new ResponseBean();
82 82
         String faceImg =img(uploadFile);
83
-        if (null!= otherUserID && !userId.equals(otherUserID)) {
84
-                 responseBean = getTaFaceParentId(userId, otherUserID);
83
+        if (null!= otherUserId && !userId.equals(otherUserId)) {
84
+                 responseBean = getTaFaceParentId(userId, otherUserId);
85 85
             if ("1".equals(responseBean.getCode())) {
86 86
                 responseBean.getMessage();
87 87
                 return responseBean;
88 88
                }}
89
-            Integer activeUser = otherUserID == null?userId:otherUserID;
89
+            Integer activeUser = otherUserId == null?userId:otherUserId;
90 90
             //当前修改的id否存在
91 91
              TaFace face = taFaceMapper.getByUserId(activeUser);
92 92
              if (null == face){
@@ -157,17 +157,17 @@ public class FaceServicelimpl implements FaceServiceI {
157 157
      *获得用户,租客,家属,其中一种身份的信息
158 158
      */
159 159
     @Override
160
-    public ResponseBean getTaFaceByUserId(Integer userId,Integer otherUserID) {
160
+    public ResponseBean getTaFaceByUserId(Integer userId,Integer otherUserId) {
161 161
         ResponseBean responseBean= new ResponseBean();
162
-        /**当otherUserID不为空时判断它是否是业主下的租客或者家属*/
163
-        if (null!= otherUserID && !userId.equals(otherUserID)) {
164
-            responseBean = getTaFaceParentId(userId, otherUserID);
162
+        /**当otherUserId不为空时判断它是否是业主下的租客或者家属*/
163
+        if (null!= otherUserId && !userId.equals(otherUserId)) {
164
+            responseBean = getTaFaceParentId(userId, otherUserId);
165 165
             if ("1".equals(responseBean.getCode())) {
166 166
                 responseBean.getMessage();
167 167
                 return responseBean;
168 168
             }
169 169
         }
170
-        Integer id = otherUserID == null?userId:otherUserID;
170
+        Integer id = otherUserId == null?userId:otherUserId;
171 171
         TaFace face = taFaceMapper.getByUserId(id);
172 172
          if (null!= face){
173 173
             responseBean.addSuccess(face);
@@ -181,10 +181,10 @@ public class FaceServicelimpl implements FaceServiceI {
181 181
     /**
182 182
      *判断当前用户下的人员关系(家属,租客)
183 183
      */
184
-    public ResponseBean getTaFaceParentId(Integer userId,Integer otherUserID){
184
+    public ResponseBean getTaFaceParentId(Integer userId,Integer otherUserId){
185 185
        ResponseBean  responseBean= new ResponseBean();
186
-/*         TaUser user = taUserMapper.selectTaFaceParentId(userId,otherUserID);*/
187
-        TaUser  users= taUserMapper.selectByPrimaryKey(otherUserID);
186
+/*         TaUser user = taUserMapper.selectTaFaceParentId(userId,otherUserId);*/
187
+        TaUser  users= taUserMapper.selectByPrimaryKey(otherUserId);
188 188
         if (null!= users && !users.getParentId().equals(userId)){
189 189
             responseBean.addError("您输入的家属或租户ID有误");
190 190
             return responseBean;
@@ -208,7 +208,7 @@ public class FaceServicelimpl implements FaceServiceI {
208 208
     /**
209 209
      *各种身份校验
210 210
      */
211
-    public ResponseBean addVerify(Integer userid, MultipartFile uploadFile,Integer otherUserID,String faceImg,TaFace taFace) {
211
+    public ResponseBean addVerify(Integer userid, MultipartFile uploadFile,Integer otherUserId,String faceImg,TaFace taFace) {
212 212
         ResponseBean response = new ResponseBean();
213 213
         TaSysRole sysRole = taSysRoleMapper.findRoleByUserId(userid);
214 214
         TaUser taUser = taUserMapper.selectByPrimaryKey(userid);

+ 3
- 3
CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml Parādīt failu

@@ -314,8 +314,8 @@
314 314
       <include refid="Base_Column_List" />
315 315
     from ta_user
316 316
     where 1=1
317
-    <if test="otherUserID != null" >
318
-     and id = #{otherUserID,jdbcType=INTEGER}
317
+    <if test="otherUserId != null" >
318
+     and id = #{otherUserId,jdbcType=INTEGER}
319 319
     </if>
320 320
     <if test="id != null" >
321 321
      and parent_id = #{id}
@@ -328,7 +328,7 @@
328 328
     <include refid="Base_Column_List" />
329 329
     from ta_user
330 330
     where community_id = #{communityId,jdbcType=INTEGER}
331
-    <if test="otherUserID != null" >
331
+    <if test="otherUserId != null" >
332 332
       and login_name = #{phone}
333 333
     </if>
334 334
 

+ 2
- 2
CODE/smart-community/mq-message/src/main/java/com/community/huiju/runner/MqRunner.java Parādīt failu

@@ -23,8 +23,8 @@ import javax.jms.Topic;
23 23
 @Component
24 24
 public class MqRunner implements ApplicationRunner {
25 25
 	
26
-	//public static final String BROKER_URL = "failover:(tcp://192.168.0.122:61618)?timeout=2000";
27
-	public static final String BROKER_URL = "failover:(tcp://localhost:8087)?timeout=2000";
26
+	public static final String BROKER_URL = "failover:(tcp://192.168.0.122:61618)?timeout=2000";
27
+	//public static final String BROKER_URL = "failover:(tcp://localhost:8087)?timeout=2000";
28 28
 	
29 29
 	public static final String TARGET = "openapi.acs.topic";
30 30
 	

+ 2
- 2
CODE/smart-community/operate-api/src/main/java/com/community/huiju/dao/TaUserMapper.java Parādīt failu

@@ -52,10 +52,10 @@ public interface TaUserMapper {
52 52
     /**
53 53
      * 判断当前用户的关联关系
54 54
      * @param userId
55
-     * @param otherUserID
55
+     * @param otherUserId
56 56
      * @return
57 57
      */
58
-    TaUser selectTaFaceParentId(@Param("id") Integer userId, @Param("otherUserID") Integer otherUserID);
58
+    TaUser selectTaFaceParentId(@Param("id") Integer userId, @Param("otherUserId") Integer otherUserId);
59 59
 
60 60
     /**
61 61
      * 查询此电话在小区是否存在

+ 3
- 3
CODE/smart-community/operate-api/src/main/resources/mapper/TaUserMapper.xml Parādīt failu

@@ -314,8 +314,8 @@
314 314
       <include refid="Base_Column_List" />
315 315
     from ta_user
316 316
     where 1=1
317
-    <if test="otherUserID != null" >
318
-     and id = #{otherUserID,jdbcType=INTEGER}
317
+    <if test="otherUserId != null" >
318
+     and id = #{otherUserId,jdbcType=INTEGER}
319 319
     </if>
320 320
     <if test="id != null" >
321 321
      and parent_id = #{id}
@@ -328,7 +328,7 @@
328 328
     <include refid="Base_Column_List" />
329 329
     from ta_user
330 330
     where community_id = #{communityId,jdbcType=INTEGER}
331
-    <if test="otherUserID != null" >
331
+    <if test="otherUserId != null" >
332 332
       and login_name = #{phone}
333 333
     </if>
334 334