commit
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
@@ -263,7 +263,7 @@ layout("/layouts/platform.html"){
|
||||
size="small" type="primary">申报表导出
|
||||
</el-button>
|
||||
<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">出行人员导出
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user