Ver código fonte

代码调整:add即返回id,根据_status判断是否新增

4.0
郑根木 2 anos atrás
pai
commit
2c6741804b
1 arquivos alterados com 1 adições e 0 exclusões
  1. +1
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/dynPage/DynPageHelper.java

+ 1
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/dynPage/DynPageHelper.java Ver arquivo

@@ -45,6 +45,7 @@ public class DynPageHelper {
ModelTable masterTable = ModelTableCache.getInstance().get(dataSet.masterTable);
EntityDao<DefaultEntity> dao = DbEngine.getInstance().findDao(masterTable.getName());
DefaultEntity bean = dao.createBean();
bean.setEntityId(DbEngine.getInstance().nextId());
return bean.getData();
}



Carregando…
Cancelar
Salvar