优化权限配置的校验存在的接口

This commit is contained in:
jishenghua 2024-09-27 22:57:43 +08:00
parent 32e19f7a55
commit 24c123f459

View File

@ -74,11 +74,7 @@ public class UserBusinessController {
HttpServletRequest request)throws Exception {
Map<String, Object> objectMap = new HashMap<String, Object>();
Long id = userBusinessService.checkIsValueExist(type, keyId);
if(id != null) {
objectMap.put("id", id);
} else {
objectMap.put("id", null);
}
objectMap.put("id", id);
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
}