ABAP BP维护客户cl_md_bp_maintain=>maintain

ps_head结构如下
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

下面是封装好的form示例

*&---------------------------------------------------------------------*
*& Form frm_modify_customer
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*&      --> LS_HEAD
*&      <-- LS_RETINFO
*&---------------------------------------------------------------------*
FORM frm_modify_customer  USING    ps_head      TYPE zsds002CHANGING ps_retinfo   TYPE zsds008.*--& 变量声明DATA: lt_return_map TYPE  mdg_bs_bp_msgmap_t.DATA: lt_data   TYPE cvis_ei_extern_t,lt_return TYPE bapiretm,ls_return TYPE bapireti,ls_retmsg TYPE LINE OF bapiretct,lv_text   TYPE string.DATA: ls_data         LIKE LINE OF lt_data,ls_bupa_role    TYPE bus_ei_bupa_roles,ls_relation     TYPE burs_ei_extern,ls_paadr        TYPE bus_ei_bupa_address,ls_company_view TYPE cmds_ei_company.DATA: lv_guid    TYPE guid_32,lv_pguid   LIKE but000-partner_guid,lv_partner LIKE but000-partner.DATA: ls_functions_st    TYPE cmds_ei_functions,ls_functions_t     TYPE cmds_ei_functions_t,ls_functions       TYPE cmds_ei_cmd_functions,ls_sales_data_st   TYPE cmds_ei_sales,ls_sales_data      TYPE cmds_ei_cmd_sales,ls_customer        TYPE cmds_ei_extern,ls_customers       TYPE cmds_ei_main,ls_company_code_st TYPE cmds_ei_company,ls_company_code    TYPE cmds_ei_cmd_company,ls_phone           TYPE bus_ei_bupa_telephone,ls_fax             TYPE bus_ei_bupa_fax,ls_mail            TYPE bus_ei_bupa_smtp,ls_cphone          TYPE cvis_ei_phone_str,ls_cfax            TYPE cvis_ei_fax_str,ls_cmail           TYPE cvis_ei_smtp_str,ls_taxnumber       TYPE bus_ei_bupa_taxnumber,lt_taxnumber       TYPE bus_ei_bupa_taxnumber_t,ls_tax_ind         TYPE cmds_ei_tax_ind,ls_line            TYPE tline,ls_ret             TYPE bapiret2,lt_bankdetails     TYPE bus_ei_bupa_bankdetail_t,ls_bankdetails     TYPE bus_ei_bupa_bankdetail,lv_partner_guid    TYPE but000-partner_guid,ls_profile         TYPE ukm_ei_bp_cms,ls_segments        TYPE ukm_ei_bp_cms_sgm.DATA: lv_name_org1 TYPE but000-name_org1,lv_name_org2 TYPE but000-name_org2.DATA: lv_street     TYPE adrc-street,lv_str_suppl3 TYPE adrc-str_suppl3,lv_location   TYPE adrc-location.DATA: lv_len   TYPE i,lv_spras TYPE kna1-spras." 合作伙伴名称lv_partner = ps_head-partner.lv_partner = |{ lv_partner ALPHA = IN }|." 操作标识  I 新建 U 更新 M 修改/新建ls_data-partner-header-object_task = gc_m." bp guidSELECT SINGLEpartner_guidINTO lv_partner_guidFROM but000WHERE partner = lv_partner." bp guidIF sy-subrc <> 0.TRY.CALL METHOD cl_system_uuid=>create_uuid_c32_staticRECEIVINGuuid = lv_guid.CATCH cx_uuid_error .ENDTRY.ELSE.lv_guid = lv_partner_guid.ENDIF.ls_data-partner-header-object_instance-bpartnerguid = lv_guid.*--- BP基础数据------------------------------*" 合作伙伴类别     3: 组 2: 组织ls_data-partner-central_data-common-data-bp_control-category = '2'." 客户分组  ls_data-partner-central_data-common-data-bp_control-grouping = ps_head-bu_group." 标题    0001  女士    0002  先生    0003  公司ls_data-partner-central_data-common-data-bp_centraldata-title_key  = ps_head-title.ls_data-partner-central_data-common-datax-bp_centraldata-title_key = gc_x." 搜索项(检索项)ls_data-partner-central_data-common-data-bp_centraldata-searchterm1  = ps_head-bu_sort1.ls_data-partner-central_data-common-datax-bp_centraldata-searchterm1 = gc_x." 公司名称(客户名称)" 第1到40位存入BUT000-NAME_ORG1中,第41-80位存入BUT000-NAME_ORG2中IF strlen( ps_head-name_org ) > 40.lv_name_org1 = ps_head-name_org+0(40).lv_len       = strlen( ps_head-name_org ) MOD 40.lv_name_org2 = ps_head-name_org+40(lv_len).ELSE.lv_name_org1 = ps_head-name_org.ENDIF.ls_data-partner-central_data-common-data-bp_organization-name1  = lv_name_org1.ls_data-partner-central_data-common-data-bp_organization-name2  = lv_name_org2.ls_data-partner-central_data-common-datax-bp_organization-name1 = gc_x.ls_data-partner-central_data-common-datax-bp_organization-name2 = gc_x." 客户冻结ls_data-partner-central_data-common-data-bp_centraldata-centralblock  = ps_head-xblck.ls_data-partner-central_data-common-datax-bp_centraldata-centralblock = gc_x.*--- BP地址 -----------------------------*" 地址操作标识ls_paadr-task = gc_m." 地址 guidSELECT SINGLEaddress_guidFROM but020WHERE partner = @lv_partnerINTO @DATA(lv_addguid).IF sy-subrc <> 0.TRY.CLEAR lv_guid.CALL METHOD cl_system_uuid=>create_uuid_c32_staticRECEIVINGuuid = lv_guid.CATCH cx_uuid_error .ENDTRY.ls_paadr-data_key-guid = lv_guid.ELSE.ls_paadr-data_key-guid = lv_addguid.ENDIF." 街道" 第1到60位存入ADRC-STREET中,第61-100位存入ADRC-STR_SUPPL3中,第101-120位存入ADRC-LOCATION中IF strlen( ps_head-stras ) <= 60.lv_street = ps_head-stras.ELSEIF strlen( ps_head-stras ) > 60 AND strlen( ps_head-stras ) <= 100.lv_street     = ps_head-stras+0(60).lv_len        = strlen( ps_head-stras ) MOD 60.lv_str_suppl3 = ps_head-stras+60(lv_len).ELSE.lv_street     = ps_head-stras+0(60).lv_str_suppl3 = ps_head-stras+60(40).lv_len        = strlen( ps_head-stras ) MOD 100.lv_location   = ps_head-stras+100(lv_len).ENDIF.ls_paadr-data-postal-data-street      = lv_street.ls_paadr-data-postal-data-str_suppl3  = lv_str_suppl3.ls_paadr-data-postal-data-location    = lv_location.ls_paadr-data-postal-datax-street     = gc_x.ls_paadr-data-postal-datax-str_suppl3 = gc_x.ls_paadr-data-postal-datax-location   = gc_x." 邮政编码ls_paadr-data-postal-data-postl_cod1  = ps_head-pstlz.ls_paadr-data-postal-datax-postl_cod1 = gc_x." 城市ls_paadr-data-postal-data-city  = ps_head-ort01.ls_paadr-data-postal-datax-city = gc_x." 国家ls_paadr-data-postal-data-country  = ps_head-land1.ls_paadr-data-postal-datax-country = gc_x." 地区(省份)ls_paadr-data-postal-data-region  = ps_head-regio.ls_paadr-data-postal-datax-region = gc_x." 语言 (外部传入2位外码转换为1位内码)CALL FUNCTION 'CONVERSION_EXIT_ISOLA_INPUT'EXPORTINGinput  = ps_head-sprasIMPORTINGoutput = lv_spras.ls_paadr-data-postal-data-langu  = lv_spras."语言代码ls_paadr-data-postal-datax-langu = gc_x." 电话ls_phone-contact-task            = gc_m.ls_phone-contact-data-telephone  = ps_head-tel_number.ls_phone-contact-datax-telephone = gc_x.APPEND ls_phone TO ls_paadr-data-communication-phone-phone." 传真ls_fax-contact-task      = gc_m.ls_fax-contact-data-fax  = ps_head-fax_number. "传真ls_fax-contact-datax-fax = gc_x.APPEND ls_fax TO ls_paadr-data-communication-fax-fax." 邮箱ls_mail-contact-task         = gc_m.ls_mail-contact-data-e_mail  = ps_head-smtp_addr.ls_mail-contact-datax-e_mail = gc_x.APPEND ls_mail TO ls_paadr-data-communication-smtp-smtp.ls_paadr-currently_valid = abap_true.APPEND ls_paadr TO ls_data-partner-central_data-address-addresses.*-------------- Customer / Header ---------------------------------*" 客户抬头操作标识IF lv_partner_guid IS INITIAL AND ps_head-zoperate = 'I'.  " BP中没有合作伙伴则新建ls_data-ensure_create-create_customer = abap_true.ls_data-customer-header-object_task = 'I'.ELSE.IF ps_head-partner IS NOT INITIAL AND ps_head-zoperate = 'I'.  " BP中有合作伙伴但没有客户则新建ls_data-ensure_create-create_customer = abap_true.ls_data-customer-header-object_task = 'I'.ELSE.                               " BP中有合作伙伴且有客户则更新ls_data-customer-header-object_task = 'U'.ENDIF.ENDIF." 客户编码ls_data-customer-header-object_instance-kunnr = lv_partner." 税号信息ls_taxnumber-task               = gc_m.ls_taxnumber-data_key-taxtype   = ps_head-taxtype.ls_taxnumber-data_key-taxnumxl  = ps_head-taxnumxl.APPEND ls_taxnumber TO lt_taxnumber .ls_data-partner-central_data-taxnumber-current_state = 'X' .ls_data-partner-central_data-taxnumber-taxnumbers    = lt_taxnumber .*----& 角色IF ps_head-sales[] IS NOT INITIAL.ls_bupa_role-task = gc_m.ls_bupa_role-data_key = 'FLCU01'. " FI 客户APPEND ls_bupa_role TO ls_data-partner-central_data-role-roles.ENDIF.IF ps_head-company[] IS NOT INITIAL.ls_bupa_role-task = gc_m.ls_bupa_role-data_key = 'FLCU00'. " 客户APPEND ls_bupa_role TO ls_data-partner-central_data-role-roles.ENDIF.*----& 银行段IF ps_head-bank[] IS NOT INITIAL." 检查银行更新/新建SELECTbkvid,  " 银行明细标识partner " 合作伙伴编号FROM but0bkWHEREpartner = @lv_partnerINTO TABLE @DATA(lt_but0bk).LOOP AT ps_head-bank INTO DATA(ls_bank).READ TABLE lt_but0bk TRANSPORTING NO FIELDS WITH KEY bkvid = ls_bank-bkvid.IF sy-subrc = 0.ls_bankdetails-task = gc_u.ELSE.ls_bankdetails-task = gc_i.ENDIF." 序号ls_bankdetails-data_key = ls_bank-bkvid." 银行国家ls_bankdetails-data-bank_ctry  = ls_bank-banks.ls_bankdetails-datax-bank_ctry = gc_x." 银行代码ls_bankdetails-data-bank_key   = ls_bank-bankl.ls_bankdetails-datax-bank_key  = gc_x." 银行名称ls_bankdetails-data-bankaccountname  = ls_bank-banka.ls_bankdetails-datax-bankaccountname = gc_x." 银行账户,超过18位时填入参考字段ls_bankdetails-data-bank_acct  = ls_bank-bankn.ls_bankdetails-datax-bank_acct = gc_x.ls_bankdetails-data-bank_ref  = ls_bank-bkref.ls_bankdetails-datax-bank_ref = gc_x." 是否默认ls_bankdetails-data-coll_auth  = ls_bank-xezer.ls_bankdetails-datax-coll_auth = gc_x.APPEND ls_bankdetails TO lt_bankdetails.PERFORM frm_create_bank USING ls_bankdetails .ENDLOOP.ls_data-partner-central_data-bankdetail-bankdetails = lt_bankdetails .ENDIF.*----& 销售段LOOP AT ps_head-sales INTO DATA(ls_sales).ls_sales_data_st-task = gc_m.ls_sales_data_st-data_key-spart = ls_sales-spart."产品组ls_sales_data_st-data_key-vkorg = ls_sales-vkorg."销售组织ls_sales_data_st-data_key-vtweg = ls_sales-vtweg."分销渠道" 销售地区ls_sales_data_st-data-bzirk  = ls_sales-bzirk.ls_sales_data_st-datax-bzirk = gc_x." 销售办事处ls_sales_data_st-data-vkbur  = ls_sales-vkbur.ls_sales_data_st-datax-vkbur = gc_x." 销售组ls_sales_data_st-data-vkgrp  = ls_sales-kdgrp.ls_sales_data_st-datax-vkgrp = gc_x." 货币ls_sales_data_st-data-waers  = ls_sales-waers.ls_sales_data_st-datax-waers = gc_x." 定价过程ls_sales_data_st-data-kalks  = ls_sales-kalks.ls_sales_data_st-datax-kalks = gc_x." 装运条件  默认01IF ls_sales-vsbed IS INITIAL.ls_sales-vsbed = '01'.ENDIF.ls_sales_data_st-data-vsbed  = ls_sales-vsbed.ls_sales_data_st-datax-vsbed = gc_x." 与 POD 处理相关ls_sales_data_st-data-podkz  = ls_sales-podkz .ls_sales_data_st-datax-podkz = gc_x." 国际贸易条款1
*    IF ls_sales-inco1 IS NOT INITIAL.ls_sales_data_st-data-inco1  = ls_sales-inco1.ls_sales_data_st-datax-inco1 = gc_x." 国际贸易条款位置 1ls_sales_data_st-data-inco2_l  = ls_sales-inco2_l.ls_sales_data_st-datax-inco2_l = gc_x." 付款条件代码ls_sales_data_st-data-zterm  = ls_sales-zterm.ls_sales_data_st-datax-zterm = gc_x." 客户的科目分配组ls_sales_data_st-data-ktgrd  = ls_sales-ktgrd.ls_sales_data_st-datax-ktgrd = gc_x." 销售范围订单冻结ls_sales_data_st-data-aufsd  = ls_sales-aufsd.ls_sales_data_st-datax-aufsd = gc_x.*------& 销售段->合作伙伴职能段LOOP AT ls_sales-partner INTO DATA(ls_partner)." 合作伙伴外码转内码CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'EXPORTINGinput  = ls_partner-parvwIMPORTINGoutput = ls_partner-parvw.ls_functions_st-data_key-parvw = ls_partner-parvw.ls_functions_st-data_key-parza = ls_partner-parza.ls_functions_st-data-partner = ls_partner-kunn2.ls_functions_st-datax-partner = gc_x.APPEND ls_functions_st TO ls_functions_t.ENDLOOP.ls_functions-functions = ls_functions_t.ls_sales_data_st-functions = ls_functions.IF ls_sales-partner IS NOT INITIAL.ls_sales_data_st-functions-current_state = gc_x.ENDIF.APPEND ls_sales_data_st TO ls_sales_data-sales.CLEAR: ls_sales_data_st,ls_functions_t[],ls_functions.ENDLOOP.ls_data-customer-sales_data = ls_sales_data.*----税段LOOP AT ps_head-tax INTO DATA(ls_tax).ls_tax_ind-task = gc_m.ls_tax_ind-data_key-tatyp = ls_tax-tatyp." 税类别ls_tax_ind-data_key-aland = ls_tax-aland." 国家" 客户税分类ls_tax_ind-data-taxkd     = ls_tax-takld.ls_tax_ind-datax-taxkd    = gc_x.APPEND ls_tax_ind TO ls_data-customer-central_data-tax_ind-tax_ind.ENDLOOP.*----公司视图段LOOP AT ps_head-company INTO DATA(ls_company).ls_company_view-task = gc_m.ls_company_view-data_key   = ls_company-bukrs. " 公司代码" 统驭科目ls_company_view-data-akont  = ls_company-akont.ls_company_view-datax-akont = gc_x." 付款条件ls_company_view-data-zterm = ls_company-zterm.ls_company_view-datax-zterm = gc_x." 排序代码ls_company_view-data-zuawa = ls_company-zuawa.ls_company_view-datax-zuawa = gc_x." 对公司代码过帐冻结ls_company_view-data-sperr = ls_company-sperr.ls_company_view-datax-sperr = gc_x." K3客户编码ls_company_view-data-altkn = ls_company-altkn.ls_company_view-datax-altkn = gc_x.APPEND ls_company_view TO ls_data-customer-company_data-company.ENDLOOP." 校验BP数据CALL METHOD cl_md_bp_maintain=>validate_singleEXPORTINGi_data        = ls_data "lt_dataIMPORTINGet_return_map = lt_return_map. "lt_return.APPEND ls_data TO lt_data." 创建BPIF lt_return_map IS INITIAL.CALL METHOD cl_md_bp_maintain=>maintainEXPORTINGi_data   = lt_dataIMPORTINGe_return = lt_return." 异常返回校验LOOP AT lt_return INTO ls_return.LOOP AT ls_return-object_msg INTO ls_retmsg WHERE type CA 'AE'.CLEAR lv_text.MESSAGE ID ls_retmsg-id TYPE 'S' NUMBER ls_retmsg-number INTO lv_textWITH ls_retmsg-message_v1 ls_retmsg-message_v2 ls_retmsg-message_v3 ls_retmsg-message_v4.CONCATENATE ps_retinfo-message lv_text INTO ps_retinfo-message.ENDLOOP.ENDLOOP.IF ps_retinfo-message IS NOT INITIAL.CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.ELSE.IF ps_head-partner IS INITIAL.ps_retinfo-kunnr = sy-msgv1.ELSE.ps_retinfo-kunnr = ps_head-partner.ENDIF.ps_retinfo-kunnr = |{ ps_retinfo-kunnr ALPHA = IN }|.CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'EXPORTINGwait = 'X'.ENDIF.ELSE.LOOP AT lt_return_map INTO DATA(ls_return_map) WHERE type CA 'AE'.CLEAR lv_text.CALL FUNCTION 'MESSAGE_TEXT_BUILD'EXPORTINGmsgid               = ls_return_map-idmsgnr               = ls_return_map-numbermsgv1               = ls_return_map-message_v1msgv2               = ls_return_map-message_v2msgv3               = ls_return_map-message_v3msgv4               = ls_return_map-message_v4IMPORTINGmessage_text_output = lv_text.CONCATENATE ps_retinfo-message lv_text INTO ps_retinfo-message.ENDLOOP.ENDIF.IF ps_retinfo-message IS NOT INITIAL.ps_retinfo-code = gc_e.ps_retinfo-message = TEXT-m09 && ps_retinfo-message.ELSE.ps_retinfo-code = gc_s.ps_retinfo-message = TEXT-m08.ENDIF.
ENDFORM.*&---------------------------------------------------------------------*
*& Form frm_create_bank
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*&      --> LS_BANKDETAILS
*&---------------------------------------------------------------------*
FORM frm_create_bank  USING  ps_bank_detail TYPE bus_ei_bupa_bankdetail.DATA: ls_return        TYPE bapiret2,lv_ret_bank_ctry TYPE bapi1011_key-bank_ctry,lv_ret_bank_key  TYPE bapi1011_key-bank_key,lv_bank_ctry     TYPE bapi1011_key-bank_ctry,lv_bank_key      TYPE bapi1011_key-bank_key,ls_bank_address  TYPE bapi1011_address,ls_bank_addressx TYPE bapi1011_addressx.CLEAR: ls_return,lv_ret_bank_ctry,lv_ret_bank_key  .lv_bank_key  = ps_bank_detail-data-bank_key.lv_bank_ctry = ps_bank_detail-data-bank_ctry.ls_bank_address-bank_name = ps_bank_detail-data-bankaccountname.ls_bank_addressx-bank_name = 'X' .SELECT COUNT(*)FROM bnkaWHERE banks = lv_bank_ctryAND bankl = lv_bank_key.IF sy-subrc <> 0 .  "银行不存在CALL FUNCTION 'BAPI_BANK_CREATE'EXPORTINGbank_ctry    = lv_bank_ctrybank_key     = lv_bank_keybank_address = ls_bank_addressIMPORTINGreturn       = ls_returnbankcountry  = lv_ret_bank_ctrybankkey      = lv_ret_bank_key.IF lv_bank_key IS NOT INITIAL AND lv_ret_bank_ctry IS NOT INITIAL .CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'EXPORTINGwait = 'X'.WAIT UP TO 1 SECONDS .ELSE.CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.ENDIF.ENDIF .ENDFORM.

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

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

