| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.validation.annotation.Validated; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
| | | import static cn.iocoder.yudao.module.hrm.enums.ErrorCodeConstants.EMPLOYEE_SOCIAL_SECURITY_NOT_EXISTS; |
| | | |
| | | /** |
| | | * 员工社保公积金档案 Service 实现类 |
| | | * 部门社保公积金档案 Service 实现类 |
| | | * |
| | | * @author 超级管理员 |
| | | */ |
| | |
| | | } |
| | | |
| | | @Override |
| | | public HrmEmployeeSocialSecurityDO getLatestEmployeeSocialSecurity(Long userId) { |
| | | return employeeSocialSecurityMapper.selectLatestByUserId(userId); |
| | | public HrmEmployeeSocialSecurityDO getLatestEmployeeSocialSecurity(Long deptId) { |
| | | return employeeSocialSecurityMapper.selectLatestByDeptId(deptId); |
| | | } |
| | | |
| | | @Override |
| | | public List<HrmEmployeeSocialSecurityDO> getEmployeeSocialSecurityList(Long userId) { |
| | | return employeeSocialSecurityMapper.selectListByUserId(userId); |
| | | public List<HrmEmployeeSocialSecurityDO> getEmployeeSocialSecurityList(Long deptId) { |
| | | return employeeSocialSecurityMapper.selectListByDeptId(deptId); |
| | | } |
| | | |
| | | @Override |
| | | public List<HrmEmployeeSocialSecurityDO> getLatestEmployeeSocialSecurityList(Collection<Long> deptIds) { |
| | | return employeeSocialSecurityMapper.selectListByDeptIds(deptIds); |
| | | } |
| | | |
| | | private void validateEmployeeSocialSecurityExists(Long id) { |