优化权限配置的校验存在的接口
This commit is contained in:
@@ -74,11 +74,7 @@ public class UserBusinessController {
|
|||||||
HttpServletRequest request)throws Exception {
|
HttpServletRequest request)throws Exception {
|
||||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||||
Long id = userBusinessService.checkIsValueExist(type, keyId);
|
Long id = userBusinessService.checkIsValueExist(type, keyId);
|
||||||
if(id != null) {
|
objectMap.put("id", id);
|
||||||
objectMap.put("id", id);
|
|
||||||
} else {
|
|
||||||
objectMap.put("id", null);
|
|
||||||
}
|
|
||||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user