@@ -318,7 +318,7 @@ public class AccountController {
* @return
*/
@PostMapping("/bind/roles")
- public Result bindRoles(@RequestParam long accountId, @RequestParam String roleIds) {
+ public Result bindRoles(@RequestParam("accountId") Long accountId, @RequestParam("roleIds") String roleIds) {
accountService.bindRoles(accountId, roleIds);
accountService.clearCache(accountId);
return Result.success();
@@ -32,6 +32,6 @@
group by a.id,a.username,a.realname,a.email,a.mobile
</select>
<delete id="unBindRolesById" parameterType="java.lang.Long">
- DELETE FROM AC_ACCOUNT_COMPANY WHERE ACCOUNT_ID = #{id}
+ DELETE FROM AC_ACCOUNT_ROLE WHERE ACCOUNT_ID = #{id}
</delete>
</mapper>