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);
|
}
|
|
}
|