|
|
@ -16,6 +16,11 @@ namespace ZKLT.Hadoop.Model
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public const string DATENOW = "DATE_NOW()";
|
|
|
|
public const string DATENOW = "DATE_NOW()";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 唯一码
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public const string UUID = "UUID()";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 转换命令
|
|
|
|
/// 转换命令
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -24,8 +29,10 @@ namespace ZKLT.Hadoop.Model
|
|
|
|
/// <returns>命令</returns>
|
|
|
|
/// <returns>命令</returns>
|
|
|
|
public static string ConvertCommand(string command, Dictionary<string, object> param)
|
|
|
|
public static string ConvertCommand(string command, Dictionary<string, object> param)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
//日期转换
|
|
|
|
command = command.Replace(DATENOW,@$"'{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}'");
|
|
|
|
command = command.Replace(DATENOW,@$"'{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
command = command.Replace(UUID, @$"'{Guid.NewGuid().ToString()}'");
|
|
|
|
return command;
|
|
|
|
return command;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -42,6 +49,11 @@ namespace ZKLT.Hadoop.Model
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(action == UUID)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return _Result;
|
|
|
|
return _Result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|