java110
2020-06-01 7e3a731b960455b16016c3c4e2e727caa8190bb0
优化查询小区多条是报错问题
1个文件已修改
6 ■■■■ 已修改文件
CommunityService/src/main/java/com/java110/community/dao/impl/CommunityServiceDaoImpl.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CommunityService/src/main/java/com/java110/community/dao/impl/CommunityServiceDaoImpl.java
@@ -362,9 +362,9 @@
        if (businessCommunityMembers == null || businessCommunityMembers.size() == 0) {
            return null;
        }
        if (businessCommunityMembers.size() > 1) {
            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "根据条件查询有多条数据,数据异常,请检查:businessCommunityMember," + JSONObject.toJSONString(info));
        }
//        if (businessCommunityMembers.size() > 1) {
//            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "根据条件查询有多条数据,数据异常,请检查:businessCommunityMember," + JSONObject.toJSONString(info));
//        }
        return businessCommunityMembers;
    }