|
@@ -175,30 +175,30 @@ public class ZcController extends BaseController {
|
|
|
"港口企业安全隐患排查治理月报表", ReportExportHelper.REPORT_EXPORT_TYPE_WORD);
|
|
|
}
|
|
|
|
|
|
- @RequestMapping(value = "dcTjJasper", method = RequestMethod.POST)
|
|
|
- @ResponseBody
|
|
|
- @RemotingExclude
|
|
|
- public void jasperPrintTj(
|
|
|
- @RequestParam(value = "type", required = false) final String type,
|
|
|
- @RequestParam(value = "szd", required = false) final String szd,
|
|
|
- HttpServletResponse response, HttpServletRequest request) {
|
|
|
- List<Map<String, Object>> dataList = null;
|
|
|
- String reportFile = "";
|
|
|
- Map<String, Object> parameters = new HashMap<String, Object>();
|
|
|
- if (GlobalData.DEPLOY_MODE.equals(Constants.DEPLOY_MODE_PROVINCE)) {
|
|
|
- dataList = (List<Map<String, Object>>) countZdyh(szd, type)
|
|
|
- .getAttribute("records");
|
|
|
- } else {
|
|
|
- dataList = (List<Map<String, Object>>) countZdyhxx(szd, type)
|
|
|
- .getAttribute("records");
|
|
|
- }
|
|
|
- reportFile = "iReport/zcdc/dcTj.jasper";
|
|
|
- parameters.put("is_city",
|
|
|
- Constants.DEPLOY_MODE_CITY.equals(GlobalData.DEPLOY_MODE));
|
|
|
- ReportExportHelper.exportFromIreport(reportFile, response, parameters,
|
|
|
- new JRBeanCollectionDataSource(dataList), "自查督查信息统计",
|
|
|
- ReportExportHelper.REPORT_EXPORT_TYPE_WORD);
|
|
|
- }
|
|
|
+// @RequestMapping(value = "dcTjJasper", method = RequestMethod.POST)
|
|
|
+// @ResponseBody
|
|
|
+// @RemotingExclude
|
|
|
+// public void jasperPrintTj(
|
|
|
+// @RequestParam(value = "type", required = false) final String type,
|
|
|
+// @RequestParam(value = "szd", required = false) final String szd,
|
|
|
+// HttpServletResponse response, HttpServletRequest request) {
|
|
|
+// List<Map<String, Object>> dataList = null;
|
|
|
+// String reportFile = "";
|
|
|
+// Map<String, Object> parameters = new HashMap<String, Object>();
|
|
|
+// if (GlobalData.DEPLOY_MODE.equals(Constants.DEPLOY_MODE_PROVINCE)) {
|
|
|
+// dataList = (List<Map<String, Object>>) countZdyh(szd, type)
|
|
|
+// .getAttribute("records");
|
|
|
+// } else {
|
|
|
+// dataList = (List<Map<String, Object>>) countZdyhxx(szd, type)
|
|
|
+// .getAttribute("records");
|
|
|
+// }
|
|
|
+// reportFile = "iReport/zcdc/dcTj.jasper";
|
|
|
+// parameters.put("is_city",
|
|
|
+// Constants.DEPLOY_MODE_CITY.equals(GlobalData.DEPLOY_MODE));
|
|
|
+// ReportExportHelper.exportFromIreport(reportFile, response, parameters,
|
|
|
+// new JRBeanCollectionDataSource(dataList), "自查督查信息统计",
|
|
|
+// ReportExportHelper.REPORT_EXPORT_TYPE_WORD);
|
|
|
+// }
|
|
|
|
|
|
public Collection<String[]> print(List<String> param) throws ParseException {
|
|
|
List<PredicateModel> filterList = new ArrayList<PredicateModel>();
|
|
@@ -480,12 +480,15 @@ public class ZcController extends BaseController {
|
|
|
* @param szd
|
|
|
* @return
|
|
|
*/
|
|
|
- public BusinessContext countZcDc(String szd,String type) {
|
|
|
+ public BusinessContext countZcDc(String szd,Date ks,Date js) {
|
|
|
+ ks = Utils.getDateFirstTime(ks);
|
|
|
+ js = Utils.getDateLastTime(js);
|
|
|
+
|
|
|
List<Map<String, Object>> list = null;
|
|
|
if (null == szd) {
|
|
|
- list = zcService.countZcdc(null,type);
|
|
|
+ list = zcService.countZcdc(null,ks,js);
|
|
|
} else {
|
|
|
- list = zcService.countZcdc(Long.parseLong(szd),type);
|
|
|
+ list = zcService.countZcdc(Long.parseLong(szd),ks,js);
|
|
|
}
|
|
|
BusinessContext bc = createBusinessContext();
|
|
|
bc.setAttribute("records", list);
|
|
@@ -499,12 +502,15 @@ public class ZcController extends BaseController {
|
|
|
* @param type
|
|
|
* @return
|
|
|
*/
|
|
|
- public BusinessContext countZdyh(String szd, String type) {
|
|
|
+ public BusinessContext countZdyh(String szd,Date ks,Date js) {
|
|
|
+ ks = Utils.getDateFirstTime(ks);
|
|
|
+ js = Utils.getDateLastTime(js);
|
|
|
+
|
|
|
List<Map<String, Object>> list = null;
|
|
|
if (null == szd) {
|
|
|
- list = zcService.countZdyh(null, type);
|
|
|
+ list = zcService.countZdyh(null,ks,js);
|
|
|
} else {
|
|
|
- list = zcService.countZdyh(Long.parseLong(szd), type);
|
|
|
+ list = zcService.countZdyh(Long.parseLong(szd),ks,js);
|
|
|
}
|
|
|
BusinessContext bc = createBusinessContext();
|
|
|
bc.setAttribute("records", list);
|