|
@@ -9,6 +9,8 @@ import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.context.annotation.PropertySource;
|
|
import org.springframework.context.annotation.PropertySource;
|
|
|
|
+import org.springframework.core.io.InputStreamResource;
|
|
|
|
+import org.springframework.http.ResponseEntity;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.ssssssss.example.datacheck.bean.JsonResult;
|
|
import org.ssssssss.example.datacheck.bean.JsonResult;
|
|
@@ -16,6 +18,7 @@ import org.ssssssss.example.datacheck.service.DataCheckService;
|
|
import org.ssssssss.example.datacheck.service.DataExportService;
|
|
import org.ssssssss.example.datacheck.service.DataExportService;
|
|
import org.ssssssss.example.mdjf.common.Constant;
|
|
import org.ssssssss.example.mdjf.common.Constant;
|
|
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
|
|
@@ -34,29 +37,43 @@ public class DataExportController extends BaseController {
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/mdjftotal", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/mdjftotal", method = RequestMethod.GET)
|
|
- public void mdjftotal(HttpServletResponse response,@RequestParam(value = "startTime",required = false) String startTime, @RequestParam(value = "endTime",required = false) String endTime) throws IOException {
|
|
+ public ResponseEntity<InputStreamResource> mdjftotal(HttpServletResponse response, @RequestParam(value = "startTime",required = false) String startTime, @RequestParam(value = "endTime",required = false) String endTime) throws IOException {
|
|
- dataExportService.mdjftotal(startTime,endTime,response);
|
|
+ return dataExportService.mdjftotal(startTime,endTime,response);
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/zdrtotal", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/zdrtotal", method = RequestMethod.GET)
|
|
- public void zdrtotal(HttpServletResponse response,@RequestParam(value = "startTime",required = false) String startTime, @RequestParam(value = "endTime",required = false) String endTime) throws IOException {
|
|
+ public void zdrtotal(HttpServletResponse response,
|
|
|
|
+ @RequestParam(value = "startTime",required = false) String startTime,
|
|
|
|
+ @RequestParam(value = "endTime",required = false) String endTime) throws IOException {
|
|
dataExportService.zdrtotal(startTime,endTime,response);
|
|
dataExportService.zdrtotal(startTime,endTime,response);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- @RequestMapping(value = "/yjzxList", method = RequestMethod.POST)
|
|
+ @RequestMapping(value = "/yjzxList", method = RequestMethod.GET)
|
|
- public void yjzxList(HttpServletResponse response,@RequestBody String jsonString) throws IOException {
|
|
+ public void yjzxList(HttpServletResponse response,
|
|
- JSONObject obj = JSONObject.parseObject(jsonString);
|
|
+ @RequestParam(value = "idno",required = false) String idno,
|
|
- String idno = obj.getString("idno");
|
|
+ @RequestParam(value = "jsdwmc",required = false) String jsdwmc,
|
|
- String jsdwmc = obj.getString("jsdwmc");
|
|
+ @RequestParam(value = "name",required = false) String name,
|
|
- String name = obj.getString("name");
|
|
+ @RequestParam(value = "rwlx",required = false) String rwlx,
|
|
- String rwlx = obj.getString("rwlx");
|
|
+ @RequestParam(value = "rwmc",required = false) String rwmc,
|
|
- String rwmc = obj.getString("rwmc");
|
|
+ @RequestParam(value = "sqdwmc",required = false) String sqdwmc,
|
|
- String sqdwmc = obj.getString("sqdwmc");
|
|
+ @RequestParam(value = "yjsjEnd",required = false) String yjsjEnd,
|
|
- String yjsjEnd = obj.getString("yjsjEnd");
|
|
+ @RequestParam(value = "yjsjStart",required = false) String yjsjStart,
|
|
- String yjsjStart = obj.getString("yjsjStart");
|
|
+ @RequestParam(value = "yjzt",required = false) String yjzt,
|
|
- String yjzt = obj.getString("yjzt");
|
|
+ @RequestParam(value = "zrmj",required = false) String zrmj
|
|
- String zrmj = obj.getString("zrmj");
|
|
+
|
|
|
|
+ ) throws IOException {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -65,6 +82,98 @@ public class DataExportController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @RequestMapping(value = "/mdjfList", method = RequestMethod.GET)
|
|
|
|
+ public void mdjfList(HttpServletResponse response,
|
|
|
|
+ @RequestParam(value = "bjlx",required = false) String bjlx,
|
|
|
|
+ @RequestParam(value = "bldw",required = false) String bldw,
|
|
|
|
+ @RequestParam(value = "blzrr",required = false) String blzrr,
|
|
|
|
+ @RequestParam(value = "dataSource",required = false) String dataSource,
|
|
|
|
+ @RequestParam(value = "eventAddress",required = false) String eventAddress,
|
|
|
|
+ @RequestParam(value = "eventDataEnd",required = false) String eventDataEnd,
|
|
|
|
+ @RequestParam(value = "eventDataStart",required = false) String eventDataStart,
|
|
|
|
+ @RequestParam(value = "eventId",required = false) String eventId,
|
|
|
|
+ @RequestParam(value = "eventName",required = false) String eventName,
|
|
|
|
+ @RequestParam(value = "eventType",required = false) String eventType,
|
|
|
|
+ @RequestParam(value = "idno",required = false) String idno,
|
|
|
|
+ @RequestParam(value = "isZdgz",required = false) String isZdgz,
|
|
|
|
+ @RequestParam(value = "partyType",required = false) String partyType,
|
|
|
|
+ @RequestParam(value = "sjrs",required = false) String sjrs,
|
|
|
|
+ @RequestParam(value = "slsjEnd",required = false) String slsjEnd,
|
|
|
|
+ @RequestParam(value = "slsjStart",required = false) String slsjStart
|
|
|
|
+ ) throws IOException {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ dataExportService.mdjfList(response,bjlx,bldw,blzrr,dataSource,eventAddress,eventDataEnd,eventDataStart,eventId,eventName,eventType,idno,isZdgz,partyType,sjrs,slsjEnd,slsjStart);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @RequestMapping(value = "/zdrList", method = RequestMethod.GET)
|
|
|
|
+ public void zdrList(HttpServletRequest request, HttpServletResponse response,
|
|
|
|
+ @RequestBody(required = false) String requestBody,
|
|
|
|
+ @RequestParam(value = "edfx",required = false) String edfx,
|
|
|
|
+ @RequestParam(value = "gksjStart",required = false) String gksjStart,
|
|
|
|
+ @RequestParam(value = "gksjEnd",required = false) String gksjEnd,
|
|
|
|
+ @RequestParam(value = "gkztStr",required = false) String gkzt,
|
|
|
|
+ @RequestParam(value = "rybq",required = false) String rybq,
|
|
|
|
+ @RequestParam(value = "rylb",required = false) String rylb,
|
|
|
|
+ @RequestParam(value = "ryzt",required = false) String ryzt,
|
|
|
|
+ @RequestParam(value = "sdfx",required = false) String sdfx,
|
|
|
|
+ @RequestParam(value = "tsyj",required = false) String tsyj,
|
|
|
|
+ @RequestParam(value = "fengxian",required = false) String fengxian,
|
|
|
|
+ @RequestParam(value = "zrbm",required = false) String zrbm,
|
|
|
|
+ @RequestParam(value = "zrdw",required = false) String zrdw,
|
|
|
|
+ @RequestParam(value = "zrr",required = false) String zrr
|
|
|
|
+
|
|
|
|
+ ) throws IOException {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ dataExportService.zdrList(response,edfx,gksjStart,gksjEnd,gkzt,rybq,rylb,ryzt,sdfx,tsyj,fengxian,zrbm,zrdw,zrr);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|