Explorar el Código

增加SWConsts.debug,是否调试模式,调试模式缓存从数据库加载

4.0
郑根木 hace 2 años
padre
commit
a93e8d88e2
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormSaveHandler.java

+ 3
- 1
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormSaveHandler.java Ver fichero

@@ -145,6 +145,8 @@ public class ModelFormSaveHandler extends DefaultSaveHandler<ModelForm> {
}
bean.setTmpl(data);
ModelFactory.getInstance().buildSaveModel(bean);
//先构建一次,防止有错
String ret = ModelFormHelper.buildReqModel(bean);
// ModelFormHelper.buildSaveModelByTmpl(bean, templateId);
DbEngine.getInstance().doTrans(new AbsDbWorker() {
@Override
@@ -167,6 +169,6 @@ public class ModelFormSaveHandler extends DefaultSaveHandler<ModelForm> {
saveFailed();
}
});
return R.success(ModelFormHelper.buildReqModel(bean));
return R.success(ret);
}
}

Cargando…
Cancelar
Guardar