Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
0481d078
Commit
0481d078
authored
Nov 08, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
是否是区间
parent
892c9867
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
316 additions
and
294 deletions
+316
-294
StaffApiService.java
...va/com/gic/haoban/manage/api/service/StaffApiService.java
+304
-293
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+12
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffApiService.java
View file @
0481d078
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.dto.role.StoreRoleDTO
;
import
com.gic.haoban.manage.api.dto.role.StoreRoleDTO
;
import
java.util.List
;
import
java.util.List
;
public
interface
StaffApiService
{
public
interface
StaffApiService
{
StaffDTO
selectById
(
String
staffId
);
StaffDTO
selectById
(
String
staffId
);
List
<
StaffDTO
>
listByIds
(
List
<
String
>
staffIds
);
List
<
StaffDTO
>
listByIds
(
List
<
String
>
staffIds
);
StaffDTO
selectByNationcodeAndPhoneNumber
(
String
wxEnterpriseId
,
String
nationcode
,
String
phoneNumber
);
StaffDTO
selectByNationcodeAndPhoneNumber
(
String
wxEnterpriseId
,
String
nationcode
,
String
phoneNumber
);
List
<
StaffDepartmentRelatedDTO
>
listStaffDepartmentByStaffId
(
String
staffId
);
List
<
StaffDepartmentRelatedDTO
>
listStaffDepartmentByStaffId
(
String
staffId
);
Page
<
StaffDTO
>
pageStaff
(
List
<
String
>
departmentId
,
Integer
activeFlag
,
Page
<
StaffDTO
>
pageStaff
(
List
<
String
>
departmentId
,
Integer
activeFlag
,
String
keyword
,
BasePageInfo
pageInfo
,
Integer
relationFlag
,
String
wxEnterpriseId
);
String
keyword
,
BasePageInfo
pageInfo
,
Integer
relationFlag
,
String
wxEnterpriseId
);
/**
/**
* 保存微信成员
* 保存微信成员
*
*
* @param userId
* @param userId
* @param wxEnterpriseId
* @param wxEnterpriseId
* @return
* @return
*/
*/
ServiceResponse
getWxSaveNew
(
String
userId
,
String
wxEnterpriseId
);
ServiceResponse
getWxSaveNew
(
String
userId
,
String
wxEnterpriseId
);
/**
/**
* 新增成员
* 新增成员
*
*
* @param userId
* @param userId
* @param wxEnterpriseId
* @param wxEnterpriseId
*/
*/
ServiceResponse
wxGetAdd
(
String
userId
,
String
wxEnterpriseId
);
ServiceResponse
wxGetAdd
(
String
userId
,
String
wxEnterpriseId
);
/**
/**
* 成员修改
* 成员修改
*
*
* @param staffDTO
* @param staffDTO
* @param departmentIds
* @param departmentIds
*/
*/
void
staffEdit
(
StaffDTO
staffDTO
,
String
departmentIds
);
void
staffEdit
(
StaffDTO
staffDTO
,
String
departmentIds
);
/**
/**
* 选择用户id和企业标识
* 选择用户id和企业标识
*
*
* @param userId 用户id
* @param userId 用户id
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
* @return {@link StaffDTO }
* @return {@link StaffDTO }
* @author mozhu
* @author mozhu
* @date 2022-01-13 15:02:22
* @date 2022-01-13 15:02:22
*/
*/
StaffDTO
selectByUserIdAndEnterpriseId
(
String
userId
,
String
wxEnterpriseId
);
StaffDTO
selectByUserIdAndEnterpriseId
(
String
userId
,
String
wxEnterpriseId
);
/**
/**
* 没手机号的时候需要重新刷
* 没手机号的时候需要重新刷
*
*
* @param userId
* @param userId
* @param wxEnterpriseId
* @param wxEnterpriseId
* @return
* @return
*/
*/
StaffDTO
getByUserIdAndReflushWhenNoPhone
(
String
userId
,
String
wxEnterpriseId
);
StaffDTO
getByUserIdAndReflushWhenNoPhone
(
String
userId
,
String
wxEnterpriseId
);
StaffDepartmentRelatedDTO
getDepartmentIdAndStaffId
(
String
departmentId
,
String
staffId
);
StaffDepartmentRelatedDTO
getDepartmentIdAndStaffId
(
String
departmentId
,
String
staffId
);
StaffDepartmentRelatedDTO
getDepartmentIdAndCode
(
String
departmentId
,
String
code
);
StaffDepartmentRelatedDTO
getDepartmentIdAndCode
(
String
departmentId
,
String
code
);
void
initWxUser
(
String
corpid
,
String
contactSecret
,
String
wxEnterpriseId
,
Integer
wxDepartmentId
,
String
taskId
);
void
initWxUser
(
String
corpid
,
String
contactSecret
,
String
wxEnterpriseId
,
Integer
wxDepartmentId
,
String
taskId
);
List
<
String
>
listUnBindClerk
(
String
storeId
);
List
<
String
>
listUnBindClerk
(
String
storeId
);
String
insertUserLoginLog
(
UserLoginLogDTO
userLoginLogDTO
);
String
insertUserLoginLog
(
UserLoginLogDTO
userLoginLogDTO
);
int
countByDepartmentIds
(
List
<
String
>
departmentIds
);
int
countByDepartmentIds
(
List
<
String
>
departmentIds
);
List
<
StaffDTO
>
listByPhoneNumber
(
String
phoneNumber
);
List
<
StaffDTO
>
listByPhoneNumber
(
String
phoneNumber
);
/**
/**
* 获取成员头像
* 获取成员头像
*
*
* @param clerkCode
* @param clerkCode
* @param storeId
* @param storeId
* @return
* @return
*/
*/
ServiceResponse
<
String
>
getStaffQrcode
(
String
clerkCode
,
String
storeId
);
ServiceResponse
<
String
>
getStaffQrcode
(
String
clerkCode
,
String
storeId
);
void
wxFristAdd
(
String
userJson
,
String
wxEnterpriseId
);
void
wxFristAdd
(
String
userJson
,
String
wxEnterpriseId
);
List
<
String
>
listBindStaffId
(
String
storeId
);
List
<
String
>
listBindStaffId
(
String
storeId
);
List
<
StaffClerkRelationDTO
>
listBindRelationUserId
(
String
storeId
);
List
<
StaffClerkRelationDTO
>
listBindRelationUserId
(
String
storeId
);
/**
/**
* 激活
* 激活
*
*
* @param staffId
* @param staffId
* @return
* @return
*/
*/
boolean
activeStaff
(
String
staffId
);
boolean
activeStaff
(
String
staffId
);
/**
/**
* 是否隐私
* 是否隐私
*
*
* @param staffId 员工id
* @param staffId 员工id
* @return {@link StaffPrivacyUseLogDTO }
* @return {@link StaffPrivacyUseLogDTO }
* @author mozhu
* @author mozhu
* @date 2021-12-16 19:53:48
* @date 2021-12-16 19:53:48
*/
*/
StaffPrivacyUseLogDTO
getStaffPrivacyByStaffId
(
String
staffId
);
StaffPrivacyUseLogDTO
getStaffPrivacyByStaffId
(
String
staffId
);
/**
/**
* 让员工隐私员工id
* 让员工隐私员工id
*
*
* @param userId 用户id
* @param userId 用户id
* @return {@link StaffPrivacyUseLogDTO }
* @return {@link StaffPrivacyUseLogDTO }
* @author mozhu
* @author mozhu
* @date 2022-04-14 14:31:39
* @date 2022-04-14 14:31:39
*/
*/
StaffPrivacyUseLogDTO
getStaffPrivacyByUserId
(
String
userId
);
StaffPrivacyUseLogDTO
getStaffPrivacyByUserId
(
String
userId
);
/**
/**
* 用户id wx企业id列表
* 用户id wx企业id列表
*
*
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
* @param pageNum 页面num
* @param pageNum 页面num
* @param pageSize 页面大小
* @param pageSize 页面大小
* @return {@link List<StaffDTO> }
* @return {@link List<StaffDTO> }
* @author mozhu
* @author mozhu
* @date 2022-02-25 09:40:15
* @date 2022-02-25 09:40:15
*/
*/
Page
<
StaffDTO
>
listUserIdByWxEnterpriseId
(
String
wxEnterpriseId
,
Integer
pageNum
,
Integer
pageSize
);
Page
<
StaffDTO
>
listUserIdByWxEnterpriseId
(
String
wxEnterpriseId
,
Integer
pageNum
,
Integer
pageSize
);
/**
/**
* desc: 查询当前品牌所有员工
* desc: 查询当前品牌所有员工
*
*
* @param wxEnterpriseId
* @param wxEnterpriseId
* @return : {@link List< StaffDTO>}
* @return : {@link List< StaffDTO>}
* @author : YongEn
* @author : YongEn
* @date : 2022/3/23
* @date : 2022/3/23
*/
*/
List
<
StaffDTO
>
listAllStaffByWxEnterpriseId
(
String
wxEnterpriseId
);
List
<
StaffDTO
>
listAllStaffByWxEnterpriseId
(
String
wxEnterpriseId
);
/**
/**
* 通过开放用户id和wx企业id列表
* 通过开放用户id和wx企业id列表
*
*
* @param openUserIds 开放的用户id
* @param openUserIds 开放的用户id
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
* @return {@link List<StaffDTO> }
* @return {@link List<StaffDTO> }
* @author mozhu
* @author mozhu
* @date 2021-12-21 17:23:36
* @date 2021-12-21 17:23:36
*/
*/
List
<
StaffDTO
>
listByOpenUserIdsAndWxEnterpriseId
(
List
<
String
>
openUserIds
,
String
wxEnterpriseId
);
List
<
StaffDTO
>
listByOpenUserIdsAndWxEnterpriseId
(
List
<
String
>
openUserIds
,
String
wxEnterpriseId
);
/**
/**
* 更新开放用户id,用户id
* 更新开放用户id,用户id
*
*
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
* @param wxUserId wx用户id
* @param wxUserId wx用户id
* @param wxOpenUseId wx开放使用id
* @param wxOpenUseId wx开放使用id
* @return int
* @return int
* @author mozhu
* @author mozhu
* @date 2021-12-21 19:53:30
* @date 2021-12-21 19:53:30
*/
*/
int
updateOpenUserIdsByUserId
(
String
wxEnterpriseId
,
String
wxUserId
,
String
wxOpenUseId
);
int
updateOpenUserIdsByUserId
(
String
wxEnterpriseId
,
String
wxUserId
,
String
wxOpenUseId
);
/**
/**
* 更新开放id员工id
* 更新开放id员工id
*
*
* @param staffId 员工id
* @param staffId 员工id
* @param openId 开放id
* @param openId 开放id
* @return int
* @return int
*/
*/
int
updateOpenIdByStaffId
(
String
staffId
,
String
openId
);
int
updateOpenIdByStaffId
(
String
staffId
,
String
openId
);
/**
/**
* 更新二维码通过员工id
* 更新二维码通过员工id
*
*
* @param staffId 员工id
* @param staffId 员工id
* @param qrCode 二维码
* @param qrCode 二维码
* @return int
* @return int
*/
*/
int
updateQrCodeByStaffId
(
String
staffId
,
String
qrCode
);
int
updateQrCodeByStaffId
(
String
staffId
,
String
qrCode
);
/**
/**
* 获取职员id二维码
* 获取职员id二维码
*
*
* @param clerkId 职员id
* @param clerkId 职员id
* @return {@link StaffQrCodeDTO}
* @return {@link StaffQrCodeDTO}
*/
*/
StaffQrCodeDTO
getQrCodeByClerkId
(
String
clerkId
);
StaffQrCodeDTO
getQrCodeByClerkId
(
String
clerkId
);
/**
/**
* 导购gic门店和好办企业门店交集
* 导购gic门店和好办企业门店交集
* 所有门店返回 -1
* 所有门店返回 -1
*
*
* @param clerkId 职员id
* @param clerkId 职员id
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
* @return {@link List }<{@link String }>
* @return {@link List }<{@link String }>
* @author mozhu
* @author mozhu
* @date 2022-06-01 11:04:40
* @date 2022-06-01 11:04:40
*/
*/
List
<
String
>
getHaoBanStoreIdsRolesByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
List
<
String
>
getHaoBanStoreIdsRolesByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
/**
/**
* 门店筛选器id和好办企业门店交集
* 门店筛选器id和好办企业门店交集
*
*
* @param storeWidgetId 存储部件id
* @param storeWidgetId 存储部件id
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
* @param enterpriseId 企业标识
* @param enterpriseId 企业标识
* @return {@link List }<{@link String }>
* @return {@link List }<{@link String }>
* @author mozhu
* @author mozhu
* @date 2022-05-31 09:35:42
* @date 2022-05-31 09:35:42
*/
*/
List
<
String
>
getHaoBanStoreRolesByStoreWidgetId
(
String
storeWidgetId
,
String
wxEnterpriseId
,
String
enterpriseId
);
List
<
String
>
getHaoBanStoreRolesByStoreWidgetId
(
String
storeWidgetId
,
String
wxEnterpriseId
,
String
enterpriseId
);
/**
/**
* 该门店好办是否有权限 true有,false 否
* 该门店好办是否有权限 true有,false 否
*
*
* @param storeId 存储id
* @param storeId 存储id
* @param enterpriseId 企业标识
* @param enterpriseId 企业标识
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
* @return boolean
* @return boolean
* @author mozhu
* @author mozhu
* @date 2022-05-18 14:19:11
* @date 2022-05-18 14:19:11
*/
*/
boolean
isFlagByStoreIdAndEnterpriseId
(
String
storeId
,
String
enterpriseId
,
String
wxEnterpriseId
);
boolean
isFlagByStoreIdAndEnterpriseId
(
String
storeId
,
String
enterpriseId
,
String
wxEnterpriseId
);
/**
/**
* 是否超级管理员 true是
* 是否超级管理员 true是
*
*
* @param clerkId 职员id
* @param clerkId 职员id
* @return boolean
* @return boolean
* @author mozhu
* @author mozhu
* @date 2022-05-27 09:43:00
* @date 2022-05-27 09:43:00
*/
*/
boolean
isSuperAdmin
(
String
clerkId
);
boolean
isSuperAdmin
(
String
clerkId
);
/**
/**
* 获取到好办的企业门店id
* 获取到好办的企业门店id
*
*
* @param enterpriseId 企业标识
* @param enterpriseId 企业标识
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
* @return {@link List }<{@link String }>
* @return {@link List }<{@link String }>
* @author mozhu
* @author mozhu
* @date 2022-05-30 11:46:08
* @date 2022-05-30 11:46:08
*/
*/
List
<
String
>
getHaoBanStoreRolesByEnterpriseId
(
String
enterpriseId
,
String
wxEnterpriseId
);
List
<
String
>
getHaoBanStoreRolesByEnterpriseId
(
String
enterpriseId
,
String
wxEnterpriseId
);
/**
/**
*
*
* 获取区经管辖门店数量
* 获取区经管辖门店数量
*
*
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
* @param clerkId 职员id
* @param clerkId 职员id
* @return int
* @return int
*/
*/
StoreRoleDTO
getCountHaoBanStoreIdsByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
StoreRoleDTO
getCountHaoBanStoreIdsByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
/**
/**
* 是否店长权限 true 是
* 是否店长权限 true 是
* @param clerkId
* @param clerkId
* @return
* @return
*/
*/
boolean
isManager
(
String
clerkId
);
boolean
isManager
(
String
clerkId
);
/**
/**
*
* 绑定的员工列表
* @Title: isEnterpriseManager
*
* @Description: 是否是区经
* @param storeIds 存储id
* @author xugh
* @param wxEnterpriseId wx企业标识
* @param clerkId
* @return {@link List }<{@link StaffDTO }>
* @return
* @author mozhu
* @throws
* @date 2022-10-21 00:25:46
*/
*/
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
<
Boolean
>
isEnterpriseManager
(
String
clerkId
)
;
List
<
StaffDTO
>
listBindStoreIds
(
List
<
String
>
storeIds
,
String
wxEnterpriseId
);
}
/**
* 绑定的员工列表
*
* @param storeIds 存储id
* @param wxEnterpriseId wx企业标识
* @return {@link List }<{@link StaffDTO }>
* @author mozhu
* @date 2022-10-21 00:25:46
*/
List
<
StaffDTO
>
listBindStoreIds
(
List
<
String
>
storeIds
,
String
wxEnterpriseId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
0481d078
...
@@ -32,7 +32,6 @@ import com.gic.enterprise.api.dto.StoreGroupDTO;
...
@@ -32,7 +32,6 @@ import com.gic.enterprise.api.dto.StoreGroupDTO;
import
com.gic.enterprise.api.dto.StoreWidgetDTO
;
import
com.gic.enterprise.api.dto.StoreWidgetDTO
;
import
com.gic.enterprise.api.service.EnterpriseService
;
import
com.gic.enterprise.api.service.EnterpriseService
;
import
com.gic.enterprise.api.service.StoreGroupService
;
import
com.gic.enterprise.api.service.StoreGroupService
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.enterprise.api.service.StoreWidgetService
;
import
com.gic.enterprise.api.service.StoreWidgetService
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
...
@@ -987,6 +986,18 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -987,6 +986,18 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
return
false
;
return
false
;
}
}
@Override
public
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
<
Boolean
>
isEnterpriseManager
(
String
clerkId
)
{
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
!=
null
)
{
Integer
clerkType
=
clerkDTO
.
getClerkType
();
if
(
clerkType
==
2
)
{
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
success
(
true
);
}
}
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
success
(
false
);
}
@Override
@Override
public
List
<
StaffDTO
>
listBindStoreIds
(
List
<
String
>
storeIds
,
String
wxEnterpriseId
)
{
public
List
<
StaffDTO
>
listBindStoreIds
(
List
<
String
>
storeIds
,
String
wxEnterpriseId
)
{
...
...
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