|
@@ -1828,7 +1828,7 @@ namespace Util
|
|
}
|
|
}
|
|
else if(project.requestMode == "mq")
|
|
else if(project.requestMode == "mq")
|
|
{}
|
|
{}
|
|
- else
|
|
|
|
|
|
+ else if(project.requestMode == "db")
|
|
{
|
|
{
|
|
prizeToDatabase(projectId, sub.id, content, condiDic, prizeAmt, startData); //入库
|
|
prizeToDatabase(projectId, sub.id, content, condiDic, prizeAmt, startData); //入库
|
|
}
|
|
}
|
|
@@ -2108,10 +2108,31 @@ namespace Util
|
|
{
|
|
{
|
|
fieldQueryValue = GetQueryTableData(condiDic, fieldQueryValue);
|
|
fieldQueryValue = GetQueryTableData(condiDic, fieldQueryValue);
|
|
}
|
|
}
|
|
- else if(fieldQueryModel == "querystart_list_field_field")
|
|
|
|
|
|
+ else if(fieldQueryModel == "querystart_list_field")
|
|
{
|
|
{
|
|
fieldQueryValue = GetStartData(startData, fieldQueryValue);
|
|
fieldQueryValue = GetStartData(startData, fieldQueryValue);
|
|
}
|
|
}
|
|
|
|
+ else if(fieldQueryModel == "query_all_field")
|
|
|
|
+ {
|
|
|
|
+ if (fieldQueryValue.Contains("+") || fieldQueryValue.Contains("-") || fieldQueryValue.Contains("*") || fieldQueryValue.Contains("/") || fieldQueryValue.Contains("(") || fieldQueryValue.Contains(")"))
|
|
|
|
+ {
|
|
|
|
+ string[] texts = fieldQueryValue.Split(new char[] { '+', '-', '*', '/', '(', ')' });
|
|
|
|
+ foreach (string text in texts)
|
|
|
|
+ {
|
|
|
|
+ string val = GetStartData(startData, text);
|
|
|
|
+ if(string.IsNullOrEmpty(val)) val = GetQueryTableData(condiDic, text);
|
|
|
|
+ fieldQueryValue = fieldQueryValue.Replace(text, val);
|
|
|
|
+ }
|
|
|
|
+ DataTable dt = new();
|
|
|
|
+ fieldQueryValue = dt.Compute(fieldQueryValue, "false").ToString();
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ string val = GetStartData(startData, fieldQueryValue);
|
|
|
|
+ if(string.IsNullOrEmpty(val)) val = GetQueryTableData(condiDic, fieldQueryValue);
|
|
|
|
+ fieldQueryValue = val;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
else if(fieldQueryModel == "fixed_value")
|
|
else if(fieldQueryModel == "fixed_value")
|
|
{
|
|
{
|
|
fieldQueryValue = GetExpressionVal(fieldQueryValue);
|
|
fieldQueryValue = GetExpressionVal(fieldQueryValue);
|