package com.engine.salary.service.impl; import com.engine.core.impl.Service; import com.engine.salary.entity.taxagent.po.TaxAgentEmpChangePO; 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 org.apache.commons.collections4.CollectionUtils; import javax.annotation.Resource; import java.util.Collection; import java.util.List; /** * 个税扣缴义务人管理范围的增量人员 *

Copyright: Copyright (c) 2022

*

Company: 泛微软件

* * @author qiantao * @version 1.0 **/ public class TaxAgentEmpChangeServiceImpl extends Service implements TaxAgentEmpChangeService { @Resource private TaxAgentEmpChangeMapper getTaxAgentEmpChangeMapper() { return MapperProxyFactory.getProxy(TaxAgentEmpChangeMapper.class); } @Override public List listAll() { return getTaxAgentEmpChangeMapper().listAll(); } @Override public List listAllByModule(TaxAgentEmpChangeModuleEnum moduleTypeEnum) { return getTaxAgentEmpChangeMapper().listSome(TaxAgentEmpChangePO.builder().moduleType(moduleTypeEnum.getValue()).build()); } @Override public boolean deleleByIds(Collection ids) { if (CollectionUtils.isEmpty(ids)) { return Boolean.FALSE; } getTaxAgentEmpChangeMapper().deleteByIds(ids); return Boolean.TRUE; } @Override public void batchInsert(List taxAgentEmpChangeList) { getTaxAgentEmpChangeMapper().batchInsert(taxAgentEmpChangeList); } }