合同制作临时表IS_FLOW赋值

This commit is contained in:
lixuebo 2019-09-12 15:23:39 +08:00
parent 2f34489b4a
commit 620d3b2c64
2 changed files with 5 additions and 3 deletions

View File

@ -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", "");
}
Map<String,String>otherProperty=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;
}

View File

@ -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();
Map<String,String>fromCondtion=this.getDefaultTempToFormalFromCondtion();
Map<String,String>toCondtion=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;