|
@@ -39,12 +39,11 @@ public class PatentSimpleFamilyService extends ServiceImpl<PatentSimpleFamilyMap
|
|
|
LambdaQueryWrapper<PatentSimpleFamily> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.in(PatentSimpleFamily::getId, ids);
|
|
|
queryWrapper.eq(PatentSimpleFamily::getType, type);
|
|
|
- PatentSimpleFamily patentSimpleFamily =new PatentSimpleFamily();
|
|
|
- List<PatentSimpleFamily> patentSimpleFamilies =this.list(queryWrapper);
|
|
|
- if(patentSimpleFamilies!=null&&patentSimpleFamilies.size()!=0){
|
|
|
- patentSimpleFamily =patentSimpleFamilies.get(0);
|
|
|
+ List<PatentSimpleFamily> patentSimpleFamilies = this.list(queryWrapper);
|
|
|
+ if (patentSimpleFamilies.size() == 0) {
|
|
|
+ return null;
|
|
|
}
|
|
|
- return patentSimpleFamily;
|
|
|
+ return patentSimpleFamilies.get(0);
|
|
|
}
|
|
|
|
|
|
public List<PatentSimpleFamily> getPatentSimpleFamilyByIds(List<Integer> ids) {
|