EntmicroStaffDepartRelationMapper.java
2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package cn.com.glsx.entmicro.mapper;
import cn.com.glsx.entmicro.entity.EntmicroStaffDepartRelation;
import cn.com.glsx.entmicro.model.response.ChannelCodeStaffInfoResponse;
import cn.com.glsx.entmicro.model.response.EntmicroStaffFollowResponse;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
@Mapper
public interface EntmicroStaffDepartRelationMapper extends CommonBaseMapper<EntmicroStaffDepartRelation> {
List<EntmicroStaffDepartRelation> findDepartByStaffId(@Param("staffId") Integer staffId);
void deleteStaffDepartment(@Param("list") List<EntmicroStaffDepartRelation> deletelist);
void deleteStaff(@Param("staffId") Integer staffId);
/**
* 主键id批量查员工
*
* @return
*/
List<ChannelCodeStaffInfoResponse> getStaffByIdList(@Param("staffIdList") List<String> staffIdList,
@Param("merchantId")Integer merchantId);
@MapKey("id")
Map<Integer, EntmicroStaffDepartRelation> findByIds(@Param("ids") List<Integer> integerList);
EntmicroStaffDepartRelation findByoneIds(@Param("oneIds") String oneIds);
/**
* 批量查找员工的UID
* @param staffIdList
* @param merchantId
* @return
*/
List<EntmicroStaffDepartRelation> findStaffUidDepartForMerchantList(@Param("staffIdList") List<Integer> staffIdList, @Param("merchantId") Integer merchantId);
/**
* 查询员工所在商户的UUID
* @param staffId
* @param merchantId
* @return
*/
EntmicroStaffDepartRelation findDepartByStaffIdForMerchant(@Param("staffId") Integer staffId, @Param("merchantId") Integer merchantId);
/**
* 根据员工id查询关联商户
*
* @param staffId 员工id
* @return 商户列表
*/
List<Integer> findRelevanceMerchantByStaffId(@Param("staffId") Integer staffId);
}