RefundVoucherMapper.java 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package com.ylx.massage.mapper;
  2. import java.util.List;
  3. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4. import org.apache.ibatis.annotations.Param;
  5. import com.ylx.massage.domain.RefundVoucher;
  6. /**
  7. * 退款单(RefundVoucher)表数据库访问层
  8. *
  9. * @author makejava
  10. * @since 2024-07-02 17:42:09
  11. */
  12. public interface RefundVoucherMapper extends BaseMapper<RefundVoucher> {
  13. /**
  14. * 批量新增数据(MyBatis原生foreach方法)
  15. *
  16. * @param entities List<RefundVoucher> 实例对象列表
  17. * @return 影响行数
  18. */
  19. int insertBatch(@Param("entities") List<RefundVoucher> entities);
  20. /**
  21. * 批量新增或按主键更新数据(MyBatis原生foreach方法)
  22. *
  23. * @param entities List<RefundVoucher> 实例对象列表
  24. * @return 影响行数
  25. * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
  26. */
  27. int insertOrUpdateBatch(@Param("entities") List<RefundVoucher> entities);
  28. }