报名可报人员名单现同时识别“男/男性”和“女/女性”
This commit is contained in:
+3
-2
@@ -329,10 +329,11 @@ public class ActivitySportsApplyUserServiceImpl extends BaseServiceImpl<Activity
|
||||
cnd.and(new Static("u.id not in (SELECT IFNULL(app.userId,'') from activity_school_apply app WHERE app.activityId = '" + applyUserPageParam.getActivityId() + "' AND app.eventId='" + applyUserPageParam.getEventId() + "')"));
|
||||
cnd.and(new Static("u.id IN (SELECT userId FROM activity_user_scope aus WHERE aus.groupId='" + activity.getActivityGroupId() + "')"));
|
||||
cnd.and("un.unionid", "=", applyUserPageParam.getUnionId());
|
||||
// 项目用 1/2 表示男子/女子;人员性别兼容“男/女”和“男性/女性”两种存储值。
|
||||
if (isMenWomen != null && isMenWomen == 1)
|
||||
cnd.and("u.sex", "=", "男性");
|
||||
cnd.and("u.sex", "in", List.of("男", "男性"));
|
||||
if (isMenWomen != null && isMenWomen == 2)
|
||||
cnd.and("u.sex", "=", "女性");
|
||||
cnd.and("u.sex", "in", List.of("女", "女性"));
|
||||
if (Strings.isNotBlank(applyUserPageParam.getStartAgeDate())) {
|
||||
cnd.and("u.birthday", ">", applyUserPageParam.getStartAgeDate());
|
||||
cnd.and("u.birthday", "<=", applyUserPageParam.getEndAgeDate());
|
||||
|
||||
Reference in New Issue
Block a user