|
|
@@ -99,7 +99,7 @@ namespace Services
|
|
|
public string makeDatabaseField([FromBody] MakeDatabaseFieldDto param, DatabaseTable table, TokenModel loginUser)
|
|
|
{
|
|
|
string tableName = table.tableName;
|
|
|
- List<int> fieldIds = Tools.SpitIntArrary(param.id.Replace("[", "").Replace("]", "")).ToList();
|
|
|
+ List<int> fieldIds = param.id.ToList();
|
|
|
List<DatabaseField> fields = GetList(m => fieldIds.Contains(m.id));
|
|
|
|
|
|
Dictionary<string, object> pushData = new Dictionary<string, object>();pushData.Add("since", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
|
@@ -107,7 +107,7 @@ namespace Services
|
|
|
pushData.Add("opType", "add");
|
|
|
pushData.Add("tableName", tableName);
|
|
|
pushData.Add("databaseField", fields);
|
|
|
- pushData.Add("fileName", Function.MD5_16(param.id));
|
|
|
+ pushData.Add("fileName", Function.MD5_16(string.Join(",", param.id)));
|
|
|
return MakeHelper.Make(pushData, "dbField", "dbField", loginUser);
|
|
|
}
|
|
|
}
|