|
|
@@ -106,7 +106,7 @@ public class NewAdminServiceImpl extends BaseMybatisDao<AdminMapper> implements
|
|
|
}
|
|
|
|
|
|
ad.setType(sumType(roleIds));
|
|
|
- int count=adminMapper.updateByPrimaryKeySelective(ad);
|
|
|
+ int count=adminMapper.updateByPrimaryKey(ad);
|
|
|
pushAmbRole(ad);
|
|
|
pushAdminRole(ad.getId(),roleIds,useRole);
|
|
|
if (count>0&&ad.getAmbId()!=null){
|
|
|
@@ -326,7 +326,7 @@ public class NewAdminServiceImpl extends BaseMybatisDao<AdminMapper> implements
|
|
|
TokenManager.clearUserAuthByUserId(ad.getId());
|
|
|
}
|
|
|
if(ad.getAmbId()!=null)pushAmbRole(ad);
|
|
|
- adminMapper.insertSelective(ad);
|
|
|
+ adminMapper.insert(ad);
|
|
|
pushAdminRole(ad.getId(),roleIds,null);
|
|
|
return 1;
|
|
|
}
|