保存数据至后台表

保存数据至后台表-供大数据平台使用-JOB程序

*&---------------------------------------------------------------------*
*&程序名称                    :ZBD_JOB_001
*&程序描述                    : 保存数据至后台表-供大数据平台使用-JOB程序
*&---------------------------------------------------------------------*
*&Date         Developer           ReqNo       Descriptions            *
*& ==========  ==================  ==========  ========================*
*& 2024.06.24                        创建               *
*&---------------------------------------------------------------------*
REPORT zbd_job_001.
*--------数据定义 ------------------------------------------------------*
TABLES:sscrfields.
DATA:gs_001 TYPE ztbd_001,gt_001 TYPE TABLE OF ztbd_001,gv_xh  TYPE i,tc1    TYPE c LENGTH 15. "开始时间戳文本
DATA: functxt     TYPE smp_dyntxt.
FIELD-SYMBOLS: <fs_tab> TYPE STANDARD TABLE.
*----------选择屏幕 ----------------------------------------------------*
SELECTION-SCREEN: FUNCTION KEY 1."在屏幕定义功能码
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE TEXT-001.
PARAMETERS:p_rname  TYPE ztbd_001-zrname,p_report TYPE ztbd_001-zreport,p_var    TYPE ztbd_001-variant,p_del    TYPE c AS CHECKBOX.SELECTION-SCREEN END OF BLOCK a1.*-------初始化----------------------------------------------------------*
INITIALIZATION.
*  functxt-icon_id   = icon_table_settings.
*  functxt-quickinfo = TEXT-007.
*  functxt-icon_text = TEXT-007.
*  sscrfields-functxt_01 = functxt.
*------屏幕事件---------------------------------------------------------*
AT SELECTION-SCREEN.CASE sscrfields-ucomm.WHEN 'FC01'.IF p_rname IS NOT INITIAL.DELETE FROM ztbd_status WHERE zrname = p_rname AND zdate = sy-datum.IF sy-subrc EQ 0.MESSAGE '状态表删除成功' TYPE 'S'.ELSE.MESSAGE '状态表删除失败' TYPE 'S'.ENDIF.ELSE.MESSAGE '请输入需求名称' TYPE 'S' DISPLAY LIKE 'E'.ENDIF.WHEN OTHERS.ENDCASE.AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_rname."需求名称 F4PERFORM frm_f4_p_rname.AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_report."执行报表 F4PERFORM frm_f4_p_report.AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_var."变式 F4PERFORM frm_f4_p_var.AT SELECTION-SCREEN OUTPUT.PERFORM frm_set_required."屏幕必输设置START-OF-SELECTION.IF p_rname IS INITIAL."需求名称 必输 检查MESSAGE TEXT-002 TYPE 'S' DISPLAY LIKE 'E'.LEAVE LIST-PROCESSING.ENDIF.IF p_report IS INITIAL."执行报表名称 必输 检查MESSAGE TEXT-003 TYPE 'S' DISPLAY LIKE 'E'.LEAVE LIST-PROCESSING.ENDIF.IF p_var IS INITIAL."变式 必输 检查MESSAGE TEXT-005 TYPE 'S' DISPLAY LIKE 'E'.LEAVE LIST-PROCESSING.ENDIF.PERFORM frm_exe."执行程序END-OF-SELECTION.INCLUDE zbd_job_001_f01.

ZBD_JOB_001_F01

