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
27e81b0c
Commit
27e81b0c
authored
Dec 08, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-changeFlow-221110' into feature-changeFlow-221110
parents
47c32781
a2ecf4aa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
16 deletions
+49
-16
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
+15
-4
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/InteriorChangeConfigServiceImpl.java
View file @
27e81b0c
...
@@ -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 @
27e81b0c
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 @
27e81b0c
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 @
27e81b0c
...
@@ -6,12 +6,13 @@
...
@@ -6,12 +6,13 @@
*/
*/
package
com
.
netease
.
mail
.
yanxuan
.
change
.
web
.
controller
;
package
com
.
netease
.
mail
.
yanxuan
.
change
.
web
.
controller
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.FlowRpcSupplierInfoService
;
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
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.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.netease.mail.yanxuan.change.biz.meta.exception.ExceptionFactory
;
import
com.netease.mail.yanxuan.change.biz.meta.exception.ExceptionFactory
;
...
@@ -26,6 +27,8 @@ import com.netease.mail.yanxuan.change.dal.entity.ChangeRecord;
...
@@ -26,6 +27,8 @@ import com.netease.mail.yanxuan.change.dal.entity.ChangeRecord;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.List
;
/**
/**
* @Author zcwang
* @Author zcwang
* @Date 2022/11/28
* @Date 2022/11/28
...
@@ -75,4 +78,11 @@ public class TestController {
...
@@ -75,4 +78,11 @@ public class TestController {
return
AjaxResult
.
success
(
RequestLocalBean
.
getUid
());
return
AjaxResult
.
success
(
RequestLocalBean
.
getUid
());
}
}
@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