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