*----------------------------------------------------------------------*
***INCLUDE ZBD_JOB_001_F01.
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Form FRM_F4_P_RNAME
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_f4_p_rname .TYPES: BEGIN OF ty_rname,zrname TYPE ztbd_001-zrname,END OF ty_rname.DATA: lt_rname TYPE TABLE OF ty_rname .SELECT zrname FROM ztbd_001 INTO CORRESPONDING FIELDS OF TABLE lt_rname WHERE zactivate = 'X'.IF sy-subrc EQ 0.SORT lt_rname BY zrname.DELETE ADJACENT DUPLICATES FROM lt_rname COMPARING zrname.CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'EXPORTINGretfield    = 'ZRNAME'dynpprog    = sy-repiddynpnr      = sy-dynnrdynprofield = 'P_RNAME'value_org   = 'S'TABLESvalue_tab   = lt_rname.ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_F4_P_REPORT
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_f4_p_report .TYPES: BEGIN OF ty_report,zrname  TYPE ztbd_001-zrname,zreport TYPE ztbd_001-zreport,ztable  TYPE ztbd_001-ztable,variant TYPE ztbd_001-variant,END OF ty_report.DATA: lt_report TYPE TABLE OF ty_report .DATA:lt_fields TYPE TABLE OF dynpread,ls_fields TYPE dynpread.CLEAR:lt_fields,ls_fields.
* 获取屏幕上字段输入的值:此字段还没有更新到对应的内表或工作区中ls_fields-fieldname = 'P_RNAME'.APPEND ls_fields TO lt_fields."获取屏幕值CALL FUNCTION 'DYNP_VALUES_READ'EXPORTINGdyname               = sy-cprogdynumb               = sy-dynnrTABLESdynpfields           = lt_fieldsEXCEPTIONSinvalid_abapworkarea = 1invalid_dynprofield  = 2invalid_dynproname   = 3invalid_dynpronummer = 4invalid_request      = 5no_fielddescription  = 6invalid_parameter    = 7undefind_error       = 8double_conversion    = 9stepl_not_found      = 10OTHERS               = 11.IF sy-subrc EQ 0.CLEAR:ls_fields.READ TABLE lt_fields INTO ls_fields WITH KEY fieldname = 'P_RNAME' .IF sy-subrc = 0.p_rname  = ls_fields-fieldvalue.ENDIF.ENDIF.IF p_rname IS NOT INITIAL.SELECT * FROM ztbd_001 INTO CORRESPONDING FIELDS OF TABLE lt_reportWHERE zrname EQ p_rname.CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'EXPORTINGretfield    = 'ZREPORT'dynpprog    = sy-repiddynpnr      = sy-dynnrdynprofield = 'P_REPORT'value_org   = 'S'TABLESvalue_tab   = lt_report.ELSE.MESSAGE TEXT-004 TYPE 'S' DISPLAY LIKE 'W'.ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_SET_REQUIRED
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_set_required .LOOP AT SCREEN.IF screen-name = 'P_RNAME' OR screen-name = 'P_REPORT' OR screen-name = 'P_VAR'.screen-required = '2'.MODIFY SCREEN.ENDIF.ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_GET_REPORT_DATA
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_get_report_data CHANGING pv_error TYPE c.DATA:ls_data    TYPE REF TO data,ls_target  TYPE REF TO data,lo_table   TYPE REF TO data,dny_line   TYPE REF TO data,descr_ref  TYPE REF TO cl_abap_structdescr,gt_dfies   TYPE ddfields,gw_dfies   TYPE dfies,iv_tabname TYPE tabname.FIELD-SYMBOLS: <fs_target>     TYPE any,<dny_wa>        TYPE any,<fs_value_sour> TYPE any,<fs_value_tar>  TYPE any,<lt_data>       TYPE STANDARD TABLE,<ls_data>       TYPE any.UNASSIGN:<lt_data>,<ls_data>,<fs_target>.CLEAR:iv_tabname.cl_salv_bs_runtime_info=>set( display = '' metadata = '' data = 'X'  )."根据配置信息获取报表数据IF gs_001-sub_variant IS NOT INITIAL.SUBMIT (gs_001-zreport) USING SELECTION-SET gs_001-sub_variant AND RETURN.ELSE.SUBMIT (gs_001-zreport) USING SELECTION-SET gs_001-variant AND RETURN.ENDIF."组装返回的报表数据CREATE DATA ls_target TYPE TABLE OF (gs_001-ztable).  " 创建动态结构ASSIGN ls_target->* TO <fs_target>.                " 将动态结构赋给字段符号iv_tabname = gs_001-ztable.CALL METHOD zcl_hcm_public_service=>hrpa_dynamic_itabEXPORTINGiv_tabname    = iv_tabnameIMPORTING
*     eo_data_struc = lo_struceo_data_table = lo_table.ASSIGN lo_table->* TO <fs_tab>.CREATE DATA dny_line  LIKE LINE OF <fs_tab>.ASSIGN dny_line->*  TO  <dny_wa>.descr_ref ?= cl_abap_typedescr=>describe_by_name( gs_001-ztable ).CALL METHOD cl_salv_data_descr=>read_structdescrEXPORTINGr_structdescr = descr_refRECEIVINGt_dfies       = gt_dfies[].TRY.cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = ls_data ).ASSIGN ls_data->* TO <lt_data>.IF <lt_data> IS ASSIGNED."锁底表PERFORM frm_lock_table CHANGING pv_error.IF pv_error IS INITIAL. "锁表成功,组装数据IF p_del NE 'X'."获取底表最大序号值SELECT MAX( zxh ) INTO gv_xh FROM (gs_001-ztable) WHERE zcdate = sy-datum.IF sy-subrc EQ 0.gv_xh = gv_xh + 1.ENDIF.ENDIF.LOOP AT <lt_data> ASSIGNING <ls_data>.LOOP AT gt_dfies INTO gw_dfies.UNASSIGN:<fs_value_tar>,<fs_value_sour>.ASSIGN COMPONENT gw_dfies-fieldname OF STRUCTURE <dny_wa> TO <fs_value_tar>.  " 将目标结构的值赋给动态结构-底表ASSIGN COMPONENT gw_dfies-fieldname OF STRUCTURE <ls_data> TO <fs_value_sour>.  " 将原始结构的值赋给动态结构-报表alv结构IF <fs_value_tar> IS ASSIGNED AND <fs_value_sour> IS ASSIGNED.<fs_value_tar> = <fs_value_sour>.ENDIF.IF gs_001-zcus_fm IS NOT INITIAL AND <fs_value_tar> IS ASSIGNED.TRY.CALL FUNCTION gs_001-zcus_fmEXPORTINGi_value = <ls_data>i_name  = gw_dfies-fieldnameCHANGINGo_value = <dny_wa>.CATCH cx_no_flight_found .ENDTRY.ENDIF.ENDLOOP.UNASSIGN:<fs_value_tar>.ASSIGN COMPONENT 'ZRNAME' OF STRUCTURE <dny_wa> TO <fs_value_tar>.  " 需求名称IF <fs_value_tar> IS ASSIGNED .<fs_value_tar> = p_rname.ENDIF.UNASSIGN:<fs_value_tar>.ASSIGN COMPONENT 'ZXH' OF STRUCTURE <dny_wa> TO <fs_value_tar>.  " 序号IF <fs_value_tar> IS ASSIGNED .<fs_value_tar> = gv_xh.gv_xh = gv_xh + 1.ENDIF.UNASSIGN:<fs_value_tar>.ASSIGN COMPONENT 'ZCDATE' OF STRUCTURE <dny_wa> TO <fs_value_tar>.  " 序号IF <fs_value_tar> IS ASSIGNED .<fs_value_tar> = sy-datum.ENDIF.APPEND <dny_wa> TO <fs_tab>.ENDLOOP.ENDIF.ENDIF.CATCH cx_salv_bs_sc_runtime_info.MESSAGE '执行报表没有数据返回' TYPE 'E'.ENDTRY.cl_salv_bs_runtime_info=>clear_all( ).
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_SAVE_TABLE
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_save_table .DATA:lv_error TYPE c,tc2      TYPE c LENGTH 15, "结束时间戳文本td1      TYPE d, "开始时间:日期td2      TYPE d, "结束时间:日期th1      TYPE i, "开始时间:时th2      TYPE i, "结束时间:时tm1      TYPE i, "开始时间:分tm2      TYPE i, "结束时间:分ts1      TYPE p , "开始时间:秒ts2      TYPE p . "结束时间:秒.CLEAR:lv_error."全量更新,先删除数据.IF <fs_tab> IS NOT INITIAL AND p_del = 'X' AND gs_001-sub_variant IS INITIAL.SELECT COUNT(*) FROM (gs_001-ztable) WHERE zrname = p_rname.IF sy-subrc EQ 0.DELETE FROM (gs_001-ztable) WHERE zrname = p_rname.IF sy-subrc NE 0.MESSAGE '删除数据失败' TYPE 'E'.ENDIF.ENDIF.ENDIF."保存数据IF <fs_tab>[] IS NOT INITIAL.MODIFY (gs_001-ztable) FROM TABLE <fs_tab>.IF sy-subrc NE 0.MESSAGE '保存数据失败' TYPE 'S' DISPLAY LIKE 'E'.ELSE.MESSAGE '保存数据成功' TYPE 'S' .ENDIF.ELSE.MESSAGE '没有需要保存的数据' TYPE 'S' DISPLAY LIKE 'E'.ENDIF.PERFORM frm_lock_status_table CHANGING lv_error."锁状态表IF lv_error IS INITIAL."再次获取执行日期,避免在执行期间内有其他job重复执行 以至于重复计算已执行job总数 ZTBD_STATUS-ZRNUM.SELECT SINGLE zexe_date INTO gs_001-zexe_date FROM ztbd_001WHERE zrname = gs_001-zrname AND zactivate = 'X' AND variant = gs_001-variant AND sub_variant = gs_001-sub_variant AND zreport = gs_001-zreport.CLEAR:tc2,td1,td2,th1,th2,tm1,tm2,ts1,ts2.td1 = tc1+0(8).th1 = tc1+8(2).tm1 = tc1+10(2).ts1 = tc1+12(2).tc2 =  sy-datum && sy-uzeit.td2 = tc2+0(8).th2 = tc2+8(2).tm2 = tc2+10(2).ts2 = tc2+12(2).gs_001-zrun_time = ( td2 - td1 ) * 24 * 3600 + ( th2 - th1 ) * 3600 + ( tm2 - tm1 ) * 60 + ( ts2 - ts1 ).IF gs_001-zexe_date NE sy-datum.gs_001-zexe_date = sy-datum.gs_001-zexe_time = sy-uzeit.PERFORM frm_update_status. "更新状态表ELSE.gs_001-zexe_time = sy-uzeit.MODIFY ztbd_001 FROM gs_001.COMMIT WORK AND WAIT.MESSAGE '当前日期已执行过程序,状态表无需更新' TYPE 'S'.ENDIF.PERFORM frm_unlock_status_table."释放锁对象ELSE.MESSAGE '锁定状态表失败,状态表未更新' TYPE 'S' DISPLAY LIKE 'E'.ENDIF.ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_LOCK_STATUS_TABLE
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_lock_status_table CHANGING p_error TYPE c.DO 30 TIMES.CALL FUNCTION 'ENQUEUE_EZTBD_STATUS'EXPORTINGmode_ztbd_status = 'E'mandt            = sy-mandtzrname           = p_rnamezdate            = sy-datumEXCEPTIONSforeign_lock     = 1system_failure   = 2OTHERS           = 3.IF sy-subrc <> 0.WAIT UP TO 1 SECONDS.p_error = 'X'.ELSE.CLEAR:p_error.EXIT.ENDIF.ENDDO.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_UPDATE_STATUS
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_update_status ."统计当前需求有几个jobSELECT COUNT(*) INTO @DATA(lv_count) FROM ztbd_001 WHERE zrname = @p_rname AND zactivate = 'X'."获取当前需求状态SELECT SINGLE * FROM ztbd_status INTO @DATA(ls_status) WHERE zrname = @p_rname AND zdate = @sy-datum.IF ls_status IS NOT INITIAL.ls_status-zrnum = ls_status-zrnum + 1."执行报表数+1ELSE.ls_status-zrname = p_rname.ls_status-zrnum = 1.ENDIF.IF ls_status-zrnum = lv_count."报表全执行完ls_status-zfinish = 'X'."完成标识ENDIF.ls_status-zdate = sy-datum.ls_status-ztime = sy-uzeit."保存状态MODIFY ztbd_status FROM ls_status.IF sy-subrc EQ 0.MODIFY ztbd_001 FROM gs_001.COMMIT WORK AND WAIT.MESSAGE '更新状态表成功' TYPE 'S'.ELSE.MESSAGE '更新状态表失败' TYPE 'S' DISPLAY LIKE 'E'.ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_UNLOCK_STATUS_TABLE
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_unlock_status_table .CALL FUNCTION 'DEQUEUE_EZTBD_STATUS'EXPORTINGmode_ztbd_status = 'E'mandt            = sy-mandtzrname           = p_rnamezdate            = sy-datum.ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_F4_P_VAR
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_f4_p_var .TYPES: BEGIN OF ty_var,report  TYPE varid-report,variant TYPE varid-variant,ename   TYPE varid-ename,END OF ty_var.DATA: lt_var TYPE TABLE OF ty_var.DATA:lt_fields TYPE TABLE OF dynpread,ls_fields TYPE dynpread.CLEAR:lt_fields,ls_fields.
* 获取屏幕上字段输入的值:此字段还没有更新到对应的内表或工作区中ls_fields-fieldname = 'P_REPORT'.APPEND ls_fields TO lt_fields."获取屏幕值CALL FUNCTION 'DYNP_VALUES_READ'EXPORTINGdyname               = sy-cprogdynumb               = sy-dynnrTABLESdynpfields           = lt_fieldsEXCEPTIONSinvalid_abapworkarea = 1invalid_dynprofield  = 2invalid_dynproname   = 3invalid_dynpronummer = 4invalid_request      = 5no_fielddescription  = 6invalid_parameter    = 7undefind_error       = 8double_conversion    = 9stepl_not_found      = 10OTHERS               = 11.IF sy-subrc EQ 0.CLEAR:ls_fields.READ TABLE lt_fields INTO ls_fields WITH KEY fieldname = 'P_REPORT' .IF sy-subrc = 0.p_report  = ls_fields-fieldvalue.ENDIF.ENDIF.IF p_report IS NOT INITIAL.SELECT * FROM varid INTO CORRESPONDING FIELDS OF TABLE lt_varWHERE report EQ p_report AND transport NE 'B'.IF sy-subrc EQ 0.CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'EXPORTINGretfield    = 'VARIANT'dynpprog    = sy-repiddynpnr      = sy-dynnrdynprofield = 'P_VAR'value_org   = 'S'TABLESvalue_tab   = lt_var.ELSE.MESSAGE TEXT-006 TYPE 'S' DISPLAY LIKE 'W'.ENDIF.ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_EXE
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_exe .DATA:ls_001   TYPE ztbd_001,lv_error TYPE c.CLEAR:gt_001,gs_001,gv_xh,ls_001.gv_xh = 1."获取配置表数据SELECT * INTO TABLE gt_001 FROM ztbd_001 WHERE zrname = p_rname AND zreport = p_report AND variant = p_var AND zactivate = 'X'.IF sy-subrc EQ 0.SORT gt_001 BY sub_variant ztable.LOOP AT gt_001 INTO gs_001.CLEAR:lv_error,tc1.tc1 = sy-datum && sy-uzeit.IF gs_001-ztable NE ls_001-ztable.gv_xh = 1.ENDIF."获取报表数据PERFORM frm_get_report_data CHANGING lv_error.IF lv_error IS INITIAL."保存报表数据 更新状态表PERFORM frm_save_table."释放底表PERFORM frm_unlock_table.ENDIF.ls_001 = gs_001.CLEAR:gs_001.ENDLOOP.ENDIF.ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_UNLOCK_TABLE
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_unlock_table.DATA:lv_name TYPE rstable-tabname.CLEAR:lv_name.lv_name = gs_001-ztable.CALL FUNCTION 'DEQUEUE_E_TABLE'EXPORTINGmode_rstable = 'E'tabname      = lv_name.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FRM_LOCK_TABLE
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& -->  p1        text
*& <--  p2        text
*&---------------------------------------------------------------------*
FORM frm_lock_table CHANGING p_error TYPE c.DATA:lv_msg  TYPE string,lv_name TYPE rstable-tabname.CLEAR:lv_msg,lv_name.lv_name = gs_001-ztable.DO 60 TIMES.CALL FUNCTION 'ENQUEUE_E_TABLE'EXPORTINGmode_rstable   = 'E'tabname        = lv_nameEXCEPTIONSforeign_lock   = 1system_failure = 2OTHERS         = 3.IF sy-subrc <> 0.WAIT UP TO 1 SECONDS.p_error = 'X'.ELSE.CLEAR:p_error.EXIT.ENDIF.ENDDO.IF p_error EQ 'X'.lv_msg = '表' && gs_001-ztable && '锁定失败' .MESSAGE lv_msg TYPE 'S' DISPLAY LIKE 'E'.ENDIF.ENDFORM.

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/402885.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

