dingxin il y a 6 ans
Parent
révision
dfb5455425

+ 112
- 68
CODE/smart-community-word/.idea/workspace.xml Voir le fichier

@@ -27,11 +27,20 @@
27 27
   </component>
28 28
   <component name="FileEditorManager">
29 29
     <leaf>
30
-      <file pinned="false" current-in-tab="true">
30
+      <file pinned="false" current-in-tab="false">
31 31
         <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java">
32 32
           <provider selected="true" editor-type-id="text-editor">
33
-            <state relative-caret-position="305">
34
-              <caret line="269" column="68" selection-start-line="269" selection-start-column="68" selection-end-line="269" selection-end-column="68" />
33
+            <state relative-caret-position="366">
34
+              <caret line="256" column="57" selection-start-line="256" selection-start-column="57" selection-end-line="256" selection-end-column="57" />
35
+            </state>
36
+          </provider>
37
+        </entry>
38
+      </file>
39
+      <file pinned="false" current-in-tab="false">
40
+        <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/service/ITaUserService.java">
41
+          <provider selected="true" editor-type-id="text-editor">
42
+            <state relative-caret-position="363">
43
+              <caret line="136" column="26" lean-forward="true" selection-start-line="136" selection-start-column="17" selection-end-line="136" selection-end-column="30" />
35 44
             </state>
36 45
           </provider>
37 46
         </entry>
@@ -39,23 +48,51 @@
39 48
       <file pinned="false" current-in-tab="false">
40 49
         <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/BaseController.java">
41 50
           <provider selected="true" editor-type-id="text-editor">
42
-            <state relative-caret-position="324">
43
-              <caret line="18" column="27" selection-start-line="18" selection-start-column="27" selection-end-line="18" selection-end-column="27" />
51
+            <state relative-caret-position="351">
52
+              <caret line="64" selection-start-line="64" selection-end-line="64" />
44 53
             </state>
45 54
           </provider>
46 55
         </entry>
47 56
       </file>
48 57
       <file pinned="false" current-in-tab="false">
49
-        <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java">
58
+        <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/service/IBuildingOwnerInfo.java">
50 59
           <provider selected="true" editor-type-id="text-editor">
51
-            <state relative-caret-position="187">
52
-              <caret line="971" column="28" selection-start-line="971" selection-start-column="28" selection-end-line="971" selection-end-column="28" />
60
+            <state relative-caret-position="162">
61
+              <caret line="6" column="35" selection-start-line="6" selection-start-column="17" selection-end-line="6" selection-end-column="35" />
62
+            </state>
63
+          </provider>
64
+        </entry>
65
+      </file>
66
+      <file pinned="false" current-in-tab="true">
67
+        <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java">
68
+          <provider selected="true" editor-type-id="text-editor">
69
+            <state relative-caret-position="351">
70
+              <caret line="18" column="47" selection-start-line="18" selection-start-column="47" selection-end-line="18" selection-end-column="47" />
71
+              <folding>
72
+                <element signature="imports" expanded="true" />
73
+              </folding>
74
+            </state>
75
+          </provider>
76
+        </entry>
77
+      </file>
78
+      <file pinned="false" current-in-tab="false">
79
+        <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/HkController.java">
80
+          <provider selected="true" editor-type-id="text-editor">
81
+            <state relative-caret-position="89">
82
+              <caret line="24" selection-start-line="24" selection-end-line="27" selection-end-column="49" />
53 83
             </state>
54 84
           </provider>
55 85
         </entry>
56 86
       </file>
57 87
     </leaf>
58 88
   </component>
89
+  <component name="FileTemplateManagerImpl">
90
+    <option name="RECENT_TEMPLATES">
91
+      <list>
92
+        <option value="Class" />
93
+      </list>
94
+    </option>
95
+  </component>
59 96
   <component name="FindInProjectRecents">
60 97
     <findStrings>
61 98
       <find>ticketDetails</find>
