This commit is contained in:
van
2026-11-07 13:00:53 +08:00
parent 630be449fd
commit 43c9a71150
3 changed files with 225 additions and 0 deletions
@@ -42,6 +42,20 @@ public class OrderProfitAnalysisController extends BaseController {
}
}
/**
* 导出连续若干个月的利润和单量纯文本。不调用大模型。
*/
@GetMapping("/export-text")
public AjaxResult exportText(@RequestParam(value = "months", required = false) Integer months,
@RequestParam(value = "date", required = false) String date) {
try {
return AjaxResult.success(orderProfitAnalysisService.exportMonthsText(months, date));
} catch (Exception e) {
logger.error("导出利润文本失败", e);
return AjaxResult.error("导出失败: " + e.getMessage());
}
}
/**
* 套固定提示词调用已配置大模型;push=true 时推企微。
*/