This commit is contained in:
19991905653
2024-04-03 09:05:50 +08:00
8 changed files with 785 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
package com.chaozhanggui.system.cashierservice.dao;
import com.chaozhanggui.system.cashierservice.entity.TbPrintPCMachine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
@Mapper
public interface TbPrintPCMachineMapper {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
TbPrintPCMachine queryById(Integer id);
/**
* 查询数据
*
* @param tbPrintMachine 查询条件
* @return 对象列表
*/
List<TbPrintPCMachine> queryAll(TbPrintPCMachine tbPrintMachine);
/**
* 新增数据
*
* @param tbPrintMachine 实例对象
* @return 影响行数
*/
int insert(TbPrintPCMachine tbPrintMachine);
/**
* 批量新增数据MyBatis原生foreach方法
*
* @param entities List<TbPrintMachine> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TbPrintPCMachine> entities);
/**
* 修改数据
*
* @param tbPrintMachine 实例对象
* @return 影响行数
*/
int update(TbPrintPCMachine tbPrintMachine);
/**
* 通过主键删除数据
*
* @param id 主键
* @return 影响行数
*/
int deleteById(Integer id);
}