Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 47ca8aea
authored
Oct 12, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: 文档以及接口修订, 组织机构相关使用MQ实现
1 parent
f494a753
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/PeaApiController.java
project-order/src/main/java/com/dituhui/pea/order/controller/PeaApiController.java
View file @
47ca8ae
...
@@ -42,13 +42,12 @@ public class PeaApiController {
...
@@ -42,13 +42,12 @@ public class PeaApiController {
/**
/**
* 2.1
POST
组织架构同步事件通知
* 2.1
MQ
组织架构同步事件通知
*
*
* @param requestParam 请求参数
* @param requestParam 请求参数
* @return 成功或者失败
* @return 成功或者失败
* @apiNote BEAN系统当组织架构信息变化的时候,通知PEA系统;然后PEA系统,将会根据变化的要素信息,再去向BEAN系统发起查询,去获取详细的信息;
* @apiNote BEAN系统当组织架构信息变化的时候,通知PEA系统;然后PEA系统,将会根据变化的要素信息,再去向BEAN系统发起查询,去获取详细的信息;
*/
*/
@PostMapping
(
"/organization/tree"
)
public
Result
<?>
organizationTree
(
@NotNull
(
message
=
"请求参数不能为空"
)
@Validated
({
ValidGroup
.
PeaTree
.
class
})
public
Result
<?>
organizationTree
(
@NotNull
(
message
=
"请求参数不能为空"
)
@Validated
({
ValidGroup
.
PeaTree
.
class
})
@RequestBody
OrganizationTreeDTO
.
Request
requestParam
)
{
@RequestBody
OrganizationTreeDTO
.
Request
requestParam
)
{
...
@@ -57,26 +56,24 @@ public class PeaApiController {
...
@@ -57,26 +56,24 @@ public class PeaApiController {
/**
/**
* 2.2
POST
组织人员同步事件通知
* 2.2
MQ
组织人员同步事件通知
*
*
* @param requestParam 请求参数
* @param requestParam 请求参数
* @return 成功或者失败
* @return 成功或者失败
* @apiNote 当组织人员有变化的时候,BEAN调用本接口,告知PEA系统,该组织人员有变化,PEA系统再去BEAN系统发起查询,获取该组织所有的人员信息保存到本地;
* @apiNote 当组织人员有变化的时候,BEAN调用本接口,告知PEA系统,该组织人员有变化,PEA系统再去BEAN系统发起查询,获取该组织所有的人员信息保存到本地;
*/
*/
@PostMapping
(
"/organization/staff"
)
public
Result
<?>
organizationStaff
(
@RequestBody
OrganizationTreeDTO
.
Request
requestParam
)
{
public
Result
<?>
organizationStaff
(
@RequestBody
OrganizationTreeDTO
.
Request
requestParam
)
{
return
Result
.
success
(
null
);
return
Result
.
success
(
null
);
}
}
/**
/**
* 2.3
POST
技术员信息同步事件通知
* 2.3
MQ
技术员信息同步事件通知
*
*
* @param requestParam 请求参数
* @param requestParam 请求参数
* @return 成功或者失败
* @return 成功或者失败
* @apiNote 将网点/小组内的工程师信息,推送给PEA系统;包括2种模式:全量/增量;
* @apiNote 将网点/小组内的工程师信息,推送给PEA系统;包括2种模式:全量/增量;
*/
*/
@PostMapping
(
"/organization/engineer"
)
public
Result
<?>
organizationEngineer
(
@RequestBody
EngineerParamDTO
.
Request
requestParam
)
{
public
Result
<?>
organizationEngineer
(
@RequestBody
EngineerParamDTO
.
Request
requestParam
)
{
return
Result
.
success
(
null
);
return
Result
.
success
(
null
);
...
@@ -96,7 +93,7 @@ public class PeaApiController {
...
@@ -96,7 +93,7 @@ public class PeaApiController {
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@RequestParam
(
value
=
"beginDate"
)
Date
beginDate
,
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@RequestParam
(
value
=
"beginDate"
)
Date
beginDate
,
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@RequestParam
(
value
=
"
begin
Date"
)
Date
endDate
)
{
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@RequestParam
(
value
=
"
end
Date"
)
Date
endDate
)
{
return
Result
.
success
(
new
EngineerCalendarResultDTO
());
return
Result
.
success
(
new
EngineerCalendarResultDTO
());
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment