|
@@ -98,6 +98,9 @@ public class CustomerAddnewWebApiPlugin implements Serializable {
|
|
setDateField(true,"modifytime","disabledate",param,resultData,customerObj);
|
|
setDateField(true,"modifytime","disabledate",param,resultData,customerObj);
|
|
//使用状态
|
|
//使用状态
|
|
customerObj.set("enable","0");
|
|
customerObj.set("enable","0");
|
|
|
|
+ }else{
|
|
|
|
+ //使用状态
|
|
|
|
+ customerObj.set("enable","1");
|
|
}
|
|
}
|
|
//客户字码分录
|
|
//客户字码分录
|
|
if(param.get("pznm_zmentry")!=null){
|
|
if(param.get("pznm_zmentry")!=null){
|
|
@@ -361,7 +364,7 @@ public class CustomerAddnewWebApiPlugin implements Serializable {
|
|
DynamicObject[] isHaveObjs = BusinessDataServiceHelper.load("pznm_customerzm",
|
|
DynamicObject[] isHaveObjs = BusinessDataServiceHelper.load("pznm_customerzm",
|
|
"id,pznm_zmet_org,pznm_zmet_org.number,pznm_zmet_number,pznm_zmet_name,pznm_zmet_oldnumber,pznm_zmet_wtr,pznm_zmet_wtrphone," +
|
|
"id,pznm_zmet_org,pznm_zmet_org.number,pznm_zmet_number,pznm_zmet_name,pznm_zmet_oldnumber,pznm_zmet_wtr,pznm_zmet_wtrphone," +
|
|
"pznm_zmet_lxr,pznm_zmet_lxrphone,pznm_shipaddress,pznm_shipperson,pznm_shipphone,pznm_zmet_setttype," +
|
|
"pznm_zmet_lxr,pznm_zmet_lxrphone,pznm_shipaddress,pznm_shipperson,pznm_shipphone,pznm_zmet_setttype," +
|
|
- "pznm_zmet_zqnotes,pznm_zmet_settday,pznm_zmet_zqrtype,pznm_zmet_zqptype,pznm_zmet_paytype,pznm_zmet_invoicetype",
|
|
|
|
|
|
+ "pznm_zmet_zqnotes,pznm_zmet_settday,pznm_zmet_zqrtype,pznm_zmet_zqptype,pznm_zmet_paytype,pznm_zmet_invoicetype,pznm_sourcesysid",
|
|
new QFilter[]{qFilter_customer,qFilter_org,qFilter_ztnumber});
|
|
new QFilter[]{qFilter_customer,qFilter_org,qFilter_ztnumber});
|
|
for(DynamicObject obj : isHaveObjs){
|
|
for(DynamicObject obj : isHaveObjs){
|
|
DynamicObject org = (DynamicObject) obj.getDynamicObject("pznm_zmet_org");
|
|
DynamicObject org = (DynamicObject) obj.getDynamicObject("pznm_zmet_org");
|
|
@@ -380,6 +383,8 @@ public class CustomerAddnewWebApiPlugin implements Serializable {
|
|
|
|
|
|
setDynamicField(true,"pznm_zmet_org_number","pznm_zmet_org","bos_org",
|
|
setDynamicField(true,"pznm_zmet_org_number","pznm_zmet_org","bos_org",
|
|
mapEntry,resultData,update_entry);
|
|
mapEntry,resultData,update_entry);
|
|
|
|
+ //客户子码.子码ID
|
|
|
|
+ setTextField(true,"pznm_sourcesysid","pznm_sourcesysid",mapEntry,resultData,update_entry);
|
|
//客户子码.子码编码
|
|
//客户子码.子码编码
|
|
setTextField(true,"pznm_zmet_number","number",mapEntry,resultData,update_entry);
|
|
setTextField(true,"pznm_zmet_number","number",mapEntry,resultData,update_entry);
|
|
//客户子码.子码名称
|
|
//客户子码.子码名称
|
|
@@ -428,6 +433,8 @@ public class CustomerAddnewWebApiPlugin implements Serializable {
|
|
|
|
|
|
setDynamicField(true,"pznm_zmet_org_number","pznm_zmet_org","bos_org",
|
|
setDynamicField(true,"pznm_zmet_org_number","pznm_zmet_org","bos_org",
|
|
mapEntry,resultData,add_entry);
|
|
mapEntry,resultData,add_entry);
|
|
|
|
+ //客户子码.子码ID
|
|
|
|
+ setTextField(true,"pznm_sourcesysid","pznm_sourcesysid",mapEntry,resultData,add_entry);
|
|
//客户子码.子码编码
|
|
//客户子码.子码编码
|
|
setTextField(true,"pznm_zmet_number","number",mapEntry,resultData,add_entry);
|
|
setTextField(true,"pznm_zmet_number","number",mapEntry,resultData,add_entry);
|
|
//客户子码.子码名称
|
|
//客户子码.子码名称
|
|
@@ -633,7 +640,7 @@ public class CustomerAddnewWebApiPlugin implements Serializable {
|
|
String appId = appInfo.getAppId();
|
|
String appId = appInfo.getAppId();
|
|
Set<Long> dataIds = new HashSet<Long>();
|
|
Set<Long> dataIds = new HashSet<Long>();
|
|
dataIds.add(customerObj.getLong("id"));
|
|
dataIds.add(customerObj.getLong("id"));
|
|
- QFilter qFilter_number = new QFilter("number", QCP.equals,"1");
|
|
|
|
|
|
+ QFilter qFilter_number = new QFilter("number", QCP.equals,"10000");
|
|
DynamicObject useOrg = BusinessDataServiceHelper.loadSingle("bos_adminorg","id",new QFilter[]{qFilter_number});
|
|
DynamicObject useOrg = BusinessDataServiceHelper.loadSingle("bos_adminorg","id",new QFilter[]{qFilter_number});
|
|
long useOrgId = useOrg.getLong("id");
|
|
long useOrgId = useOrg.getLong("id");
|
|
BaseDataResponse response = (new AssignService("bd_customer").assign(useOrgId, appId, dataIds, orgIds, true));
|
|
BaseDataResponse response = (new AssignService("bd_customer").assign(useOrgId, appId, dataIds, orgIds, true));
|