src/main/java/mapper/OrderitemMapper.java

(完整代码) 1KB

package mapper;

import java.util.List;
import model.Orderitem;
import model.OrderitemExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface OrderitemMapper {
    long countByExample(OrderitemExample example);

    int deleteByExample(OrderitemExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Orderitem record);

    int insertSelective(Orderitem record);

    List<Orderitem> selectByExample(OrderitemExample example);

    @Select("select * from OrderItem where oid=#{orderId}")
    List<Orderitem> selectByOrder(Integer orderId);

    @Select("select sum(number) from OrderItem where oid=#{orderId}")
    Integer countNumber(Integer orderId);

    @Select("select count(*) from OrderItem where pid = #{pid}")
    int countByPid(Integer pid);

    Orderitem selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Orderitem record, @Param("example") OrderitemExample example);

    int updateByExample(@Param("record") Orderitem record, @Param("example") OrderitemExample example);

    int updateByPrimaryKeySelective(Orderitem record);

    int updateByPrimaryKey(Orderitem record);
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。