@@ -138,8 +175,9 @@
138 175
         <option value="$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionLikeMapper.java" />
139 176
         <option value="$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/model/TaUser.java" />
140 177
         <option value="$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java" />
141
-        <option value="$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java" />
142 178
         <option value="$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java" />
179
+        <option value="$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java" />
180
+        <option value="$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java" />
143 181
       </list>
144 182
     </option>
145 183
   </component>
@@ -162,8 +200,8 @@
162 200
     <option name="vmOptions" value="-DarchetypeCatalog=internal" />
163 201
   </component>
164 202
   <component name="ProjectFrameBounds">
165
-    <option name="x" value="185" />
166
-    <option name="y" value="38" />
203
+    <option name="x" value="249" />
204
+    <option name="y" value="77" />
167 205
     <option name="width" value="1605" />
168 206
     <option name="height" value="1047" />
169 207
   </component>
@@ -288,7 +326,7 @@
288 326
     <property name="RequestMappingsPanelWidth1" value="75" />
289 327
     <property name="WebServerToolWindowFactoryState" value="false" />
290 328
     <property name="aspect.path.notification.shown" value="true" />
291
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1553744933099" />
329
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1553753848390" />
292 330
     <property name="last_opened_file_path" value="D:/java/workspace/heishi/wx_project" />
293 331
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
294 332
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
@@ -452,13 +490,13 @@
452 490
     <servers />
453 491
   </component>
454 492
   <component name="TimeTrackingManager">
455
-    <option name="totallyTimeSpent" value="155723000" />
493
+    <option name="totallyTimeSpent" value="157687000" />
456 494
   </component>
457 495
   <component name="ToolWindowManager">
458
-    <frame x="185" y="38" width="1605" height="1047" extended-state="0" />
496
+    <frame x="249" y="77" width="1605" height="1047" extended-state="0" />
459 497
     <editor active="true" />
460 498
     <layout>
461
-      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.08608414" />
499
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.34951457" />
462 500
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
463 501
       <window_info id="Designer" order="2" />
464 502
       <window_info id="Image Layers" order="3" />
@@ -469,7 +507,7 @@
469 507
       <window_info anchor="bottom" id="Message" order="0" />
470 508
       <window_info anchor="bottom" id="Find" order="1" />
471 509
       <window_info anchor="bottom" id="Run" order="2" sideWeight="0.6998934" weight="0.3530067" />
472
-      <window_info anchor="bottom" id="Debug" order="3" sideWeight="0.8544776" weight="0.16760404" />
510
+      <window_info anchor="bottom" id="Debug" order="3" sideWeight="0.8544776" visible="true" weight="0.30033746" />
473 511
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
474 512
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
475 513
       <window_info anchor="bottom" id="TODO" order="6" />
@@ -477,7 +515,7 @@
477 515
       <window_info anchor="bottom" id="Terminal" order="8" sideWeight="0.49946696" weight="0.32962137" />
478 516
       <window_info anchor="bottom" id="Docker" order="9" show_stripe_button="false" />
479 517
       <window_info anchor="bottom" id="Event Log" order="10" sideWeight="0.14552239" side_tool="true" weight="0.37750557" />
480
-      <window_info active="true" anchor="bottom" id="Messages" order="11" sideWeight="0.49969268" visible="true" weight="0.27784026" />
518
+      <window_info anchor="bottom" id="Messages" order="11" sideWeight="0.49969268" weight="0.27784026" />
481 519
       <window_info anchor="bottom" id="Java Enterprise" order="12" sideWeight="0.49946696" weight="0.32962137" />
482 520
       <window_info anchor="bottom" id="Database Changes" order="13" />
483 521
       <window_info anchor="bottom" id="Version Control" order="14" sideWeight="0.49946696" weight="0.32850778" />
@@ -588,52 +626,20 @@
588 626
         </line-breakpoint>
589 627
         <line-breakpoint enabled="true" type="java-line">
590 628
           <url>file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java</url>
