package cn.iocoder.yudao.module.inspection.controller;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.payment.entity.OrderInfo;
import cn.iocoder.yudao.module.payment.service.OrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.iocoder.yudao.module.core.controller.BaseController;

/**
 * 检测订单Controller
 *
 * @author ruoyi
 * @date 2023-07-08
 */
@RestController
@RequestMapping("/admin-api/system/inspectionOrder")
public class ShopInspectionOrderController extends BaseController
{
    @Autowired
    private OrderInfoService orderInfoService;



    /**
     * 修改检测订单
     */
    @GetMapping("/getById")
    public CommonResult getById(String orderId)
    {
        return success(orderInfoService.getById(orderId));
    }

    /**
     * 修改检测订单
     */
    @PostMapping("/edit")
    public CommonResult edit(@RequestBody OrderInfo shopInspectionOrder)
    {
        return toAjax(orderInfoService.updateById(shopInspectionOrder));
    }


}
