费用登记-付款申请传bip
This commit is contained in:
parent
458411d50f
commit
5545156119
|
@ -7,6 +7,7 @@ import kd.bos.context.RequestContext;
|
|||
import kd.bos.dataentity.OperateOption;
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||
import kd.bos.entity.operate.result.OperationResult;
|
||||
import kd.bos.exception.KDException;
|
||||
import kd.bos.id.ID;
|
||||
import kd.bos.logging.Log;
|
||||
|
@ -57,7 +58,7 @@ public class DobeDWaccountTask extends AbstractTask implements Plugin {
|
|||
logger.info("成本科目接口返回结果:\n{}", resultData);
|
||||
} catch (IOException e) {
|
||||
logger.info(String.format("成本科目接口异常:%s", e.getMessage()));
|
||||
throw new RuntimeException(e);
|
||||
throw new RuntimeException("获取数仓成本科目数据失败", e);
|
||||
}
|
||||
JSONObject json_body = JSON.parseObject(resultData);
|
||||
//定时任务获取的参数和参数值是配置调度程序和作业的时候设置,根据参数值保存从数仓获取到的完整json
|
||||
|
@ -178,8 +179,10 @@ public class DobeDWaccountTask extends AbstractTask implements Plugin {
|
|||
}
|
||||
}
|
||||
}
|
||||
// SaveServiceHelper.save(new DynamicObject[]{billinfo});
|
||||
//调用保存操作
|
||||
OperationServiceHelper.executeOperate("save",entityName,new DynamicObject[]{billinfo}, OperateOption.create());
|
||||
OperationResult save = OperationServiceHelper.executeOperate("save", entityName, new DynamicObject[]{billinfo}, OperateOption.create());
|
||||
if (!save.isSuccess()){
|
||||
logger.error(save.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue