package com.engine.salary.service.impl;

import com.engine.core.impl.Service;
import com.engine.salary.biz.SalarySobDefaultItemBiz;
import com.engine.salary.entity.salarysob.po.SalarySobDefaultItemPO;
import com.engine.salary.enums.salarysob.IncomeCategoryEnum;
import com.engine.salary.service.SalarySobDefaultItemService;

import java.util.List;

/**
 * 薪资账套默认的薪资项目
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
public class SalarySobDefaultItemServiceImpl extends Service implements SalarySobDefaultItemService {

    private SalarySobDefaultItemBiz salarySobDefaultItemMapper = new SalarySobDefaultItemBiz();

    @Override
    public List<SalarySobDefaultItemPO> listByIncomeCategory(IncomeCategoryEnum incomeCategory) {

        return salarySobDefaultItemMapper.listByIncomeCategory(SalarySobDefaultItemPO.builder().incomeCategory(incomeCategory.getValue()).build());

    }
}
