dingxin 6 years ago
parent
commit
65077bcf25

+ 4
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BaseController.java View File

6
 import com.community.huiju.model.ToCommunities;
6
 import com.community.huiju.model.ToCommunities;
7
 import com.community.huiju.service.CommunityServiceI;
7
 import com.community.huiju.service.CommunityServiceI;
8
 import com.community.huiju.vo.TaUserVO;
8
 import com.community.huiju.vo.TaUserVO;
9
+import lombok.extern.slf4j.Slf4j;
9
 import org.springframework.beans.BeanUtils;
10
 import org.springframework.beans.BeanUtils;
10
 import org.springframework.beans.factory.annotation.Autowired;
11
 import org.springframework.beans.factory.annotation.Autowired;
11
 
12
 
14
 /**
15
 /**
15
  * 公共 controller
16
  * 公共 controller
16
  */
17
  */
18
+@Slf4j
17
 public class BaseController {
19
 public class BaseController {
18
 
20
 
19
     @Autowired
21
     @Autowired
41
             throw new WisdomException("用户信息不能为空!");
43
             throw new WisdomException("用户信息不能为空!");
42
         }
44
         }
43
 
45
 
46
+        log.info("用户当前sessionId:{}", session.getId());
44
         UserElement userElement = new UserElement();
47
         UserElement userElement = new UserElement();
45
         BeanUtils.copyProperties(userVO,userElement);
48
         BeanUtils.copyProperties(userVO,userElement);
46
         userElement.setLoginType(Constant.APP_LOGIN_TYPE);
49
         userElement.setLoginType(Constant.APP_LOGIN_TYPE);
54
      * @return
57
      * @return
55
      */
58
      */
56
     protected UserElement getUserElement(HttpSession session) {
59
     protected UserElement getUserElement(HttpSession session) {
60
+        log.info("用户当前sessionId:{}", session.getId());
57
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
61
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
58
         if (null == userElement) {
62
         if (null == userElement) {
59
             throw new WisdomException("用户 session 不存在!");
63
             throw new WisdomException("用户 session 不存在!");

+ 39
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/enums/BuildingOwnerInfoEnum.java View File

1
 package com.community.huiju.enums;
1
 package com.community.huiju.enums;
2
 
2
 
3
+
3
 /**
4
 /**
4
- * 楼栋资料库
5
+ * 楼栋资料库 枚举
5
  * @author weiximei
6
  * @author weiximei
6
  */
7
  */
7
 public enum BuildingOwnerInfoEnum {
8
 public enum BuildingOwnerInfoEnum {
8
-}
9
+
10
+    NO_AUDIT_REAL_ESTATE(0, "无关联房产"),
11
+
12
+    A_AUDIT_REAL_ESTATE(1, "关联一个审核通过的房产"),
13
+
14
+    A_TO_AUDIT_REAL_ESTATE(2, "关联一个待审核房产"),
15
+
16
+    A_AUDIT_FAILED_REAL_ESTATE(3, "关联一个审核未通过房产"),
17
+
18
+    A_MULTIPLE_REAL_ESTATE(3, "有多个关联房产"),
19
+
20
+    ;
21
+
22
+    BuildingOwnerInfoEnum(Integer code, String msg) {
23
+        this.code = code;
24
+        this.msg = msg;
25
+    }
26
+
27
+    private Integer code;
28
+
29
+    private String msg;
30
+
31
+    public Integer getCode() {
32
+        return code;
33
+    }
34
+
35
+    public void setCode(Integer code) {
36
+        this.code = code;
37
+    }
38
+
39
+    public String getMsg() {
40
+        return msg;
41
+    }
42
+
43
+    public void setMsg(String msg) {
44
+        this.msg = msg;
45
+    }}