经销商基本信息修改
This commit is contained in:
parent
e290862350
commit
3c34f00f9e
@ -3,9 +3,14 @@ package com.tenwa.flow;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_TEMP;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO_TEMP;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
@ -17,11 +22,21 @@ public class CopyDChargeFormalToTemp extends BaseBussiness{
|
||||
this.initBussinessParam(Sqlca);
|
||||
String flowunid = this.getAttribute("ObjectNo").toString();
|
||||
String id = this.getAttribute("ProjectId").toString();
|
||||
BizObject bizObject=JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME,"id=:id")
|
||||
.setParameter("id",id).getSingleResult(false);
|
||||
String distributorno="";
|
||||
if(bizObject!=null){
|
||||
distributorno=bizObject.getAttribute("distributor_no")==null?"":bizObject.getAttribute("distributor_no").toString();
|
||||
|
||||
}
|
||||
Map<String,String> fromCondtion = new HashMap<String,String>();
|
||||
fromCondtion.put("ID",id);
|
||||
Map<String,String> otherProperty = new HashMap<String,String>();
|
||||
otherProperty.put("FLOWUNID",flowunid);
|
||||
DataOperatorUtil.copySingleJBO(DISTRIBUTOR_INFO.CLASS_NAME, fromCondtion, DISTRIBUTOR_INFO_TEMP.CLASS_NAME, null, otherProperty, Sqlca);
|
||||
fromCondtion.clear();
|
||||
fromCondtion.put("distributor_id", distributorno);
|
||||
DataOperatorUtil.copySingleJBO(DISTRIBUTOR_ACCOUNT.CLASS_NAME, fromCondtion, DISTRIBUTOR_ACCOUNT_TEMP.CLASS_NAME, null, otherProperty, Sqlca);
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,6 +3,8 @@ package com.tenwa.flow;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_TEMP;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO_TEMP;
|
||||
import jbo.com.tenwa.entity.comm.flow.D_DEPOSITCHARGE_INFO;
|
||||
import jbo.com.tenwa.entity.comm.flow.D_DEPOSITCHARGE_INFO_TEMP;
|
||||
@ -15,8 +17,21 @@ import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
|
||||
public class CopyDChargeTempToFormal extends BaseBussiness{
|
||||
|
||||
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String flowunid = this.getAttribute("ObjectNo").toString();
|
||||
String id = this.getAttribute("ProjectId").toString();
|
||||
Map<String,String> fromCondtion = new HashMap<String,String>();
|
||||
fromCondtion.put("FLOWUNID",flowunid);
|
||||
Map<String,String> otherProperty = new HashMap<String,String>();
|
||||
//otherProperty.put("ID",id);
|
||||
DataOperatorUtil.copySingleJBO(D_DEPOSITCHARGE_INFO_TEMP.CLASS_NAME, fromCondtion, D_DEPOSITCHARGE_INFO.CLASS_NAME, null, otherProperty, Sqlca);
|
||||
return "true";
|
||||
}
|
||||
|
||||
/*@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String flowunid = this.getAttribute("ObjectNo").toString();
|
||||
@ -35,5 +50,7 @@ public class CopyDChargeTempToFormal extends BaseBussiness{
|
||||
|
||||
DataOperatorUtil.copySingleJBO(D_DEPOSITCHARGE_INFO_TEMP.CLASS_NAME, fromCondtion, D_DEPOSITCHARGE_INFO.CLASS_NAME, null, otherProperty, Sqlca);
|
||||
return "true";
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user