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 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 taxAgentEmpChangeMapper; @Override public List listAll() { return taxAgentEmpChangeMapper.listAll(); } @Override public List listAllByModule(TaxAgentEmpChangeModuleEnum moduleTypeEnum) { return taxAgentEmpChangeMapper.listSome(TaxAgentEmpChangePO.builder().moduleType(moduleTypeEnum.getValue()).build()); } @Override public boolean deleleByIds(Collection ids) { if (CollectionUtils.isEmpty(ids)) { return Boolean.FALSE; } taxAgentEmpChangeMapper.deleteByIds(ids); return Boolean.TRUE; } @Override public void batchInsert(List taxAgentEmpChangeList) { taxAgentEmpChangeMapper.batchInsert(taxAgentEmpChangeList); } }