Browse Source

查询语句增加可执行update、delete

傻拖 4 years ago
parent
commit
7c6b431d0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      o2web/source/x_component_query_StatementDesigner/Statement.js

+ 1 - 1
o2web/source/x_component_query_StatementDesigner/Statement.js

@@ -286,7 +286,7 @@ MWF.xApplication.query.StatementDesigner.Statement = new Class({
     loadJpqlTypeSelect : function(){
       this.jpqlTypeSelect.empty();
       var optionList = [{text:"SELECT", value:"select"}];
-      if( this.data.entityCategory === "dynamic" ){
+        if( this.data.entityCategory === "dynamic" || this.data.description.indexOf("update")>-1){
           optionList = optionList.concat([
               {text:"UPDATE", value:"update"},
               {text:"DELETE", value:"delete"}