| 
					
				 | 
			
			
				@@ -80,9 +80,12 @@ public class PostCollectionController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/add") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult add(@RequestBody PostCollection postCollection) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(postCollection.getDelFlag()=="1") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return AjaxResult.error("新增藏品"+postCollection.getCollectionName()+"失败,藏品已经上链,无法添加"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(UserConstants.NOT_UNIQUE.equals(postCollectionService.checkName(postCollection))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return AjaxResult.error("新增消息"+postCollection.getCollectionName()+"失败,藏品已经存在"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return AjaxResult.error("新增藏品"+postCollection.getCollectionName()+"失败,藏品已经存在"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         postCollection.setCreateBy(getUsername()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return toAjax(postCollectionService.insertPostCollection(postCollection)); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -96,6 +99,9 @@ public class PostCollectionController extends BaseController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PutMapping("/edit") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public AjaxResult edit(@RequestBody PostCollection postCollection) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(postCollection.getDelFlag()=="1") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return AjaxResult.error("新增藏品"+postCollection.getCollectionName()+"失败,藏品已经上链,无法修改"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return toAjax(postCollectionService.updatePostCollection(postCollection)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |