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-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
|
|
|
|
|
|
|
|
|
|
void batchInsert(@Param("list") List<MemberWalletLog> logList);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 查询用户账户余额变动信息
|
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);
|
2023-09-15 14:25:51 +08:00
|
|
|
|
|
|
|
|
|
|
MemberWalletLog getOrderRecord(@Param("orderCode") String orderCode, @Param("type") String type);
|
2023-03-04 16:29:55 +08:00
|
|
|
|
}
|