591
-          <line>272</line>
629
+          <line>255</line>
630
+          <properties />
631
+          <option name="timeStamp" value="15" />
632
+        </line-breakpoint>
633
+        <line-breakpoint enabled="true" type="java-line">
634
+          <url>file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/BaseController.java</url>
635
+          <line>59</line>
592 636
           <properties />
593
-          <option name="timeStamp" value="13" />
637
+          <option name="timeStamp" value="16" />
594 638
         </line-breakpoint>
595 639
       </breakpoints>
596 640
     </breakpoint-manager>
597 641
   </component>
598 642
   <component name="editorHistoryManager">
599
-    <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/dao/TpMessageMapper.java">
600
-      <provider selected="true" editor-type-id="text-editor">
601
-        <state relative-caret-position="473">
602
-          <caret line="46" column="7" lean-forward="true" selection-start-line="46" selection-start-column="7" selection-end-line="46" selection-end-column="7" />
603
-        </state>
604
-      </provider>
605
-    </entry>
606
-    <entry file="file://$PROJECT_DIR$/../smart-community/property-api/src/main/java/com/community/huiju/controller/ImageController.java">
607
-      <provider selected="true" editor-type-id="text-editor">
608
-        <state relative-caret-position="231">
609
-          <caret line="37" column="13" selection-start-line="37" selection-start-column="13" selection-end-line="37" selection-end-column="13" />
610
-        </state>
611
-      </provider>
612
-    </entry>
613
-    <entry file="file://$PROJECT_DIR$/../smart-community/property-api/src/main/java/com/community/huiju/service/IMessageService.java">
614
-      <provider selected="true" editor-type-id="text-editor">
615
-        <state relative-caret-position="318">
616
-          <caret line="33" column="14" selection-start-line="33" selection-start-column="14" selection-end-line="33" selection-end-column="14" />
617
-          <folding>
618
-            <element signature="imports" expanded="true" />
619
-          </folding>
620
-        </state>
621
-      </provider>
622
-    </entry>
623
-    <entry file="file://$PROJECT_DIR$/../smart-community/property-api/src/main/java/com/community/huiju/controller/MessageController.java">
624
-      <provider selected="true" editor-type-id="text-editor">
625
-        <state relative-caret-position="235">
626
-          <caret line="42" column="58" selection-start-line="42" selection-start-column="58" selection-end-line="42" selection-end-column="58" />
627
-        </state>
628
-      </provider>
629
-    </entry>
630
-    <entry file="file://$PROJECT_DIR$/../smart-community/property-api/src/main/java/com/community/huiju/dao/TpTicketMapper.java">
631
-      <provider selected="true" editor-type-id="text-editor">
632
-        <state relative-caret-position="306">
633
-          <caret line="24" column="15" selection-start-line="24" selection-start-column="15" selection-end-line="24" selection-end-column="15" />
634
-        </state>
635
-      </provider>
636
-    </entry>
637 643
     <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/resources/mapper/TpAnnouncementMapper.xml">
638 644
       <provider selected="true" editor-type-id="text-editor">
639 645
         <state relative-caret-position="407">
@@ -979,31 +985,69 @@
979 985
         </state>
980 986
       </provider>
981 987
     </entry>
982
-    <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/BaseController.java">
988
+    <entry file="jar://F:/maven3.5/maven/serverRepository/org/springframework/spring-core/5.0.8.RELEASE/spring-core-5.0.8.RELEASE-sources.jar!/org/springframework/util/ReflectionUtils.java">
983 989
       <provider selected="true" editor-type-id="text-editor">
984
-        <state relative-caret-position="324">
985
-          <caret line="18" column="27" selection-start-line="18" selection-start-column="27" selection-end-line="18" selection-end-column="27" />
990
+        <state relative-caret-position="402">
991
+          <caret line="225" selection-start-line="225" selection-end-line="225" />
986 992
         </state>
987 993
       </provider>
988 994
     </entry>
