Commit 7a647411 authored by sherlock's avatar sherlock

basicData module test and correct

parent 24f8430f
...@@ -92,7 +92,7 @@ public class RoleController { ...@@ -92,7 +92,7 @@ public class RoleController {
@ApiOperation(value = "删除角色下用户") @ApiOperation(value = "删除角色下用户")
@RequestMapping(value = "removeUserRole", method = RequestMethod.POST) @RequestMapping(value = "removeUserRole", method = RequestMethod.POST)
public @ResponseBody Boolean removeUserRole(@RequestParam("userID") String userId, public @ResponseBody Boolean removeUserRole(@RequestParam("userID") String userId,
@RequestBody List<String> roleIdList, @RequestParam("serviceTypeId") String serviceTypeId) { @RequestBody List<String> roleIdList, @RequestParam("serviceTypeID") String serviceTypeId) {
roleService.removeUserRole(userId, roleIdList, serviceTypeId); roleService.removeUserRole(userId, roleIdList, serviceTypeId);
return true; return true;
} }
...@@ -142,7 +142,7 @@ public class RoleController { ...@@ -142,7 +142,7 @@ public class RoleController {
@ApiOperation(value = "Update a role info") @ApiOperation(value = "Update a role info")
@RequestMapping(value = "update", method = RequestMethod.PUT) @RequestMapping(value = "update", method = RequestMethod.PUT)
public void updateRole(@RequestBody UpdateRoleInfo updateRole, @RequestParam("roleId") String roleId) { public void updateRole(@RequestBody UpdateRoleInfo updateRole, @RequestParam("roleID") String roleId) {
roleService.updateRole(updateRole, roleId); roleService.updateRole(updateRole, roleId);
} }
...@@ -157,7 +157,7 @@ public class RoleController { ...@@ -157,7 +157,7 @@ public class RoleController {
@ApiOperation(value = "Need to check mapping between user and role, if yes not allow delete role") @ApiOperation(value = "Need to check mapping between user and role, if yes not allow delete role")
@RequestMapping(value = "checkReferenceforRole", method = RequestMethod.GET) @RequestMapping(value = "checkReferenceforRole", method = RequestMethod.GET)
public Boolean checkExistReference(@RequestParam("roleId") String roleId) { public Boolean checkExistReference(@RequestParam("roleID") String roleId) {
return roleService.checkUserRole(roleId); return roleService.checkUserRole(roleId);
} }
......
...@@ -8,7 +8,7 @@ import java.util.List; ...@@ -8,7 +8,7 @@ import java.util.List;
* @see PwC.Tax.Tech.Atms.Application.Dto\TaxAdminDto\ServiceTypeDto.cs * @see PwC.Tax.Tech.Atms.Application.Dto\TaxAdminDto\ServiceTypeDto.cs
*/ */
public class ServiceTypeDto { public class ServiceTypeDto {
@JsonProperty("ID") // @JsonProperty("ID")
private String id; private String id;
private String name; private String name;
......
...@@ -3,7 +3,7 @@ package pwc.taxtech.atms.dto.role; ...@@ -3,7 +3,7 @@ package pwc.taxtech.atms.dto.role;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
public class RoleDtoBase { public class RoleDtoBase {
@JsonProperty("ID") // @JsonProperty("ID")
private String id; private String id;
private String name; private String name;
private String description; private String description;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment