|
|
@@ -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); |
|
|
|
} |
|
|
|
} |