|
|
@@ -4,6 +4,8 @@ import cc.smtweb.framework.core.common.R; |
|
|
|
import cc.smtweb.framework.core.common.SwMap; |
|
|
|
import cc.smtweb.framework.core.db.DbEngine; |
|
|
|
import cc.smtweb.framework.core.db.impl.DefaultEntity; |
|
|
|
import cc.smtweb.framework.core.db.jdbc.AbsDbWorker; |
|
|
|
import cc.smtweb.framework.core.db.jdbc.IDbSimpleWorker; |
|
|
|
import cc.smtweb.framework.core.db.jdbc.IDbWorker; |
|
|
|
import cc.smtweb.framework.core.mvc.service.SwListData; |
|
|
|
import cc.smtweb.system.bpm.web.design.form.define.PageDataset; |
|
|
@@ -53,19 +55,15 @@ public class FlowTransHandler<T extends DefaultEntity> extends AbstractDynPageHa |
|
|
|
|
|
|
|
public R submit() { |
|
|
|
load(); |
|
|
|
DbEngine.getInstance().doTrans(new IDbWorker() { |
|
|
|
@Override |
|
|
|
public void work() { |
|
|
|
flowInstance.submit(params.readString("comment")); |
|
|
|
} |
|
|
|
}); |
|
|
|
DbEngine.getInstance().doTrans(() -> flowInstance.submit(params.readString("comment"))); |
|
|
|
|
|
|
|
return R.success(buildRetData()); |
|
|
|
} |
|
|
|
|
|
|
|
public R retake() { |
|
|
|
load(); |
|
|
|
flowInstance.retake(); |
|
|
|
DbEngine.getInstance().doTrans(() -> flowInstance.retake()); |
|
|
|
|
|
|
|
return R.success(buildRetData()); |
|
|
|
} |
|
|
|
} |