Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡园园
yanxuan-qc-change-system
Commits
1fc7f9b8
Commit
1fc7f9b8
authored
Dec 15, 2022
by
穆龙飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify:修改配置查询接口
parent
225e5103
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
FlowRpcSupplierSendService.java
...integration/flow/supplier/FlowRpcSupplierSendService.java
+1
-1
SupplierController.java
...ail/yanxuan/change/web/controller/SupplierController.java
+20
-11
No files found.
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/supplier/FlowRpcSupplierSendService.java
View file @
1fc7f9b8
...
...
@@ -54,5 +54,5 @@ public interface FlowRpcSupplierSendService {
* @return
*/
@PostMapping
(
"/api/initiateProject/quote/listSupplierQuoteInfoBySupplierIds.json"
)
AjaxResponse
<
List
<
SupplierGoodsInfoRsp
>>
S
upplierGoodsInfoBySupplier
(
@RequestBody
SupplierGoodsInfoReq
req
);
AjaxResponse
<
List
<
SupplierGoodsInfoRsp
>>
s
upplierGoodsInfoBySupplier
(
@RequestBody
SupplierGoodsInfoReq
req
);
}
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/SupplierController.java
View file @
1fc7f9b8
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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment