| package com.xzx.gc.order.mapper;  | 
|   | 
| import com.xzx.gc.entity.PartnerAccount;  | 
| 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> {  | 
|   | 
|     void updateReduceMoneyByPartnerId(@Param("partnerId") String partnerId, @Param("money")  BigDecimal money);  | 
|   | 
|     void updateAddMoneyByPartnerId(@Param("partnerId") String partnerId, @Param("money")  BigDecimal money);  | 
|   | 
|     PartnerAccountModel queryAccountIdByUserId(String userId);  | 
|   | 
|     void updatePartnerAccount(PartnerAccountModel partnerAccountModel);  | 
|   | 
|     int addPartnerAccountLog(PartnerAccountLogModel log);  | 
|   | 
|     int addPartnerAccount(PartnerAccountModel model);  | 
|   | 
|     int updateParterAccount(@Param("money") String money, @Param("accountId") String accountId);  | 
|   | 
|     PartnerAccountModel getPartnerAccountByUserId(String userId);  | 
| } |