2023-08-11 14:20:14 +08:00
|
|
|
package com.engine.salary.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.engine.core.impl.Service;
|
|
|
|
|
import com.engine.salary.entity.taxdeclaration.po.TaxReportColumnPO;
|
|
|
|
|
import com.engine.salary.enums.salarysob.IncomeCategoryEnum;
|
2023-08-14 20:07:29 +08:00
|
|
|
import com.engine.salary.mapper.taxdeclaration.TaxReportColumnMapper;
|
2023-08-11 14:20:14 +08:00
|
|
|
import com.engine.salary.service.TaxReportColumnService;
|
2023-08-14 20:07:29 +08:00
|
|
|
import com.engine.salary.util.db.MapperProxyFactory;
|
2023-08-11 14:20:14 +08:00
|
|
|
|
2024-01-04 15:35:23 +08:00
|
|
|
import java.util.Arrays;
|
2023-08-11 14:20:14 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-23 16:49:45 +08:00
|
|
|
* 个税申报表表头
|
|
|
|
|
* <p>Copyright: Copyright (c) 2023</p>
|
|
|
|
|
* <p>Company: 泛微软件</p>
|
|
|
|
|
*
|
|
|
|
|
* @author qiantao
|
|
|
|
|
* @version 1.0
|
|
|
|
|
**/
|
2024-01-04 15:35:23 +08:00
|
|
|
public class TaxReportColumnServiceImpl extends Service implements TaxReportColumnService {
|
2023-08-11 14:20:14 +08:00
|
|
|
|
2023-08-14 20:07:29 +08:00
|
|
|
private TaxReportColumnMapper getTaxReportColumnMapper() {
|
|
|
|
|
return MapperProxyFactory.getProxy(TaxReportColumnMapper.class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2023-08-11 14:20:14 +08:00
|
|
|
@Override
|
|
|
|
|
public List<TaxReportColumnPO> listAll() {
|
2024-01-04 15:35:23 +08:00
|
|
|
return getTaxReportColumnMapper().listAll();
|
2023-08-11 14:20:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2024-01-04 15:35:23 +08:00
|
|
|
public List<TaxReportColumnPO> listByIncomeCategory(IncomeCategoryEnum incomeCategory, Integer... contrastTypes) {
|
|
|
|
|
return getTaxReportColumnMapper().listSome(TaxReportColumnPO.builder().contrastTypes(Arrays.asList(contrastTypes)).incomeCategory(incomeCategory.getValue().toString()).build());
|
2023-08-11 14:20:14 +08:00
|
|
|
}
|
|
|
|
|
}
|