ZengTao
2025-04-14 5c67be0a584c970a004c1e623c0ed4394ad2295e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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>
 *  前端控制器
 * </p>
 *
 * @author wu
 * @since 2024-08-07
 */
@Api(tags = "流程卡")
@RestController
@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);
    }
 
}