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
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @description: 个税申报表表头
|
|
|
|
|
* @author: xiajun
|
|
|
|
|
* @modified By: xiajun
|
|
|
|
|
* @date: Created in 2022/12/5 6:36 PM
|
|
|
|
|
* @version:v1.0
|
|
|
|
|
*/
|
|
|
|
|
public class TaxReportColumnServiceImpl extends Service implements TaxReportColumnService {
|
|
|
|
|
|
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() {
|
2023-08-14 20:07:29 +08:00
|
|
|
return getTaxReportColumnMapper().listAll();
|
2023-08-11 14:20:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<TaxReportColumnPO> listByIncomeCategory(IncomeCategoryEnum incomeCategory) {
|
2023-08-14 20:07:29 +08:00
|
|
|
return getTaxReportColumnMapper().listSome(TaxReportColumnPO.builder().incomeCategory(incomeCategory.getValue().toString()).build());
|
2023-08-11 14:20:14 +08:00
|
|
|
}
|
|
|
|
|
}
|