package com.ruoyi.pay.mapper;

import com.ruoyi.pay.domain.PayButieEmplyee;
import com.ruoyi.pay.domain.vo.PayButieEmplyeeVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.math.BigDecimal;

/**
 * 补贴和员工联系Mapper接口
 *
 * @author ruoyi
 * @date 2025-05-12
 */
public interface PayButieEmplyeeMapper extends BaseMapperPlus<PayButieEmplyeeMapper, PayButieEmplyee, PayButieEmplyeeVo> {

    @Update("UPDATE pay_butie_emplyee SET money = #{money} WHERE butie_id = #{btid} AND employee_id = #{empId} AND date = #{date} ")
    Integer updateButieEmplyeeByDate(@Param("btid") Long btid, @Param("empId") Long empId, @Param("date") String date, @Param("money") BigDecimal money);
}
