|
|
@@ -199,7 +199,7 @@ namespace Services
|
|
|
/// <returns>生成</returns>
|
|
|
public string makeDatabaseTable([FromBody] MakeDatabaseTableDto param, TokenModel loginUser)
|
|
|
{
|
|
|
- List<int> tableIds = Tools.SpitIntArrary(param.id.Replace("[", "").Replace("]", "")).ToList();
|
|
|
+ List<int> tableIds = param.id.ToList();
|
|
|
List<DatabaseTable> tables = GetList(m => tableIds.Contains(m.id));
|
|
|
foreach(DatabaseTable table in tables)
|
|
|
{
|
|
|
@@ -208,7 +208,7 @@ namespace Services
|
|
|
|
|
|
Dictionary<string, object> pushData = new Dictionary<string, object>();pushData.Add("since", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
|
pushData.Add("author", loginUser.username);
|
|
|
- pushData.Add("fileName", Function.MD5_16(param.id));
|
|
|
+ pushData.Add("fileName", Function.MD5_16(string.Join(",", param.id)));
|
|
|
pushData.Add("databaseTable", tables);
|
|
|
return MakeHelper.Make(pushData, "dbTable", "dbTable", loginUser);
|
|
|
}
|