|
|
@ -7,6 +7,7 @@ import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dto.extract.form.ExtractOriginFormDTO; |
|
|
|
import com.epmet.service.evaluationindex.extract.todata.*; |
|
|
|
import com.epmet.service.stats.DimCustomerService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
@ -23,6 +24,7 @@ import java.util.List; |
|
|
|
* @author yinzuomei@elink-cn.com |
|
|
|
* @date 2020/9/15 11:06 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@RestController |
|
|
|
@RequestMapping("factorigin") |
|
|
|
public class FactOriginExtractController { |
|
|
@ -95,6 +97,7 @@ public class FactOriginExtractController { |
|
|
|
|
|
|
|
@PostMapping("project") |
|
|
|
public Result projectData(@RequestBody ExtractOriginFormDTO extractOriginFormDTO) { |
|
|
|
long start = System.currentTimeMillis(); |
|
|
|
if (StringUtils.isNotBlank(extractOriginFormDTO.getCustomerId())) { |
|
|
|
List<String> daysBetween; |
|
|
|
if (StringUtils.isBlank(extractOriginFormDTO.getDateId())) { |
|
|
@ -115,6 +118,7 @@ public class FactOriginExtractController { |
|
|
|
projectExtractService.saveOriginProjectDaily(dto); |
|
|
|
}); |
|
|
|
} |
|
|
|
log.info("projectData end,cost:{}",System.currentTimeMillis() - start); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|