客户-供应商名称和银行账号的判断
This commit is contained in:
		
							parent
							
								
									276d3a3d5a
								
							
						
					
					
						commit
						f42890d23d
					
				|  | @ -93,6 +93,7 @@ public class CustomerInitOperation extends AbstractOperationServicePlugIn implem | |||
|                         itemsJson.add(itemInfo); | ||||
|                         continue; | ||||
|                     } | ||||
|                     cusname = cusname.trim();//名称去除前后空格 | ||||
|                     currentCus = BusinessDataServiceHelper.loadSingle(entityName,new QFilter[]{new QFilter("number","=",cusnumber)}); | ||||
|                     if(currentCus == null){ | ||||
|                         //判断客户分类 | ||||
|  | @ -256,6 +257,10 @@ public class CustomerInitOperation extends AbstractOperationServicePlugIn implem | |||
|                 if(bebankinfo == null){ | ||||
|                     continue; | ||||
|                 } | ||||
|                 if(EsbUtils.isEmpty(json_body.getString("banknumber"))){ | ||||
|                     //银行账号为空,不处理 | ||||
|                     continue; | ||||
|                 } | ||||
|                 bankinfo = doc_bank.addNew(); | ||||
|                 bankinfo.set("bankaccount",json_body.getString("banknumber"));//银行账号 | ||||
|                 if(EsbUtils.isEmpty(json_body.getString("acctname"))){ | ||||
|  |  | |||
|  | @ -104,6 +104,7 @@ public class SupplierInitOperation extends AbstractOperationServicePlugIn implem | |||
|                     itemsJson.add(itemInfo); | ||||
|                     continue; | ||||
|                 } | ||||
|                 supname = supname.trim(); | ||||
|                 isNew = false; | ||||
|                 currentSup = BusinessDataServiceHelper.loadSingle(entityName,new QFilter[]{new QFilter("number","=",supnumber)}); | ||||
|                 if(currentSup == null){ | ||||
|  | @ -160,6 +161,10 @@ public class SupplierInitOperation extends AbstractOperationServicePlugIn implem | |||
|                             //如果本次入参银行账户未在系统生成,且sap是删除的,我方不接收 | ||||
|                             continue; | ||||
|                         } | ||||
|                         if(EsbUtils.isEmpty(json_bank.getString("banknumber"))){ | ||||
|                             //银行账号为空,不处理 | ||||
|                             continue; | ||||
|                         } | ||||
|                         bankinfo = doc_bank.addNew(); | ||||
|                         bankinfo.set("bankaccount",json_bank.getString("banknumber"));//银行账号 | ||||
|                         if(EsbUtils.isEmpty(json_bank.getString("acctname"))){ | ||||
|  |  | |||
|  | @ -95,6 +95,7 @@ public class CustomerControler { | |||
|                 itemsJson.add(itemInfo); | ||||
|                 continue; | ||||
|             } | ||||
|             cusname = cusname.trim();//名称去除前后空格 | ||||
|             currentCus = BusinessDataServiceHelper.loadSingle(entityName,new QFilter[]{new QFilter("number","=",cusnumber)}); | ||||
|             if(currentCus == null){ | ||||
|                 //判断客户分类 | ||||
|  | @ -275,6 +276,10 @@ public class CustomerControler { | |||
|                 if(bebankinfo == null){ | ||||
|                     continue; | ||||
|                 } | ||||
|                 if(EsbUtils.isEmpty(json_body.getString("banknumber"))){ | ||||
|                     //银行账号为空,不处理 | ||||
|                     continue; | ||||
|                 } | ||||
|                 bankinfo = getBankInfo(doc_bank,json_body.getString("banknumber")); | ||||
|                 if(bankinfo == null){ | ||||
|                     bankinfo = doc_bank.addNew(); | ||||
|  |  | |||
|  | @ -112,6 +112,7 @@ public class SupplierControler { | |||
|                 itemsJson.add(itemInfo); | ||||
|                 continue; | ||||
|             } | ||||
|             supname = supname.trim(); | ||||
|             isNew = false; | ||||
|             currentSup = BusinessDataServiceHelper.loadSingle(entityName,new QFilter[]{new QFilter("number","=",supnumber)}); | ||||
|             if(currentSup == null){ | ||||
|  | @ -167,6 +168,10 @@ public class SupplierControler { | |||
|                         //如果本次入参银行账户未在系统生成,且sap是删除的,我方不接收 | ||||
|                         continue; | ||||
|                     } | ||||
|                     if(EsbUtils.isEmpty(json_bank.getString("banknumber"))){ | ||||
|                         //银行账号为空,不处理 | ||||
|                         continue; | ||||
|                     } | ||||
|                     if(bankinfo == null){ | ||||
|                         bankinfo = doc_bank.addNew(); | ||||
|                     } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue