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
yx-qc-change-flow
yanxuan-qc-change-system
Commits
d2cb88b0
Commit
d2cb88b0
authored
Dec 07, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接供应商模糊查询
parent
6d0b8026
Pipeline
#43457
passed with stages
in 1 minute 27 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
25 deletions
+49
-25
AppConfig.java
...com/netease/mail/yanxuan/change/biz/config/AppConfig.java
+6
-0
SupplierController.java
...ail/yanxuan/change/web/controller/SupplierController.java
+43
-0
TestController.java
...se/mail/yanxuan/change/web/controller/TestController.java
+0
-25
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/config/AppConfig.java
View file @
d2cb88b0
...
...
@@ -39,6 +39,12 @@ public class AppConfig {
@Value
(
"${change.goods.principal.email:grp.gyhtest1001@corp.netease.com}"
)
private
String
defaultEmail
;
@Value
(
"${searchName:aa}"
)
private
String
searchName
;
@Value
(
"${searchUid:wb.mulongfei@mesg.corp.netease.com}"
)
private
String
searchUid
;
/**
* 变更管理QM
*/
...
...
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/SupplierController.java
0 → 100644
View file @
d2cb88b0
package
com
.
netease
.
mail
.
yanxuan
.
change
.
web
.
controller
;
import
com.netease.mail.yanxuan.change.biz.config.AppConfig
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.FlowRpcSupplierService
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierInfoRsp
;
import
com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
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
* @date 2022/12/7/007$
*/
@RestController
@RequestMapping
(
"/supplier"
)
public
class
SupplierController
{
@Autowired
private
FlowRpcSupplierService
rpcSupplierService
;
@Autowired
private
AppConfig
appConfig
;
@GetMapping
(
"/query/supplier/infos"
)
public
AjaxResponse
<
List
<
SupplierInfoRsp
>>
querySupplierInfos
(
@RequestParam
(
name
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
name
=
"uid"
,
required
=
false
)
String
uid
,
@RequestParam
(
name
=
"fuzzySearchText"
)
String
fuzzySearchText
){
if
(
name
==
null
){
name
=
appConfig
.
getSearchName
();
}
if
(
uid
==
null
){
uid
=
appConfig
.
getSearchUid
();
}
return
rpcSupplierService
.
getSupplierInfo
(
name
,
uid
,
fuzzySearchText
);
}
}
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/TestController.java
View file @
d2cb88b0
...
...
@@ -71,31 +71,6 @@ public class TestController {
return
AjaxResult
.
success
();
}
@Autowired
private
FlowRpcSupplierService
rpcSupplierService
;
@GetMapping
(
"/test1"
)
public
AjaxResponse
<
List
<
SupplierInfoRsp
>>
test1
(
@RequestParam
(
name
=
"fuzzySearchText"
)
String
fuzzySearchText
){
return
rpcSupplierService
.
getSupplierInfo
(
"aa"
,
"wb.mulongfei@mesg.corp.netease.com"
,
fuzzySearchText
);
}
@Autowired
private
FlowRpcSupplierSendService
supplierSendService
;
@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
);
}
@PostMapping
(
"/submit"
)
public
AjaxResult
<
Void
>
submit
(
Long
id
)
{
...
...
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