数据结构:线性结构之顺序表、链表篇

数据结构&#xff1a;顺序表、链表篇 线性表一、顺序表&#xff08;一&#xff09;顺序表的结构定义&#xff08;二&#xff09;顺序表的功能实现1、初始化2、销毁3、扩容4、插入5、删除 &#xff08;三&#xff09;顺序表例题分析1、删除有序数组中的重复项2、合并两个有序数组…

大数据技术——DolphinScheduler的集群部署

目录 第1章 DolphinScheduler简介 1.1 DolphinScheduler概述 1.2 DolphinScheduler核心架构 第2章 DolphinScheduler部署说明 2.1 软硬件环境要求 2.1.1 操作系统版本要求 2.1.2 服务器硬件要求 2.2 部署模式 2.2.1 单机模式 2.2.2 伪集群模式 2.2.3 集群模式 第3章…

进程间通信—无名管道

gg shiftg快速对齐 加锁顺序问题时&#xff0c;如果解锁了&#xff0c;两个同时申请抢锁&#xff0c;谁抢到了运行谁&#xff0c;循环迭代时释放锁也是同时申请锁&#xff0c;循环部分如果没抢到锁就进入循环等待 总结: IPC 进程间通信 interprocess communicate //signal…

免费简单的制作3D卡通建模——Fuse软件和Readyplayer的使用介绍

