java110
2020-08-23 8c1d3836ec8eca6e441337ecd0a43fd9af112d0c
优化权限查询
1个文件已修改
6 ■■■■ 已修改文件
service-front/src/main/java/com/java110/front/smo/impl/PrivilegeServiceSMOImpl.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-front/src/main/java/com/java110/front/smo/impl/PrivilegeServiceSMOImpl.java
@@ -322,7 +322,11 @@
        Assert.hasLength(pd.getUserId(), "用户未登录请先登录");
        JSONObject privilegeInfoObj = JSONObject.parseObject(pd.getReqData());
        Assert.jsonObjectHaveKey(privilegeInfoObj, "staffId", "请求报文中未包含员工ID 节点");
        //Assert.jsonObjectHaveKey(privilegeInfoObj, "staffId", "请求报文中未包含员工ID 节点");
        if (!privilegeInfoObj.containsKey("staffId")) {
            privilegeInfoObj.put("staffId", pd.getUserId());
        }
        ResponseEntity<String> storeInfo = super.getStoreInfo(pd, restTemplate);