成本中心直接入库

This commit is contained in:
yuxueliang0813 2025-06-12 15:44:14 +08:00
parent 749dbc8beb
commit c893e040bc
1 changed files with 10 additions and 10 deletions

View File

@ -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()){