Quellcode durchsuchen

loadProcInstFields

4.0
郑根木 vor 2 Jahren
Ursprung
Commit
afbcf25d15
1 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. +5
    -3
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormDelHandler.java

+ 5
- 3
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/form/ModelFormDelHandler.java Datei anzeigen

@@ -28,13 +28,15 @@ public class ModelFormDelHandler extends DefaultDelHandler<ModelForm> {
@Override
protected void delDb() {
EntityDao<ModelForm> dao = DbEngine.getInstance().findDao(ModelForm.class);
listDeled = new HashSet<>(ModelFormCache.getInstance().getListByModule(id));
if (CommUtil.isEmpty(listDeled)) {
Set<ModelForm> list = new HashSet<>(ModelFormCache.getInstance().getListByModule(id));
if (CommUtil.isEmpty(list)) {
listDeled = null;
dao.deleteEntity(id);
} else {
listDeled = new HashSet<>(list);
List<Long> ids = new ArrayList<>();
ids.add(id);
for (ModelForm form: listDeled) {
for (ModelForm form: list) {
ids.add(form.getId());
}
dao.deleteEntity(ids);


Laden…
Abbrechen
Speichern