|  |  | @ -26,6 +26,7 @@ import com.hnac.hzinfo.sdk.v5.project.vo.ProjectVO;*/ | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.hnac.hzinfo.sdk.core.response.Result; |  |  |  | import com.hnac.hzinfo.sdk.core.response.Result; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.hnac.hzinfo.sdk.v5.project.ProjectClient; |  |  |  | import com.hnac.hzinfo.sdk.v5.project.ProjectClient; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.hnac.hzinfo.sdk.v5.project.dto.ProjectDTO; |  |  |  | import com.hnac.hzinfo.sdk.v5.project.dto.ProjectDTO; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.hnac.hzinfo.sdk.v5.project.vo.ProjectVO; | 
			
		
	
		
		
			
				
					
					|  |  |  | import lombok.RequiredArgsConstructor; |  |  |  | import lombok.RequiredArgsConstructor; | 
			
		
	
		
		
			
				
					
					|  |  |  | import lombok.extern.slf4j.Slf4j; |  |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.apache.commons.lang.StringUtils; |  |  |  | import org.apache.commons.lang.StringUtils; | 
			
		
	
	
		
		
			
				
					|  |  | @ -46,6 +47,7 @@ import org.springblade.system.user.entity.User; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springblade.system.user.feign.IUserClient; |  |  |  | import org.springblade.system.user.feign.IUserClient; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.stereotype.Service; |  |  |  | import org.springframework.stereotype.Service; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import org.springframework.transaction.annotation.Transactional; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.util.Assert; |  |  |  | import org.springframework.util.Assert; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.util.*; |  |  |  | import java.util.*; | 
			
		
	
	
		
		
			
				
					|  |  | @ -123,8 +125,25 @@ public class StationServiceImpl extends BaseServiceImpl<StationMapper, StationEn | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	@Override |  |  |  | 	@Override | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	@Transactional(rollbackFor = Exception.class) | 
			
		
	
		
		
			
				
					
					|  |  |  | 	public boolean removeStation(String ids) { |  |  |  | 	public boolean removeStation(String ids) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 		return this.deleteLogic(Func.toLongList(ids,",")); |  |  |  | 		if(this.deleteLogic(Func.toLongList(ids,","))) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			Func.toLongList(ids,",").forEach(id -> { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				StationEntity stationEntity = this.getById(id); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				// 删除数据平台项目
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				Result<ProjectVO> existProject = projectClient.getProjectByPid(stationEntity.getCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if(existProject.isSuccess() && ObjectUtil.isNotEmpty(existProject.getData())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					Result dataDelete = projectClient.delete(stationEntity.getCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					Assert.isTrue(dataDelete.isSuccess(),() -> { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						logger.error("hzims-operational:station:removeStation",stationEntity.getCode()+"删除失败,报错信息为:"+dataDelete.getMsg()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						throw new ServiceException("数据平台删除项目失败!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					}); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				// 删除智能诊断站点
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				questionClient.deleteStationInfo(stationEntity.getCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			}); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		return true; | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	@Override |  |  |  | 	@Override | 
			
		
	
	
		
		
			
				
					|  |  | 
 |