weiximei 6 lat temu
rodzic
commit
70aecc802d

+ 8
- 1
CODE/smart-community/community-common/src/main/java/com/community/commom/constant/Constant.java Wyświetl plik

@@ -12,9 +12,16 @@ public class Constant {
12 12
     /** APP端session **/
13 13
     public static final String APP_USER_SESSION = "appUser";
14 14
 
15
-    /** WEB端session **/
15
+    /** WEB运营端session **/
16
+    // 待废弃
16 17
     public static final String WEB_USER_SESSION = "webUser";
17 18
 
19
+    /** WEB运营端session **/
20
+    public static final String WEB_OPERATE_USER_SESSION = "webOperateUser";
21
+
22
+    /** WEB物业端session **/
23
+    public static final String WEB_PROPERTY_USER_SESSION = "webPropertyUser";
24
+
18 25
     /** 不需要权限的URL身份 **/
19 26
     public static final String ROLE_NONEUSER = "ROLE_NONEUSER";
20 27
 

+ 3
- 3
CODE/smart-community/property-api/src/main/java/com/community/huiju/common/base/BaseController.java Wyświetl plik

@@ -11,8 +11,8 @@ import javax.servlet.http.HttpSession;
11 11
  */
12 12
 public class BaseController {
13 13
 
14
-//    protected UserElement getUserElement(HttpSession session){
15
-//        //session.getAttribute(Constant.)
16
-//    }
14
+    protected UserElement getUserElement(HttpSession session){
15
+        session.getAttribute(Constant.)
16
+    }
17 17
 
18 18
 }

+ 5
- 5
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BuildingOwnerInfoController.java Wyświetl plik

@@ -26,7 +26,7 @@ import java.util.List;
26 26
  * @since 2018-12-18
27 27
  */
28 28
 @RestController
29
-@RequestMapping("/tp/building-owner-info")
29
+@RequestMapping("/")
30 30
 @Api(value = "楼栋业主资料信息", description = "楼栋业主资料信息 Api")
31 31
 public class BuildingOwnerInfoController extends BaseController {
32 32
 
@@ -40,7 +40,7 @@ public class BuildingOwnerInfoController extends BaseController {
40 40
                     "ownerName业主姓名;" +
41 41
                     "pageNum第几页;pageSize 一页多少行;")
42 42
     })
43
-    @RequestMapping(value = "list", method = RequestMethod.POST)
43
+    @RequestMapping(value = "/building/list", method = RequestMethod.POST)
44 44
     public ResponseBean getList(@RequestBody String parameter){
45 45
         ResponseBean responseBean = new ResponseBean();
46 46
         responseBean = iBuildingOwnerInfoService.listQuery(parameter);
@@ -55,7 +55,7 @@ public class BuildingOwnerInfoController extends BaseController {
55 55
                     "ownerTel业主手机号"),
56 56
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
57 57
     })
58
-    @RequestMapping(value = "update", method = RequestMethod.PUT)
58
+    @RequestMapping(value = "/building/update", method = RequestMethod.PUT)
59 59
     public ResponseBean update(@RequestBody String parameter){
60 60
         ResponseBean responseBean = new ResponseBean();
61 61
         responseBean = iBuildingOwnerInfoService.update(parameter);
@@ -70,7 +70,7 @@ public class BuildingOwnerInfoController extends BaseController {
70 70
                     "ownerTel业主手机号"),
71 71
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
72 72
     })
73
-    @RequestMapping(value = "add", method = RequestMethod.POST)
73
+    @RequestMapping(value = "/building/add", method = RequestMethod.POST)
74 74
     public ResponseBean add(String parameter){
75 75
         ResponseBean responseBean = new ResponseBean();
76 76
         responseBean = iBuildingOwnerInfoService.add(parameter);
@@ -82,7 +82,7 @@ public class BuildingOwnerInfoController extends BaseController {
82 82
             @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "ids"),
83 83
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
84 84
     })
85
-    @RequestMapping(value = "delete", method = RequestMethod.DELETE)
85
+    @RequestMapping(value = "/building/delete", method = RequestMethod.DELETE)
86 86
     public ResponseBean delete(@RequestBody List<Integer> ids){
87 87
         ResponseBean responseBean = new ResponseBean();
88 88
         responseBean = iBuildingOwnerInfoService.deleteByIdDatch(ids);