989
-    <entry file="jar://F:/maven3.5/maven/serverRepository/org/springframework/spring-core/5.0.8.RELEASE/spring-core-5.0.8.RELEASE-sources.jar!/org/springframework/util/ReflectionUtils.java">
995
+    <entry file="jar://F:/maven3.5/maven/serverRepository/org/apache/tomcat/embed/tomcat-embed-core/8.5.32/tomcat-embed-core-8.5.32-sources.jar!/javax/servlet/http/HttpSession.java">
990 996
       <provider selected="true" editor-type-id="text-editor">
991
-        <state relative-caret-position="402">
992
-          <caret line="225" selection-start-line="225" selection-end-line="225" />
997
+        <state relative-caret-position="197">
998
+          <caret line="157" column="18" selection-start-line="157" selection-start-column="18" selection-end-line="157" selection-end-column="18" />
999
+        </state>
1000
+      </provider>
1001
+    </entry>
1002
+    <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java">
1003
+      <provider selected="true" editor-type-id="text-editor">
1004
+        <state relative-caret-position="366">
1005
+          <caret line="256" column="57" selection-start-line="256" selection-start-column="57" selection-end-line="256" selection-end-column="57" />
1006
+        </state>
1007
+      </provider>
1008
+    </entry>
1009
+    <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/service/ITaUserService.java">
1010
+      <provider selected="true" editor-type-id="text-editor">
1011
+        <state relative-caret-position="363">
1012
+          <caret line="136" column="26" lean-forward="true" selection-start-line="136" selection-start-column="17" selection-end-line="136" selection-end-column="30" />
993 1013
         </state>
994 1014
       </provider>
995 1015
     </entry>
996 1016
     <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java">
997 1017
       <provider selected="true" editor-type-id="text-editor">
998
-        <state relative-caret-position="187">
999
-          <caret line="971" column="28" selection-start-line="971" selection-start-column="28" selection-end-line="971" selection-end-column="28" />
1018
+        <state relative-caret-position="351">
1019
+          <caret line="981" column="5" lean-forward="true" selection-start-line="981" selection-start-column="5" selection-end-line="981" selection-end-column="5" />
1000 1020
         </state>
1001 1021
       </provider>
1002 1022
     </entry>
1003
-    <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java">
1023
+    <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/BaseController.java">
1024
+      <provider selected="true" editor-type-id="text-editor">
1025
+        <state relative-caret-position="351">
1026
+          <caret line="64" selection-start-line="64" selection-end-line="64" />
1027
+        </state>
1028
+      </provider>
1029
+    </entry>
1030
+    <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/service/IBuildingOwnerInfo.java">
1031
+      <provider selected="true" editor-type-id="text-editor">
1032
+        <state relative-caret-position="162">
1033
+          <caret line="6" column="35" selection-start-line="6" selection-start-column="17" selection-end-line="6" selection-end-column="35" />
1034
+        </state>
1035
+      </provider>
1036
+    </entry>
1037
+    <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/HkController.java">
1004 1038
       <provider selected="true" editor-type-id="text-editor">
1005
-        <state relative-caret-position="305">
1006
-          <caret line="269" column="68" selection-start-line="269" selection-start-column="68" selection-end-line="269" selection-end-column="68" />
1039
+        <state relative-caret-position="89">
1040
+          <caret line="24" selection-start-line="24" selection-end-line="27" selection-end-column="49" />
1041
+        </state>
1042
+      </provider>
1043
+    </entry>
1044
+    <entry file="file://$PROJECT_DIR$/../smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java">
1045
+      <provider selected="true" editor-type-id="text-editor">
1046
+        <state relative-caret-position="351">
1047
+          <caret line="18" column="47" selection-start-line="18" selection-start-column="47" selection-end-line="18" selection-end-column="47" />
1048
+          <folding>
1049
+            <element signature="imports" expanded="true" />
1050
+          </folding>
1007 1051
         </state>
1008 1052
       </provider>
1009 1053
     </entry>

+ 21
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java Voir le fichier

