| | |
| | | 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); |
| | | } |
| | | } |