Examples of MaintainLog


Examples of com.narirelays.ems.persistence.orm.MaintainLog

//        logHash.put(name,log);
       
      }
      for(String key:hash.keySet()){
        if(logHash.containsKey(key)){
          MaintainLog log =  logHash.get(key);
          Timestamp timeStamp = hash.get(key);
          Date changeTime = log.getChangeTime();
          if(timeStamp.getTime()>changeTime.getTime()){
            result.add(key);
          }
        }else{
          result.add(key);
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.MaintainLog

          hash.put(wordObject.toString(),(Timestamp)timsStampObject);
        }
      }
    }
    for(String log:logs){
      MaintainLog maintainLog = maintainLogDAO.findById(log);
//      if(maintainLog==null){
//        maintainLog = new MaintainLog();
//        maintainLog.setName(log);
//      }
//      if(hash.containsKey(log)){
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.MaintainLog

    List<MaintainLog> logs = maintainLogDAO.findAll();
    if(logs==null||logs.size()==0)//维护记录为空
    {
      //第一次维护,则维护计量点;是否需要先清除所有计量点
      maitainWiccMeasurePoints();
      MaintainLog log = new MaintainLog();
      log.setId(MyUUIDGen.getUUID());
      log.setChangeTime(WinccUtility.getupdateTime(jdbcTemplate));
      Timestamp date = new Timestamp(new Date().getTime());
      log.setCurrentUpdate(date);
      log.setLastUpdate(date);
      maintainLogDAO.merge(log);
    }
    else//维护记录不为空
    {
      MaintainLog log = logs.get(0);
      Timestamp userTableUpdate = WinccUtility.getupdateTime(jdbcTemplate);
      Timestamp currentUpdate = log.getCurrentUpdate();
      if(currentUpdate.getTime()<userTableUpdate.getTime())//有更新
      {
        maitainWiccMeasurePoints();
        log.setChangeTime(userTableUpdate);
        log.setCurrentUpdate(new Timestamp(new Date().getTime()));
        log.setLastUpdate(currentUpdate);
        maintainLogDAO.merge(log);
      }
      else
      {
        //无更新,不作任何处理
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.