xiaoyong931011
2021-11-17 88d248e32b0a40e81d0b6c3a841b2faee5ffcabd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
 
 
}