package com.njcn.service.user;

import java.util.Date;
import java.util.List;

import com.njcn.pojo.user.TfLgAssByMe;
import com.njcn.pojo.user.TfLgAssDetail;
import org.apache.ibatis.annotations.Param;

import com.njcn.pojo.user.TfLgAss;

public interface TfLgAssService {
	List<TfLgAss> selectIdAll(String tfIndex);
	//新增关系
	int insertTfLgAss(@Param(value = "tfLgAss_Index")String tfLgAss_Index,@Param(value = "updatetime")Date updatetime,@Param(value = "tfIndex")String tfIndex,@Param(value = "userIndex")String userIndex,@Param(value = "logicBefore")int logicBefore,@Param(value = "logicNext")int logicNext,@Param(value = "state")Integer state);
	//选择节点
	int updateTfLgAss(@Param(value = "tfIndex")String tfIndex,@Param(value = "userIndex")String userIndex,@Param(value = "logicBefore")int logicBefore,@Param(value = "logicNext")int logicNext);
	List<TfLgAssByMe> selectByMe(String tfIndex);
    int getSubvIndex(int subIndex);
	TfLgAssDetail getBeforeNext(int subIndex, String tfIndex);
	TfLgAssDetail getKBeforeNext(int subIndex);
}
