Пример #1
0
 @Override
 public Map<Integer, Date> findModifyTime(int projectId, int envId) {
   Map<Integer, Date> modifyTimes = new HashMap<Integer, Date>();
   List<ConfigStatus> statusList = configDao.findModifyTime(projectId, envId);
   for (ConfigStatus status : statusList) {
     modifyTimes.put(status.getConfigId(), status.getModifyTime());
   }
   return modifyTimes;
 }
Пример #2
0
 private void updateConfigModifyStatus(int configId, int envId) {
   int updated = configDao.updateModifyStatus(configId, envId);
   if (updated == 0) {
     ConfigStatus status = new ConfigStatus(configId, envId);
     Integer currentUserId = SecurityUtils.getCurrentUserId();
     status.setCreateUserId(currentUserId);
     status.setModifyUserId(currentUserId);
     configDao.createStatus(status);
   }
 }