package jnpf.personnels;

import jnpf.model.personnels.dto.rewardspunishments.FtbPersonnelSalaryRewardDTO;
import jnpf.model.personnels.dto.salary.FtbSalaryMetaDataQueryDto;
import jnpf.model.personnels.vo.rewardspunishments.FtbPersonnelSalaryRewardVO;
import jnpf.model.personnels.vo.rewardspunishments.FtbXcEmployeeRewardRecordsVO;
import jnpf.util.NoDataSourceBind;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 查询指定用户，指定月份内，被奖励和处罚的合计
 */
@FeignClient(name = "jnpf-ftb", path = "/ftb-personnels-rewards-punishments")
public interface FtbPersonnelsRewardsPunishmentsApi {

    /**
     * 薪酬奖励合计
     */
    @PostMapping(value = "/salary-reward")
    List<FtbPersonnelSalaryRewardVO> salaryReward(@RequestBody FtbPersonnelSalaryRewardDTO ftbPersonnelSalaryRewardDTO);

    /**
     * 薪酬惩罚合计
     */
    @PostMapping(value = "/pay-penalty")
    List<FtbPersonnelSalaryRewardVO> totalSalaryPenalty(@RequestBody FtbPersonnelSalaryRewardDTO ftbPersonnelSalaryRewardDTO);

    /**
     * 薪酬获取奖励和惩罚api
     */
    @PostMapping(value = "/salaryMetaDataQuery")
    @NoDataSourceBind
    BigDecimal salaryMetaDataQuery(@RequestBody FtbSalaryMetaDataQueryDto dto);

    /**
     * 薪酬获取奖励和惩罚api(批量)
     */
    @PostMapping(value = "/salary-meta-data-batch-query")
    @NoDataSourceBind
    List<FtbXcEmployeeRewardRecordsVO> salaryBatchMetaDataQuery(@RequestBody FtbSalaryMetaDataQueryDto dto);

}
