/// <summary> /// 绑定用户词汇表 /// </summary> public string InsertLexicon(string userid, string Lexicon) { if (IsUserLexicon(userid, Lexicon) == true) { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into tbl_WordUser(WID,USID,Level,OrderBy) select ID," + userid + ",0,0 from tbl_Word where Lexicon='" + Lexicon + "'"); int j = DataSource.ExecuteSql(strSql.ToString(), conn); if (j == 0) { return(JsonMessage.FailResponse("未改变任何数据集!")); } else { return(JsonMessage.SuccessString("操作成功!")); } } else { return(JsonMessage.FailString("已录入过该词汇表!")); } }