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
4fc39f79
Commit
4fc39f79
authored
Dec 07, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接供应商模糊查询
parent
7ab7f19a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
18 deletions
+56
-18
FlowRpcSupplierService.java
...nge/integration/flow/supplier/FlowRpcSupplierService.java
+27
-0
SupplierInfoRsp.java
...change/integration/flow/supplier/rsp/SupplierInfoRsp.java
+23
-0
TestController.java
...se/mail/yanxuan/change/web/controller/TestController.java
+6
-18
No files found.
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/supplier/FlowRpcSupplierService.java
0 → 100644
View file @
4fc39f79
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
flow
.
supplier
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierInfoRsp
;
import
com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
import
com.netease.yanxuan.missa.client.annotation.MissaClient
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
/**
* @author WangJiaXiang
* @date 2022/12/7/007$
*/
@Service
@MissaClient
(
serviceCode
=
"yanxuan-supplier-api"
)
public
interface
FlowRpcSupplierService
{
/**
* 邮件通知接口
* @return
*/
@GetMapping
(
"/api/supplier/getSupplierInfo.json"
)
AjaxResponse
<
List
<
SupplierInfoRsp
>>
getSupplierInfo
(
@RequestParam
(
name
=
"name"
)
String
name
,
@RequestParam
(
name
=
"uid"
)
String
uid
,
@RequestParam
(
name
=
"fuzzySearchText"
)
String
fuzzySearchText
);
}
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/supplier/rsp/SupplierInfoRsp.java
0 → 100644
View file @
4fc39f79
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
flow
.
supplier
.
rsp
;
import
lombok.Data
;
/**
* @author WangJiaXiang
* @date 2022/12/7/007$
*/
@Data
public
class
SupplierInfoRsp
{
private
String
supplierId
;
private
String
supplierName
;
private
String
email
;
private
String
smsPhone
;
private
Integer
isSupportCustomsClearance
;
}
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/TestController.java
View file @
4fc39f79
...
...
@@ -10,9 +10,11 @@ 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.FlowRpcSupplierService
;
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.SupplierInfoRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierUserRsp
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -55,26 +57,13 @@ public class TestController {
}
@Autowired
private
FlowRpcSupplierSe
ndService
supplierSend
Service
;
private
FlowRpcSupplierSe
rvice
rpcSupplier
Service
;
@
Pos
tMapping
(
"/test1"
)
public
String
test1
(
@RequestBody
List
<
Long
>
itemIds
){
return
supplierSendService
.
queryGoodsPurchase
(
itemIds
);
@
Ge
tMapping
(
"/test1"
)
public
AjaxResponse
<
List
<
SupplierInfoRsp
>>
test1
(
@RequestParam
(
name
=
"fuzzySearchText"
)
String
fuzzySearchText
){
return
rpcSupplierService
.
getSupplierInfo
(
"aa"
,
"wb.mulongfei@mesg.corp.netease.com"
,
fuzzySearchText
);
}
@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