最终效果 文章目录 最终效果一、使用Fuse软件去Steam下载安装捏人选择身体部位自定义人物细节参数换装贴图修改导出OBJ文件即可 二、使用ReadyplayerReadyplayer官网地址选择从模板开始&#xff0c;或者拍照选择图片进行捏脸将模型导入Unity通过Readyplayer官方插件导入模型通过…

UI设计:蒸汽波风格页面有啥特征,应用哪些场景?

一、什么是蒸汽波风格 蒸汽波风格&#xff08;Steampunk&#xff09;是一种将19世纪工业时代的技术和想象力与未来科技相结合的艺术和文化流派。它通常描绘了一个类似维多利亚时代的世界&#xff0c;其中蒸汽动力是主要能源&#xff0c;机械装置和复杂的齿轮系统被广泛应用。 …

若依服务器上云部署

准备条件&#xff1a;安装好mysql和redis并配置好密码。 1.安装JDK&#xff0c;我这里使用的是1.8 wget --no-check-certificate --no-cookies --header "Cookie: oraclelicenseaccept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/…

idea 对于mybatis-plus框架JRebelX和XRebel热启动失效问题

1.mybatis-plus不需要使用热启动插件&#xff0c;修改完代码后&#xff0c;直接重新编译一下即可&#xff0c;不需要重启 2.如果是mapper.xml文件&#xff0c;则直接安装JRebel MybatisPlus extension 插件即可完成mapper.xml静态文件更改进行热加载

