2022-03-15 09:34:53 +08:00
|
|
|
|
package com.engine.salary.service;
|
|
|
|
|
|
|
2024-02-02 15:23:26 +08:00
|
|
|
|
import com.cloudstore.eccom.pc.table.WeaTableColumn;
|
2023-10-18 13:34:05 +08:00
|
|
|
|
import com.engine.salary.entity.siarchives.dto.InsuranceArchivesBaseHistoryDTO;
|
2022-03-18 18:00:51 +08:00
|
|
|
|
import com.engine.salary.entity.siarchives.param.InsuranceArchivesListParam;
|
2022-03-16 18:26:49 +08:00
|
|
|
|
import com.engine.salary.entity.siarchives.param.InsuranceArchivesSaveParam;
|
2023-10-18 13:34:05 +08:00
|
|
|
|
import com.engine.salary.entity.siarchives.param.SIArchiveBaseHistoryListParam;
|
2024-02-02 15:23:26 +08:00
|
|
|
|
import com.engine.salary.entity.siarchives.po.*;
|
2023-10-18 13:34:05 +08:00
|
|
|
|
import com.engine.salary.util.page.PageInfo;
|
2024-03-14 14:05:36 +08:00
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
2022-04-19 17:46:24 +08:00
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
2022-03-16 18:26:49 +08:00
|
|
|
|
|
2024-03-14 14:05:36 +08:00
|
|
|
|
import java.util.*;
|
2022-03-15 09:34:53 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @Author weaver_cl
|
2022-07-13 11:45:16 +08:00
|
|
|
|
*
|
2022-03-15 09:34:53 +08:00
|
|
|
|
* @Date 2022/3/11
|
|
|
|
|
|
* @Version V1.0
|
|
|
|
|
|
**/
|
|
|
|
|
|
public interface SIArchivesService {
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> getTips(Map<String, Object> params);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> getBaseForm(Map<String, Object> params);
|
2022-03-16 17:04:21 +08:00
|
|
|
|
|
|
|
|
|
|
Map<String, Object> getPaymentForm(Map<String, Object> params);
|
2022-03-16 18:26:49 +08:00
|
|
|
|
|
|
|
|
|
|
String insert(InsuranceArchivesSaveParam param);
|
2022-03-18 18:00:51 +08:00
|
|
|
|
|
|
|
|
|
|
Map<String, Object> listPage(InsuranceArchivesListParam insuranceArchivesListParam);
|
2022-03-22 19:47:46 +08:00
|
|
|
|
|
|
|
|
|
|
Map<String,Object> getSearchCondition(Map<String, Object> stringObjectMap);
|
2022-04-19 17:46:24 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 根据高级搜索框或者员工id集合导出档案
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param param 请求报文
|
|
|
|
|
|
* @return map
|
|
|
|
|
|
*/
|
|
|
|
|
|
XSSFWorkbook export(InsuranceArchivesListParam param);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 获取员工的基本信息
|
|
|
|
|
|
* <p>
|
|
|
|
|
|
* 此处主要是一个公共接口,有多处引用。我们薪资系统只保存员工id(employeeId),
|
|
|
|
|
|
* 但是页面上需要展示员工的更多信息(姓名,部门,状态。。。),
|
|
|
|
|
|
* 所以这里主要是用于接收联表数据的一个接口
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param param 高级搜索条件,用于过滤数据
|
|
|
|
|
|
* @return list
|
|
|
|
|
|
*/
|
|
|
|
|
|
List<InsuranceArchivesEmployeePO> listPageEmployeePOS(InsuranceArchivesListParam param);
|
2022-10-12 10:38:41 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 获取福利档案各tab总人数
|
|
|
|
|
|
*/
|
|
|
|
|
|
Map<String, Long> queryInsuranceTabTotal();
|
|
|
|
|
|
|
2022-10-13 17:36:15 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 批量变更档案列表的runStatus
|
|
|
|
|
|
*/
|
|
|
|
|
|
void updateRunStatus(InsuranceArchivesBaseInfoPO po);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 批量取消停缴
|
|
|
|
|
|
*/
|
2022-10-14 18:00:22 +08:00
|
|
|
|
void cancelStopPayment(Collection<Long> ids);
|
2022-10-14 14:31:09 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 批量减员
|
|
|
|
|
|
*/
|
2022-10-17 10:13:38 +08:00
|
|
|
|
Map<String, Object> stayDelToStop(Collection<Long> ids);
|
2022-10-14 16:34:10 +08:00
|
|
|
|
|
2024-01-29 11:30:04 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 批量减员,直接减员,并给予最后缴纳月
|
|
|
|
|
|
*/
|
|
|
|
|
|
Map<String, Object> stopWithoutLimit(Collection<Long> ids, String yearMonth);
|
|
|
|
|
|
|
2022-10-14 16:34:10 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 全量减员
|
|
|
|
|
|
*/
|
2022-10-17 10:13:38 +08:00
|
|
|
|
Map<String, Object> allStayDelToStop();
|
2022-10-14 16:34:10 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 全量增员
|
|
|
|
|
|
*/
|
2022-10-17 10:13:38 +08:00
|
|
|
|
Map<String, Object> allStayAddToPay();
|
2022-10-14 16:34:10 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 批量增员
|
|
|
|
|
|
*/
|
2022-10-17 10:13:38 +08:00
|
|
|
|
Map<String, Object> stayAddToPay(Collection<Long> ids);
|
2022-12-12 15:43:12 +08:00
|
|
|
|
|
2024-01-30 14:31:21 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 拷贝福利档案到新的个税扣缴义务人并置为在缴
|
|
|
|
|
|
* @param toCopyTaxAgentId 被拷贝的福利档案所属个税扣缴义务人id
|
|
|
|
|
|
* @param toUpdateTaxAgentId 被更新的福利档案所属个税扣缴义务人id
|
|
|
|
|
|
* @param employeeId 福利档案所属人员id
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
Map<String, Object> copyToPay(Long toCopyTaxAgentId, Long toUpdateTaxAgentId, Long employeeId, String payStartYearMonth);
|
|
|
|
|
|
|
2022-12-12 15:43:12 +08:00
|
|
|
|
/**
|
2022-12-13 16:58:35 +08:00
|
|
|
|
* 待减员页面的删除待办
|
2022-12-12 15:43:12 +08:00
|
|
|
|
*/
|
2022-12-13 16:58:35 +08:00
|
|
|
|
void cancelStayDel(InsuranceArchivesBaseInfoPO insuranceArchivesBaseInfoPO);
|
2023-02-24 13:53:57 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 处理福利档案增量数据
|
|
|
|
|
|
*/
|
|
|
|
|
|
void handleChangeData(long currentEmployeeId);
|
2023-06-29 10:35:55 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 删除档案
|
|
|
|
|
|
* @param longs
|
|
|
|
|
|
*/
|
|
|
|
|
|
void deleteArchive(Collection<Long> longs);
|
2023-09-08 16:57:09 +08:00
|
|
|
|
|
|
|
|
|
|
void handleStayDelData(long currentEmployeeId);
|
2023-10-18 13:34:05 +08:00
|
|
|
|
|
|
|
|
|
|
PageInfo<InsuranceArchivesBaseHistoryDTO> getAdjustHistoryList(SIArchiveBaseHistoryListParam param);
|
|
|
|
|
|
|
2023-10-18 15:13:08 +08:00
|
|
|
|
PageInfo<InsuranceArchivesBaseHistoryDTO> historyListByEmployeeIdAndOperator(SIArchiveBaseHistoryListParam param);
|
2024-02-02 15:23:26 +08:00
|
|
|
|
|
|
|
|
|
|
List<Map<String, Object>> buildTableData(List<InsuranceArchivesEmployeePO> insuranceArchivesEmployeePOS);
|
|
|
|
|
|
|
|
|
|
|
|
List<WeaTableColumn> buildWeaTableColumns(List<InsuranceArchivesEmployeePO> insuranceArchivesEmployeePOS);
|
|
|
|
|
|
|
|
|
|
|
|
boolean isDiffWelBase();
|
|
|
|
|
|
|
|
|
|
|
|
List<Long> payInsuranceIds(Long socialSchemeId, Integer paymentScope);
|
|
|
|
|
|
|
|
|
|
|
|
List<Long> payInsuranceIds(Long socialSchemeId);
|
|
|
|
|
|
|
|
|
|
|
|
List<InsuranceArchivesSocialSchemePO> getSocialByEmployeeIds(List<Long> employeeIds);
|
|
|
|
|
|
List<InsuranceArchivesFundSchemePO> getFundByEmployeeIds(List<Long> employeeIds);
|
|
|
|
|
|
List<InsuranceArchivesOtherSchemePO> getOtherByEmployeeIds(List<Long> employeeIds);
|
|
|
|
|
|
|
|
|
|
|
|
Map<Long, InsuranceArchivesAccountPO> buildBatchAccount(List<Long> ids, Long paymentOrganization);
|
|
|
|
|
|
|
|
|
|
|
|
Boolean checkWelBaseLimit(Long primaryId, String paymentBaseString, Integer paymentScope);
|
|
|
|
|
|
|
|
|
|
|
|
String checkAndBuildWelBaseWithLimit(Long primaryId, String paymentBaseString, Integer paymentScope);
|
|
|
|
|
|
|
|
|
|
|
|
List<InsuranceArchivesBaseHistoryPO> dealSocialBaseAdjustInfoList(List<InsuranceArchivesSocialSchemePO> adjustList, Long creator);
|
|
|
|
|
|
List<InsuranceArchivesBaseHistoryPO> dealFundBaseAdjustInfoList(List<InsuranceArchivesFundSchemePO> adjustList, Long creator);
|
|
|
|
|
|
List<InsuranceArchivesBaseHistoryPO> dealOtherBaseAdjustInfoList(List<InsuranceArchivesOtherSchemePO> adjustList, Long creator);
|
|
|
|
|
|
|
|
|
|
|
|
void batchInsertAdjustHistory(List<InsuranceArchivesBaseHistoryPO> adjustHistoryList);
|
|
|
|
|
|
|
|
|
|
|
|
List<InsuranceArchivesBaseInfoPO> listEndDateIsNull(List<Long> employeeIds);
|
2024-03-14 14:05:36 +08:00
|
|
|
|
|
|
|
|
|
|
List<InsuranceArchivesBaseInfoPO> listStartDateIsNull(List<Long> employeeIds);
|
|
|
|
|
|
|
|
|
|
|
|
List<InsuranceArchivesSocialSchemePO> listInsuranceArchivesSocialSchemeByIds(List<Long> ids);
|
|
|
|
|
|
|
|
|
|
|
|
List<InsuranceArchivesFundSchemePO> listInsuranceArchivesFundSchemeByIds(List<Long> ids);
|
|
|
|
|
|
|
|
|
|
|
|
List<InsuranceArchivesOtherSchemePO> listInsuranceArchivesOtherSchemeByIds(List<Long> ids);
|
2022-03-15 09:34:53 +08:00
|
|
|
|
}
|