2023-03-04 16:29:55 +08:00
|
|
|
package com.jsowell.pile.mapper;
|
|
|
|
|
|
|
|
|
|
import com.jsowell.pile.domain.MemberWalletInfo;
|
2023-11-09 09:15:47 +08:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
2023-11-10 15:14:54 +08:00
|
|
|
import org.springframework.stereotype.Repository;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
2023-11-21 14:57:58 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2023-11-10 15:14:54 +08:00
|
|
|
@Repository
|
2023-03-04 16:29:55 +08:00
|
|
|
public interface MemberWalletInfoMapper {
|
2023-11-08 16:00:03 +08:00
|
|
|
/**
|
|
|
|
|
* delete by primary key
|
|
|
|
|
*
|
|
|
|
|
* @param id primaryKey
|
|
|
|
|
* @return deleteCount
|
|
|
|
|
*/
|
2023-03-04 16:29:55 +08:00
|
|
|
int deleteByPrimaryKey(Integer id);
|
|
|
|
|
|
2023-11-08 16:00:03 +08:00
|
|
|
/**
|
|
|
|
|
* insert record to table
|
|
|
|
|
*
|
|
|
|
|
* @param record the record
|
|
|
|
|
* @return insert count
|
|
|
|
|
*/
|
2023-03-04 16:29:55 +08:00
|
|
|
int insert(MemberWalletInfo record);
|
|
|
|
|
|
2023-11-08 16:00:03 +08:00
|
|
|
/**
|
|
|
|
|
* insert record to table selective
|
|
|
|
|
*
|
|
|
|
|
* @param record the record
|
|
|
|
|
* @return insert count
|
|
|
|
|
*/
|
2023-03-04 16:29:55 +08:00
|
|
|
int insertSelective(MemberWalletInfo record);
|
|
|
|
|
|
2023-11-08 16:00:03 +08:00
|
|
|
/**
|
|
|
|
|
* select by primary key
|
|
|
|
|
*
|
|
|
|
|
* @param id primary key
|
|
|
|
|
* @return object by primary key
|
|
|
|
|
*/
|
2023-03-04 16:29:55 +08:00
|
|
|
MemberWalletInfo selectByPrimaryKey(Integer id);
|
|
|
|
|
|
2023-11-08 16:00:03 +08:00
|
|
|
/**
|
|
|
|
|
* update record selective
|
|
|
|
|
*
|
|
|
|
|
* @param record the updated record
|
|
|
|
|
* @return update count
|
|
|
|
|
*/
|
2023-03-04 16:29:55 +08:00
|
|
|
int updateByPrimaryKeySelective(MemberWalletInfo record);
|
|
|
|
|
|
2023-11-08 16:00:03 +08:00
|
|
|
/**
|
|
|
|
|
* update record
|
|
|
|
|
*
|
|
|
|
|
* @param record the updated record
|
|
|
|
|
* @return update count
|
|
|
|
|
*/
|
2023-03-04 16:29:55 +08:00
|
|
|
int updateByPrimaryKey(MemberWalletInfo record);
|
2023-11-08 16:00:03 +08:00
|
|
|
|
2023-11-09 09:15:47 +08:00
|
|
|
// MemberWalletInfo selectByMemberId(String memberId);
|
|
|
|
|
|
2023-11-11 17:08:01 +08:00
|
|
|
/**
|
|
|
|
|
* 根据会员id和目标运营商id查询用户钱包信息
|
|
|
|
|
* @param memberId
|
|
|
|
|
* @param merchantId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-11-09 09:15:47 +08:00
|
|
|
MemberWalletInfo selectByMemberId(@Param("memberId") String memberId, @Param("merchantId") String merchantId);
|
2023-11-21 14:57:58 +08:00
|
|
|
|
|
|
|
|
List<MemberWalletInfo> selectByMemberWalletList(@Param("memberId") String memberId);
|
2023-03-04 16:29:55 +08:00
|
|
|
}
|