diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentFormalToTempBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentFormalToTempBusiness.java index e9ab00211..9ee47da6d 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentFormalToTempBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentFormalToTempBusiness.java @@ -1,8 +1,6 @@ package com.tenwa.lease.flow.project.commbusiness; -import java.util.HashMap; import java.util.Map; - import com.amarsoft.app.lc.workflow.action.GetFlowAction; import com.amarsoft.awe.util.Transaction; import com.tenwa.flow.baseBussion.BaseBussiness; @@ -23,7 +21,8 @@ public class LBEquipmentFormalToTempBusiness extends BaseBussiness { fromCondtion.put("CONTRACT_ID", ""); } MapotherProperty=this.getDefaultOtherProperty(); - service.copyOrLoadLBEquipment(Sqlca, fromCondtion, null, otherProperty, ServiceOperatorEnum.FormalToTemp, null); + otherProperty.put("IS_FLOW","Y"); + service.copyOrLoadLBEquipment(Sqlca,fromCondtion,null,otherProperty,ServiceOperatorEnum.FormalToTemp, null); String sMessage="true"; return sMessage; } diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentTempToFormalBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentTempToFormalBusiness.java index 18a2d898b..b33885ec7 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentTempToFormalBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentTempToFormalBusiness.java @@ -3,6 +3,7 @@ package com.tenwa.lease.flow.project.commbusiness; import java.util.HashMap; import java.util.Map; +import com.amarsoft.awe.util.SqlObject; import com.amarsoft.awe.util.Transaction; import com.tenwa.flow.baseBussion.BaseBussiness; import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService; @@ -15,6 +16,7 @@ public class LBEquipmentTempToFormalBusiness extends BaseBussiness { public Object run(Transaction Sqlca) throws Exception { this.initBussinessParam(Sqlca); String flowname=(String)this.getAttribute("FlowName"); + String flowunid=(String)this.getAttribute("FlowUnid"); LeaseFlowBaseService service=new LeaseFlowBaseServiceImp(); MapfromCondtion=this.getDefaultTempToFormalFromCondtion(); MaptoCondtion=this.getDefaultTempToFormalToCondtion(); @@ -22,6 +24,7 @@ public class LBEquipmentTempToFormalBusiness extends BaseBussiness { if("合同起租流程".equals(flowname)){ otherProperty.put("status", "0010"); } + Sqlca.executeSQL(new SqlObject("update LB_EQUIPMENT_CAR_TEMP set IS_FLOW='N' where FLOWUNID='"+flowunid+"'")); service.copyOrLoadLBEquipment(Sqlca, fromCondtion, toCondtion, otherProperty, ServiceOperatorEnum.TempToFormal, null); String sMessage="true"; return sMessage;