src/main/java/mapper/ProductMapper.java
(完整代码) 1KBpackage mapper;
import java.util.List;
import model.Product;
import model.ProductExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
@Repository
public interface ProductMapper {
long countByExample(ProductExample example);
int deleteByExample(ProductExample example);
int deleteByPrimaryKey(Integer id);
int insert(Product record);
int insertSelective(Product record);
List<Product> selectByExample(ProductExample example);
@Select("select * from Product where cid = #{cid}")
List<Product> selectByCid(Integer cid);
@Select("select * from Product where name like #{name}")
List<Product> selectByName(String name);
Product selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") Product record, @Param("example") ProductExample example);
int updateByExample(@Param("record") Product record, @Param("example") ProductExample example);
int updateByPrimaryKeySelective(Product record);
int updateByPrimaryKey(Product record);
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
