|
|
@ -1,6 +1,5 @@ |
|
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
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; |
|
|
@ -12,8 +11,6 @@ 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; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 原始数据清洗 |
|
|
@ -43,7 +40,7 @@ public class FactOriginExtractController { |
|
|
|
*/ |
|
|
|
@PostMapping("extractall") |
|
|
|
public Result extractAll(@RequestBody ExtractOriginFormDTO extractOriginFormDTO) { |
|
|
|
if (StringUtils.isNotBlank(extractOriginFormDTO.getStartDate()) && StringUtils.isNotBlank(extractOriginFormDTO.getEndDate())) { |
|
|
|
/*if (StringUtils.isNotBlank(extractOriginFormDTO.getStartDate()) && StringUtils.isNotBlank(extractOriginFormDTO.getEndDate())) { |
|
|
|
List<String> daysBetween = DateUtils.getDaysBetween(extractOriginFormDTO.getStartDate(), extractOriginFormDTO.getEndDate()); |
|
|
|
for (int i = 0; i < daysBetween.size(); i++) { |
|
|
|
String dateDimId = daysBetween.get(i); |
|
|
@ -52,7 +49,7 @@ public class FactOriginExtractController { |
|
|
|
} |
|
|
|
} else { |
|
|
|
factOriginExtractService.extractAll(extractOriginFormDTO); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
factOriginExtractService.extractAll(extractOriginFormDTO); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|