From e1a8679b89fb609175a043c2b9a7d1dbca1e2cfc Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 9 Jun 2026 10:03:31 +0800 Subject: [PATCH] commit --- .../TheRapyRecuperationLineController.java | 11 +++++++++-- .../views/mobile/therapyRecuperation/lineList.html | 4 +++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/v/nutz/zhgh/therapyRecuperation/controller/basicManage/TheRapyRecuperationLineController.java b/src/main/java/io/v/nutz/zhgh/therapyRecuperation/controller/basicManage/TheRapyRecuperationLineController.java index 8011ded..cd35184 100644 --- a/src/main/java/io/v/nutz/zhgh/therapyRecuperation/controller/basicManage/TheRapyRecuperationLineController.java +++ b/src/main/java/io/v/nutz/zhgh/therapyRecuperation/controller/basicManage/TheRapyRecuperationLineController.java @@ -280,13 +280,20 @@ public class TheRapyRecuperationLineController { /** * 旅行社 * + * @param year 年度,手机端筛选传入时只返回该年度启用的旅行社 * @return {@link Object} */ @At @ViReturn @RequiresPermissions("theRapyRecuperation.line") - public Object getTravelAgencyOptions() { - List travelAgencies = lineService.dao().query(TheRapyRecuperationTravelAgency.class, Cnd.NEW().desc("year").asc("serialNumber")); + public Object getTravelAgencyOptions(Integer year) { + Cnd cnd = Cnd.NEW(); + if (year != null) { + cnd.and("year", "=", year); + cnd.and("isDisabled", "=", false); + } + cnd.desc("year").asc("serialNumber"); + List travelAgencies = lineService.dao().query(TheRapyRecuperationTravelAgency.class, cnd); return travelAgencies; } diff --git a/src/main/resources/views/mobile/therapyRecuperation/lineList.html b/src/main/resources/views/mobile/therapyRecuperation/lineList.html index 17c44c7..9bc5f2d 100644 --- a/src/main/resources/views/mobile/therapyRecuperation/lineList.html +++ b/src/main/resources/views/mobile/therapyRecuperation/lineList.html @@ -666,7 +666,9 @@ layout("/mobile/platform.html"){ } }, async getTravelAgencyOptions() { - const {data} = await $.get('/platform/theRapyRecuperation/line/getTravelAgencyOptions') + const {data} = await $.get('/platform/theRapyRecuperation/line/getTravelAgencyOptions', { + year: this.pageForm.year || new Date().getFullYear() + }) this.travelOptions = data.map(v => { return { ...v,