public static string updateDifferReason(string dataJson, string year, string month) { List <Dictionary <string, string> > dictList = JsonHelper.DeserializeJsonToObject <List <Dictionary <string, string> > >(dataJson); List <string> conditionList = new List <string>(); ArrayList tempDictList = new ArrayList(); foreach (Dictionary <string, string> dict in dictList) { Dictionary <string, string> tempDict = new Dictionary <string, string>(); tempDict.Add("DifferReason", dict["differreason"]); tempDict.Add("Remark", dict["remark"]); tempDictList.Add(tempDict); string conditionSql = "where "; string code = dict["code"]; conditionSql += "code = '" + code + "' and year = " + year + " and month = " + month; conditionList.Add(conditionSql); } ImportPurchaseSrv.updateDifferReason(tempDictList, conditionList); return(null); }