public int doFalseDelUser(String checkedId) {
//把字符创数组转为数字数组
String[] Id = checkedId.split(",");
int [] num=new int[Id.length];
for(int i=0;i<num.length;i++){
num[i]=Integer.parseInt(Id[i]);
}
int LimitType= this.userDao.queryUserLimit(num);
//判断是否是超级管理员
if(LimitType!=1){
return userDao.doFalseDelUser(checkedId.split(","));
}else{
return 1;
}
}
java 把字符串儿数组转为数字数组
最新推荐文章于 2024-07-16 12:08:49 发布