From 3d3960a3b3d1057db9d2f4016512915e7a5c517d Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Thu, 25 Sep 2025 09:56:21 +0800 Subject: [PATCH] feat(ai): 集成百炼工作流实现AI流式对话功能 - 新增百炼工作流SDK相关依赖和工具类 - 实现llmInvokeStreamingWithThink方法用于流式调用 - 配置API Key和应用ID以连接百炼平台 - 启用思考模式(enableThinking)和思维输出(hasThoughts) - 处理流式响应并封装为FebsResponse返回 - 添加异常处理机制捕获API调用错误 - 移除原有的静态提示词配置逻辑 -重构answerStreamV3接口直接调用新实现 --- src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java | 32 +++++++++++++++++++++++++++----- 1 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java b/src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java index 861888d..47699fd 100644 --- a/src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java +++ b/src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java @@ -2,20 +2,19 @@ import cc.mrbird.febs.common.controller.BaseController; import cc.mrbird.febs.common.entity.FebsConstant; +import cc.mrbird.febs.common.entity.FebsResponse; import cc.mrbird.febs.common.enumerates.SocialPatternLocationTypeEnum; import cc.mrbird.febs.common.utils.AppContants; import cc.mrbird.febs.common.utils.FebsUtil; import cc.mrbird.febs.common.utils.RedisUtils; +import cc.mrbird.febs.mall.dto.clothes.AdminClothesPrintOrderDto; import cc.mrbird.febs.mall.entity.*; import cc.mrbird.febs.mall.mapper.*; import cc.mrbird.febs.mall.service.ClothesTypeService; import cc.mrbird.febs.mall.service.IAdminBannerService; import cc.mrbird.febs.mall.vo.AdminLabelSetVo; import cc.mrbird.febs.mall.vo.AdminMallOrderVo; -import cc.mrbird.febs.mall.vo.clothes.AdminClothesDeliverGoodsVo; -import cc.mrbird.febs.mall.vo.clothes.AdminClothesLocationRemarkVo; -import cc.mrbird.febs.mall.vo.clothes.AdminClothesPatternRemarkVo; -import cc.mrbird.febs.mall.vo.clothes.AdminClothesTypeInfoVo; +import cc.mrbird.febs.mall.vo.clothes.*; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; @@ -236,6 +235,25 @@ return FebsUtil.view("modules/clothesType/orderList"); } + + + + + /** + * 社区列表-查看评论 + * @return + */ + @GetMapping("/orderPrint/{id}") + @RequiresPermissions("orderPrint:view") + public String orderPrint(@PathVariable Long id, Model model) { + + AdminClothesPrintOrderDto dto = new AdminClothesPrintOrderDto(); + dto.setId(id); + AdminClothesPrintOrderVo adminClothesPrintOrderVo = clothesTypeService.printOrderEvent(dto); + model.addAttribute("orderPrint", adminClothesPrintOrderVo); + return FebsUtil.view("modules/clothesType/orderPrint"); + } + /** * 订单-发货 * @param id @@ -244,9 +262,13 @@ */ @GetMapping("deliverGoods/{id}") @RequiresPermissions("deliverGoods:update") - public String deliverGoods(@PathVariable long id, Model model) { + public String deliverGoods(@PathVariable Long id, Model model) { AdminClothesDeliverGoodsVo data = new AdminClothesDeliverGoodsVo(); ClothesOrder clothesOrder = clothesOrderMapper.selectById(id); + data.setId(clothesOrder.getId()); + data.setName(clothesOrder.getName()); + data.setPhone(clothesOrder.getPhone()); + data.setAddress(clothesOrder.getAddress()); data.setExpressCom("极兔快递"); MallExpressInfo mallExpressInfo = mallExpressInfoMapper.selectOne( Wrappers.lambdaQuery(MallExpressInfo.class) -- Gitblit v1.9.1