package com.td.boss.game.complayergoods.repository;

import com.td.boss.common.repository.*;
import com.td.boss.game.complayergoods.pojo.ComPlayerGoods;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface ComPlayerGoodsRepository extends CommonRepository<ComPlayerGoods, String> {

    List<ComPlayerGoods> findAllByPlayerId(Integer playerId);

    //获取已经有的装备
   Optional<ComPlayerGoods> findByPlayerIdAndGoodsIndexAndIsWear(Integer playerId,Integer goodsIndex,Integer isWear);
}
