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
5a6ae72d
Commit
5a6ae72d
authored
Dec 08, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 查询供应商添加日志
parent
58bd2af5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
12 deletions
+27
-12
SupplierController.java
...ail/yanxuan/change/web/controller/SupplierController.java
+27
-12
No files found.
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/SupplierController.java
View file @
5a6ae72d
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
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
java.util.List
;
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.FlowRpcSupplierService
;
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
;
/**
* @author WangJiaXiang
* @date 2022/12/7/007$
*/
@Slf4j
@RestController
@RequestMapping
(
"/supplier"
)
public
class
SupplierController
{
...
...
@@ -27,17 +36,23 @@ public class SupplierController {
@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
){
@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
){
if
(
uid
==
null
)
{
uid
=
appConfig
.
getSearchUid
();
}
return
rpcSupplierService
.
getSupplierInfo
(
name
,
uid
,
fuzzySearchText
);
AjaxResponse
<
List
<
SupplierInfoRsp
>>
supplierInfo
=
rpcSupplierService
.
getSupplierInfo
(
name
,
uid
,
fuzzySearchText
);
if
(
ResponseCodeEnum
.
SUCCESS
.
getCode
()
==
(
supplierInfo
.
getCode
()))
{
return
supplierInfo
;
}
log
.
error
(
"[querySupplierInfos] querySupplierInfos failed, name={},uid={},fuzzySearchText={}, errMsg={}"
,
name
,
uid
,
fuzzySearchText
,
JSON
.
toJSONString
(
supplierInfo
));
return
null
;
}
}
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