Commit 9630fd51 by “zcwang”

Merge remote-tracking branch 'origin/feature-changeFlow-221110' into feature-changeFlow-221110

parents 68f91428 fde3d5fe
......@@ -55,5 +55,5 @@ public interface FlowRpcSupplierSendService {
* @return
*/
@PostMapping("/api/initiateProject/quote/listSupplierQuoteInfoBySupplierIds.json")
AjaxResponse<List<SupplierGoodsInfoRsp>> SupplierGoodsInfoBySupplier(@RequestBody SupplierGoodsInfoReq req);
AjaxResponse<List<SupplierGoodsInfoRsp>> supplierGoodsInfoBySupplier(@RequestBody SupplierGoodsInfoReq req);
}
package com.netease.mail.yanxuan.change.web.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.netease.mail.yanxuan.change.biz.config.AppConfig;
import com.netease.mail.yanxuan.change.biz.meta.exception.ExceptionFactory;
import com.netease.mail.yanxuan.change.common.bean.ResponseCode;
import com.netease.mail.yanxuan.change.common.bean.ResponseCodeEnum;
import com.netease.mail.yanxuan.change.integration.flow.supplier.FlowRpcSupplierSendService;
import com.netease.mail.yanxuan.change.integration.flow.supplier.FlowRpcSupplierService;
import com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierGoodsInfoReq;
import com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierGoodsInfoRsp;
import com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierInfoRsp;
import com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author WangJiaXiang
......@@ -32,6 +31,9 @@ public class SupplierController {
private FlowRpcSupplierService rpcSupplierService;
@Autowired
private FlowRpcSupplierSendService flowRpcSupplierSendService;
@Autowired
private AppConfig appConfig;
@GetMapping("/query/supplier/infos")
......@@ -55,4 +57,11 @@ public class SupplierController {
return null;
}
@GetMapping("/query/supplier/item")
public AjaxResponse<List<SupplierGoodsInfoRsp>> querySupplier(@RequestParam String supplier) {
SupplierGoodsInfoReq supplierGoodsInfoReq = new SupplierGoodsInfoReq();
supplierGoodsInfoReq.setSupplierIds(supplier);
return flowRpcSupplierSendService.supplierGoodsInfoBySupplier(supplierGoodsInfoReq);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment