Browse Source

优化用户菜单,用户同步问题

linzhiwei 2 years ago
parent
commit
14f2f48161

+ 3 - 0
hnls-admin/hnls-admin-service/src/main/java/com/tofly/base/entity/BaseSys.java

@@ -61,4 +61,7 @@ public class BaseSys extends Model<BaseSys> {
     @ApiModelProperty(value = "系统备注")
     private String notes;
 
+    @ApiModelProperty(value = "路径")
+    private String path;
+
 }

+ 5 - 5
hnls-admin/hnls-admin-service/src/main/java/com/tofly/base/service/impl/UserMiddleServiceImpl.java

@@ -124,11 +124,11 @@ public class UserMiddleServiceImpl extends ServiceImpl<UserMiddleMapper, UserMid
             map.put("userPwd", passWord);
         }
         map.put("departMent", "05");
-//        HttpResponse httpResponse = HttpClientUtil.doPost(marketingUrl, headerMap, map);
-//        String body = httpResponse.body();
-//        JSONObject jsonObject = JSON.parseObject(body);
-//        return 1 == (int) jsonObject.get("code");
-        return true;
+        HttpResponse httpResponse = HttpClientUtil.doPost(marketingUrl, headerMap, map);
+        String body = httpResponse.body();
+        JSONObject jsonObject = JSON.parseObject(body);
+        return 1 == (int) jsonObject.get("code");
+//        return true;
     }
 
 

+ 3 - 0
hnls-admin/hnls-admin-service/src/main/java/com/tofly/base/vo/SystemMenuVO.java

@@ -65,5 +65,8 @@ public class SystemMenuVO {
     @ApiModelProperty(value = "所属平台1BS2CS")
     private String platform;
 
+    @ApiModelProperty(value = "路径")
+    private String path;
+
     List<Menu> childrens;
 }

+ 1 - 0
hnls-admin/hnls-admin-service/src/main/resources/mapper/BaseSysMapper.xml

@@ -10,6 +10,7 @@
         <result property="sysname" column="SYSNAME"/>
         <result property="type" column="TYPE"/>
         <result property="notes" column="NOTES"/>
+        <result property="path" column="PATH"/>
     </resultMap>