工业级运维app手机api
沈斌
2017-10-29 84fa4cc7d487e90f59f241a266f44299903dfbfa
Merge remote-tracking branch 'origin/master'
1 files modified
12 ■■■■ changed files
src/main/java/com/moral/monitor/service/impl/ScreenServiceImpl.java 12 ●●●● patch | view | raw | blame | history
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();