相关文章

TypeScript类型守卫

概念 在语句的块级作用域【if语句内或条目运算符表达式内】缩小变量类型的一种类型推断的行为。 类型守卫可以帮助我们在块级作用域中获得更为需要的精确变量类型&#xff0c;从而减少不必要的类型断言。 类型判断&#xff1a;typeof实例判断&#xff1a;instanceof字面量相等…

2023-08-31 LeetCode每日一题(一个图中连通三元组的最小度数)

2023-08-31每日一题 一、题目编号 1761. 一个图中连通三元组的最小度数二、题目链接 点击跳转到题目位置 三、题目描述 给你一个无向图&#xff0c;整数 n 表示图中节点的数目&#xff0c;edges 数组表示图中的边&#xff0c;其中 edges[i] [ui, vi] &#xff0c;表示 ui…

Python入门学习14(面向对象)

一、内置方法 二、封装 1. 封装的概念是指&#xff1f; 将现实世界事物在类中描述为属性和方法&#xff0c;即为封装。 2. 什么是私有成员&#xff1f;为什么需要私有成员&#xff1f; 现实事物有部分属性和行为是不公开对使用者开放的。同样在类中描述属性和方法的时…

如何分库分表?

分析&回答 分库&#xff1f;分表&#xff1f;还是既分库又分表&#xff1f; 如果需要分表&#xff0c;那么分多少张表合适&#xff1f; 由于所有的技术都是为业务服务的&#xff0c;那么&#xff0c;我们就先从数据方面回顾下业务背景。 如果每天产生 8w 笔交易单&#…

