コード例 #1
0
  /**
   * 查询KV事件流列表
   *
   * @return
   */
  public String init() {
    try {
      // 检查action传递过来的systemID合法性r
      if (form == null || StringUtil.isNullOrEmpty(form.getSystemID())) {
        return Action.ERROR;
      }
      int systemID = NumericUtil.tryParse(form.getSystemID(), -1);
      if (systemID <= 0) {
        return Action.ERROR;
      }
      form.setSystemID(form.getSystemID());
      form.setTips(form.getTips() == null ? "" : form.getTips());

      BaseDTO dto = new BaseDTO();
      dto.setSystemID(systemID);
      // 查询KV事件流列表
      this.eventFlowList = this.service.listKVEventFlow(dto);

      LogUtil.log(dto, "事件流-列表");

      return Action.SUCCESS;
    } catch (Exception e) {
      e.printStackTrace();
      return null;
    }
  }
コード例 #2
0
  /**
   * 初始化
   *
   * @return
   */
  public String init() {
    // 检查action传递过来的systemID合法性
    if (form == null || StringUtil.isNullOrEmpty(form.getSystemID())) {
      return Action.ERROR;
    }

    String startDate = DateUtil.getDateOfXdaysAgo(1);
    String lidu = Constants.DAILY;
    int systemID = form.getSystemIDValue();

    form.setStartTime(startDate);
    form.setLidu(lidu);

    ColorosDTO dto = new ColorosDTO();
    dto.setStartDate(DateUtil.parseDate(startDate, "yyyy-MM-dd"));
    dto.setLidu(lidu);
    dto.setSystemID(systemID);
    versionactiveList = service.getVersionactiveList(dto);
    ServletActionContext.getRequest()
        .getSession()
        .setAttribute(Constants.NEARME_SESSION_REPROT_DATA, versionactiveList);

    LogUtil.log(dto, TAG);

    return Action.SUCCESS;
  }
コード例 #3
0
  public String init() {
    // 检查action传递过来的systemID合法性
    if (form == null || StringUtil.isNullOrEmpty(form.getSystemID())) {
      return Action.ERROR;
    }
    int systemID = NumericUtil.tryParse(form.getSystemID(), -1);
    if (systemID <= 0) {
      return Action.ERROR;
    }

    // 初始化对象
    formusetime = new BaseForm();
    startcntEntity = new BaseEntity();
    usetimeEntity = new BaseEntity();

    initStartcnt();
    initUsetime();
    return Action.SUCCESS;
  }