Commit 42f19f51 by jinxin

成员信息查询sql

parent ee35946f
...@@ -19,7 +19,14 @@ public interface StaffMapper { ...@@ -19,7 +19,14 @@ public interface StaffMapper {
TabHaobanStaff selectByNationcodeAndPhoneNumber(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("nationCode") String nationcode, @Param("phoneNumber") String phoneNumber); TabHaobanStaff selectByNationcodeAndPhoneNumber(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("nationCode") String nationcode, @Param("phoneNumber") String phoneNumber);
List<TabHaobanStaff> listByIds(@Param("staffIds") List<String> staffIds); List<TabHaobanStaff> listByIds(@Param("staffIds") List<String> staffIds);
/**
* 特殊查询,可以查询出被删除的成员信息
* @param staffIds
* @return
*/
List<TabHaobanStaff> listByStaffIdList(@Param("staffIds") List<String> staffIds);
TabHaobanStaff selectByUserIdAndEnterpriseId(@Param("userId") String userId, @Param("wxEnterpriseId") String wxEnterpriseId); TabHaobanStaff selectByUserIdAndEnterpriseId(@Param("userId") String userId, @Param("wxEnterpriseId") String wxEnterpriseId);
TabHaobanStaff getDeleteUser(@Param("userId") String userId, @Param("wxEnterpriseId") String wxEnterpriseId) ; TabHaobanStaff getDeleteUser(@Param("userId") String userId, @Param("wxEnterpriseId") String wxEnterpriseId) ;
......
...@@ -948,7 +948,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -948,7 +948,7 @@ public class StaffApiServiceImpl implements StaffApiService {
staffIds.add(a.getHandoverStaffId()); staffIds.add(a.getHandoverStaffId());
staffIds.add(a.getTakeoverStaffId()); staffIds.add(a.getTakeoverStaffId());
}); });
List<TabHaobanStaff> tabHaobanStaffs = staffMapper.listByIds(staffIds); List<TabHaobanStaff> tabHaobanStaffs = staffMapper.listByStaffIdList(staffIds);
if (CollUtil.isEmpty(tabHaobanStaffs)){ if (CollUtil.isEmpty(tabHaobanStaffs)){
return com.gic.api.base.commons.ServiceResponse.failure("-9999","通讯录成员不存在!",result); return com.gic.api.base.commons.ServiceResponse.failure("-9999","通讯录成员不存在!",result);
} }
......
...@@ -364,6 +364,16 @@ ...@@ -364,6 +364,16 @@
</foreach> </foreach>
</select> </select>
<select id="listByStaffIdList" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_staff
where staff_id IN
<foreach collection="staffIds" item="id" index="index" open="(" close=")" separator=",">
#{id,jdbcType=VARCHAR}
</foreach>
</select>
<select id="listLikeName" resultMap="BaseResultMap"> <select id="listLikeName" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_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