Browse Source

业务后台:识别int()运算符

chen_yjin 5 months ago
parent
commit
37f7b26de8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      JLHHJSvr/LJFrameWork/Tools/LJExprParser.cs

+ 1 - 1
JLHHJSvr/LJFrameWork/Tools/LJExprParser.cs

@@ -29,7 +29,7 @@ namespace JLHHJSvr.LJFramework.Tools
             //treatedExpr = treatedExpr.Replace(" = ", " == ");
             treatedExpr = Regex.Replace(treatedExpr, "([ ]|[\\w])([=])([^=])", "$1==$3");
             treatedExpr = Regex.Replace(treatedExpr, "if(\\s*)[(]", "iif(");
-            treatedExpr = Regex.Replace(treatedExpr, "int(\\s*)[(]", "(");
+            treatedExpr = Regex.Replace(treatedExpr, "int(\\s*)[(]", "floor(");
             treatedExpr = ConvertNotLikeExpression(treatedExpr);
             treatedExpr = ConvertLikeExpression(treatedExpr);
             treatedExpr = ConvertPosExpression(treatedExpr);