同步 ERP 经营办理与验收站工具、MES 制造执行及 PLM 页面更新
This commit is contained in:
@@ -20,12 +20,12 @@ namespace Jingyao.AIEmployee
|
||||
return name == DraftList || name == DraftDetail || name == DraftSave || name == DraftRehearsal;
|
||||
}
|
||||
|
||||
static void BindIdempotency(SqlCommand command, Dictionary<string,object> inputs)
|
||||
static void BindIdempotency(SqlCommand command, Dictionary<string,object> inputs, bool useParameterScale=false)
|
||||
{
|
||||
string key = Text(inputs, "幂等键", 100, null);
|
||||
if (!Regex.IsMatch(key, @"\A[A-Za-z0-9_.:-]+\z")) throw BadInput();
|
||||
command.Parameters.Add("@幂等键", SqlDbType.VarChar, 100).Value = key;
|
||||
string fingerprint = RequestFingerprint(command);
|
||||
string fingerprint = RequestFingerprint(command,useParameterScale);
|
||||
command.Parameters.Add("@请求指纹", SqlDbType.Char, 64).Value = fingerprint;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user