更新流程临时表流程状态

This commit is contained in:
gityjf 2020-08-29 15:34:19 +08:00
parent 25f15bd169
commit a1950c394d

View File

@ -3,6 +3,8 @@ package com.tenwa.lease.flow.contract.commbusiness;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import com.amarsoft.awe.util.SqlObject;
import jbo.sys.FLOW_TASK;
import jbo.sys.LM_APPROVAL_OPINION_LOG;
import com.amarsoft.are.jbo.BizObject;
@ -28,7 +30,10 @@ public class GenerateRejectOpinionLog extends BaseBussiness{
String applicationNo = this.getAttribute("applicationNo").toString();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
String thisDate = dateFormat.format(new Date());
//更新租赁物临时表状态
Sqlca.executeSQL(new SqlObject("update LB_EQUIPMENT_CAR_TEMP set IS_FLOW='N' where FLOWUNID='"+flowunid+"'"));
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);
BizObject ftBo = ftBoList.get(0);