51 lines
1.6 KiB
Java
51 lines
1.6 KiB
Java
|
|
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;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 个税扣缴义务人管理范围的增量人员
|
||
|
|
* <p>Copyright: Copyright (c) 2022</p>
|
||
|
|
* <p>Company: 泛微软件</p>
|
||
|
|
*
|
||
|
|
* @author qiantao
|
||
|
|
* @version 1.0
|
||
|
|
**/
|
||
|
|
public class TaxAgentEmpChangeServiceImpl extends Service implements TaxAgentEmpChangeService {
|
||
|
|
|
||
|
|
@Resource
|
||
|
|
private TaxAgentEmpChangeMapper taxAgentEmpChangeMapper;
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public List<TaxAgentEmpChangePO> listAll() {
|
||
|
|
return taxAgentEmpChangeMapper.listAll();
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public List<TaxAgentEmpChangePO> listAllByModule(TaxAgentEmpChangeModuleEnum moduleTypeEnum) {
|
||
|
|
return taxAgentEmpChangeMapper.listSome(TaxAgentEmpChangePO.builder().moduleType(moduleTypeEnum.getValue()).build());
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public boolean deleleByIds(Collection<Long> ids) {
|
||
|
|
if (CollectionUtils.isEmpty(ids)) {
|
||
|
|
return Boolean.FALSE;
|
||
|
|
}
|
||
|
|
taxAgentEmpChangeMapper.deleteByIds(ids);
|
||
|
|
return Boolean.TRUE;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void batchInsert(List<TaxAgentEmpChangePO> taxAgentEmpChangeList) {
|
||
|
|
taxAgentEmpChangeMapper.batchInsert(taxAgentEmpChangeList);
|
||
|
|
}
|
||
|
|
}
|