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
740576ad
Commit
740576ad
authored
Nov 25, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-changeFlow-221110' into feature-changeFlow-221110
parents
fccbd5fb
cf4c0020
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
22 deletions
+38
-22
FlowIusRpcService.java
...anxuan/change/integration/flow/ius/FlowIusRpcService.java
+5
-2
OrgPos.java
...ease/mail/yanxuan/change/integration/flow/ius/OrgPos.java
+5
-5
leaderChain.java
...mail/yanxuan/change/integration/flow/ius/leaderChain.java
+8
-8
ChangeConfigController.java
...yanxuan/change/web/controller/ChangeConfigController.java
+20
-7
No files found.
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/ius/FlowIusRpcService.java
View file @
740576ad
...
...
@@ -9,6 +9,9 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.HashMap
;
import
java.util.List
;
/**
* @author WangJiaXiang
* @date 2022/11/24/024$
...
...
@@ -21,9 +24,9 @@ public interface FlowIusRpcService {
AjaxResponse
<
IusUserInfoRsp
>
queryUserInfo
(
@RequestParam
(
name
=
"uid"
)
String
uid
);
@GetMapping
(
"/v1/qc/allTeam/pos/queryLeaderChain"
)
AjaxResponse
<
IusDepartmentRsp
>
queryLeaderChain
(
@RequestParam
(
name
=
"uid"
)
String
uid
);
AjaxResponse
<
Object
>
queryLeaderChain
(
@RequestParam
(
name
=
"uid"
)
String
uid
);
@PostMapping
(
"/v1/qc/user/queryLeaderChain"
)
AjaxResponse
<
IusDepartmentRsp
>
queryDepartment
(
@RequestBody
IusDepartmentReq
uid
);
AjaxResponse
<
HashMap
<
String
,
List
<
SecondaryDepartments
>>
>
queryDepartment
(
@RequestBody
IusDepartmentReq
uid
);
}
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/ius/OrgPos.java
View file @
740576ad
...
...
@@ -10,15 +10,15 @@ import lombok.Data;
public
class
OrgPos
{
private
String
deptId
;
private
int
level
;
private
Integer
level
;
private
int
orgPosId
;
private
Integer
orgPosId
;
private
String
orgPosName
;
private
int
parentOrgPosId
;
private
Integer
parentOrgPosId
;
private
int
posStructType
;
private
Integer
posStructType
;
private
int
rootOrgPosId
;
private
Integer
rootOrgPosId
;
}
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/ius/leaderChain.java
View file @
740576ad
...
...
@@ -8,15 +8,15 @@ import lombok.Data;
*/
@Data
public
class
leaderChain
{
private
int
createTime
;
private
Long
createTime
;
private
String
extEmail
;
private
int
firstLoginTime
;
private
Long
firstLoginTime
;
private
int
identity
;
private
Integer
identity
;
private
int
lastLoginTime
;
private
Long
lastLoginTime
;
private
boolean
locked
;
...
...
@@ -24,17 +24,17 @@ public class leaderChain {
private
OrgPos
orgPos
;
private
int
orgPosId
;
private
Integer
orgPosId
;
private
int
orgPosLevel
;
private
Integer
orgPosLevel
;
private
String
srcCode
;
private
int
staffStatus
;
private
Integer
staffStatus
;
private
String
uid
;
private
int
userId
;
private
Integer
userId
;
private
boolean
virtual
;
}
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/ChangeConfigController.java
View file @
740576ad
package
com
.
netease
.
mail
.
yanxuan
.
change
.
web
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.mail.yanxuan.change.biz.service.InteriorChangeConfigService
;
import
com.netease.mail.yanxuan.change.common.bean.AjaxResult
;
import
com.netease.mail.yanxuan.change.biz.service.change.AdminChangeConfigService
;
...
...
@@ -8,15 +9,16 @@ import com.netease.mail.yanxuan.change.dal.meta.model.po.ChangeCommanderPO;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeConfigQueryReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeConfigReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.rpc.GoodsResponseRpc
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.FlowIusRpcService
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.IusDepartmentReq
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.IusDepartmentRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.IusUserInfoRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.*
;
import
com.netease.yanxuan.flowx.sdk.meta.controller.communal.AjaxResponse
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
/**
...
...
@@ -119,16 +121,27 @@ public class ChangeConfigController {
return
iusRpcService
.
queryUserInfo
(
"grp.gyhtest1001@corp.netease.com"
);
}
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ChangeConfigController
.
class
);
@GetMapping
(
"/test1"
)
public
AjaxResponse
<
IusDepartmentRsp
>
queryGoods1
(){
public
AjaxResponse
<
HashMap
<
String
,
List
<
SecondaryDepartments
>>
>
queryGoods1
(){
ArrayList
<
String
>
strings
=
new
ArrayList
<>();
strings
.
add
(
"grp.gyhtest1001@corp.netease.com"
);
return
iusRpcService
.
queryDepartment
(
new
IusDepartmentReq
(
strings
));
}
@GetMapping
(
"/test2"
)
public
AjaxResponse
<
IusDepartmentRsp
>
queryGoods2
(){
return
iusRpcService
.
queryLeaderChain
(
"grp.gyhtest1001@corp.netease.com"
);
public
AjaxResponse
<
Object
>
queryGoods2
(){
AjaxResponse
<
Object
>
objectAjaxResponse
=
iusRpcService
.
queryLeaderChain
(
"grp.gyhtest1001@corp.netease.com"
);
logger
.
error
(
objectAjaxResponse
.
getData
().
toString
()+
"\n\n\n\n\n\n\n\n\n\n\n\n"
);
HashMap
<
String
,
List
<
SecondaryDepartments
>>
jsonObject
=
JSONObject
.
parseObject
(
objectAjaxResponse
.
getData
().
toString
(),
HashMap
.
class
);
logger
.
error
(
jsonObject
.
toString
()+
"\n\n\n\n\n\n\n\n\n\n\n\n"
);
List
<
SecondaryDepartments
>
secondaryDepartments
=
new
ArrayList
<
SecondaryDepartments
>();
for
(
String
s1
:
jsonObject
.
keySet
()){
secondaryDepartments
=
jsonObject
.
get
(
s1
);
}
logger
.
error
(
secondaryDepartments
.
toString
()+
"\n\n\n\n\n\n\n\n\n\n\n\n"
);
return
objectAjaxResponse
;
}
...
...
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