SCRUM敏捷产品负责人(CSPO)认证培训课程

课程简介 Scrum是目前运用最为广泛的敏捷开发方法&#xff0c;是一个轻量级的项目管理和产品研发管理框架。产品负责人是Scrum的三个角色之一&#xff0c;产品负责人在Scrum产品开发当中扮演舵手的角色&#xff0c;他决定产品的愿景、路线图以及投资回报&#xff0c;他需要回答…

学单片机有前途吗?

学单片机有前途吗? 个人认为学习任何一门技术都比不学的强&#xff0c;针对学单片机有前途吗?那么比较对象当然就是在整个IT行业做对比。因此我们可以从职业前景、钱景、这几方面综合考量。 学单片机有前途吗?我觉得重要的一点就是是否适合职业生涯发展&#xff0c;总说程序…

C++内存管理(2)new、delete详解

目录 new operator&#xff08;new操作&#xff09; new类对象时加不加括号的差别 new工作任务 delete工作任务 new和delete 堆区空间操作&#xff08;对比malloc和free&#xff09; new和delete操作基本类型的空间 new和delete操作基本类型的数组 new和delete操作类的…

elasticsearch访问9200端口 提示需要登陆

项目场景&#xff1a; 提示&#xff1a;这里简述项目相关背景&#xff1a; elasticsearch访问9200端口 提示需要登陆 问题描述 提示&#xff1a;这里描述项目中遇到的问题&#xff1a; 在E:\elasticsearch-8.9.1-windows-x86_64\elasticsearch-8.9.1\bin目录下输入命令 ela…

