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
64c7e3ef
Commit
64c7e3ef
authored
Dec 08, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试关联角色查询
parent
ed6ae249
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
12 deletions
+46
-12
InteriorChangeConfigServiceImpl.java
...nge/biz/service/impl/InteriorChangeConfigServiceImpl.java
+4
-4
FlowRpcSupplierInfoService.java
...integration/flow/supplier/FlowRpcSupplierInfoService.java
+30
-0
FlowRpcSupplierSendService.java
...integration/flow/supplier/FlowRpcSupplierSendService.java
+0
-8
TestController.java
...se/mail/yanxuan/change/web/controller/TestController.java
+12
-0
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/InteriorChangeConfigServiceImpl.java
View file @
64c7e3ef
...
@@ -213,12 +213,12 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
...
@@ -213,12 +213,12 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
}
}
req
.
setSupplierIdList
(
supplierIdList
);
req
.
setSupplierIdList
(
supplierIdList
);
//进行参数解析
//进行参数解析
AjaxResponse
<
List
<
SupplierUserRsp
>>
listAjaxResponse
=
supplierSendService
.
querySupplierRelatedUser
(
req
);
//
AjaxResponse<List<SupplierUserRsp>> listAjaxResponse = supplierSendService.querySupplierRelatedUser(req);
List
<
SupplierUserRsp
>
data
=
listAjaxResponse
.
getData
();
//
List<SupplierUserRsp> data = listAjaxResponse.getData();
if
(
data
!=
null
){
//
if (data != null){
// 返回结果有问题暂时不动
// 返回结果有问题暂时不动
//rpc.setSupplierId();
//rpc.setSupplierId();
}
//
}
return
null
;
return
null
;
}
}
...
...
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/supplier/FlowRpcSupplierInfoService.java
0 → 100644
View file @
64c7e3ef
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
flow
.
supplier
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierRelatedUserReq
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierUserRsp
;
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.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
java.util.List
;
/**
* @author WangJiaXiang
* @date 2022/12/8/008$
*/
@Service
@MissaClient
(
serviceCode
=
"yanxuan-supplier-ms1"
)
public
interface
FlowRpcSupplierInfoService
{
/**
* 查询供应商关联角色
*/
@PostMapping
(
"/api/supplier/batchGetSupplierRelatedUser.json"
)
AjaxResponse
<
List
<
SupplierUserRsp
>>
querySupplierRelatedUser
(
@RequestBody
SupplierRelatedUserReq
req
);
}
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/supplier/FlowRpcSupplierSendService.java
View file @
64c7e3ef
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
flow
.
supplier
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
integration
.
flow
.
supplier
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierGoodsInfoReq
;
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.req.SupplierSearchRemoteReq
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierSearchRemoteReq
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierSendEmailReq
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.req.SupplierSendEmailReq
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierGoodsInfoRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierGoodsInfoRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierSimpleRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierSimpleRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierUserRsp
;
import
com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
import
com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
import
com.netease.yanxuan.missa.client.annotation.MissaClient
;
import
com.netease.yanxuan.missa.client.annotation.MissaClient
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -38,12 +36,6 @@ public interface FlowRpcSupplierSendService {
...
@@ -38,12 +36,6 @@ public interface FlowRpcSupplierSendService {
@PostMapping
(
"/api/initiateProject/source/getBatchRelatedSupplier.json"
)
@PostMapping
(
"/api/initiateProject/source/getBatchRelatedSupplier.json"
)
String
queryGoodsPurchase
(
@RequestBody
List
<
Long
>
itemIds
);
String
queryGoodsPurchase
(
@RequestBody
List
<
Long
>
itemIds
);
/**
* 查询供应商关联角色
*/
@PostMapping
(
"/api/supplier/batchGetSupplierRelatedUser.json"
)
AjaxResponse
<
List
<
SupplierUserRsp
>>
querySupplierRelatedUser
(
@RequestBody
SupplierRelatedUserReq
req
);
/**
/**
* 供应商模糊查询
* 供应商模糊查询
...
...
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/TestController.java
View file @
64c7e3ef
...
@@ -8,6 +8,7 @@ package com.netease.mail.yanxuan.change.web.controller;
...
@@ -8,6 +8,7 @@ package com.netease.mail.yanxuan.change.web.controller;
import
java.util.List
;
import
java.util.List
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.FlowRpcSupplierInfoService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -82,4 +83,14 @@ public class TestController {
...
@@ -82,4 +83,14 @@ public class TestController {
autoSubmit
.
progressRecord
(
record
);
autoSubmit
.
progressRecord
(
record
);
return
AjaxResult
.
success
();
return
AjaxResult
.
success
();
}
}
@Autowired
private
FlowRpcSupplierInfoService
supplierInfoService
;
@PostMapping
(
"/test"
)
public
AjaxResponse
<
List
<
SupplierUserRsp
>>
test
(
@RequestBody
SupplierRelatedUserReq
req
)
{
return
supplierInfoService
.
querySupplierRelatedUser
(
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