Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
7a647411
Commit
7a647411
authored
Sep 28, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basicData module test and correct
parent
24f8430f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
RoleController.java
...main/java/pwc/taxtech/atms/controller/RoleController.java
+3
-3
ServiceTypeDto.java
...pi/src/main/java/pwc/taxtech/atms/dto/ServiceTypeDto.java
+1
-1
RoleDtoBase.java
.../src/main/java/pwc/taxtech/atms/dto/role/RoleDtoBase.java
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/RoleController.java
View file @
7a647411
...
@@ -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
(
"serviceTypeI
d
"
)
String
serviceTypeId
)
{
@RequestBody
List
<
String
>
roleIdList
,
@RequestParam
(
"serviceTypeI
D
"
)
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
(
"roleI
d
"
)
String
roleId
)
{
public
void
updateRole
(
@RequestBody
UpdateRoleInfo
updateRole
,
@RequestParam
(
"roleI
D
"
)
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
(
"roleI
d
"
)
String
roleId
)
{
public
Boolean
checkExistReference
(
@RequestParam
(
"roleI
D
"
)
String
roleId
)
{
return
roleService
.
checkUserRole
(
roleId
);
return
roleService
.
checkUserRole
(
roleId
);
}
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/ServiceTypeDto.java
View file @
7a647411
...
@@ -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
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/role/RoleDtoBase.java
View file @
7a647411
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment