Commit 3593a603 authored by Yelli's avatar Yelli Committed by Tboy
Browse files

fix sonar bug: change condition & not enough arguments (#1705)

parent cfe17429
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -457,10 +457,13 @@ public class ProcessDao {
        if(tenantId >= 0){
            tenant = tenantMapper.queryById(tenantId);
        }
        if(tenant == null){
        if(null == tenant){
            User user = userMapper.selectById(userId);

            if (null != user) {
                tenant = tenantMapper.queryById(user.getTenantId());
            }
        }
        return tenant;
    }