GPS拷表问题

This commit is contained in:
lixuebo 2019-10-11 16:09:45 +08:00
parent f44b750d72
commit 014eae44ae
2 changed files with 15 additions and 17 deletions

View File

@ -18,17 +18,16 @@ public class GPSDetailsFormalToTemporary extends BaseBussiness{
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
if(this.getAttribute("gpsVendor")==null)return "true";
String projectId=this.getAttribute("ProjectId").toString();
String flowUnid=this.getAttribute("FlowUnid").toString();
String gpsVendor=this.getAttribute("gpsVendor").toString();
if(!"null".equals(gpsVendor)){
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);
}
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";
}
}

View File

@ -16,17 +16,16 @@ public class GPSDetailsTemporaryToFormal extends BaseBussiness{
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
if(this.getAttribute("gpsVendor")==null)return "true";
String projectId=this.getAttribute("ProjectId").toString();
String gpsVendor=this.getAttribute("gpsVendor").toString();
if(!"null".equals(gpsVendor)){
Map<String,String> fromCondtion=new HashMap<String,String>();
fromCondtion.put(LM_GPS_ORDER_TEMP.PROJECT_ID, projectId);
Map<String,String> toCondtion=new HashMap<String,String>();
toCondtion.put(LM_GPS_ORDER.PROJECT_ID, projectId);
Map<String,String> otherProperty=new HashMap<String,String>();
otherProperty.put(LM_GPS_ORDER.FLOWUNID,this.getAttribute("FlowUnid").toString());
DataOperatorUtil.copySingleJBO(LM_GPS_ORDER_TEMP.CLASS_NAME,fromCondtion,LM_GPS_ORDER.CLASS_NAME,toCondtion,null,Sqlca);
}
Map<String,String> fromCondtion=new HashMap<String,String>();
fromCondtion.put(LM_GPS_ORDER_TEMP.PROJECT_ID, projectId);
Map<String,String> toCondtion=new HashMap<String,String>();
toCondtion.put(LM_GPS_ORDER.PROJECT_ID, projectId);
Map<String,String> otherProperty=new HashMap<String,String>();
otherProperty.put(LM_GPS_ORDER.FLOWUNID,this.getAttribute("FlowUnid").toString());
DataOperatorUtil.copySingleJBO(LM_GPS_ORDER_TEMP.CLASS_NAME,fromCondtion,LM_GPS_ORDER.CLASS_NAME,toCondtion,null,Sqlca);
return "true";
}
}