活动
This commit is contained in:
+20
-6
@@ -824,9 +824,9 @@ public class ActivityApplyController {
|
||||
@At
|
||||
@ViReturn
|
||||
@RequiresPermissions("activity.apply")
|
||||
public Object dshApplyUserList(
|
||||
@Param(value = "activityId", required = false) String activityId,
|
||||
@Param(value = "eventId", required = false) String eventId) {
|
||||
public Object dshApplyUserList(@Param(value = "activityId", required = false) String activityId,
|
||||
@Param(value = "eventId", required = false) String eventId,
|
||||
@Param(value = "activityIsAudit", required = false) String activityIsAudit) {
|
||||
Sql sql = Sqls.create("""
|
||||
SELECT
|
||||
asa.id,
|
||||
@@ -840,9 +840,23 @@ public class ActivityApplyController {
|
||||
FROM
|
||||
`activity_school_apply` asa
|
||||
LEFT JOIN sys_user us ON asa.applyUser = us.id
|
||||
WHERE asa.activityId=@activityId and asa.eventId=@eventId and asa.activityUnionId=@activityUnionId
|
||||
ORDER BY asa.applyUser
|
||||
""").setParam("activityId", activityId).setParam("eventId", eventId).setParam("activityUnionId", getUnionId());
|
||||
$condition
|
||||
""");
|
||||
// WHERE
|
||||
// asa.activityId=@activityId and asa.eventId=@eventId and asa.activityUnionId=@activityUnionId
|
||||
// ORDER BY asa.applyUser
|
||||
// .setParam("activityId", activityId).setParam("eventId", eventId).setParam("activityUnionId", getUnionId());
|
||||
Cnd cnd = Cnd.NEW();
|
||||
cnd.and("asa.activityId", "=", activityId);
|
||||
cnd.and("asa.eventId", "=", eventId);
|
||||
cnd.and("asa.activityUnionId", "=", getUnionId());
|
||||
if ("false".equals(activityIsAudit)) {
|
||||
cnd.and("asa.status", "=", 1);
|
||||
} else {
|
||||
cnd.and("asa.status", "!=", 1);
|
||||
}
|
||||
cnd.asc("asa.applyUser");
|
||||
sql.setCondition(cnd);
|
||||
return activitySchoolApplyService.listMap(sql);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user