|
@@ -11,6 +11,7 @@ import com.slodon.b2b2c.investment.constant.InvestmentConst;
|
|
|
import com.slodon.b2b2c.investment.model.AnalysisModel;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -30,7 +31,7 @@ import java.util.List;
|
|
|
*/
|
|
|
@Api(tags = "ai商情分析历史")
|
|
|
@RestController
|
|
|
-@RequestMapping("/ai")
|
|
|
+@RequestMapping("/v3/ai/history")
|
|
|
@Slf4j
|
|
|
public class AiController {
|
|
|
@Resource
|
|
@@ -52,8 +53,14 @@ public class AiController {
|
|
|
PagerInfo pager;
|
|
|
// 定义格式转换器
|
|
|
DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern(InvestmentConst.YYYY_MM_DD_HH_MM_SS);
|
|
|
- LocalDateTime stime = LocalDateTime.parse(startTime, FORMATTER);
|
|
|
- LocalDateTime etime = LocalDateTime.parse(endTime, FORMATTER);
|
|
|
+ LocalDateTime stime = null;
|
|
|
+ LocalDateTime etime = null;
|
|
|
+ if(StringUtils.isNotEmpty(startTime)){
|
|
|
+ stime = LocalDateTime.parse(startTime, FORMATTER);
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotEmpty(endTime)){
|
|
|
+ etime = LocalDateTime.parse(endTime, FORMATTER);
|
|
|
+ }
|
|
|
try {
|
|
|
pager = WebUtil.handlerPagerInfo(request);
|
|
|
CompanyListDTO dto = new CompanyListDTO();
|