Commit 45770d5d by 徐高华

离职继承查询导购

parent a8418bbd
......@@ -144,4 +144,6 @@ public interface TabHaobanStaffClerkRelationMapper {
* @return
*/
List<String> taskoverClerkIdList(@Param("staffId")String staffId, @Param("delTime") Date delTime) ;
List<TabHaobanStaffClerkRelation> taskoverClerkIdListAll(@Param("staffId")String staffId) ;
}
\ No newline at end of file
......@@ -626,6 +626,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
return staffClerkRelationService.listManageBindByStaffId(staffId);
}
// 只用于离职继承的查询
@Override
public List<String> getTakeoverClerkIdList(List<String> staffIdList) {
List<String> takeoverClerkIdList = new ArrayList<>() ;
......@@ -639,6 +640,11 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
if(CollectionUtils.isNotEmpty(clerkIdList)) {
takeoverClerkIdList.addAll(clerkIdList);
}
}else if(null != staff) {
List<TabHaobanStaffClerkRelation> list = this.tabHaobanStaffClerkRelationMapper.taskoverClerkIdListAll(staffId) ;
if(CollectionUtils.isNotEmpty(list)) {
takeoverClerkIdList.add(list.get(0).getClerkId()) ;
}
}
}
}
......
......@@ -487,4 +487,8 @@
select clerk_id from tab_haoban_staff_clerk_relation where staff_id =#{staffId} and status_flag = 0 and update_time >= #{delTime}
</select>
<select id="taskoverClerkIdListAll" resultMap="BaseResultMap" resultType="java.lang.String">
select <include refid="Base_Column_List"/> from tab_haoban_staff_clerk_relation where staff_id =#{staffId} order by update_time desc
</select>
</mapper>
\ No newline at end of file
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