mitao
2024-09-04 ecca9ab70a9a87bcb60977c92fbf81053b8fc1bb
ruoyi-api/ruoyi-api-order/src/main/java/com/ruoyi/order/api/feignClient/ExchangeDispatchClient.java
@@ -5,6 +5,7 @@
import com.ruoyi.common.core.domain.R;
import com.ruoyi.order.api.entity.ChangeDispatch;
import com.ruoyi.order.api.factory.ExchangeDispatchFallbackFactory;
import com.ruoyi.order.api.request.ChangeDispatchRequest;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
@@ -22,19 +23,11 @@
    /**
     * 订单改派分页列表
     *
     * @param workerName  师傅姓名
     * @param userName    用户名称
     * @param orderNumber 订单编号
     * @param pageNum     页码
     * @param pageSize    每页显示条数
     * @param request 查询参数
     * @return 分页列表
     */
    @GetMapping(value = "changeDispatch/page")
    R<Page<ChangeDispatch>> queryPageList(@RequestParam(value = "workerName", required = false) String workerName,
                                          @RequestParam(value = "orderNumber", required = false) String orderNumber,
                                          @RequestParam(value = "userName", required = false) String userName,
                                          @RequestParam(name = "pageNum", defaultValue = "1") Integer pageNum,
                                          @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize);
    @PostMapping(value = "changeDispatch/page")
    R<Page<ChangeDispatch>> queryPageList(@RequestBody ChangeDispatchRequest request);
    /**
     * 订单改派 -远程调用