XSS小游戏(题目+解析)DOM破坏!!!

文章目录 一、Ma Spaghet!二、Jefff三、Ugandan Knuckles四、Ricardo Milos五、Ah Thats Hawt六、Ligma七、Mafia方法一&#xff1a;可以用匿名函数来试试方法二&#xff1a;利用toString方法方法三&#xff1a;利用location和hash切片slice 八、Ok, Boomer九、svg十、DOM破坏十…

阿里巴巴Arthas详解

Arthas 是 Alibaba 在 2018 年 9 月开源的 Java 诊断工具。支持 JDK6&#xff0c; 采用命令行交互模式&#xff0c;可以方便的定位和诊断线上程序运行问题。Arthas 官方文档十分详细&#xff0c;详见&#xff1a;arthas Arthas使用场景 得益于 Arthas 强大且丰富的功能&#x…

基于 Appium 的 App 爬取实战

除了运行 Appium 的基本条件外&#xff0c;还要一个日志输出库 安装&#xff1a; pip install loguru 思路分析 首先我们观察一下整个 app5 的交互流程&#xff0c;其首页分条显示了电影数据&#xff0c; 每个电影条目都包括封面&#xff0c;标题&#xff0c; 类别和评分 4…

EMQX Platform Snowflake:构建可再生分布式能源的智慧未来

