Browse Source

阿米巴开发

anderx 3 years ago
parent
commit
7564bdbc58

+ 2 - 3
src/main/java/com/goafanti/admin/controller/AdminSuperviserApiController.java

@@ -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;
 	}

+ 1 - 1
src/main/java/com/goafanti/admin/service/NewAdminService.java

@@ -19,7 +19,7 @@ public interface NewAdminService {
 
 	int insert(Admin ad);
 
-	int updateByPrimaryKeySelective(Admin ad, List<String> roleIds,String ambId);
+	int updateByPrimaryKeySelective(Admin ad, List<String> roleIds);
 
 	int updateByPrimaryKey(Admin a);
 

+ 1 - 1
src/main/java/com/goafanti/admin/service/impl/NewAdminServiceImpl.java

@@ -73,7 +73,7 @@ public class NewAdminServiceImpl extends BaseMybatisDao<AdminMapper> implements
 
 	@SuppressWarnings("unused")
 	@Override
-	public int updateByPrimaryKeySelective(Admin ad, List<String> roleIds,String ambId) {
+	public int updateByPrimaryKeySelective(Admin ad, List<String> roleIds) {
 		Map<String, Object> params = new HashMap<>();
 		params.put("uid", ad.getId());
 		params.put("roles", roleIds);

+ 9 - 0
src/main/java/com/goafanti/common/model/Admin.java

@@ -129,6 +129,15 @@ public class Admin extends BaseModel implements AftUser {
     private String	superior;
     private String reviewerName;
 
+
+    public String getAmbid() {
+        return ambid;
+    }
+
+    public void setAmbid(String ambid) {
+        this.ambid = ambid;
+    }
+
     public String getReviewerName() {
         return reviewerName;
     }