package com.mindskip.xzs.service.impl; import com.mindskip.xzs.domain.UserDepartment; import com.mindskip.xzs.domain.vo.DepartmentExamineVO; import com.mindskip.xzs.repository.UserDepartmentMapper; import com.mindskip.xzs.service.UserDepartMentService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationEventPublisher; import org.springframework.stereotype.Service; import java.util.List; @Service public class UserDepartMentServiceImpl extends BaseServiceImpl implements UserDepartMentService { private final UserDepartmentMapper userDepartmentMapper; private final ApplicationEventPublisher eventPublisher; @Autowired public UserDepartMentServiceImpl(UserDepartmentMapper userDepartMentMapper, ApplicationEventPublisher eventPublisher) { super(userDepartMentMapper); this.userDepartmentMapper = userDepartMentMapper; this.eventPublisher = eventPublisher; } @Override public List selectByUserId(Integer userId) { return userDepartmentMapper.selectByUserId(userId); } @Override public List selectByDepartmentId(Integer departmentId) { return userDepartmentMapper.selectByDepartmentId(departmentId); } @Override public Integer removeByUserId(Integer userId) { return userDepartmentMapper.removeByUserId(userId); } @Override public Integer removeByDepartmentId(Integer departmentId) { return userDepartmentMapper.removeByDepartmentId(departmentId); } @Override public UserDepartment selectByUser(Integer id) { return userDepartmentMapper.selectByUser(id); } @Override public void updateUserDepartMent(UserDepartment userDepartment) { userDepartmentMapper.updateUserDepartMent(userDepartment); } @Override public void insertBatchByDepartmentExamine(DepartmentExamineVO departmentExamine) { userDepartmentMapper.insertBatchByDepartmentExamine(departmentExamine); } }