fix人员同步
This commit is contained in:
parent
926bfbce16
commit
8d6a3c41d7
|
|
@ -76,6 +76,7 @@ delete from hrsa_scheme_detail where 1=1
|
|||
delete from hrsa_social_archives where 1=1
|
||||
;
|
||||
|
||||
|
||||
delete from hrsa_social_security_scheme where 1=1
|
||||
;
|
||||
delete from hrsa_sys_tax_rate_base where 1=1
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@
|
|||
FROM
|
||||
hrmresource e
|
||||
LEFT JOIN hrmdepartment d ON e.departmentid = d.ID
|
||||
where e.accounttype is null
|
||||
where e.accounttype is null or e.accounttype = 0
|
||||
)a
|
||||
LEFT JOIN(
|
||||
SELECT
|
||||
|
|
|
|||
|
|
@ -654,8 +654,8 @@ public class SISchemeServiceImpl extends Service implements SISchemeService {
|
|||
private String userStateExchange(String userState) {
|
||||
UserStatusEnum[] values = UserStatusEnum.values();
|
||||
for (UserStatusEnum value : values) {
|
||||
if (value.getDescription().equals(userState)) {
|
||||
return value.getValue() + "";
|
||||
if (value.getValue().equals(Integer.valueOf(userState))) {
|
||||
return value.getDescription() + "";
|
||||
}
|
||||
}
|
||||
return userState;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import com.engine.salary.enums.taxagent.TaxAgentEmpChangeModuleEnum;
|
|||
import com.engine.salary.mapper.taxagent.TaxAgentEmpChangeMapper;
|
||||
import com.engine.salary.service.TaxAgentEmpChangeService;
|
||||
import com.engine.salary.util.db.MapperProxyFactory;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
|
@ -49,6 +50,7 @@ public class TaxAgentEmpChangeServiceImpl extends Service implements TaxAgentEmp
|
|||
|
||||
@Override
|
||||
public void batchInsert(List<TaxAgentEmpChangePO> taxAgentEmpChangeList) {
|
||||
getTaxAgentEmpChangeMapper().batchInsert(taxAgentEmpChangeList);
|
||||
List<List<TaxAgentEmpChangePO>> partition = Lists.partition(taxAgentEmpChangeList, 100);
|
||||
partition.forEach(getTaxAgentEmpChangeMapper()::batchInsert);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,11 +141,13 @@ public class TaxAgentEmpServiceImpl extends Service implements TaxAgentEmpServic
|
|||
// 关联表====================================================
|
||||
// 新增
|
||||
if (CollectionUtils.isNotEmpty(taxAgentEmployeeAddList)) {
|
||||
getTaxAgentEmpMapper().batchInsert(taxAgentEmployeeAddList);
|
||||
List<List<TaxAgentEmpPO>> partition = Lists.partition(taxAgentEmployeeAddList, 100);
|
||||
partition.forEach(getTaxAgentEmpMapper()::batchInsert);
|
||||
}
|
||||
// 删除
|
||||
if (CollectionUtils.isNotEmpty(taxAgentEmployeeDelIds)) {
|
||||
getTaxAgentEmpMapper().deleteByIds(taxAgentEmployeeDelIds);
|
||||
List<List<Long>> partition = Lists.partition(taxAgentEmployeeDelIds, 100);
|
||||
partition.forEach(getTaxAgentEmpMapper()::deleteByIds);
|
||||
}
|
||||
// 增量表====================================================
|
||||
if (CollectionUtils.isNotEmpty(taxAgentEmpChangeList)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue