Commit eca3fb4d by xugaojun

修改查询员工接口

parent 8299cc95
...@@ -39,6 +39,7 @@ public interface StaffApiService { ...@@ -39,6 +39,7 @@ public interface StaffApiService {
/** /**
* 新增成员 * 新增成员
*
* @param userId * @param userId
* @param wxEnterpriseId * @param wxEnterpriseId
*/ */
...@@ -46,6 +47,7 @@ public interface StaffApiService { ...@@ -46,6 +47,7 @@ public interface StaffApiService {
/** /**
* 成员修改 * 成员修改
*
* @param staffDTO * @param staffDTO
* @param departmentIds * @param departmentIds
*/ */
...@@ -64,6 +66,7 @@ public interface StaffApiService { ...@@ -64,6 +66,7 @@ public interface StaffApiService {
/** /**
* 没手机号的时候需要重新刷 * 没手机号的时候需要重新刷
*
* @param userId * @param userId
* @param wxEnterpriseId * @param wxEnterpriseId
* @return * @return
...@@ -164,7 +167,17 @@ public interface StaffApiService { ...@@ -164,7 +167,17 @@ public interface StaffApiService {
* @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: 查询当前品牌所有员工
*
* @param wxEnterpriseId
* @return : {@link List< StaffDTO>}
* @author : YongEn
* @date : 2022/3/23
*/
List<StaffDTO> listAllStaffByWxEnterpriseId(String wxEnterpriseId);
/** /**
......
...@@ -1188,6 +1188,12 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -1188,6 +1188,12 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
@Override @Override
public List<StaffDTO> listAllStaffByWxEnterpriseId(String wxEnterpriseId) {
List<TabHaobanStaff> tabHaobanStaffs = staffMapper.listUserIdByWxEnterpriseId(wxEnterpriseId);
return EntityUtil.changeEntityListNew(StaffDTO.class, tabHaobanStaffs);
}
@Override
public List<StaffDTO> listByOpenUserIdsAndWxEnterpriseId(List<String> openUserIds, String wxEnterpriseId) { public List<StaffDTO> listByOpenUserIdsAndWxEnterpriseId(List<String> openUserIds, String wxEnterpriseId) {
List<StaffDTO> list = staffService.listByOpenUserIdsAndWxEnterpriseId(openUserIds, wxEnterpriseId); List<StaffDTO> list = staffService.listByOpenUserIdsAndWxEnterpriseId(openUserIds, wxEnterpriseId);
if (CollectionUtils.isEmpty(list)) { if (CollectionUtils.isEmpty(list)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment