41 lines
1.6 KiB
Java
41 lines
1.6 KiB
Java
|
|
package com.engine.salary.service.impl;
|
||
|
|
|
||
|
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||
|
|
import com.engine.core.impl.Service;
|
||
|
|
import com.engine.salary.entity.taxdeclaration.po.TaxReportColumnPO;
|
||
|
|
import com.engine.salary.enums.salarysob.IncomeCategoryEnum;
|
||
|
|
import com.engine.salary.service.TaxReportColumnService;
|
||
|
|
import com.weaver.hrm.salary.constant.SalaryConstant;
|
||
|
|
import com.weaver.hrm.salary.enums.sicategory.DeleteTypeEnum;
|
||
|
|
|
||
|
|
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 {
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public List<TaxReportColumnPO> listAll() {
|
||
|
|
return new LambdaQueryChainWrapper<>(baseMapper)
|
||
|
|
.eq(TaxReportColumnPO::getTenantKey, SalaryConstant.DEFAULT_TENANT_KEY)
|
||
|
|
.eq(TaxReportColumnPO::getDeleteType, DeleteTypeEnum.NOT_DELETED.getValue())
|
||
|
|
.orderByAsc(TaxReportColumnPO::getId)
|
||
|
|
.list();
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public List<TaxReportColumnPO> listByIncomeCategory(IncomeCategoryEnum incomeCategory) {
|
||
|
|
return new LambdaQueryChainWrapper<>(baseMapper)
|
||
|
|
.eq(TaxReportColumnPO::getTenantKey, SalaryConstant.DEFAULT_TENANT_KEY)
|
||
|
|
.eq(TaxReportColumnPO::getDeleteType, DeleteTypeEnum.NOT_DELETED.getValue())
|
||
|
|
.eq(TaxReportColumnPO::getIncomeCategory, incomeCategory.getValue())
|
||
|
|
.orderByAsc(TaxReportColumnPO::getId)
|
||
|
|
.list();
|
||
|
|
}
|
||
|
|
}
|