package com.willalp.salary.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import com.willalp.common.utils.poi.ExcelUtil;
import com.willalp.salary.domain.HsSalarySlip;

import java.io.InputStream;
import java.util.List;

/**
 * 工资条基础Service接口
 *
 * @author willalp
 * @date 2022-07-26
 */
public interface IHsSalarySlipService extends IService<HsSalarySlip> {
    /**
     * 查询工资条基础列表
     *
     * @param hsSalarySlip 工资条基础
     * @return 工资条基础集合
     */
    List<HsSalarySlip> selectHsSalarySlipList(HsSalarySlip hsSalarySlip);

    /**
     * 查询工资条基础列表
     *
     * @param hsSalarySlip 工资条基础
     * @return 工资条基础集合
     */
    List<HsSalarySlip> excelList(HsSalarySlip hsSalarySlip);

    String importData(List<HsSalarySlip> list, ExcelUtil<HsSalarySlip> util, InputStream is, String fileName);

    /**
     * @param ids
     * @return
     */
    void updatePushStatus(String[] ids);

    /**
     * 修改工资json数据
     *
     * @param hsSalarySlip
     * @return
     */
    boolean updateSalaryJsonData(HsSalarySlip hsSalarySlip);

    /**
     * APP 用户获取工资条信息
     *
     * @param un
     * @param oc
     * @return
     */
    JSONArray appGetSalarySlipToUser(String un, String oc);
}
