流程日志更改

This commit is contained in:
zhouyahui 2018-06-30 14:53:31 +08:00
parent 0ab95ef02f
commit d9396e844d

View File

@ -3,6 +3,7 @@ package com.tenwa.flow.flowlog;
import java.util.List;
import jbo.sys.FLOW_LOG;
import jbo.sys.FLOW_OPINION;
import jbo.sys.FLOW_TASK;
import com.amarsoft.app.lc.util.DateAssistant;
@ -51,7 +52,16 @@ public class ViewFlowLogService extends BaseTable{
BizObject fl = flManager.newObject();
fl.setAttributeValue("taskno", TaskNo);
fl.setAttributeValue("flowunid", FlowUnid);
fl.setAttributeValue("logcontent", FlowLogContent.replaceAll("@", DateAssistant.getTodayNow()));
// 插入流程日志意见
BizObjectManager fobom = JBOFactory.getBizObjectManager(FLOW_OPINION.CLASS_NAME, tx);
BizObject fobo = fobom.createQuery("SERIALNO=:taskNo and OPINIONNO=:curUserId").setParameter("taskNo", TaskNo)
.setParameter("curUserId",CurUserID).getSingleResult(false);
String pHASEOPINION="";
if(fobo!=null){
pHASEOPINION=fobo.getAttribute(FLOW_OPINION.PHASEOPINION).toString();
fobo.getAttribute(FLOW_OPINION.PHASECHOICE).toString();
}
fl.setAttributeValue("logcontent", FlowLogContent.replaceAll("@", DateAssistant.getTodayNow()).concat(" 意见:"+pHASEOPINION));
fl = this.initTabeUserInfo(fl);
flManager.saveObject(fl);
return "success";