@@ -0,0 +1,21 @@
1
+package com.community.huiju.controller;
2
+
3
+import io.swagger.annotations.Api;
4
+import org.springframework.cloud.context.config.annotation.RefreshScope;
5
+import org.springframework.web.bind.annotation.RequestMapping;
6
+import org.springframework.web.bind.annotation.RestController;
7
+
8
+/**
9
+ * version V1.0
10
+ * class_name: $METHOD_NAME$
11
+ * param: $METHOD_PARAM$
12
+ * describe: TODO
13
+ * creat_user:fannaixi
14
+ * creat_time: 2019/3/28
15
+ **/
16
+@RestController
17
+@RefreshScope
18
+@RequestMapping("/")
19
+@Api(value = "楼栋资料库API",description = "楼栋资料库API")
20
+public class IBuildingOwnerInfoController {
21
+}

+ 10
- 23
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java Voir le fichier

@@ -41,8 +41,7 @@ public class UserController extends BaseController {
41 41
 
42 42
     @ApiOperation(value = "登录", notes = "根据登录名和验证码")
43 43
     @ApiImplicitParams({
44
-            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "loginName(登陆名(手机号)) code(验证码)"),
45
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
44
+            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "loginName(登陆名(手机号)) code(验证码)")
46 45
     })
47 46
     @RequestMapping(value = "/user/login/{communityId}",method = RequestMethod.POST)