python Playwright优化页面等待和处理异步操作

在使用 Playwright 进行页面自动化时&#xff0c;优化页面等待和处理异步操作是非常重要的&#xff0c;可以提高脚本的稳定性和执行效率。 优化页面等待和处理异步操作的建议 **1. 使用正确的等待条件&#xff1a;**Playwright 提供了多种等待条件&#xff0c;如等待元素出现…

【CSS】简记CSS效果:通过transition(动画过渡属性)实现侧边栏目滑入滑出

需求 在资金明细的页面中&#xff0c;点击按钮时筛选区域从左侧滑出&#xff0c;完成筛选点击确认后调用接口完成数据查询&#xff0c;筛选区域滑入左侧&#xff1b; 基于微信小程序页面实现 wxml代码 <view><!-- 操作按钮 --><button type"primary&qu…

昨天面试的时候被提问到的问题集合(答案)

1、vue的双向绑定原理是什么&#xff1f;里面的关键点在哪里&#xff1f; Vue的双向绑定原理是基于Object.defineProperty或者Proxy来实现的&#xff0c;其关键点在于数据劫持&#xff0c;即对数据的读取和修改进行拦截&#xff0c;在数据发生变化时自动更新视图 2、实现水平垂…

JVM调优记录

因为大量数据备份&#xff1b;导致在备份过程出现堆溢出的情况 当前情况 总内存&#xff1a;7.92G 已使用&#xff1a;3.7G jvm总内存最大&#xff1a;3.06G jvm非堆内存&#xff1a;最大1.23G&#xff0c;使用<170M jvm堆内存&#xff1a;最大1.83G 计算 如果预留2G扩展…