引言 可再生能源如风力和太阳能发电&#xff0c;具有低成本和环保的特性&#xff0c;是未来能源供应的主要方向。然而&#xff0c;这类发电方式存在供应分散、设备数量多、地区分布广等特点。再加上不同地区的季节和天气变化&#xff0c;不确定性极大。 随着社会用电需求的持…

移情别恋c++ ദ്ദി˶ー̀֊ー́ ) ——5.string(模拟实现)

1.存储结构 namespace zone {class string{public:private: //设置私有&#xff0c;不允许随便访问底层数据char* _str; //字符串存储空间首地址指针size_t _size; //当前字符数量size_t _capaicty; //可用容量static const size_t npos;}const size_t string::nops -1;//在类…

【C++STL详解(十一)】map/set/multimap/multiset的介绍与使用

目录 一、关联式容器 二、键值对 三、set 介绍 简单使用 1.构造 2.相关迭代器 3.容量 4.修改 四、multiset 五、map 介绍 使用 1.定义的方式 2.迭代器相关 3.容量与operator【】(重点) 4.修改 小总结&#xff1a; 六、multimap 一、关联式容器 在CSTL中…

硬件面试经典 100 题(51~70 题)

51、请列举您知道的覆铜板厂家。 生益、建滔。 52、示波器铭牌一般都会标识两个参数&#xff0c;比如泰克 TDS1002B 示波器标识的 60MHz 和 1GS/s&#xff0c;请解释这两个参数的含义。 60MHz 是指示波器的带宽&#xff0c;即正常可以测量 60MHz 频率以下的信号。 1GS/s 是指示…

MySQL进阶难度知识点分析

以下为本人在阅读《MySQL是怎样运行的&#xff1a;从根儿上理解MySQL》这本书时对一些难度和重点的笔记&#xff0c;主要用于个人学习使用&#xff0c;内容可能存在出入&#xff0c;望理性食用~ 1. sql执行流程 一条sql的执行流程大致可分为客户端获取与数据库服务器的连接&am…

【JavaEE精炼宝库】网络原理基础——UDP详解

文章目录 一、应用层二、传输层2.1 端口号&#xff1a;2.2 UDP 协议&#xff1a;2.2.1 UDP 协议端格式&#xff1a;2.2.2 UDP 存在的问题&#xff1a; 2.3 UDP 特点&#xff1a;2.4 基于 UDP 的应用层协议&#xff1a; 一、应用层 我们 Java 程序员在日常开发中&#xff0c;最…

【排序篇】插入排序与选择排序

&#x1f308;个人主页&#xff1a;Yui_ &#x1f308;Linux专栏&#xff1a;Linux &#x1f308;C语言笔记专栏&#xff1a;C语言笔记 &#x1f308;数据结构专栏&#xff1a;数据结构 文章目录 1. 排序的概念及其应用1.1 排序的概念1.2 排序的应用场景1.3 常见的排序算法 2.常…

Vue3+vite+ts 项目使用mockjs

1、安装mockjs npm i mockjs 2、安装vite-plugin-mock npm i vite-plugin-mock -D 3、安装axios npm i axios 4.在src目录下创建mock文件夹,在文件夹内创建login.ts等文件&#xff0c;并在文件夹内放置以下内容&#xff08;注&#xff1a;URL要和真实请求地址保持一致&am…

走向绿色:能源新选择,未来更美好

当前&#xff0c;全球范围内可再生能源正经历着从辅助能源向核心能源的深刻转型&#xff0c;绿色能源日益渗透至居住、出行、日常应用等多个领域&#xff0c;深刻影响着我们的生活方式&#xff0c;使我们能够更加充分地体验清洁能源所带来的优质生活。 一、绿色能源与“住” …

搭建知识中台:让企业告别低效率

在当今这个信息爆炸、知识更新日新月异的时代&#xff0c;企业面临着前所未有的挑战与机遇。如何在浩瀚的信息海洋中高效筛选、整合并利用知识资源&#xff0c;成为决定企业竞争力的关键因素之一。因此&#xff0c;搭建知识中台&#xff0c;构建企业知识管理的核心枢纽&#xf…