Ver código fonte

页面定义

master
郑根木 2 anos atrás
pai
commit
97213535f4
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormSaveHandler.java

+ 3
- 3
smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormSaveHandler.java Ver arquivo

@@ -29,11 +29,11 @@ public class ModelFormSaveHandler extends DefaultSaveHandler<ModelForm> {
public R saveDataset() {
long id = params.readLong("id");
String data = params.readString("data");
ModelForm form = loadComp(id);
bean = loadComp(id);
if (StringUtils.isEmpty(data)) {
throw new SwException("没有待保存的数据!");
}
form.setDataset(ModelFormHelper.buildSaveDataset(data));
bean.setDataset(ModelFormHelper.buildSaveDataset(data));
DbEngine.getInstance().doTrans(new AbsDbWorker() {
@Override
public void work() {
@@ -42,7 +42,7 @@ public class ModelFormSaveHandler extends DefaultSaveHandler<ModelForm> {
ModelTable table = ModelTableCache.getInstance().getByName(tableName);
ModelField field = table.findFieldByType(SwEnum.FieldType.UPDATE_USER.value);
if (field != null) bean.put(field.getName(), us.getUserId());
dao.updateEntity(form, "mf_dataset");
dao.updateEntity(bean, "mf_dataset");
}

@Override


Carregando…
Cancelar
Salvar