/// <summary>
 /// 查询UI
 /// </summary>
 protected void UIForQuery()
 {
     GUILayout.BeginHorizontal();
     queryBuildingType = EditorUI.GUIEnum <BuildingTypeEnum>("建筑类型", (int)queryBuildingType);
     if (EditorUI.GUIButton("查询建筑", 150))
     {
         listQueryData = serviceForBuildingInfo.QueryDataById((int)queryBuildingType);
     }
     GUILayout.Space(50);
     if (EditorUI.GUIButton("查询所有建筑", 150))
     {
         listQueryData = serviceForBuildingInfo.QueryAllData();
     }
     GUILayout.EndHorizontal();
 }
Example #2
0
    /// <summary>
    /// 根据ID获取数据
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    public List <BuildingInfoBean> GetBuildingInfoDataById(long id)
    {
        List <BuildingInfoBean> listData = serviceBuildingInfo.QueryDataById(id);

        return(listData);
    }