接口平台业务通过推送报错
This commit is contained in:
parent
3d823ec476
commit
8ee7f468a9
@ -30,22 +30,25 @@ public class GeneratePassOpinionLog extends BaseBussiness{
|
||||
String thisDate = dateFormat.format(new Date());
|
||||
|
||||
BizObjectManager ftBm = JBOFactory.getBizObjectManager(FLOW_TASK.CLASS_NAME,Sqlca);
|
||||
List<BizObject> ftBoList = ftBm.createQuery(" select O.begintime,O.endtime,fo.phaseopinion,fo.inputuser from O,jbo.sys.FLOW_OPINION fo where O.SERIALNO=fo.serialno and O.OBJECTNO=:OBJECTNO ORDER BY O.endtime DESC ").setParameter("OBJECTNO",flowunid).getResultList(true);
|
||||
List<BizObject> ftBoList = ftBm.createQuery(" select O.begintime,O.userid,fo.phaseopinion from O LEFT JOIN jbo.sys.FLOW_OPINION fo ON O.SERIALNO=fo.serialno where O.OBJECTNO=:OBJECTNO ORDER BY O.begintime DESC ").setParameter("OBJECTNO",flowunid).getResultList(true);
|
||||
BizObject ftBo = ftBoList.get(0);
|
||||
ASUser asUser=new ASUser(ftBo.getAttribute("inputuser").toString());
|
||||
ASUser asUser=new ASUser(ftBo.getAttribute("userid").toString());
|
||||
|
||||
BizObjectManager laolBm = JBOFactory.getBizObjectManager(LM_APPROVAL_OPINION_LOG.CLASS_NAME,Sqlca);
|
||||
BizObject laolbo = laolBm.newObject();
|
||||
|
||||
String phaseopinion = ftBo.getAttribute("phaseopinion").toString();
|
||||
if(phaseopinion.length()==0)phaseopinion="ͨ¹ý";
|
||||
|
||||
laolbo.setAttributeValue("CHANNEL",channel);
|
||||
laolbo.setAttributeValue("APPLICATION_NO",applicationNo);
|
||||
laolbo.setAttributeValue("PROJECT_NO",projectNo);
|
||||
laolbo.setAttributeValue("FLOWUNID",flowunid);
|
||||
laolbo.setAttributeValue("ITEMNO",applyType);
|
||||
laolbo.setAttributeValue("APPROVE_OPINION",ftBo.getAttribute("phaseopinion"));
|
||||
laolbo.setAttributeValue("APPROVE_OPINION",phaseopinion);
|
||||
laolbo.setAttributeValue("APPROVE_STATUS","PASS");
|
||||
laolbo.setAttributeValue("APPROVE_BEGINTIME",ftBo.getAttribute("begintime"));
|
||||
laolbo.setAttributeValue("APPROVE_ENDTIME",ftBo.getAttribute("endtime"));
|
||||
laolbo.setAttributeValue("APPROVE_ENDTIME",thisDate);
|
||||
laolbo.setAttributeValue("PUSH_NUMBER","0");
|
||||
laolbo.setAttributeValue("INPUTTIME",thisDate);
|
||||
laolbo.setAttributeValue("INPUTUSERID",asUser.getUserID());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user