|
@@ -229,7 +229,7 @@ public class BillSubsidyController {
|
|
map.put("code", "1");
|
|
map.put("code", "1");
|
|
iBillSubsidyService.printAmount(response, map);
|
|
iBillSubsidyService.printAmount(response, map);
|
|
String path = "/opt/subsidy/xian.xls";
|
|
String path = "/opt/subsidy/xian.xls";
|
|
- PdfUtil.returnPdfStream2(response, path, "县阶段性统计表");
|
|
|
|
|
|
+ PdfUtil.returnPdfStream3(response, path, "县阶段性统计表");
|
|
} else {
|
|
} else {
|
|
//打印镇
|
|
//打印镇
|
|
Map<String, String> map = new HashMap<>();
|
|
Map<String, String> map = new HashMap<>();
|
|
@@ -238,20 +238,20 @@ public class BillSubsidyController {
|
|
map.put("code", country);
|
|
map.put("code", country);
|
|
iBillSubsidyService.printAmount(response, map);
|
|
iBillSubsidyService.printAmount(response, map);
|
|
String path = "/opt/subsidy/amount.xls";
|
|
String path = "/opt/subsidy/amount.xls";
|
|
- PdfUtil.returnPdfStream2(response, path, "镇阶段性统计表");
|
|
|
|
|
|
+ PdfUtil.returnPdfStream3(response, path, "镇阶段性统计表");
|
|
}
|
|
}
|
|
|
|
|
|
} else {
|
|
} else {
|
|
//专干
|
|
//专干
|
|
SysUser user = iSysUserService.getById(id);
|
|
SysUser user = iSysUserService.getById(id);
|
|
- country = user.getDetailedAdressCode();//镇的编码
|
|
|
|
|
|
+ country = user.getBriefAddressCode();//镇的编码
|
|
Map<String, String> map = new HashMap<>();
|
|
Map<String, String> map = new HashMap<>();
|
|
map.put("start", startDate);
|
|
map.put("start", startDate);
|
|
map.put("end", endDate);
|
|
map.put("end", endDate);
|
|
map.put("code", country);
|
|
map.put("code", country);
|
|
iBillSubsidyService.printAmount(response, map);
|
|
iBillSubsidyService.printAmount(response, map);
|
|
String path = "/opt/subsidy/amount.xls";
|
|
String path = "/opt/subsidy/amount.xls";
|
|
- PdfUtil.returnPdfStream2(response, path, "镇阶段性统计表");
|
|
|
|
|
|
+ PdfUtil.returnPdfStream3(response, path, "镇阶段性统计表");
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -260,7 +260,7 @@ public class BillSubsidyController {
|
|
@GetMapping("/printWaitPay")
|
|
@GetMapping("/printWaitPay")
|
|
public void printWaitPay(HttpServletResponse response, @RequestParam(name = "country", required = false) String country
|
|
public void printWaitPay(HttpServletResponse response, @RequestParam(name = "country", required = false) String country
|
|
, @RequestParam(name = "startDate", required = true) String startDate, @RequestParam(name = "endDate", required = true) String endDate,
|
|
, @RequestParam(name = "startDate", required = true) String startDate, @RequestParam(name = "endDate", required = true) String endDate,
|
|
- @RequestParam(name = "id", required = false) String id, @RequestParam(name = "endDate", required = true) Integer type
|
|
|
|
|
|
+ @RequestParam(name = "id", required = false) Integer id, @RequestParam(name = "endDate", required = false) Integer type
|
|
) throws Exception {
|
|
) throws Exception {
|
|
|
|
|
|
if (type == 0) {
|
|
if (type == 0) {
|
|
@@ -271,17 +271,17 @@ public class BillSubsidyController {
|
|
map.put("code", country);
|
|
map.put("code", country);
|
|
iBillSubsidyService.printWaitPay(response, map);
|
|
iBillSubsidyService.printWaitPay(response, map);
|
|
String path = "/opt/subsidy/pay.xls";
|
|
String path = "/opt/subsidy/pay.xls";
|
|
- PdfUtil.returnPdfStream2(response, path, "待支付表");
|
|
|
|
|
|
+ PdfUtil.returnPdfStream3(response, path, "待支付表");
|
|
} else {
|
|
} else {
|
|
//专干
|
|
//专干
|
|
SysUser byId = iSysUserService.getById(id);
|
|
SysUser byId = iSysUserService.getById(id);
|
|
Map<String, String> map = new HashMap<>();
|
|
Map<String, String> map = new HashMap<>();
|
|
map.put("start", startDate);
|
|
map.put("start", startDate);
|
|
map.put("end", endDate);
|
|
map.put("end", endDate);
|
|
- map.put("code", byId.getDetailedAdressCode());
|
|
|
|
|
|
+ map.put("code", byId.getBriefAddressCode());
|
|
iBillSubsidyService.printWaitPay(response, map);
|
|
iBillSubsidyService.printWaitPay(response, map);
|
|
String path = "/opt/subsidy/pay.xls";
|
|
String path = "/opt/subsidy/pay.xls";
|
|
- PdfUtil.returnPdfStream2(response, path, "待支付表");
|
|
|
|
|
|
+ PdfUtil.returnPdfStream3(response, path, "待支付表");
|
|
}
|
|
}
|
|
|
|
|
|
//文件删除 TODO
|
|
//文件删除 TODO
|