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;
|
2024-07-16 14:07:06 +08:00
|
|
|
|
import com.jsowell.pile.vo.uniapp.customer.MemberBalanceVO;
|
|
|
|
|
|
import com.jsowell.pile.vo.uniapp.customer.MemberWalletLogVO;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
2024-01-02 09:49:56 +08:00
|
|
|
|
import org.springframework.stereotype.Repository;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
2024-01-02 09:49:56 +08:00
|
|
|
|
@Repository
|
2023-03-04 16:29:55 +08:00
|
|
|
|
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 batchInsert(@Param("list") List<MemberWalletLog> list);
|
2023-03-04 16:29:55 +08:00
|
|
|
|
|
2023-11-08 15:58:24 +08:00
|
|
|
|
int updateBatchSelective(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);
|
2023-09-15 14:25:51 +08:00
|
|
|
|
|
2023-11-28 14:46:48 +08:00
|
|
|
|
List<MemberWalletLog> getOrderRecord(@Param("orderCode") String orderCode, @Param("type") String type);
|
2023-03-04 16:29:55 +08:00
|
|
|
|
}
|