GPS拷表脚本
This commit is contained in:
parent
3629ba3985
commit
9564cabe29
@ -0,0 +1,30 @@
|
||||
package com.tenwa.lease.flow.contract.onhirechange;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.sys.LM_GPS_ORDER;
|
||||
import jbo.sys.LM_GPS_ORDER_TEMP;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
/**
|
||||
* GPSÏêÇéÕýʽ±íµ½ÁÙʱ±í
|
||||
* @author Administrator
|
||||
*
|
||||
*/
|
||||
public class GPSDetailsFormalToTemporary extends BaseBussiness{
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String projectId=this.getAttribute("ProjectId").toString();
|
||||
String flowUnid=this.getAttribute("FlowUnid").toString();
|
||||
Sqlca.executeSQL("delete from lm_gps_order_temp where PROJECT_ID='"+projectId+"'");
|
||||
Map<String,String> fromCondtion=new HashMap<String,String>();
|
||||
fromCondtion.put("PROJECT_ID", projectId);
|
||||
Map<String,String> otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("FLOWUNID", flowUnid);
|
||||
DataOperatorUtil.copyJBOSet(LM_GPS_ORDER.CLASS_NAME, fromCondtion, LM_GPS_ORDER_TEMP.CLASS_NAME,otherProperty, null, null, Sqlca);
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.tenwa.lease.flow.contract.onhirechange;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import jbo.sys.LM_GPS_ORDER;
|
||||
import jbo.sys.LM_GPS_ORDER_TEMP;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
/**
|
||||
* GPSÏêÇéÁÙʱ±íµ½Õýʽ±í
|
||||
* @author Administrator
|
||||
*
|
||||
*/
|
||||
public class GPSDetailsTemporaryToFormal extends BaseBussiness{
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String projectId=this.getAttribute("ProjectId").toString();
|
||||
Map<String,String> fromCondtion=new HashMap<String,String>();
|
||||
fromCondtion.put("PROJECT_ID", projectId);
|
||||
Map<String,String> otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("PROJECT_ID", projectId);
|
||||
DataOperatorUtil.copyJBOSet(LM_GPS_ORDER_TEMP.CLASS_NAME, fromCondtion, LM_GPS_ORDER.CLASS_NAME,null, otherProperty, null, Sqlca);
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user