PSP - 蛋白质结构预测 OpenFold Multimer 重构训练模型的数据加载

欢迎关注我的CSDN&#xff1a;https://spike.blog.csdn.net/ 本文地址&#xff1a;https://spike.blog.csdn.net/article/details/132602155 OpenFold Multimer 在训练过程的数据加载时&#xff0c;需要将 MSA 与 Template 信息转换成 Feature&#xff0c;再进行训练&#xff0…

[machineLearning]非监督学习unsupervised learning

1.什么是非监督学习 常见的神经网络是一种监督学习,监督学习的主要特征即为根据输入来对输出进行预测,最终会得到一个输出数值.而非监督学习的目的不在于输出,而是在于对读入的数据进行归类,选取特征,打标签,通过对于数据结构的分析来完成这些操作, 很少有最后的输出操作. 从…

ChatGPT集锦

目录 1. 一条指令让ChatGPT变的更强大2. 对ChatGPT提问时,常见的10种错误描述3. Custom instructions如何设置1. 一条指令让ChatGPT变的更强大 在使用GPT的过程中,如何让AI更清晰地了解你的需求很重要?今天分享一个指令,可以让GPT成为你的好同事,与你一起分析和解决问题,…

C# Winform 简单排期实现(DevExpress TreeList)

排期的需求在很多任务安排的系统中都有相应的需求&#xff0c;原生的Winform控件并未提供相应的控件&#xff0c;一般都是利用DataGridViewTreeView组合完成相应的需求&#xff0c;实现起来比较麻烦。用过DevExpress控件集的开发者应该知道&#xff0c;DevExpress WinForm提供了…

