修改打印日志
parent
9c197cb7fc
commit
0dab7a9349
@ -0,0 +1,38 @@
|
|||||||
|
package com.engine.jucailinkq.attendance.workflow.proxy;
|
||||||
|
|
||||||
|
import com.engine.core.cfg.annotation.CommandDynamicProxy;
|
||||||
|
import com.engine.core.interceptor.AbstractCommandProxy;
|
||||||
|
import com.engine.core.interceptor.Command;
|
||||||
|
import com.engine.workflow.cmd.monitor.DoRepossessedCmd;
|
||||||
|
import weaver.conn.RecordSet;
|
||||||
|
import weaver.general.BaseBean;
|
||||||
|
import weaver.workflow.workflow.RequestForceDrawBack;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程强制收回代理类
|
||||||
|
*/
|
||||||
|
@CommandDynamicProxy(target = DoRepossessedCmd.class, desc="流程强制收回")
|
||||||
|
public class DoRepossessedProxyCmd extends AbstractCommandProxy<Map<String,Object>> {
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> execute(Command<Map<String, Object>> command) {
|
||||||
|
Map<String, Object> resultMap = nextExecute(command);
|
||||||
|
|
||||||
|
RecordSet rs = new RecordSet();
|
||||||
|
BaseBean bb = new BaseBean();
|
||||||
|
Map<String, Object> requestMap = (Map<String, Object>)resultMap.get("result");
|
||||||
|
bb.writeLog("DoRepossessedProxyCmd requestMap"+requestMap.toString());
|
||||||
|
requestMap.entrySet().forEach(e->{
|
||||||
|
String requestId = e.getKey();
|
||||||
|
String status = e.getValue().toString();
|
||||||
|
if (status.equals(RequestForceDrawBack.SUCCESS)){
|
||||||
|
rs.executeProc("workflow_Requestbase_SByID", requestId);
|
||||||
|
int workflowid = rs.getInt("workflowid");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return resultMap;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue