add 新增运营端小程序查询订单列表接口

This commit is contained in:
YAS\29473
2025-12-31 15:43:48 +08:00
parent 7e2f9a4c61
commit a5fac3091f
9 changed files with 358 additions and 5 deletions

View File

@@ -1,18 +1,19 @@
package com.jsowell.api.uniapp.business;
import com.alibaba.fastjson2.JSONObject;
import com.google.common.collect.ImmutableMap;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.dto.business.QueryBusinessOrderDTO;
import com.jsowell.pile.service.OrderBasicInfoService;
import com.jsowell.pile.vo.uniapp.business.BusinessConnectorInfoVO;
import com.jsowell.pile.vo.uniapp.business.BusinessOrderBillingInfoVO;
import com.jsowell.pile.vo.uniapp.business.BusinessOrderQueryResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.xml.ws.soap.Addressing;
import java.util.List;
import java.util.List;
/**
@@ -65,4 +66,27 @@ public class BusinessOrderController extends BaseController {
logger.info("通过订单编号查询订单各时段计费明细 orderCode:{}, result:{}", orderCode, response);
return response;
}
/**
* 运营端小程序查询订单
* @param dto 查询条件
* @return 订单查询结果
*/
@PostMapping("/queryBusinessOrder")
public RestApiResponse<?> queryBusinessOrder(@RequestBody QueryBusinessOrderDTO dto) {
RestApiResponse<?> response = null;
try {
BusinessOrderQueryResultVO result = orderBasicInfoService.queryBusinessOrder(dto);
response = new RestApiResponse<>(result);
} catch (BusinessException e) {
logger.warn("运营端小程序查询订单 warn", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) {
logger.error("运营端小程序查询订单 error", e);
response = new RestApiResponse<>(e);
}
logger.info("运营端小程序查询订单 params:{}, result:{}", JSONObject.toJSONString(dto), response);
return response;
}
}