This commit is contained in:
@jyuhsin
2025-08-14 11:54:12 +08:00
parent 2544270afc
commit 6203a06eaa
2 changed files with 3 additions and 3 deletions
@@ -847,7 +847,7 @@ public class TheRapyRecuperationUnionQueryController {
@At
@Ok("void")
@RequiresAuthentication
public void exportTravelers(HttpServletResponse response) {
public void exportTravelers(Integer year, HttpServletResponse response) {
Map<String, Object> map = new HashMap<>();
Sql sql = Sqls.create("""
SELECT
@@ -870,7 +870,7 @@ public class TheRapyRecuperationUnionQueryController {
String unionid = ((Sys_union) ShiroUtil.getPrincipalProperty("union")).getId();
sql.setParam("unionid", unionid);
sql.setParam("stateId", TheRapyRecuperationState.PASS);
sql.setParam("year", DateUtil.thisYear());
sql.setParam("year", year == null ? DateUtil.thisYear() : year);
List<NutMap> list = baseService.listMap(sql);
for (int i = 0; i < list.size(); i++) {
list.get(i).put("index", i + 1);