/** * 更新自动报送机构的时间 * * @return 更新后的时间 */ public String changeTime() { try { autoReportManageService.updateAutoReportInfoRunTime(timeValue, reportOrgId, flag); } catch (Exception e) { log.info("timeValue = " + timeValue + "reprtOrgId = " + reportOrgId + "falg = " + flag); } return init(); }
/** * 更新自动报送机构的启用状态 * * @return 更新后的状态 */ public String doUse() { try { autoReportManageService.updateAutoReportInfoIsUsed(reportOrgId, flag, time, isUsed); } catch (Exception e) { log.info( "reportOrgId = " + reportOrgId + "flag =" + flag + "time =" + time + "isUsed =" + isUsed); } return init(); }
/** * 初始化自动报送机构列表 * * @return 自动报送机构列表 */ public String init() { try { timeMap = new TreeMap<String, String>(); for (int i = 0; i < 24; i++) { String hour = String.format("%02d", i); timeMap.put(hour + ":00", hour + ":00"); timeMap.put(hour + ":30", hour + ":30"); } autoReportInfoVoList = autoReportManageService.queryReportOrgInfoList(); } catch (Exception e) { e.printStackTrace(); log.info("autoReportInfoVoList = " + autoReportInfoVoList.size()); } return SUCCESS; }