Files
jsowell-charger-web/jsowell-pile/src/main/java/com/jsowell/pile/mapper/MemberWalletLogMapper.java

95 lines
2.3 KiB
Java
Raw Normal View History

2023-03-04 16:29:55 +08:00
package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.MemberWalletLog;
2023-07-22 15:23:31 +08:00
import com.jsowell.pile.dto.UniAppQueryMemberBalanceDTO;
2023-08-21 14:38:30 +08:00
import com.jsowell.pile.vo.uniapp.MemberBalanceVO;
2023-03-04 16:29:55 +08:00
import com.jsowell.pile.vo.uniapp.MemberWalletLogVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface MemberWalletLogMapper {
2023-09-15 14:00:45 +08:00
/**
* delete by primary key
*
* @param id primaryKey
* @return deleteCount
*/
int deleteByPrimaryKey(Integer id);
2023-03-04 16:29:55 +08:00
2023-09-15 14:00:45 +08:00
/**
* insert record to table
*
* @param record the record
* @return insert count
*/
int insert(MemberWalletLog record);
2023-03-04 16:29:55 +08:00
2023-11-08 11:28:57 +08:00
int insertOrUpdate(MemberWalletLog record);
int insertOrUpdateSelective(MemberWalletLog record);
2023-09-15 14:00:45 +08:00
/**
* insert record to table selective
*
* @param record the record
* @return insert count
*/
int insertSelective(MemberWalletLog record);
2023-03-04 16:29:55 +08:00
2023-09-15 14:00:45 +08:00
/**
* select by primary key
*
* @param id primary key
* @return object by primary key
*/
MemberWalletLog selectByPrimaryKey(Integer id);
2023-03-04 16:29:55 +08:00
2023-09-15 14:00:45 +08:00
/**
* update record selective
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKeySelective(MemberWalletLog record);
2023-03-04 16:29:55 +08:00
2023-09-15 14:00:45 +08:00
/**
* update record
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKey(MemberWalletLog record);
2023-03-04 16:29:55 +08:00
2023-11-08 11:28:57 +08:00
int updateBatch(List<MemberWalletLog> list);
int updateBatchSelective(List<MemberWalletLog> list);
int batchInsert(@Param("list") List<MemberWalletLog> list);
2023-03-04 16:29:55 +08:00
/**
* 查询用户账户余额变动信息
2023-09-15 14:00:45 +08:00
*
2023-03-04 16:29:55 +08:00
* @param memberId 会员id
2023-09-15 14:00:45 +08:00
* @param type 1-进账2-出账 不传查全部
2023-03-04 16:29:55 +08:00
*/
List<MemberWalletLogVO> getMemberBalanceChanges(@Param("memberId") String memberId, @Param("type") String type);
2023-07-22 15:23:31 +08:00
/**
* 小程序查询会员余额明细
2023-09-15 14:00:45 +08:00
*
2023-07-22 15:23:31 +08:00
* @param dto
* @return
*/
List<MemberWalletLogVO> getMemberWalletDetail(@Param("dto") UniAppQueryMemberBalanceDTO dto);
2023-08-10 15:19:45 +08:00
/**
* 批量查询用户可退款金额
2023-09-15 14:00:45 +08:00
*
2023-08-10 15:19:45 +08:00
* @param memberIds
* @return
*/
List<MemberBalanceVO> getMemberRefundAmount(List<String> memberIds);
MemberWalletLog getOrderRecord(@Param("orderCode") String orderCode, @Param("type") String type);
2023-03-04 16:29:55 +08:00
}