| package com.xzx.gc.pay.mapper;  | 
|   | 
| import com.xzx.gc.entity.PartnerAccount;  | 
| import com.xzx.gc.model.admin.AccountMoneyModel;  | 
| import com.xzx.gc.model.admin.PartnerAccountLogModel;  | 
| import com.xzx.gc.model.admin.PartnerAccountModel;  | 
| import com.xzx.gc.util.GcMapper;  | 
| import org.apache.ibatis.annotations.Param;  | 
|   | 
| import java.math.BigDecimal;  | 
|   | 
| public interface PartnerAccountMapper extends GcMapper<PartnerAccount> {  | 
|   | 
|     PartnerAccountModel getPartnerAccountByUserId(String userId);  | 
|   | 
|     void updatePartnerAccount(PartnerAccountModel partnerAccountModel);  | 
|   | 
|     int updateParterAccountMoney(@Param("money") String money, @Param("accountId") String accountId);  | 
|   | 
|     AccountMoneyModel queryPartnerByAccountId(AccountMoneyModel model);  | 
|   | 
|     void updateReduceMoneyByAccountId(@Param("accountId") String accountId, @Param("money") BigDecimal money);  | 
|   | 
|     void updateReduceMoneyLimitByAccountId(@Param("accountId") String accountId, @Param("money") BigDecimal money,@Param("overdraftLimit") BigDecimal overdraftLimit);  | 
|   | 
|     void updateReduceMoneyResetLimitByAccountId(@Param("accountId") String accountId, @Param("money") BigDecimal money);  | 
|   | 
|     void updateReduceMoneyByPartnerId(@Param("partnerId") String partnerId, @Param("money")  BigDecimal money);  | 
|   | 
|     void updateAddMoneyLimitByAccountId(@Param("accountId") String accountId, @Param("money") BigDecimal money,@Param("overdraftLimit") BigDecimal overdraftLimit);  | 
|   | 
|     void updateAddMoneyResetFixLimitByAccountId(@Param("accountId") String accountId, @Param("money") BigDecimal money,@Param("overdraftLimit") BigDecimal overdraftLimit);  | 
|   | 
|     void updateAddMoneyByPartnerId(@Param("partnerId") String partnerId, @Param("money")  BigDecimal money);  | 
|   | 
|   | 
| } |