Skip to content

Commit

Permalink
变量名大小写问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dongxuanliang252 authored and dongxuanliang252 committed Aug 27, 2020
1 parent 9d19c8a commit bf905d8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public class WinSecurityRoleController<D extends WinSecurityBaseRoleDTO, E exten
@PostMapping(value = "/addRole")
public JsonResult<D> addRole(@RequestBody String dtoStr) {
D dto = JSON.parseObject(dtoStr, (Type) winSecurityClassLoaderConfiguration.getRoleDTOClass());
D RoleDTO = winSecurityRoleService.addRole(dto);
return JsonResult.createSuccessResult(RoleDTO);
D roleDTO = winSecurityRoleService.addRole(dto);
return JsonResult.createSuccessResult(roleDTO);
}


Expand Down Expand Up @@ -110,8 +110,8 @@ public JsonResult deleteRole(@RequestBody IdParamDTO paramDTO) {
@PostMapping(value = "/updateRole")
public JsonResult<D> updateRole(@RequestBody String dtoStr) {
D dto = JSON.parseObject(dtoStr, (Type) winSecurityClassLoaderConfiguration.getRoleDTOClass());
D RoleDTO = winSecurityRoleService.updateRole(dto);
return JsonResult.createSuccessResult(RoleDTO);
D roleDTO = winSecurityRoleService.updateRole(dto);
return JsonResult.createSuccessResult(roleDTO);
}


Expand All @@ -136,8 +136,8 @@ public JsonResult<D> updateRole(@RequestBody String dtoStr) {
*/
@GetMapping(value = "/getRole")
public JsonResult<D> getRole(Long id) {
D RoleDTO = winSecurityRoleService.getRole(id);
return JsonResult.createSuccessResult(RoleDTO);
D roleDTO = winSecurityRoleService.getRole(id);
return JsonResult.createSuccessResult(roleDTO);
}


Expand All @@ -161,8 +161,8 @@ public JsonResult<D> getRole(Long id) {
public JsonResult<List<D>> getRoleList(@RequestParam Map<String, Object> paramsMap) {
MapFastUtils.INSTANCE.valueEmptyToNull(paramsMap);
D params = (D) TransformerUtils.INSTANCE.transformMap2Object(paramsMap, winSecurityClassLoaderConfiguration.getRoleDTOClass());
List<D> RoleList = winSecurityRoleService.getRoleList(params);
return JsonResult.createSuccessResult(RoleList);
List<D> roleList = winSecurityRoleService.getRoleList(params);
return JsonResult.createSuccessResult(roleList);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public class WinSecurityUserController<D extends WinSecurityBaseUserDTO, E exten
@PostMapping(value = "/addUser")
public JsonResult<D> addUser(@RequestBody String dtoStr) {
D dto = JSON.parseObject(dtoStr, (Type) winSecurityClassLoaderConfiguration.getUserDTOClass());
D UserDTO = winSecurityUserService.addUser(dto);
return JsonResult.createSuccessResult(UserDTO);
D userDTO = winSecurityUserService.addUser(dto);
return JsonResult.createSuccessResult(userDTO);
}


Expand Down Expand Up @@ -111,8 +111,8 @@ public JsonResult deleteUser(@RequestBody IdParamDTO paramDTO) {
@PostMapping(value = "/updateUser")
public JsonResult<D> updateUser(@RequestBody String dtoStr) {
D dto = JSON.parseObject(dtoStr, (Type) winSecurityClassLoaderConfiguration.getUserDTOClass());
D UserDTO = winSecurityUserService.updateUser(dto);
return JsonResult.createSuccessResult(UserDTO);
D userDTO = winSecurityUserService.updateUser(dto);
return JsonResult.createSuccessResult(userDTO);
}


Expand All @@ -137,8 +137,8 @@ public JsonResult<D> updateUser(@RequestBody String dtoStr) {
*/
@GetMapping(value = "/getUser")
public JsonResult<D> getUser(Long id) {
D UserDTO = winSecurityUserService.getUser(id);
return JsonResult.createSuccessResult(UserDTO);
D userDTO = winSecurityUserService.getUser(id);
return JsonResult.createSuccessResult(userDTO);
}


Expand All @@ -162,8 +162,8 @@ public JsonResult<D> getUser(Long id) {
public JsonResult<List<D>> getUserList(@RequestParam Map<String, Object> paramsMap) {
MapFastUtils.INSTANCE.valueEmptyToNull(paramsMap);
D params = (D) TransformerUtils.INSTANCE.transformMap2Object(paramsMap, winSecurityClassLoaderConfiguration.getUserDTOClass());
List<D> UserList = winSecurityUserService.getUserList(params);
return JsonResult.createSuccessResult(UserList);
List<D> userList = winSecurityUserService.getUserList(params);
return JsonResult.createSuccessResult(userList);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface WinSecurityResourceRepository extends JpaRepository<WinSecurity

boolean existsByCodeAndPidAndDeletedFalse(String code, Long pid);

boolean existsByCodeAndPidAndIdNotAndDeletedFalse(String code, Long pid, Long Id);
boolean existsByCodeAndPidAndIdNotAndDeletedFalse(String code, Long pid, Long id);

List<WinSecurityResourceEntity> findByPidAndDeletedFalse(Long pid);

Expand Down

0 comments on commit bf905d8

Please sign in to comment.