【动态规划刷题 10】等差数列划分 最长湍流子数组

413. 等差数列划分 链接: 413. 等差数列划分 如果一个数列 至少有三个元素 &#xff0c;并且任意两个相邻元素之差相同&#xff0c;则称该数列为等差数列。 例如&#xff0c;[1,3,5,7,9]、[7,7,7,7] 和 [3,-1,-5,-9] 都是等差数列。 给你一个整数数组 nums &#xff0c;返回…

腾讯汤道生:超千亿参数 超2万亿tokens 腾讯混元大模型向行业全面开放

9月7日&#xff0c;2023腾讯全球数字生态大会在深圳宝安举行。腾讯集团高级执行副总裁、云与智慧产业事业群CEO汤道生表示&#xff0c;腾讯将迈入“全面拥抱大模型”时代&#xff1a;“以大模型生成技术为核心&#xff0c;人工智能正在成为下一轮数字化发展的关键动力&#xff…

stable diffusion实践操作-SD原理

系列文章目录 本文专门开一节写SD原理相关的内容&#xff0c;在看之前&#xff0c;可以同步关注&#xff1a; stable diffusion实践操作 文章目录 系列文章目录前言一、原理说明1.1、出图原理1.1.1 AI画画不是和人一样&#xff0c;从0开始&#xff0c;而是一个去噪点的过程&am…

华为云云服务器评测|详解 Nacos 安装部署

环境配置 服务器云耀云服务器L操作系统CentOS 7.9 64bit | 公共镜像JDK64 bit JDK 1.8MavenMaven 3.2.xnacos-server2.2.3 下载地址 官方githubRelease 2.2.3 (May 25th, 2023) alibaba/nacos GitHub百度网盘链接&#xff1a;https://pan.baidu.com/s/1K8UE6iJL2ZnosUY83b…