48 47
     public ResponseBean login(@RequestBody String parameter,
@@ -58,8 +57,7 @@ public class UserController extends BaseController {
58 57
     @ApiOperation(value = "修改手机号", notes = "修改手机号")
59 58
     @ApiImplicitParams({
60 59
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "paramets",value = "phone:登陆(手机号),code:(手机验证码),otherUserId:(租客或者家属ID,空为业主本人)"),
61
-            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
62
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
60
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
63 61
     })
64 62
             @RequestMapping(value = "/user/phone",method = RequestMethod.PUT)
65 63
     public ResponseBean update(@RequestBody String paramets, HttpSession session){
@@ -72,8 +70,7 @@ public class UserController extends BaseController {
72 70
 
73 71
     @ApiOperation(value = "查看房屋成员列表", notes = "查看房屋成员列表")
74 72
     @ApiImplicitParams({
75
-            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
76
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
73
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
77 74
     })
78 75
     @RequestMapping(value = "/roomUserList", method = RequestMethod.GET)
79 76
     public ResponseBean accessTicket(HttpSession session){
@@ -87,8 +84,7 @@ public class UserController extends BaseController {
87 84
     @ApiOperation(value = "修改用户名和性别和身份证", notes = "修改用户名和性别和身份证")
88 85
     @ApiImplicitParams({
89 86
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userName用户民和gender性别和idCard身份证"),
90
-            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
91
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
87
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
92 88
     })
93 89
     @RequestMapping(value = "/user/update/info",method = RequestMethod.PUT)
94 90
     public ResponseBean updateUserNameAndGender(@RequestBody String parameter,
@@ -108,8 +104,7 @@ public class UserController extends BaseController {
108 104
     @ApiOperation(value = "租客或家属 启用或者停用", notes = "租客或家属 启用或者停用")
109 105
     @ApiImplicitParams({
110 106
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userId(租客或者家属) type(1启用 0停用)"),
111
-            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
112
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
107
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
113 108
     })
114 109
     @RequestMapping(value = "/user/dependentsOrTenants",method = RequestMethod.PUT)
115 110
     public ResponseBean updateDependentsOrTenants(@RequestBody String parameter,
@@ -133,7 +128,6 @@ public class UserController extends BaseController {
133 128
                     "gender(租客或者家属 性别 1男 2女) " +
134 129
                     "type(2租客 3家属)" +
135 130
                     "idCard(身份证号)"),
136
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
137 131
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
138 132
     })
139 133
     @RequestMapping(value = "/user/addTenantsOrDependents",method = RequestMethod.POST)
@@ -160,7 +154,6 @@ public class UserController extends BaseController {
160 154
                     "gender(租客或者家属 性别 1男 2女) " +
161 155
                     "type(2租客 3家属)" +
162 156
                     "idCard(身份证号)"),
163
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
164 157
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
165 158
     })
166 159
     @RequestMapping(value = "/user/updateTenantsOrDependents",method = RequestMethod.POST)
@@ -186,7 +179,6 @@ public class UserController extends BaseController {
186 179
     @ApiOperation(value = "修改用户头像", notes = "修改用户头像")
187 180
     @ApiImplicitParams({
188 181
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "headPortrait(用户头像)"),
189
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
190 182
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
191 183
     })
192 184
     @RequestMapping(value = "/user/modifyUserHeadPortrait",method = RequestMethod.PUT)
@@ -204,18 +196,14 @@ public class UserController extends BaseController {
204 196
     @ApiOperation(value = "获取用户信息", notes = "获取用户信息, 携带userId表示查询租客或者家属")
205 197
     @ApiImplicitParams({
206 198
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
207
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
208 199
             @ApiImplicitParam(paramType = "query",dataType = "String",name = "userId",value = "租客或者家属的ID(可选值)"),
209 200
     })
210 201
     @RequestMapping(value = "/user/info",method = RequestMethod.GET)
211 202
     public ResponseBean getUserInfo(@RequestParam(value = "userId",required = false) Integer userId,
212 203
                                     HttpSession session){
213 204
         ResponseBean response = new ResponseBean();
214
-
215
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
216
-        Integer id =  userElement.getId();
217
-
218
-        response = iTaUserService.getUserInfo(id,userId);
205
+        UserElement userElement = getUserElement(session);
206
+        response = iTaUserService.getUserInfo(userElement.getId(),userId);
219 207
         TaUserVO userVO = (TaUserVO) response.getData();
220 208
         userVO.setToken(session.getId());
221 209
 
@@ -227,7 +215,6 @@ public class UserController extends BaseController {
227 215
     @ApiOperation(value = "游客登录", notes = "游客登录")
228 216
     @ApiImplicitParams({
229 217
             @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "communityId", value = "小区Id"),
230
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
231 218
     })
232 219
     @RequestMapping(value = "/user/temporary/{communityId}", method = RequestMethod.POST)
233 220
     public ResponseBean temporaryLogin(@PathVariable Integer communityId, HttpSession session) {
@@ -262,12 +249,12 @@ public class UserController extends BaseController {
262 249
 
263 250
     @ApiOperation(value = "查看当前用户所有关联房产",notes = "查看当前用户所有关联房产")
264 251
     @ApiImplicitParams({
265
-//            @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
252
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
266 253
     })
267 254
     @RequestMapping(value ="/userhouse" ,method = RequestMethod.GET)
268 255
     public ResponseBean userHouseList(HttpSession session){
269
-//        UserElement userElement= getUserElement(session);
270
-        ResponseBean responseBean= iTaUserService.userHouseList(null);
256
+        UserElement userElement= getUserElement(session);
257
+        ResponseBean responseBean= iTaUserService.userHouseList(userElement);
271 258
         return responseBean;
272 259
     }
273 260
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java Voir le fichier

@@ -976,7 +976,7 @@ public class TaUserServiceImpl implements ITaUserService {
976 976
     public ResponseBean userHouseList(UserElement userElement) {
977 977
         ResponseBean response= new ResponseBean();
978 978
         /*根据手机号会查询所有小区的多套房产*/
979
-        List<TpBuildingOwnerInfo> tpBuildingOwnerInfo  = tpBuildingOwnerInfoMapper.sellectHouseList("17729250199");
979
+        List<TpBuildingOwnerInfo> tpBuildingOwnerInfo  = tpBuildingOwnerInfoMapper.sellectHouseList(userElement.getLoginName());
980 980
         response.addSuccess(tpBuildingOwnerInfo);
981 981
         return response;
982 982
     }