执行语句优化
This commit is contained in:
parent
f5d0006899
commit
6a8d318ac5
|
@ -12,9 +12,11 @@ public class TestDBFormPlugin extends AbstractFormPlugin {
|
|||
super.afterDoOperation(e);
|
||||
if("qeug_btnok".equals(e.getOperateKey())){
|
||||
String dbnum = (String) this.getModel().getValue("qeug_dbnum");//标识
|
||||
String sql = (String) this.getModel().getValue("qeug_sqls");//sql语句
|
||||
//String sql = (String) this.getModel().getValue("qeug_sqls");//sql语句
|
||||
String sql2 = (String) this.getModel().getValue("qeug_largetextfield");//sql语句
|
||||
try{
|
||||
DB.update(DBRoute.of(dbnum), sql,null);
|
||||
//DB.update(DBRoute.of(dbnum), sql,null);
|
||||
DB.update(DBRoute.of(dbnum), sql2,null);
|
||||
}catch(Exception ex){
|
||||
this.getView().showMessage("执行失败:" + ex.getMessage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue