PRC_S_YYYY_MM_WW_DD(2)

本文详细介绍了程序开始登录时的日志记录流程,包括如何使用特定函数进行日志输出,并处理静态日期为空时引发的自定义错误。通过实例展示了日志输出的关键参数配置,以及错误处理机制确保程序的健壮性和用户体验。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/**
  * @description program begin logging in
  * @field-mapping vv_task_pos = ('program begin logging in')
  * @call LBI_SYS_VDF#prc_s_sys_log
  */
  vv_task_pos := 'program begin logging in';
  LBI_SYS_VDF.prc_s_sys_log(vi_task_id,
                            vv_task_name,
                            vv_table_name,
                            substr(iv_date_year, 1, 8),
                            1,
                            null,
                            null);

  /**
  * @description it will raise customized error exception when static date is null
  * @field-mapping vi_err_code = (-1)
  * @field-mapping vv_err_msg = ('static date is null')
  */
  vv_task_pos := 'check input parameter';
  if (iv_date_year is null) then
    vi_err_code := -1;
    vv_err_msg  := 'static date is null';
    raise exc_error;
  end if;

  vd_date_year:=to_date(substr(iv_date_year,0,4) || '1231', 'yyyyMMdd');

  vd_date_temp := to_date(substr(iv_date_year,0,4) || '0101', 'yyyyMMdd');
  select t.dict_value into vv_date_format from t_s_dict_code t where t.dict_code='DateFormat' ;
  select t.dict_value into vv_month_format from t_s_dict_code t where t.dict_code='MonthFormat' ;
  select t.dict_value into vv_week_format from t_s_dict_code t where t.dict_code='WeekFormat' ;
  select t.dict_value into vi_week_tsart_flag from t_s_dict_code t where t.dict_code='WeekStartFlag' ;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值