package com.nova.sankuai.infra.mapper;
|
|
import com.nova.sankuai.domain.dto.AlipayChannelDailyLimitDTO;
|
import com.nova.sankuai.domain.dto.AlipayOrderQueryDTO;
|
import com.nova.sankuai.domain.entity.AlipayOrderInfo;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.math.BigDecimal;
|
|
@Mapper
|
public interface AlipayOrderInfoMapper {
|
/**
|
* This method was generated by MyBatis Generator.
|
* This method corresponds to the database table alipay_order_info
|
*
|
* @mbg.generated
|
*/
|
int deleteByPrimaryKey(Long id);
|
|
/**
|
* This method was generated by MyBatis Generator.
|
* This method corresponds to the database table alipay_order_info
|
*
|
* @mbg.generated
|
*/
|
int insert(AlipayOrderInfo row);
|
|
/**
|
* This method was generated by MyBatis Generator.
|
* This method corresponds to the database table alipay_order_info
|
*
|
* @mbg.generated
|
*/
|
int insertSelective(AlipayOrderInfo row);
|
|
/**
|
* This method was generated by MyBatis Generator.
|
* This method corresponds to the database table alipay_order_info
|
*
|
* @mbg.generated
|
*/
|
AlipayOrderInfo selectByPrimaryKey(Long id);
|
|
/**
|
* This method was generated by MyBatis Generator.
|
* This method corresponds to the database table alipay_order_info
|
*
|
* @mbg.generated
|
*/
|
int updateByPrimaryKeySelective(AlipayOrderInfo row);
|
|
/**
|
* This method was generated by MyBatis Generator.
|
* This method corresponds to the database table alipay_order_info
|
*
|
* @mbg.generated
|
*/
|
int updateByPrimaryKey(AlipayOrderInfo row);
|
|
AlipayOrderInfo selectByChannelIdAndOrderId(AlipayOrderQueryDTO queryDTO);
|
|
AlipayChannelDailyLimitDTO checkChannelIdTradingLimit(@Param("channelId") String channelId,
|
@Param("from") String from,
|
@Param("to") String to,
|
@Param("dailyLimit") BigDecimal dailyLimit);
|
|
int insertSelectiveWithVers(@Param("inst") AlipayOrderInfo order, @Param("from") String from, @Param("to") String to);
|
|
int checkTodayHasTradeOrder(@Param("channelId") String channelId,
|
@Param("from") String from,
|
@Param("to") String to);
|
|
int updateByOrderSelective(AlipayOrderInfo order);
|
}
|