update 运营端小程序接口

(cherry picked from commit 9dd18c9ffb7e5b847b5fe462aaca361316b9dd32)
This commit is contained in:
Lemon
2024-10-25 14:06:17 +08:00
parent 30098d2d57
commit 76662d5a67

View File

@@ -5,12 +5,14 @@ import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.service.OrderBasicInfoService;
import com.jsowell.pile.vo.uniapp.business.BusinessConnectorInfoVO;
import com.jsowell.pile.vo.uniapp.business.BusinessOrderBillingInfoVO;
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 javax.xml.ws.soap.Addressing;
import java.util.List;
/**
* 运营端小程序订单Controller
@@ -51,6 +53,15 @@ public class BusinessOrderController extends BaseController {
*/
@GetMapping("/getOrderBillingDetail/{orderCode}")
public RestApiResponse<?> getOrderBillingDetail(@PathVariable("orderCode") String orderCode) {
orderBasicInfoService.getOrderBillingDetail(orderCode);
RestApiResponse<?> response = null;
try {
List<BusinessOrderBillingInfoVO> orderBillingDetail = orderBasicInfoService.getOrderBillingDetail(orderCode);
response = new RestApiResponse<>(ImmutableMap.of("BusinessOrderBillingInfoList", orderBillingDetail));
} catch (Exception e) {
logger.error("通过订单编号查询订单各时段计费明细 error", e);
response = new RestApiResponse<>(e);
}
logger.info("通过订单编号查询订单各时段计费明细 orderCode:{}, result:{}", orderCode, response);
return response;
}
}