|
@@ -60,7 +60,7 @@ public class AssoProductPatentService extends ServiceImpl<AssoProductPatentMappe
|
|
|
patentDTO.setPatentNo(patentDTO.getPatentNo().replace(" ", ""));
|
|
|
if (!patentDTO.getPatentNo().equals("")) {
|
|
|
String[] strs = patentDTO.getPatentNo().split("\\|");
|
|
|
- patentDTO.setPatentNo("(^|,)("+patentDTO.getPatentNo()+")(,|$)");
|
|
|
+ patentDTO.setPatentNo("(^|,)(" + patentDTO.getPatentNo() + ")(,|$)");
|
|
|
orgPatentNos = new ArrayList<>(Arrays.asList(strs));
|
|
|
patentDTO.setIsIn(0);
|
|
|
List<String> patentNos = this.baseMapper.getPatentNos(patentDTO);
|
|
@@ -131,7 +131,8 @@ public class AssoProductPatentService extends ServiceImpl<AssoProductPatentMappe
|
|
|
if (params.getProductId() == null) {
|
|
|
//当架构id不为null时
|
|
|
if (params.getStructureId() != null) {
|
|
|
- structureService.getById(params.getStructureId());
|
|
|
+ Structure structure = structureService.getById(params.getStructureId());
|
|
|
+ params.setProductId(structure.getProductId());
|
|
|
} else {
|
|
|
return pageList;
|
|
|
}
|