/** 处理记录导出 */ public String exportOperatedList() { List<AlarmEntity> exportlist; UserInfo user = getCurrentUser(); if (searchVO.getOrganization_id() == null || "".equals(searchVO.getOrganization_id())) { searchVO.setOrganization_id(user.getOrganizationID()); } try { searchVO.setOperate_state("1"); // 已处理 exportlist = this.service.getObjects("VehicleCheckManage.getVehicleCheckList", searchVO); for (AlarmEntity obj : exportlist) { // 处理类型 if (Constants.VECHICLE_ILLEAGAL_USE.equals(obj.getOperate_type())) { obj.setOperate_type("公车私用"); } else { obj.setOperate_type("正常使用"); } } } catch (BusinessException e) { log.error("Export error:" + e.getMessage(), e); return ERROR; } String title = "异常用车处理记录"; return exportList(title, "operatedExport", exportlist); }
/** 异常用车导出 */ public String exportIllList() { List<AlarmEntity> exportlist; UserInfo user = getCurrentUser(); if (searchVO.getOrganization_id() == null || "".equals(searchVO.getOrganization_id())) { searchVO.setOrganization_id(user.getOrganizationID()); } try { searchVO.setOperate_state("0"); // 未处理 exportlist = this.service.getObjects("VehicleCheckManage.getVehicleCheckList", searchVO); } catch (BusinessException e) { log.error("Export error:" + e.getMessage(), e); return ERROR; } String title = "异常用车记录"; return exportList(title, "illListExport", exportlist); }