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 bc4b886a
authored
Oct 23, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FEAT: 定义调用BEAN 的组织结构接口
1 parent
6572da5f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
345 additions
and
0 deletions
project-order/src/main/java/com/dituhui/pea/order/feign/IBeanRemoteService.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/Address.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/BaseAddress.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/BeanUserDetail.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/BranchDetail.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/ManageCityDepartment.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/Warehouse.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/PEAGetBEANServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/feign/IBeanRemoteService.java
View file @
bc4b886
...
...
@@ -54,4 +54,36 @@ public interface IBeanRemoteService {
BeanR
<
List
<
BeanAccountInfo
>>
queryUserList
(
@RequestHeader
(
name
=
"accessToken"
)
String
accessToken
,
@RequestParam
(
"departmentId"
)
String
departmentId
);
/**
* 查询BEAN账号详情
*
* @param accessToken ACCESS_TOKEN
* @param workNo 账号中心ID
* @return 人员详情信息
* @apiNote 根据账号ID(账号中心ID)从BEAN查询账号详情,包括账号姓名、联系方式、所属部门、技能资质等信息
*/
@GetMapping
(
"/api/openapi/user/queryDetail"
)
BeanR
<
BeanUserDetail
>
userDetail
(
@RequestHeader
(
name
=
"accessToken"
)
String
accessToken
,
@RequestParam
(
"workNo"
)
String
workNo
);
/**
* 获取部门全量列表数据
*
* @param accessToken ACCESS_TOKEN
* @return 部门全量列表数据
* @apiNote BEAN提供批量获取BEAN组织架构部门信息的接口,提供的字段包括:部门名称、部门ID、父部门ID、子部门ID列表等
*/
@PostMapping
(
"/api/openapi/department/queryList"
)
BeanR
<
List
<
Department
>>
allDepartment
(
@RequestHeader
(
name
=
"accessToken"
)
String
accessToken
);
/**
* 查询分部列表
*
* @param accessToken ACCESS_TOKEN
* @param bsTagId 列表接口查到的bsId
* @return 分部列表
*/
@GetMapping
(
"/api/openapi/department/getBranchDetail"
)
BeanR
<
BranchDetail
>
branchDetail
(
@RequestHeader
(
name
=
"accessToken"
)
String
accessToken
,
String
bsTagId
);
}
project-order/src/main/java/com/dituhui/pea/order/feign/bean/Address.java
0 → 100644
View file @
bc4b886
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* BEAN 定义的地址信息
*/
@Setter
@Getter
public
class
Address
extends
BaseAddress
{
/**
* 国家
*/
private
String
country
;
/**
* 详细地址
*/
private
String
all
;
}
project-order/src/main/java/com/dituhui/pea/order/feign/bean/BaseAddress.java
0 → 100644
View file @
bc4b886
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* BEAN 基础地址信息
*/
@Setter
@Getter
public
class
BaseAddress
{
/**
* 省份
*/
private
String
province
;
/**
* 城市
*/
private
String
city
;
/**
* 区域
*/
private
String
dist
;
/**
* 详细地址
*/
private
String
address
;
/**
* 纬度
*/
private
String
latitude
;
/**
* 经度
*/
private
String
longitude
;
}
project-order/src/main/java/com/dituhui/pea/order/feign/bean/BeanUserDetail.java
0 → 100644
View file @
bc4b886
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
import
lombok.Getter
;
import
lombok.Setter
;
import
java.util.List
;
/**
* BEAN 账号详情
*/
@Setter
@Getter
public
class
BeanUserDetail
{
/**
* BEAN账号ID
*/
private
String
id
;
/**
* 账号中心ID
*/
private
String
centerId
;
/**
* 账号中心工号
*/
private
String
workNo
;
/**
* hr系统员工编号
*/
private
String
hrId
;
/**
* 人员姓名
*/
private
String
username
;
/**
* 性别
*/
private
String
gender
;
/**
* 生日-时间戳
*/
private
String
birthday
;
/**
* 联系电话
*/
private
String
cellPhone
;
/**
* 座机号码
*/
private
String
telephone
;
/**
* 微信账号
*/
private
String
weChatAccount
;
/**
* 入职时间 -时间戳
*/
private
String
hireDate
;
/**
* 在职离职
*/
private
int
isDelete
;
/**
* 工作号码,h2p的号码为个人手机,此为工作手机
*/
private
String
workPhoneNumber
;
/**
* 是否是公司手机号,0:否,1:是
*/
private
String
isCompanyMobileNumber
;
/**
* 是否带车,0:否,1:是
*/
private
String
hasVehicle
;
/**
* 技术员类别
*/
private
String
technicianCategory
;
/**
* 技术员归属分站
*/
private
String
substation
;
/**
* 归属组织,小组组织ID
*/
private
String
organization
;
/**
* 是否是站组长,0:否,1:是
*/
private
String
isTeamLeader
;
/**
* 成本中心
*/
private
String
costCenter
;
/**
* 工作城市
*/
private
String
workCity
;
/**
* 常用出发地址,常驻的工作地址
*/
private
String
address
;
/**
* 等级=大修、零售、项目、鉴定、寄修
*/
private
String
grade
;
/**
* 博世家电URL,存储的是一个URL,用于获取该员工定制的博世家电官方微信二维码图片
*/
private
String
boschElectronicsUrl
;
/**
* 西门子家电URL,存储的是一个URL,用于获取该员工定制的西门子家电官方微信二维码图片
*/
private
String
siemensElectronicsUrl
;
/**
* 终端号
*/
private
String
terminalNumber
;
/**
* 1上线0不上线付款迁移是否上线
*/
private
String
paymentMigration
;
/**
* 是否兼职拉修,0:否,1:是
*/
private
String
partTimeRepair
;
/**
* 所属拉修车间
*/
private
String
repairWorkShop
;
/**
* 人员标签,可给人员赋予标签
*/
private
String
userLabels
;
/**
* 库存地点
*/
private
Address
inventoryLocation
;
/**
* 资质数据
*/
private
String
qualifications
;
/**
* 工作状态,请假、忙碌、空闲
*/
private
String
state
;
/**
* 技能
*/
private
List
<
String
>
skills
;
/**
* 账号状态,1正常、0禁用
*/
private
String
enabled
;
}
project-order/src/main/java/com/dituhui/pea/order/feign/bean/BranchDetail.java
0 → 100644
View file @
bc4b886
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
import
lombok.Getter
;
import
lombok.Setter
;
import
java.util.List
;
@Setter
@Getter
public
class
BranchDetail
{
/**
* 账户中心部门id
*/
private
String
bsId
;
/**
* 部门名称
*/
private
String
name
;
/**
* 部门缩写
*/
private
String
abbreviation
;
/**
* 部门描述
*/
private
String
desc
;
/**
* 部门负责人联系方式
*/
private
String
phone
;
/**
* 上级部门id
*/
private
String
bsParentId
;
/**
* 部门地址
*/
private
List
<
Address
>
address
;
/**
* 管辖服务区域
*/
private
List
<
Address
>
manageAddress
;
/**
* 部门类型
*/
private
String
type
;
/**
* 部门类别
*/
private
String
category
;
/**
* 默认配件仓
*/
private
Warehouse
defaultWarehouse
;
/**
* 1:启用 0:禁用 -1:注销
*/
private
Integer
enable
;
}
project-order/src/main/java/com/dituhui/pea/order/feign/bean/ManageCityDepartment.java
0 → 100644
View file @
bc4b886
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
import
lombok.Getter
;
import
lombok.Setter
;
@Setter
@Getter
public
class
ManageCityDepartment
extends
Department
{
/**
* 管辖区域
*/
private
BaseAddress
manageCityList
;
}
project-order/src/main/java/com/dituhui/pea/order/feign/bean/Warehouse.java
0 → 100644
View file @
bc4b886
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* 取件仓
*/
@Setter
@Getter
public
class
Warehouse
{
private
String
id
;
private
String
warehouseNo
;
private
String
name
;
/**
* 1:启用 0:禁用 -1:注销
*/
private
Integer
enable
;
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/PEAGetBEANServiceImpl.java
0 → 100644
View file @
bc4b886
package
com
.
dituhui
.
pea
.
order
.
service
.
impl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
PEAGetBEANServiceImpl
{
}
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