|
|
@@ -118,8 +118,7 @@ public class AdminSuperviserApiController extends CertifyApiController {
|
|
|
* 修改管理员信息
|
|
|
*/
|
|
|
@RequestMapping(value = "/updateAdmin", method = RequestMethod.POST)
|
|
|
- public Result updateAdmin(@RequestParam(value = "roles[]", required = false) String[] roleIds, String data,
|
|
|
- String ambId) {
|
|
|
+ public Result updateAdmin(@RequestParam(value = "roles[]", required = false) String[] roleIds, String data) {
|
|
|
Result res = new Result();
|
|
|
JSONObject jo = (JSONObject) JSON.parse(data);
|
|
|
List<String> roles = new ArrayList<String>();
|
|
|
@@ -166,7 +165,7 @@ public class AdminSuperviserApiController extends CertifyApiController {
|
|
|
if (!a.getStatus().equals(ad.getStatus())&&!ad.getStatus().equals("正常")){
|
|
|
redisUtil.deleteAid(aa.getId());
|
|
|
}
|
|
|
- res.setData(newAdminService.updateByPrimaryKeySelective(ad, roles,ambId));
|
|
|
+ res.setData(newAdminService.updateByPrimaryKeySelective(ad, roles));
|
|
|
}
|
|
|
return res;
|
|
|
}
|