Commit 1e0fba5f authored by 李永强's avatar 李永强

调整功能

parent c52193f0
Pipeline #220 failed with stages
......@@ -76,7 +76,7 @@ public class JurisdictionController {
@ApiOperation(value = "给用户赋予角色", produces = MediaType.APPLICATION_JSON_VALUE)
@ApiImplicitParam(name = Constants.ACCESS_TOKEN, required = true, paramType = "header", dataType = "String")
@RequestMapping(value = "/role/{roleIds}/user/{userId}", method = RequestMethod.POST)
@RequestMapping(value = "/user/{userId}/role/{roleIds}", method = RequestMethod.POST)
public Object roleToUser(@PathVariable String roleIds, @PathVariable Long userId) throws ServiceException {
jurisdictionService.roleToUser(roleIds, userId);
return null;
......
......@@ -75,7 +75,7 @@
<insert id="roleToUser">
insert into user_role (ur_role_id, ur_user_id)
values
<foreach collection="roleIds" item="roleIds" separator=",">
<foreach collection="roleIds" item="roleId" separator=",">
(#{roleId}, #{userId})
</foreach>
</insert>
......
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