| 
					
				 | 
			
			
				@@ -21,6 +21,7 @@ import com.usky.iot.mapper.DmpProductInfoMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.usky.iot.service.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.usky.iot.service.config.IntegerUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.usky.iot.service.vo.DmpProductInfoRequest; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.usky.transfer.RemoteTransferService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.stereotype.Service; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,6 +55,9 @@ public class DmpProductInfoServiceImpl extends AbstractCrudService<DmpProductInf 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private DmpProductAttributeService dmpProductAttributeService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private RemoteTransferService remoteTransferService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void add(DmpProductInfo dmpProductInfo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (checkNameUnique(dmpProductInfo)){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -81,6 +85,9 @@ public class DmpProductInfoServiceImpl extends AbstractCrudService<DmpProductInf 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dmpProductInfo.setDeleteFlag(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dmpProductInfo.setTenantId(SecurityUtils.getTenantId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.save(dmpProductInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        remoteTransferService.deleteProductCache(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         int productId = dmpProductInfo.getId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(null != one){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String dataField = one.getDataField(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -253,6 +260,9 @@ public class DmpProductInfoServiceImpl extends AbstractCrudService<DmpProductInf 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dmpProductInfo.setDeleteFlag(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        remoteTransferService.deleteProductCache(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return this.updateById(dmpProductInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |