This commit is contained in:
=
2026-04-02 10:03:33 +08:00
parent 8e2b7775c7
commit 12e2cb073b
2 changed files with 2 additions and 7 deletions
@@ -306,8 +306,7 @@ public class ActivityApplyController {
Cnd cndTeam = Cnd.NEW();
cndTeam.and("eventId", "=", eventId);
cndTeam.and("activityId", "=", activityId);
cnd.asc("location");
List<ActivitySchoolTeam> teamList = activitySchoolTeamService.query(cndTeam);
List<ActivitySchoolTeam> teamList = activitySchoolTeamService.dao().query(ActivitySchoolTeam.class, cndTeam.orderBy("CAST(SUBSTRING(name FROM 2 FOR LOCATE('队', name) - 2) AS UNSIGNED)", "ASC"));
if (activity.getApplyMultipleTeamsUnionIds().contains(Vi.getUnionId())) {
result.put("team", teamList);
@@ -1981,11 +1981,7 @@ layout("/layouts/platform.html"){
const {users, awardsModeT, awardsModeG, team, activity, getEvent} = resp.data
this.activityData = activity
this.eventData = getEvent
this.teams = team.sort((a, b) => {
const numA = parseInt(a.name.replace('第', '').replace('队', ''))
const numB = parseInt(b.name.replace('第', '').replace('队', ''))
return numA - numB
})
this.teams = team
if (this.teams.length) {
this.team = this.teams[0].id
this.teamId = this.teams[0].id