MallBizOrderDao.java 1.15 KB
package com.diligrp.cashier.mall.dao;


import com.diligrp.cashier.mall.model.MallBizOrder;
import com.diligrp.cashier.shared.mybatis.MybatisMapperSupport;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * MallBizOrderDao
 *
 * @author dengwei
 */
public interface MallBizOrderDao extends MybatisMapperSupport {
    int deleteByPrimaryKey(Long id);

    int insert(MallBizOrder record);

    int insertSelective(MallBizOrder record);

    MallBizOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MallBizOrder record);

    int updateByPrimaryKey(MallBizOrder record);

    int update(MallBizOrder mallBizOrder);

    MallBizOrder getByOrderId(@Param("orderId") String orderId);

    void batchInsert(@Param("list") List<MallBizOrder> mallBizOrders);

    MallBizOrder findByOrderIdAndTradeId(String orderId, String tradeId);

    List<MallBizOrder> listByOrderIds(@Param("list") List<String> list, @Param("source") Integer source);

    void batchUpdate(@Param("list") List<MallBizOrder> updateOrders, @Param("source") Integer source);

    void updateByIds(@Param("ids") List<Long> bizOrderIds, @Param("state") Integer state);
}