package com.xxfc.platform.order.mapper;



import com.xxfc.platform.order.entity.CompanyWallet;
import com.xxfc.platform.order.pojo.dto.WalletDTO;
import com.xxfc.platform.order.pojo.dto.WalletDetailDTO;
import com.xxfc.platform.order.pojo.vo.CompanyWalletVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 我的钱包
 * 
 * @author zjw
 * @email 18178966185@163.com
 * @date 2019-07-11 14:14:54
 */
public interface CompanyWalletMapper extends Mapper<CompanyWallet>  {

    void  updMyWater(CompanyWallet companyWallet);


    @Update("UPDATE `company_wallet` SET `is_frozen`=#{state} WHERE `id`=#{id}" )
    void forbiddenWalletById(@Param("id") Integer id, @Param("state") Integer state);


    CompanyWallet sumAmount(WalletDetailDTO walletDetailDTO);


    List<CompanyWalletVo> selectList(WalletDTO walletDTO);
}
