工业级运维app手机api
沈斌
2017-10-29 a370a1e835ca0669a47333e6e9ca7d9a445a7472
src/main/java/com/moral/monitor/service/impl/ScreenServiceImpl.java
@@ -12,10 +12,11 @@
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
import com.alibaba.fastjson.JSON;
import com.moral.monitor.dao.AccountEntityMapper;
@@ -195,8 +196,13 @@
   }
   public void setOrgIdsByAccount(Map<String, Object> parameters) {
      AccountEntity account = accountMapper.selectByPrimaryKey((Integer.valueOf((String) parameters.get("accountId"))));
      if (null == account) {
      String accountId = ObjectUtils.nullSafeToString(parameters.get("accountId"));
      if (!StringUtils.isNumeric(accountId) ) {
         return;
      }
      AccountEntity account = accountMapper.selectByPrimaryKey((Integer.valueOf(accountId)));
      if (ObjectUtils.isEmpty(account)) {
         return;
      }
      String organization = account.getOrganization();