This commit is contained in:
@jyuhsin
2025-08-14 14:03:23 +08:00
parent a1cbb0dbc1
commit 89ccf69010
2 changed files with 3 additions and 3 deletions
@@ -847,7 +847,7 @@ public class TheRapyRecuperationUnionQueryController {
@At @At
@Ok("void") @Ok("void")
@RequiresAuthentication @RequiresAuthentication
public void exportTravelers(HttpServletResponse response) { public void exportTravelers(Integer year, HttpServletResponse response) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
Sql sql = Sqls.create(""" Sql sql = Sqls.create("""
SELECT SELECT
@@ -870,7 +870,7 @@ public class TheRapyRecuperationUnionQueryController {
String unionid = ((Sys_union) ShiroUtil.getPrincipalProperty("union")).getId(); String unionid = ((Sys_union) ShiroUtil.getPrincipalProperty("union")).getId();
sql.setParam("unionid", unionid); sql.setParam("unionid", unionid);
sql.setParam("stateId", TheRapyRecuperationState.PASS); sql.setParam("stateId", TheRapyRecuperationState.PASS);
sql.setParam("year", DateUtil.thisYear()); sql.setParam("year", year == null ? DateUtil.thisYear() : year);
List<NutMap> list = baseService.listMap(sql); List<NutMap> list = baseService.listMap(sql);
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {
list.get(i).put("index", i + 1); list.get(i).put("index", i + 1);
@@ -263,7 +263,7 @@ layout("/layouts/platform.html"){
size="small" type="primary">申报表导出 size="small" type="primary">申报表导出
</el-button> </el-button>
<el-button icon="el-icon-s-promotion" <el-button icon="el-icon-s-promotion"
@click="location.href='/platform/theRapyRecuperation/query/exportTravelers'" @click="location.href='/platform/theRapyRecuperation/query/exportTravelers?year=' + pageForm.year"
size="small" type="primary">出行人员导出 size="small" type="primary">出行人员导出
</el-button> </el-button>
</template> </template>