|
@@ -498,7 +498,7 @@ public class ProjectService extends ServiceImpl<ProjectMapper, Project> {
|
|
|
ProjectStandardVO queryResult = projectMapper.getStandardById(projectId);
|
|
|
Integer oldProductId = queryResult.getProductId();
|
|
|
//若当前产品id和原产品id不一致,则表示当前的修改要修改产品
|
|
|
- if (newProductId != null && !newProductId.equals(oldProductId)) {
|
|
|
+ if ((newProductId != null && !newProductId.equals(oldProductId)) || (newProductId == null && oldProductId != null)) {
|
|
|
//检查当前专题库产品架构是否已标引,若已标引则不允许修改产品
|
|
|
int count = assoStructurePatentMapper.countByProjectId(projectId);
|
|
|
if (count > 0) {
|