zhoushihao
3 天以前 4e3b8155722b66e25df3c6fd42cc586b68dea391
hangzhoumesParent/common/servicebase/src/main/java/com/mes/pp/controller/FlowCardController.java
@@ -1,9 +1,22 @@
package com.mes.pp.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mes.pp.entity.dto.FlowCardPercentDTO;
import com.mes.pp.entity.request.FlowCardRequest;
import com.mes.pp.service.FlowCardService;
import com.mes.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
 * <p>
@@ -13,9 +26,25 @@
 * @author wu
 * @since 2024-08-07
 */
@Api(tags = "流程卡")
@RestController
@RequestMapping("/flow_card/flow-card")
@RequestMapping("/flow_card")
public class FlowCardController {
    @Resource
    FlowCardService flowCardService;
    @ApiOperation("根据订单id查询流程卡进度")
    @PostMapping("/flowCardReportForms")
    public Result flowCardReportForms(String orderId) {
        return Result.build(200, "查询成功", flowCardService.flowCardReportForms(orderId));
    }
    @ApiOperation("订单详情进度接口")
    @PostMapping("/flowCardPercent")
    public Result<List<FlowCardPercentDTO>> flowCardPercent(@RequestBody FlowCardRequest flowCardRequest) {
        return Result.build(200, "查询成功", null);
    }
}