问题表86: 法人客户界面更改客户编码,点保存后提示成功,但是实际上没有变化
This commit is contained in:
parent
a96e93a461
commit
5098fdc6c2
@ -111,6 +111,7 @@ public class NewCustomerCompanyHandler extends CommonHandler{
|
||||
throws Exception {
|
||||
//同步更新customer_info custkind,customername字段和customer_type custstatus字段
|
||||
String customerId=this.asPage.getAttribute("customerId").toString();
|
||||
String customer_num=bo.getAttribute("customer_num").toString();
|
||||
String custkind=bo.getAttribute("custkind").toString();
|
||||
String enterprisename=bo.getAttribute("enterprisename").toString();
|
||||
BizObjectManager custManager = JBOFactory.getBizObjectManager(CUSTOMER_INFO.CLASS_NAME);
|
||||
@ -145,5 +146,14 @@ public class NewCustomerCompanyHandler extends CommonHandler{
|
||||
custbq.setParameter("customername",enterprisename);
|
||||
custbq.executeUpdate();
|
||||
}
|
||||
if(!cust.getAttribute("customer_num").getString().equals(bo.getAttribute("customer_num").getString())){
|
||||
BizObjectQuery custbq = custManager.createQuery("update O set customer_num=:customer_num,updateuserid=:updateuserid,updatetime=:updatetime,updateorgid=:updateorgid where customerid= :customerid ");
|
||||
custbq.setParameter("customer_num",customer_num);
|
||||
custbq.setParameter("customerid",customerId);
|
||||
custbq.setParameter("updateuserid", curUser.getUserID());
|
||||
custbq.setParameter("updatetime",DateAssistant.getTodayNow());
|
||||
custbq.setParameter("updateorgid",curUser.getOrgID());
|
||||
custbq.executeUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user