成本中心直接入库
This commit is contained in:
		
							parent
							
								
									749dbc8beb
								
							
						
					
					
						commit
						c893e040bc
					
				|  | @ -20,7 +20,7 @@ import kd.bos.openapi.common.result.CustomApiResult; | |||
| import kd.bos.orm.query.QFilter; | ||||
| import kd.bos.servicehelper.BusinessDataServiceHelper; | ||||
| import kd.bos.servicehelper.QueryServiceHelper; | ||||
| import kd.bos.servicehelper.operation.OperationServiceHelper; | ||||
| import kd.bos.servicehelper.operation.SaveServiceHelper; | ||||
| import shjh.jhzj7.fi.fi.utils.EsbUtils; | ||||
| import shjh.jhzj7.fi.fi.webapi.model.CostCenterModel; | ||||
| 
 | ||||
|  | @ -146,15 +146,15 @@ public class CostCenterControler { | |||
|                 currentOrg.set("enable",0); | ||||
|             } | ||||
|             //保存成本中心-必须调用保存操作,否则不符合受控基础资料开发规范 | ||||
| //            SaveServiceHelper.save(new DynamicObject[]{currentOrg}); | ||||
|             operResult = OperationServiceHelper.executeOperate("save", entityName, new DynamicObject[]{currentOrg}, oop); | ||||
|             if(!operResult.isSuccess()){ | ||||
|                 log.error(String.format("成本中心保存失败:%s", json_body.toJSONString())); | ||||
|                 itemInfo = new JSONObject(); | ||||
|                 itemInfo.put("code",orgNumber); | ||||
|                 itemInfo.put("error","成本中心保存失败"+operResult.getMessage()); | ||||
|                 itemsJson.add(itemInfo); | ||||
|             } | ||||
|             SaveServiceHelper.save(new DynamicObject[]{currentOrg}); | ||||
| //            operResult = OperationServiceHelper.executeOperate("save", entityName, new DynamicObject[]{currentOrg}, oop); | ||||
| //            if(!operResult.isSuccess()){ | ||||
| //                log.error(String.format("成本中心保存失败:%s", json_body.toJSONString())); | ||||
| //                itemInfo = new JSONObject(); | ||||
| //                itemInfo.put("code",orgNumber); | ||||
| //                itemInfo.put("error","成本中心保存失败"+operResult.getMessage()); | ||||
| //                itemsJson.add(itemInfo); | ||||
| //            } | ||||
|         } | ||||
| 
 | ||||
|         if(itemsJson.isEmpty()){ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue