orderData = AppletControllerUtil.buildIntegralOrderDetail(
+ integralOrder, integralProductService, integralOrderLogService);
+
+ return success(orderData);
+
+ } catch (Exception e) {
+ System.err.println("查询积分订单详情异常:" + e.getMessage());
+ return error("查询订单详情失败:" + e.getMessage());
+ }
+}
+
+/**
+ * 查询积分商品分类列表
+ *
+ * @param request HTTP请求对象
+ * @return 返回积分商品分类列表
+ *
+ * 功能说明:
+ * - 获取所有启用状态的积分商品分类
+ * - 返回分类的ID和名称
+ * - 用于积分商城分类展示
+ *
+ * 返回格式:
+ * {
+ * "code": 200,
+ * "msg": "OK",
+ * "data": [
+ * {
+ * "id": 4,
+ * "title": "家清商品"
+ * }
+ * ]
+ * }
+ */
+@GetMapping("/api/integral/product/cate")
+public AjaxResult getIntegralProductCateList(HttpServletRequest request) {
+ try {
+ // 1. 构建查询条件:查询启用状态的积分商品分类
+ IntegralCate integralCateQuery = new IntegralCate();
+ integralCateQuery.setStatus(1L); // 启用状态
+
+ // 2. 查询积分商品分类列表
+ List integralCateList = integralCateService.selectIntegralCateList(integralCateQuery);
+
+ // 3. 构建返回数据格式
+ List