lyh
3 天以前 2ab86210fb27787cb1be8976286b9b827f90997f
src/main/java/com/lxzn/nc/service/impl/DocRelativeServiceImpl.java
@@ -157,4 +157,22 @@
            ExceptionCast.cast(CommonCode.INVALID_PARAM);
        return super.getBaseMapper().findDeviceByDocId(docId);
    }
    /**
     * 查询关联关系
     * @param docId
     * @param classificationId
     * @param attributionType
     * @param attributionId
     * @return
     */
    @Override
    public DocRelative findDocRelative(String docId, String classificationId, Integer attributionType, String attributionId){
        LambdaQueryWrapper<DocRelative> lambdaQueryWrapper = Wrappers.lambdaQuery();
        lambdaQueryWrapper.eq(DocRelative::getDocId, docId);
        lambdaQueryWrapper.eq(DocRelative::getAttributionType, attributionType);
        lambdaQueryWrapper.eq(DocRelative::getAttributionId, attributionId);
        lambdaQueryWrapper.eq(DocRelative::getClassificationId, classificationId);
        return super.getOne(lambdaQueryWrapper);
    }
}