commit
This commit is contained in:
+38
-34
@@ -75,7 +75,7 @@ public class ClubRegistApplyController {
|
|||||||
@Param(value = "isSave", required = false) Boolean isSave,
|
@Param(value = "isSave", required = false) Boolean isSave,
|
||||||
@Param(value = "::managePerson", required = false) List<NutMap> managePerson,
|
@Param(value = "::managePerson", required = false) List<NutMap> managePerson,
|
||||||
@Param(value = "::clubUserList", required = false) List<NutMap> clubUserList) throws IOException {
|
@Param(value = "::clubUserList", required = false) List<NutMap> clubUserList) throws IOException {
|
||||||
if(!sysClubService.getInviteAgree(club)) {
|
if(!isSave && !sysClubService.getInviteAgree(club)) {
|
||||||
return Result.error("邀请会员中确认人数暂未达到20人");
|
return Result.error("邀请会员中确认人数暂未达到20人");
|
||||||
}
|
}
|
||||||
club.setIsjs(false);
|
club.setIsjs(false);
|
||||||
@@ -124,21 +124,23 @@ public class ClubRegistApplyController {
|
|||||||
|
|
||||||
//协会成员
|
//协会成员
|
||||||
List<String> manageUserIdList = managePerson.stream().map(o -> o.getString("userId")).toList();
|
List<String> manageUserIdList = managePerson.stream().map(o -> o.getString("userId")).toList();
|
||||||
clubUserList.forEach(item -> {
|
if(Lang.isNotEmpty(clubUserList)) {
|
||||||
if (StrUtil.isNotBlank(item.getString("userId")) && !manageUserIdList.contains(item.getString("userId"))) {
|
clubUserList.forEach(item -> {
|
||||||
Sys_club_user cUser = new Sys_club_user();
|
if (StrUtil.isNotBlank(item.getString("userId")) && !manageUserIdList.contains(item.getString("userId"))) {
|
||||||
cUser.setClubid(sysClub.getId());
|
Sys_club_user cUser = new Sys_club_user();
|
||||||
cUser.setUserid(item.getString("userId"));
|
cUser.setClubid(sysClub.getId());
|
||||||
cUser.setJoin_time(DateUtil.getDateTime());
|
cUser.setUserid(item.getString("userId"));
|
||||||
cUser.setSf(2);
|
cUser.setJoin_time(DateUtil.getDateTime());
|
||||||
cUser.setIsjf(true);
|
cUser.setSf(2);
|
||||||
cUser.setStatus(6);
|
cUser.setIsjf(true);
|
||||||
cUser.setGiveMoney(true);
|
cUser.setStatus(6);
|
||||||
cUser.setIsNormal(true);
|
cUser.setGiveMoney(true);
|
||||||
cUser.setInvite(true);
|
cUser.setIsNormal(true);
|
||||||
clubUsers.add(cUser);
|
cUser.setInvite(true);
|
||||||
}
|
clubUsers.add(cUser);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (ShiroUtil.hasAnyRoles("sysadmin, A06, xxhgly")) {
|
if (ShiroUtil.hasAnyRoles("sysadmin, A06, xxhgly")) {
|
||||||
dao.insert(userRoles);
|
dao.insert(userRoles);
|
||||||
@@ -224,25 +226,27 @@ public class ClubRegistApplyController {
|
|||||||
});
|
});
|
||||||
|
|
||||||
List<String> manageUserIdList = managePerson.stream().map(o -> o.getString("userId")).toList();
|
List<String> manageUserIdList = managePerson.stream().map(o -> o.getString("userId")).toList();
|
||||||
clubUserList.forEach(item -> {
|
if(Lang.isNotEmpty(clubUserList)) {
|
||||||
if (StrUtil.isNotBlank(item.getString("userId")) && !manageUserIdList.contains(item.getString("userId"))) {
|
clubUserList.forEach(item -> {
|
||||||
int count = dao.count(Sys_club_user.class, Cnd.where("clubid", "=", club.getId())
|
if (StrUtil.isNotBlank(item.getString("userId")) && !manageUserIdList.contains(item.getString("userId"))) {
|
||||||
.and("userid", "=", item.getString("userId")));
|
int count = dao.count(Sys_club_user.class, Cnd.where("clubid", "=", club.getId())
|
||||||
if(count == 0) {
|
.and("userid", "=", item.getString("userId")));
|
||||||
Sys_club_user cUser = new Sys_club_user();
|
if(count == 0) {
|
||||||
cUser.setClubid(club.getId());
|
Sys_club_user cUser = new Sys_club_user();
|
||||||
cUser.setUserid(item.getString("userId"));
|
cUser.setClubid(club.getId());
|
||||||
cUser.setJoin_time(DateUtil.getDateTime());
|
cUser.setUserid(item.getString("userId"));
|
||||||
cUser.setSf(2);
|
cUser.setJoin_time(DateUtil.getDateTime());
|
||||||
cUser.setIsjf(true);
|
cUser.setSf(2);
|
||||||
cUser.setStatus(6);
|
cUser.setIsjf(true);
|
||||||
cUser.setGiveMoney(true);
|
cUser.setStatus(6);
|
||||||
cUser.setIsNormal(true);
|
cUser.setGiveMoney(true);
|
||||||
cUser.setInvite(true);
|
cUser.setIsNormal(true);
|
||||||
clubUsers.add(cUser);
|
cUser.setInvite(true);
|
||||||
|
clubUsers.add(cUser);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
|
|
||||||
if(ShiroUtil.hasAnyRoles("sysadmin, A06, xxhgly") && Objects.equals(club.getState(), ClubRegistAuditState.SCHOOL_PASS)) {
|
if(ShiroUtil.hasAnyRoles("sysadmin, A06, xxhgly") && Objects.equals(club.getState(), ClubRegistAuditState.SCHOOL_PASS)) {
|
||||||
dao.clear(Sys_user_role.class, Cnd.where("stid", "=", club.getId())
|
dao.clear(Sys_user_role.class, Cnd.where("stid", "=", club.getId())
|
||||||
|
|||||||
Reference in New Issue
Block a user