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