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
bbe80da1
Commit
bbe80da1
authored
Dec 07, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供应商接口测试调用~
parent
21bb4b30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
27 deletions
+25
-27
TestController.java
...se/mail/yanxuan/change/web/controller/TestController.java
+25
-27
No files found.
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/TestController.java
View file @
bbe80da1
...
...
@@ -9,12 +9,13 @@ package com.netease.mail.yanxuan.change.web.controller;
import
java.util.ArrayList
;
import
java.util.List
;
import
com.netease.mail.yanxuan.change.biz.service.impl.InteriorChangeConfigServiceImpl
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierGoodsInfoReq
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierRelatedUserReq
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierGoodsInfoRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierUserRsp
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
com.alibaba.fastjson.JSON
;
import
com.netease.mail.yanxuan.change.biz.service.rpc.TodoService
;
...
...
@@ -54,30 +55,26 @@ public class TestController {
}
@Autowired
private
FlowRpcSupplierSendService
service
;
private
FlowRpcSupplierSendService
s
upplierSendS
ervice
;
@PostMapping
(
"/test"
)
public
AjaxResponse
<
List
<
SupplierSimpleRsp
>>
test1
(
@RequestParam
String
name
){
SupplierSearchRemoteReq
req
=
new
SupplierSearchRemoteReq
();
req
.
setSearchText
(
name
);
return
service
.
queryByConditionForQc
(
req
);
@PostMapping
(
"/test1"
)
public
String
test1
(
@RequestBody
List
<
Long
>
itemIds
){
return
supplierSendService
.
queryGoodsPurchase
(
itemIds
);
}
@GetMapping
(
"/query/supplier/infos"
)
public
AjaxResponse
<
List
<
SupplierSimpleRsp
>>
queryByConditionForQc
(
@RequestParam
(
name
=
"searchText"
)
String
searchText
){
SupplierSearchRemoteReq
req
=
new
SupplierSearchRemoteReq
();
req
.
setSearchText
(
searchText
);
//暂时使用模拟数据
//AjaxResponse<List<SupplierSimpleRsp>> listAjaxResponse = service.queryByConditionForQc(req);
AjaxResponse
<
List
<
SupplierSimpleRsp
>>
listAjaxResponse
=
new
AjaxResponse
<
List
<
SupplierSimpleRsp
>>();
List
<
SupplierSimpleRsp
>
suppliers
=
new
ArrayList
<>();
SupplierSimpleRsp
supplierSimpleRsp1
=
new
SupplierSimpleRsp
(
"YX0778"
,
"gyhtest1009"
);
SupplierSimpleRsp
supplierSimpleRsp2
=
new
SupplierSimpleRsp
(
"YX0528"
,
"gyhtest1010"
);
suppliers
.
add
(
supplierSimpleRsp1
);
suppliers
.
add
(
supplierSimpleRsp2
);
listAjaxResponse
.
setData
(
suppliers
);
listAjaxResponse
.
setCode
(
200
);
//return supplierSendService.queryByConditionForQc(req); 暂用模拟数据
return
listAjaxResponse
;
@PostMapping
(
"/test2"
)
public
AjaxResponse
<
List
<
SupplierUserRsp
>>
test2
(
@RequestBody
SupplierRelatedUserReq
req
){
return
supplierSendService
.
querySupplierRelatedUser
(
req
);
}
@PostMapping
(
"/test3"
)
public
AjaxResponse
<
List
<
SupplierSimpleRsp
>>
test3
(
@RequestBody
SupplierSearchRemoteReq
req
){
return
supplierSendService
.
queryByConditionForQc
(
req
);
}
@PostMapping
(
"/test4"
)
public
AjaxResponse
<
List
<
SupplierGoodsInfoRsp
>>
test4
(
@RequestBody
SupplierGoodsInfoReq
req
){
return
supplierSendService
.
SupplierGoodsInfoBySupplier
(
req
);
}
}
\ No newline at end of file
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