mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
97 lines
2.4 KiB
Java
97 lines
2.4 KiB
Java
package com.jsowell.pile.mapper;
|
||
|
||
import com.jsowell.pile.domain.MemberWalletLog;
|
||
import com.jsowell.pile.dto.UniAppQueryMemberBalanceDTO;
|
||
import com.jsowell.pile.vo.uniapp.customer.MemberBalanceVO;
|
||
import com.jsowell.pile.vo.uniapp.customer.MemberWalletLogVO;
|
||
import org.apache.ibatis.annotations.Param;
|
||
import org.springframework.stereotype.Repository;
|
||
|
||
import java.util.List;
|
||
|
||
@Repository
|
||
public interface MemberWalletLogMapper {
|
||
/**
|
||
* delete by primary key
|
||
*
|
||
* @param id primaryKey
|
||
* @return deleteCount
|
||
*/
|
||
int deleteByPrimaryKey(Integer id);
|
||
|
||
/**
|
||
* insert record to table
|
||
*
|
||
* @param record the record
|
||
* @return insert count
|
||
*/
|
||
int insert(MemberWalletLog record);
|
||
|
||
int insertOrUpdate(MemberWalletLog record);
|
||
|
||
int insertOrUpdateSelective(MemberWalletLog record);
|
||
|
||
/**
|
||
* insert record to table selective
|
||
*
|
||
* @param record the record
|
||
* @return insert count
|
||
*/
|
||
int insertSelective(MemberWalletLog record);
|
||
|
||
/**
|
||
* select by primary key
|
||
*
|
||
* @param id primary key
|
||
* @return object by primary key
|
||
*/
|
||
MemberWalletLog selectByPrimaryKey(Integer id);
|
||
|
||
/**
|
||
* update record selective
|
||
*
|
||
* @param record the updated record
|
||
* @return update count
|
||
*/
|
||
int updateByPrimaryKeySelective(MemberWalletLog record);
|
||
|
||
/**
|
||
* update record
|
||
*
|
||
* @param record the updated record
|
||
* @return update count
|
||
*/
|
||
int updateByPrimaryKey(MemberWalletLog record);
|
||
|
||
int updateBatch(List<MemberWalletLog> list);
|
||
|
||
int batchInsert(@Param("list") List<MemberWalletLog> list);
|
||
|
||
int updateBatchSelective(List<MemberWalletLog> list);
|
||
|
||
/**
|
||
* 查询用户账户余额变动信息
|
||
*
|
||
* @param memberId 会员id
|
||
* @param type 1-进账;2-出账 不传查全部
|
||
*/
|
||
List<MemberWalletLogVO> getMemberBalanceChanges(@Param("memberId") String memberId, @Param("type") String type);
|
||
|
||
/**
|
||
* 小程序查询会员余额明细
|
||
*
|
||
* @param dto
|
||
* @return
|
||
*/
|
||
List<MemberWalletLogVO> getMemberWalletDetail(@Param("dto") UniAppQueryMemberBalanceDTO dto);
|
||
|
||
/**
|
||
* 批量查询用户可退款金额
|
||
*
|
||
* @param memberIds
|
||
* @return
|
||
*/
|
||
List<MemberBalanceVO> getMemberRefundAmount(List<String> memberIds);
|
||
|
||
List<MemberWalletLog> getOrderRecord(@Param("orderCode") String orderCode, @Param("type") String type);
|
||
} |