|
|
@@ -2092,6 +2092,16 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
|
|
|
@Override
|
|
|
public boolean checkMax(String uid,String aid) {
|
|
|
+ boolean isUs = false;
|
|
|
+ if (uid.contains(",")) {
|
|
|
+ isUs = true;
|
|
|
+ }
|
|
|
+ List<String> uList = new ArrayList<>();
|
|
|
+ if (isUs) {
|
|
|
+ uList = Arrays.asList(uid.split(","));
|
|
|
+ uid=uList.get(0);
|
|
|
+ }
|
|
|
+ int x=uList.size();
|
|
|
int y = 0;
|
|
|
int i = userMapper.checkUserMax(aid);
|
|
|
if (uid !=null){
|
|
|
@@ -2113,7 +2123,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ i+=x;
|
|
|
if (i >= y) {
|
|
|
return true;
|
|
|
}
|