package com.td.boss.game.complayerprofit.service;

import com.td.boss.common.service.*;
import com.td.boss.game.complayerland.pojo.ComPlayerLand;
import com.td.boss.game.complayerprofit.pojo.ComPlayerProfit;
import com.td.boss.game.complayerprofit.vo.ComPlayerProfitVo;

import java.util.List;

public interface ComPlayerProfitService extends CommonService<ComPlayerProfitVo, ComPlayerProfit, String> {

    /**
     * 获取被偷取的信息，表里面 targetId 对应自己的用户的 userId
     * @param userId
     * @param plantFlag
     * @param landId
     * @return
     */
    List<ComPlayerProfit> findByUserIdAndPlantFlagAndLandId(String userId,String plantFlag,Integer landId);

    ComPlayerProfit findByUserIdAndPlantFlag(String userId,String plantFlag);

    ComPlayerProfit findByUserIdAndOtherUserIdAndPlantFlag(String userId,String otherUserId, String plantFlag);

    ComPlayerProfit findByUserIdAndTargetIdAndLandIdAndPlantFlag(String userId,String targetId,Integer configLandId, String plantFlag);

    Double getStolenSumByOtherUserIdAndPlantFlag(String otherUserId, String plantFlag);
}
