|  |  | @ -1,5 +1,7 @@ | 
			
		
	
		
			
				
					|  |  |  | package com.epmet.controller; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.utils.ConvertUtils; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.utils.DateUtils; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.utils.Result; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.validator.ValidatorUtils; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.extract.form.ExtractOriginFormDTO; | 
			
		
	
	
		
			
				
					|  |  | @ -11,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestBody; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.RestController; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | import java.util.List; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | /** | 
			
		
	
		
			
				
					|  |  |  |  * 原始数据清洗 | 
			
		
	
	
		
			
				
					|  |  | @ -114,7 +118,15 @@ public class FactOriginExtractController { | 
			
		
	
		
			
				
					|  |  |  |      **/ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("groupdatacleaning") | 
			
		
	
		
			
				
					|  |  |  |     public Result groupDataCleaning(@RequestBody ExtractOriginFormDTO param) { | 
			
		
	
		
			
				
					|  |  |  |         groupExtractService.extractGroupData(param); | 
			
		
	
		
			
				
					|  |  |  |         if(StringUtils.isNotBlank(param.getStartDate()) && StringUtils.isNotBlank(param.getEndDate())){ | 
			
		
	
		
			
				
					|  |  |  |             List<String> finalDaysBetween = DateUtils.getDaysBetween(param.getStartDate(), param.getEndDate()); | 
			
		
	
		
			
				
					|  |  |  |             ExtractOriginFormDTO paramNew = ConvertUtils.sourceToTarget(param, ExtractOriginFormDTO.class); | 
			
		
	
		
			
				
					|  |  |  |             for (int i = 0; i < finalDaysBetween.size(); i++) { | 
			
		
	
		
			
				
					|  |  |  |                 String dateDimId = finalDaysBetween.get(i); | 
			
		
	
		
			
				
					|  |  |  |                 paramNew.setDateId(dateDimId); | 
			
		
	
		
			
				
					|  |  |  |                 groupExtractService.extractGroupData(paramNew); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         }else groupExtractService.extractGroupData(param); | 
			
		
	
		
			
				
					|  |  |  |         return new Result(); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
	
		
			
				
					|  |  | 
 |