[go: up one dir, main page]

CN115098157A - Method and device for processing public service data - Google Patents

Method and device for processing public service data Download PDF

Info

Publication number
CN115098157A
CN115098157A CN202210845995.6A CN202210845995A CN115098157A CN 115098157 A CN115098157 A CN 115098157A CN 202210845995 A CN202210845995 A CN 202210845995A CN 115098157 A CN115098157 A CN 115098157A
Authority
CN
China
Prior art keywords
version
target
public service
service
public
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210845995.6A
Other languages
Chinese (zh)
Inventor
廖正明
曾祥军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202210845995.6A priority Critical patent/CN115098157A/en
Publication of CN115098157A publication Critical patent/CN115098157A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for processing public service data, relates to the technical field of software development, and mainly aims to solve the problems of low updating efficiency and poor flexibility caused by the fact that public service components need to be completely updated when public service data are updated. The method comprises the following steps: loading a version mapping relation bound by a public service component, wherein the version mapping relation is configured with mapping contents between different service item versions and different public service component versions; when a public service data calling request of a client is received, determining a target service item version and a target public service component version which are matched with a target service item carried by the public service data calling request based on the version mapping relation; and calling target public service data corresponding to the target public service component version according to the target service project version, and feeding back the target public service data to the client.

Description

一种公共业务数据的处理方法及装置Method and device for processing public service data

技术领域technical field

本发明涉及一种软件开发技术领域,特别是涉及一种公共业务数据的处理方法及装置。The invention relates to the technical field of software development, in particular to a method and device for processing public service data.

背景技术Background technique

随着应用程序开发的多样性发展,一个应用程序中可以对接开发多个业务项目所对的应用组件,以实现不同业务操作。其中,针对一个应用组件中相同或公用的业务请求,各业务项目需要向服务端请求调取公共业务组件中的公共业务数据,以支撑业务操作的执行。With the diversified development of application development, one application can be connected to the application components corresponding to the development of multiple business projects to realize different business operations. Wherein, for the same or common business requests in an application component, each business item needs to request the server to retrieve common business data in the common business component to support the execution of business operations.

目前,现有在请求服务端调取公共业务数据时,通常直接调取公共业务组件中与业务项目匹配的公共业务数据,若公共业务数据更新时,需要完整更新公共业务组件,既包括数据更新也包括开发代码更新,并在更新后重新进行开发测试发布。但是,完整更新公共业务组件会耗费大量的时间,以及人力成本,并且无法满足业务项目正常运行的灵活性,大大降低了公共业务数据的处理效率。At present, when requesting the server to retrieve public business data, it usually directly retrieves the public business data matching the business item in the public business component. If the public business data is updated, the public business component needs to be completely updated, including data update. Also includes development code updates, and re-develop test releases after the update. However, the complete update of public business components will consume a lot of time and labor costs, and cannot meet the flexibility of normal operation of business projects, which greatly reduces the processing efficiency of public business data.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明提供一种公共业务数据的处理方法及装置,主要目的在于解决现有公共业务数据处理效率低的问题。In view of this, the present invention provides a method and device for processing public service data, which mainly aim to solve the problem of low processing efficiency of the existing public service data.

依据本发明一个方面,提供了一种公共业务数据的处理方法,包括:According to one aspect of the present invention, a method for processing public service data is provided, comprising:

加载公共业务组件所绑定的版本映射关系,所述版本映射关系中配置有不同业务项目版本与不同公共业务组件版本之间的映射内容;Loading the version mapping relationship bound by the common business component, where the mapping content between different business item versions and different common business component versions is configured in the version mapping relationship;

当接收到客户端的公共业务数据调取请求,则基于所述版本映射关系,确定与所述公共业务数据调取请求携带的目标业务项目匹配的目标业务项目版本以及目标公共业务组件版本;When receiving the public service data retrieval request from the client, determine the target service item version and the target public service component version matching the target service item carried in the public service data retrieval request based on the version mapping relationship;

根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据,并向所述客户端反馈所述目标公共业务数据。The target public service data corresponding to the target public service component version is retrieved according to the target service item version, and the target public service data is fed back to the client.

进一步的,所述基于所述版本映射关系,确定与所述公共业务数据调取请求携带的目标业务项目匹配的目标业务项目版本以及目标公共业务组件版本包括:Further, determining the target service item version and target public service component version matching the target service item carried in the public service data retrieval request based on the version mapping relationship includes:

解析目标业务项目的版本标识,并查找所述版本映射关系中与所述版本标识对应的目标业务项目版本;Parse the version identifier of the target business item, and look up the version of the target business item corresponding to the version identifier in the version mapping relationship;

若查找到所述目标业务项目版本,则基于所述版本映射关系中的映射内容确定与所述目标业务项目版本匹配的目标公共业务组件版本;If the target business item version is found, determining a target public service component version matching the target business item version based on the mapping content in the version mapping relationship;

若未查找到所述目标业务项目版本,则将预设备用公共业务组件版本确定为目标公共业务组件版本。If the target business item version is not found, the preset standby common business component version is determined as the target common business component version.

进一步的,所述加载公共业务组件所绑定的版本映射关系之前,所述方法还包括:Further, before the loading of the version mapping relationship bound by the common service component, the method further includes:

当检测到对所述公共业务组件的更新操作完成时,向更新操作端发送所述公共业务组件的更新请求;When it is detected that the update operation of the public service component is completed, an update request of the public service component is sent to the update operator;

所述加载公共业务组件所绑定的版本映射关系包括:The version mapping relationship bound by the loading public service components includes:

响应于所述更新请求的更新反馈信息,更新所述公共业务组件,并加载所述公共业务组件绑定的版本映射关系。In response to the update feedback information of the update request, the public service component is updated, and the version mapping relationship bound by the public service component is loaded.

进一步的,所述所述加载公共业务组件所绑定的版本映射关系之后,所述方法还包括:Further, after the loading of the version mapping relationship bound by the common service component, the method further includes:

按照第一预设时间间隔发送第一版本映射关系更新请求,并基于接收到第二更新反馈信息对所述公共业务组件所绑定的版本映射关系进行更新;或,Send the first version mapping relationship update request according to the first preset time interval, and update the version mapping relationship bound to the common service component based on the received second update feedback information; or,

获取所述客户端中执行业务操作所对应的执行业务项目版本;Obtain the execution business item version corresponding to the execution business operation in the client;

若所述执行业务项目版本与所述版本映射关系中的各所述业务项目版本至少一个不相同,则发送第二版本映射关系更新请求,并基于接收到的第三更新反馈信息对所述公共业务组件所绑定的版本映射关系进行更新。If the execution business item version is different from at least one of each of the business item versions in the version mapping relationship, send a second version mapping relationship update request, and update the public domain based on the received third update feedback information. The version mapping relationship bound to the business component is updated.

进一步的,所述根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据,并向所述客户端反馈所述目标公共业务数据之前,所述方法还包括:Further, before the target public service data corresponding to the target public service component version is retrieved according to the target service item version, and the target public service data is fed back to the client, the method further includes:

当接收到业务回滚请求后,根据所述业务回滚请求所携带的业务回滚对象确定待回滚业务项目版本和/或待回滚公共业务组件版本;After receiving the service rollback request, determine the version of the service item to be rolled back and/or the version of the common service component to be rolled back according to the service rollback object carried in the service rollback request;

若所述待回滚业务项目版本为所述目标业务项目版本,则从历史业务项目版本、预设业务项目版本中更新确定目标业务项目版本;If the version of the business item to be rolled back is the target business item version, update and determine the target business item version from the historical business item version and the preset business item version;

若所述待回滚公共业务组件版本为所述目标公共业务组件版本,则从历史公共业务组件版本、预设公共业务组件版本中更新确定目标公共业务组件版本。If the public service component version to be rolled back is the target public service component version, update and determine the target public service component version from the historical public service component version and the preset public service component version.

进一步的,所述根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据之后,所述方法还包括:Further, after retrieving the target public service data corresponding to the target public service component version according to the target service item version, the method further includes:

解析所述目标公共业务数据中的业务数据类型,以及业务项目的项目类型;Parse the business data type in the target public business data, and the item type of the business item;

若所述业务数据类型与所述项目类型不匹配,则向所述客户端发送验证请求,所述验证请求中携带有业务验证权限,以当所述客户端通过验证后反馈所述目标公共业务数据。If the service data type does not match the item type, a verification request is sent to the client, and the verification request carries the service verification authority, so that when the client passes the verification, the target public service is fed back data.

依据本发明另一个方面,提供了一种公共业务数据的处理装置,包括:According to another aspect of the present invention, a device for processing public service data is provided, comprising:

加载模块,用于加载公共业务组件所绑定的版本映射关系,所述版本映射关系中配置有不同业务项目版本与不同公共业务组件版本之间的映射内容;a loading module, used for loading the version mapping relationship bound by the common business component, where the mapping content between different business item versions and different common business component versions is configured in the version mapping relationship;

匹配模块,用于当接收到客户端的公共业务数据调取请求,则基于所述版本映射关系,确定与所述公共业务数据调取请求携带的目标业务项目匹配的目标业务项目版本以及目标公共业务组件版本;The matching module is configured to determine, based on the version mapping relationship, a target service item version and a target public service matching the target service item carried in the public service data retrieval request when receiving the public service data retrieval request of the client component version;

执行模块,用于根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据,并向所述客户端反馈所述目标公共业务数据。An execution module, configured to retrieve target public service data corresponding to the target public service component version according to the target service item version, and feed back the target public service data to the client.

根据本发明的又一方面,提供了一种存储介质,所述存储介质中存储有至少一可执行指令,所述可执行指令使处理器执行如上述公共业务数据的处理方法对应的操作。According to yet another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to perform operations corresponding to the above-mentioned method for processing public service data.

根据本发明的再一方面,提供了一种计算机设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;According to yet another aspect of the present invention, a computer device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface can communicate with each other through the communication bus. communication;

所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行上述公共业务数据的处理方法对应的操作。The memory is used for storing at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned method for processing public service data.

借由上述技术方案,本发明实施例提供的技术方案至少具有下列优点:With the above technical solutions, the technical solutions provided by the embodiments of the present invention have at least the following advantages:

本发明提供了一种公共业务数据的处理方法及装置,与现有技术相比,本发明实施例通过加载公共业务组件所绑定的版本映射关系,所述版本映射关系中配置有不同业务项目版本与不同公共业务组件版本之间的映射内容;当接收到客户端的公共业务数据调取请求,则基于所述版本映射关系,确定与所述公共业务数据调取请求携带的目标业务项目匹配的目标业务项目版本以及目标公共业务组件版本;根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据,并向所述客户端反馈所述目标公共业务数据。实现客户端在应用程序开发过程中,针对不同业务项目版本的需求,提供不同公共业务组件版本,从而调取到不同版本的公共业务数据。若公共业务数据需要更新,采用本发明的方法不需要完整更新公共业务组件,不仅节约了时间成本还节约了人力成本。本发明还方便了业务项目的版本管理,满足了业务项目正常运行的灵活性要求,大大提高了公共业务数据处理的效率。The present invention provides a method and device for processing public service data. Compared with the prior art, the embodiment of the present invention loads the version mapping relation bound by the public service component, and the version mapping relation is configured with different service items The mapping content between the version and different public service component versions; when receiving the public service data retrieval request from the client, based on the version mapping relationship, determine the target service item that matches the public service data retrieval request. The target service item version and the target public service component version; the target public service data corresponding to the target public service component version is retrieved according to the target service item version, and the target public service data is fed back to the client. In the process of application development, the client can provide different versions of public business components according to the requirements of different business project versions, so as to retrieve public business data of different versions. If the public service data needs to be updated, the method of the present invention does not need to completely update the public service components, which not only saves time cost but also saves labor cost. The invention also facilitates the version management of business items, satisfies the flexibility requirements for normal operation of business items, and greatly improves the efficiency of public business data processing.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1示出了本发明实施例提供的一种公共业务数据的处理方法的流程图;1 shows a flowchart of a method for processing public service data provided by an embodiment of the present invention;

图2示出了本发明实施例提供的另一种公共业务数据的处理方法的流程图;2 shows a flowchart of another method for processing public service data provided by an embodiment of the present invention;

图3示出了本发明实施例提供的一种公共业务数据的处理装置组成框图;FIG. 3 shows a block diagram of the composition of a device for processing public service data provided by an embodiment of the present invention;

图4示出了本发明实施例提供的一种计算机设备的结构示意图。FIG. 4 shows a schematic structural diagram of a computer device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

本发明实施例提供了一种公共业务数据的处理方法,如图1所示,该方法包括:An embodiment of the present invention provides a method for processing public service data. As shown in FIG. 1 , the method includes:

101、加载公共业务组件所绑定的版本映射关系;101. Load the version mapping relationship bound by the public business component;

本发明实施例中,由于公共业务组件在更新后保存了不同的版本,包括预设的备用公共业务组件版本、历史公共业务组件版本和最新公共业务组件版本,从不同版本的公共业务组件中可以调取到不同版本的公共业务数据。为了满足客户端中不同业务项目对不同版本的公共业务数据的需求,将不同版本的公共业务组件进行单独打包,并绑定版本映射关系。当前执行端通过加载公共业务组件所绑定的版本映射关系,得到不同业务项目版本与不同公共业务组件版本之间的映射内容。业务项目用于表征应用程序中执行不同类型业务操作的内容,业务项目包括但不限于银行类业务项目、保险类业务项目、生活服务类业务项目、办公类业务项目等,具体的每个业务项目均有其对应的特定的业务范围,以实现不同业务操作,本发明实施例不做具体限定。公共业务组件为用于为不同业务项目提供公共数据的组件,以静态js文件的形式进行开发发布,可以包括但不限于业务项目所需要的公共用户基础数据、公共交通数据、公共住宿资源数据等。在版本映射关系中,不同业务项目版本与不同公共业务组件版本之间的映射内容,例如“业务项目A的1.0版本→公共业务组件的2.0版本”、“业务项目B的2.0版本→公共业务组件的1.0版本”、“业务项目C的3.0版本→公共业务组件的3.0版本”,其中“→”表示具体的映射关系,本发明实施例不做具体限定。In the embodiment of the present invention, since the common service components are updated to save different versions, including a preset standby common service component version, a historical common service component version, and the latest public service Retrieve public business data of different versions. In order to meet the needs of different business projects in the client for different versions of public business data, the public business components of different versions are packaged separately, and the version mapping relationship is bound. The current execution end obtains the mapping content between different business item versions and different common business component versions by loading the version mapping relationship bound by the common business component. Business items are used to represent the content of different types of business operations performed in the application. Business items include but are not limited to banking business projects, insurance business projects, life service business projects, office business projects, etc. Each has its corresponding specific business scope to realize different business operations, which is not specifically limited in the embodiment of the present invention. Public business components are components used to provide public data for different business projects. They are developed and released in the form of static js files, including but not limited to public user basic data, public transportation data, and public accommodation resource data required by business projects. . In the version mapping relationship, the mapping content between different business project versions and different common business component versions, such as "version 1.0 of business project A → version 2.0 of common business components", "version 2.0 of business project B → common business components" "Version 1.0 of the service item C" and "Version 3.0 of the business item C→Version 3.0 of the public service component", where "→" represents a specific mapping relationship, which is not specifically limited in this embodiment of the present invention.

需要说明的是,在公共业务组件发生修改、升级、功能迭代等需要进行更新的时候,仅需要修改更新公共业务组件的代码,可以以静态js文件的形式进行发布。业务项目根据自身业务范围的需要,决定是否将其业务项目版本与最新版的公共业务组件版本之间建立映射关系。当前执行端可以为与客户端进行数据通信的云端服务器,并可以实时或按照时间间隔加载公共业务组件所绑定的版本映射关系,并存储在当前执行端中,以在执行步骤102时进行调取。It should be noted that when the public business components need to be updated due to modification, upgrade, function iteration, etc., only the code of the public business components needs to be modified and updated, which can be published in the form of static js files. According to the needs of its own business scope, the business project decides whether to establish a mapping relationship between its business project version and the latest version of the public business component. The current execution end can be a cloud server that communicates data with the client, and can load the version mapping relationship bound to the common service component in real time or at time intervals, and store it in the current execution end for adjustment when step 102 is executed. Pick.

102、当接收到客户端的公共业务数据调取请求,则基于所述版本映射关系,确定与所述公共业务数据调取请求携带的目标业务项目匹配的目标业务项目版本以及目标公共业务组件版本;102. When receiving the public service data retrieval request from the client, determine the target service item version and the target public service component version matching the target service item carried in the public service data retrieval request based on the version mapping relationship;

本发明实施例中,用户通过客户端中的应用程序触发对应的目标业务项目,确定需要进行请求的公共业务数据,以进行公共业务数据调取请求的发送。当前执行端在接收到客户端的公共业务数据调取请求之后,读取公共业务数据调取请求中携带的目标业务项目所匹配的目标业务项目版本,以根据版本映射关系中该目标业务项目版本与相应的目标公共业务组件版本的映射内容,找到目标公共业务组件版本。例如,当前客户端的目标业务项目A发送了公共业务数据调取请求,首先在接收到该请求后读取目标业务项目A所匹配的目标业务项目版本,如1.0版本等,具体的版本形式的描述,本发明实施例不做具体限定。基于版本映射关系中的映射内容查找目标业务项目A的1.0版本所对应的目标公共业务组件版本,例如“业务项目A的1.0版本→公共业务组件的2.0版本”,本发明实施例不做具体限定。In the embodiment of the present invention, the user triggers the corresponding target service item through the application program in the client, and determines the public service data that needs to be requested, so as to send the public service data retrieval request. After receiving the public service data retrieval request from the client, the current execution end reads the target service item version matched with the target service item carried in the public service data retrieval request, and uses the version mapping relationship between the target service item version and the target service item version in the version mapping relationship. The mapping content of the corresponding target public business component version, find the target public business component version. For example, the target business item A of the current client sends a public service data retrieval request. After receiving the request, first read the version of the target business item matched by the target business item A, such as version 1.0, etc., and a description of the specific version format , the embodiments of the present invention are not specifically limited. Find the target public service component version corresponding to version 1.0 of target business item A based on the mapping content in the version mapping relationship, for example, "version 1.0 of business item A→version 2.0 of public service component", which is not specifically limited in this embodiment of the present invention .

103、根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据,并向所述客户端反馈所述目标公共业务数据。103. Retrieve target public service data corresponding to the target public service component version according to the target service item version, and feed back the target public service data to the client.

本发明实施例中,在确定目标业务项目版本所对应的目标公共业务组件版本后,当前执行端提取与目标公共业务组件版本所对应的目标公共业务数据,将此目标公共业务数据发送至客户端中,以使客户端基于目标公共业务数据进行业务操作。另外,由于公共业务数据包括但不限于公共用户基础数据、公共交通数据、公共住宿资源数据等,因此,本发明实施例中步骤101-103中所实现的公共业务数据处理所适用的应该场景包括但不限于电子产品支付、医疗健康、保险产品等场景,以满足不同客户端中针对业务项目灵活请求获取公共业务数据的需求。In this embodiment of the present invention, after determining the target public service component version corresponding to the target service item version, the current execution end extracts the target public service data corresponding to the target public service component version, and sends the target public service data to the client , so that the client can perform business operations based on the target public business data. In addition, since the public service data includes but is not limited to public user basic data, public transportation data, public accommodation resource data, etc., the applicable scenarios for the public service data processing implemented in steps 101-103 in this embodiment of the present invention include: However, it is not limited to scenarios such as electronic product payment, medical health, insurance products, etc., to meet the needs of different clients to flexibly request public business data for business projects.

需要说明的是,客户端在加载公共业务数据时优选异步加载的方式进行加载,采用异步加载的好处是不影响当前目标业务项目的正常运行,可提高用户体验效果。It should be noted that when loading public business data, the client preferably loads it asynchronously. The advantage of using asynchronous loading is that it does not affect the normal operation of the current target business project, which can improve user experience.

在另一个本发明实施例中,为了进一步限定及说明,如图2所示,步骤所述基于所述版本映射关系,确定与所述公共业务数据调取请求携带的目标业务项目匹配的目标业务项目版本以及目标公共业务组件版本,包括:In another embodiment of the present invention, in order to further limit and illustrate, as shown in FIG. 2 , in the step, based on the version mapping relationship, a target service that matches the target service item carried in the public service data retrieval request is determined. Project version and target common business component version, including:

201、解析目标业务项目的版本标识,并查找所述版本映射关系中与所述版本标识对应的目标业务项目版本;201. Parse the version identifier of the target business item, and search for the target business item version corresponding to the version identifier in the version mapping relationship;

本发明实施例中,当前执行端解析发送公共业务数据请求的客户端中目标业务项目所匹配的目标业务项目版本的版本标识,所述目标业务项目版本包括但不限于内测版、早期版本、候选版本(Release Candidate)、正式发行版本、一般可用版本(GeneralAvailability)、稳定版,本发明实施例不做具体限定。上述介绍的各个目标业务项目版本所对应的版本标识分别为Alpha、Beta、RC、Release、GA和Stable。也可以在版本标识中加入阶段标识用于表述同一版本同一阶段的文件修改次数,还可以在版本标识中加入人名或缩写用于区别同一份文件不同的提交人。在解析到目标业务项目的版本标识后,当前执行端根据版本映射关系中的内容查找到与解析到的版本标识相对应的目标业务项目版本。例如,目标业务项目A的版本标识为“Alpha_b1”,表示目标业务项目A为处于设计阶段第一次修改的内测版,在版本映射关系中查找到被标识为“Alpha_b1”版本的目标业务项目A,本发明实施例不做具体限定。In the embodiment of the present invention, the current execution end parses the version identifier of the target business item version matched by the target business item in the client that sends the public business data request, and the target business item version includes but is not limited to an internal beta version, an early version, A candidate version (Release Candidate), an official release version, a generally available version (General Availability), and a stable version are not specifically limited in this embodiment of the present invention. The version identifiers corresponding to each target business project version introduced above are Alpha, Beta, RC, Release, GA, and Stable, respectively. It is also possible to add a phase identifier to the version identifier to express the number of file modifications in the same version and the same phase, and to add a person's name or abbreviation to the version identifier to distinguish different submitters of the same file. After parsing the version identifier of the target business item, the current execution end finds the version of the target business item corresponding to the resolved version identifier according to the content in the version mapping relationship. For example, the version identifier of target business project A is "Alpha_b1", which means that the target business project A is the first modified internal beta version in the design stage, and the target business project identified as "Alpha_b1" version is found in the version mapping relationship A, the embodiments of the present invention are not specifically limited.

202、若查找到所述目标业务项目版本,则基于所述版本映射关系中的映射内容确定与所述目标业务项目版本匹配的目标公共业务组件版本;202. If the target business item version is found, determine a target public service component version matching the target business item version based on the mapping content in the version mapping relationship;

203、若未查找到所述目标业务项目版本,则将预设备用公共业务组件版本确定为目标公共业务组件版本。203. If the target service item version is not found, determine the preset standby public service component version as the target public service component version.

本发明实施例中,根据版本映射关系中的内容,在解析到目标业务项目标识时可能会出现查找到或者未查找到目标业务项目标识相对应的目标业务项目版本这两种情况,在查找到目标业务项目版本时,可以直接根据版本映射关系中的映射内容,得到目标业务项目版本所匹配的目标公共业务组件的版本。当未查找到目标业务项目版本时,给未查找到目标业务项目版本的版本标识所对应的目标业务项目匹配预设备用的公共业务组件版本。预设备用的公共业务组件版本为预先进行设定的默认版本,可以是主版本、实际使用时最稳定的版本等,本发明实施例不做具体限定。In the embodiment of the present invention, according to the content in the version mapping relationship, when the target business item identifier is parsed, there may be two situations in which the target business item version corresponding to the target business item identifier is found or not found. When the version of the target business item is selected, the version of the target public business component matched by the version of the target business item can be obtained directly according to the mapping content in the version mapping relationship. When the target business item version is not found, the target business item corresponding to the version identifier for which the target business item version is not found is matched with a preset standby common business component version. The preset standby version of the public service component is a preset default version, which may be the main version, the most stable version in actual use, or the like, which is not specifically limited in the embodiment of the present invention.

需要说明的是,在公共业务组件发生修改、升级、功能迭代等需要进行更新的时候,所述预设备用的公共业务组件版本也不会发生修改、升级、功能迭代等更新操作。It should be noted that when the public service component needs to be updated due to modification, upgrade, function iteration, etc., the preset standby version of the public service component will not undergo any update operations such as modification, upgrade, and function iteration.

针对映射关系中的映射内容进行有针对性的查找,满足了客户端中不同业务项目的对公共业务数据的需求,提高了业务项目调取公共业务数据的灵活性。Targeted search is performed for the mapping content in the mapping relationship, which satisfies the requirements for common business data of different business projects in the client, and improves the flexibility of business projects to retrieve common business data.

在另一个本发明实施例中,为了进一步限定及说明,步骤加载公共业务组件所绑定的版本映射关系之前,所述方法还包括:In another embodiment of the present invention, in order to further define and illustrate, before the step of loading the version mapping relationship bound to the common service component, the method further includes:

当检测到对所述公共业务组件的更新操作完成时,向更新操作端发送所述公共业务组件的更新请求;When it is detected that the update operation of the public service component is completed, an update request of the public service component is sent to the update operator;

本发明实施例中,为了使客户端能调取到最新的公共业务组件的版本,即客户端能调取到最新的公共业务数据,需要定时或者不定时的对公共业务组件的更行情况进行检测。检测时当前执行端向更新操作端发送更新检测信号,接收到更新检测信号后更新操作端自行进行更新操作检测;若更新操作端检测到公共业务组件具有更新动态,待更新动态完成后,更新操作端向当前执行端反馈更新操作触发信号,当前执行端接收到更新操作端反馈的更新操作触发信号后,向反馈更新操作触发信号的更新操作端发送公共业务组件的更新请求。反之,若更新操作端未检测到公共业务组件具有更新动态,则不需要向当前执行端反馈更新操作触发信号,不触发当前执行端发送公共业务组件的更新请求。更新操作端包括但不限于后台管理器、服务器、存储器等,本发明实施例不做具体限定。In the embodiment of the present invention, in order to enable the client to retrieve the latest version of the public service component, that is, the client to retrieve the latest public service data, it is necessary to periodically or irregularly update the public service component. detection. During detection, the current execution terminal sends an update detection signal to the update operation terminal, and after receiving the update detection signal, the update operation terminal performs the update operation detection by itself; if the update operation terminal detects that the public service component has an update dynamic, after the update dynamic is completed, the update operation is performed. The terminal feeds back an update operation trigger signal to the current execution terminal. After receiving the update operation trigger signal fed back by the update operation terminal, the current execution terminal sends an update request of the common service component to the update operation terminal that fed back the update operation trigger signal. Conversely, if the update operator does not detect that the public service component has update dynamics, it does not need to feed back an update operation trigger signal to the current execution end, and does not trigger the current execution end to send an update request for the public service component. The update operation terminal includes but is not limited to a background manager, a server, a storage, and the like, which is not specifically limited in the embodiment of the present invention.

对应的,所述加载公共业务组件所绑定的版本映射关系包括:Correspondingly, the version mapping relationship bound by the loading public service components includes:

响应于所述更新请求的更新反馈信息,更新所述公共业务组件,并加载所述公共业务组件绑定的版本映射关系。In response to the update feedback information of the update request, the public service component is updated, and the version mapping relationship bound by the public service component is loaded.

本发明实施例中,当前执行端在向更新操作端发送公共业务组件的更新请求后,更新操作端针对该更新请求进行反馈,即将更新请求中携带的需要进行更新操作的公共业务组件所绑定的版本映射关系进行打包,并将打包后的公共业务组件所绑定的版本映射关系发送到当前执行端。当前执行端接收到打包后的公共业务组件所绑定的版本映射关系后进行公共业务组件的版本映射关系的加载。In this embodiment of the present invention, after the current execution end sends an update request for the public service component to the update operation end, the update operation end provides feedback on the update request, that is, the update request is bound to the public service component that needs to be updated. The version mapping relationship is packaged, and the version mapping relationship bound by the packaged public business component is sent to the current execution end. After receiving the version mapping relationship bound by the packaged public service component, the current execution end loads the version mapping relationship of the public service component.

需要说明的是,当前执行端响应于更新操作端的更新反馈信息后对公共业务组件进行更新操作时,原公共业务组件的版本文件保存为历史公共业务组件的版本文件,所有历史公共业务组件的版本文件不因更新新版本而丢失,而是以带版本号的单独的文件包的形式进行保存。带版本号的公共业务组件的版本文件可以以js文件包的形式发布到不同的地址上,实现单独保存,这种保存方法没有覆盖掉任何一个公共业务组件的版本文件,方便了对公共业务组件的版本管理,也为加载不同版本的公共业务组件提供了基础。It should be noted that when the current execution end performs an update operation on the public service component after responding to the update feedback information from the update operator, the version file of the original public service component is saved as the version file of the historical public service component, and the versions of all historical public service components are saved. Files are not lost by updating to a new version, but are saved as separate file packages with version numbers. The version files of public business components with version numbers can be published to different addresses in the form of js file packages to achieve separate storage. This saving method does not cover the version files of any public business components, which is convenient for public business components. It also provides a basis for loading different versions of common business components.

在另一个本发明实施例中,为了进一步限定及说明,步骤加载公共业务组件所绑定的版本映射关系之后,所述方法还包括:In another embodiment of the present invention, in order to further define and illustrate, after the step of loading the version mapping relationship bound by the common service component, the method further includes:

按照第一预设时间间隔发送第一版本映射关系更新请求,并基于接收到第二更新反馈信息对所述公共业务组件所绑定的版本映射关系进行更新。The first version mapping relationship update request is sent according to the first preset time interval, and the version mapping relationship bound to the common service component is updated based on the received second update feedback information.

本发明实施例中,为了使客户端所执行的业务项目版本与版本映射关系中实际调用的公共业务组件版本保持一致,需要设置第一预设时间间隔,例如3小时、1天、1周等,本发明实施例不做具体限定。在第一预设时间间隔的控制下,当前执行端向版本映射关系的更新操作端发送第一版本映射关系更新请求。更新操作端接收到第一版本映射关系更新请求后,向当前执行端发送第二更新反馈信息,即将公共业务组件所绑定的版本映射关系进行打包,并发送到当前执行端。基于接收到的打包后的公共业务组件所绑定的版本映射关系当前执行端对存储的公共业务组件所绑定的版本映射关系进行更新操作。In the embodiment of the present invention, in order to keep the version of the business item executed by the client consistent with the version of the public business component actually called in the version mapping relationship, a first preset time interval needs to be set, such as 3 hours, 1 day, 1 week, etc. , the embodiments of the present invention are not specifically limited. Under the control of the first preset time interval, the current execution end sends a first version mapping relationship update request to the update operation end of the version mapping relationship. After receiving the first version mapping relationship update request, the update operator sends second update feedback information to the current execution end, that is, packages the version mapping relationship bound to the public service component and sends it to the current execution end. Based on the received version mapping relationship bound to the packaged public business component, the current execution end performs an update operation on the stored version mapping relationship bound to the public business component.

在另一个本发明实施例中,为了进一步限定及说明,步骤加载公共业务组件所绑定的版本映射关系之后,所述方法还包括:In another embodiment of the present invention, in order to further define and illustrate, after the step of loading the version mapping relationship bound by the common service component, the method further includes:

获取所述客户端中执行业务操作所对应的执行业务项目版本;Obtain the execution business item version corresponding to the execution business operation in the client;

若所述执行业务项目版本与所述版本映射关系中的各所述业务项目版本至少一个不相同,则发送第二版本映射关系更新请求,并基于接收到的第三更新反馈信息对所述公共业务组件所绑定的版本映射关系进行更新。If the execution business item version is different from at least one of each of the business item versions in the version mapping relationship, send a second version mapping relationship update request, and update the public domain based on the received third update feedback information. The version mapping relationship bound to the business component is updated.

本发明实施例中,为了使客户端所执行的业务项目版本与版本映射关系中实际调用的公共业务组件版本保持一致,还可以通过获取客户端中执行的业务操作所对应的执行业务项目的版本,再解析执行业务项目版本的版本标识,并将解析到的版本标识与版本映射关系中业务项目版本的版本标识进行对照,如果在对照过程中发现有版本标识不一致的情况,向更新操作端发送第二版本映射关系更新请求。第二版本映射关系更新请求携带版本映射关系修改指令,更新操作端接收到第二版本映射关系更新请求后,根据第二版本映射关系中携带的版本映射关系修改指令对版本映射关系进行修改操作,并将更新后的版本映射关系以第三更新反馈信息的形式,发送到当前执行端。当前执行端基于接收到的第三更新反馈信息对公共业务组件所绑定的版本映射关系进行更新操作。In the embodiment of the present invention, in order to keep the version of the business item executed by the client consistent with the version of the public service component actually called in the version mapping relationship, the version of the executed business item corresponding to the business operation executed in the client can also be obtained by obtaining , and then parse the version ID of the execution business item version, and compare the parsed version ID with the version ID of the business item version in the version mapping relationship. The second version mapping relationship update request. The second version mapping relationship update request carries a version mapping relationship modification instruction, and after receiving the second version mapping relationship update request, the update operator performs a modification operation on the version mapping relationship according to the version mapping relationship modification instruction carried in the second version mapping relationship, The updated version mapping relationship is sent to the current execution end in the form of third update feedback information. The current execution end performs an update operation on the version mapping relationship bound to the common service component based on the received third update feedback information.

需要说明的是,本发明实施例中所述的业务操作包括但不限于订餐、购买保险产品、交电话费等业务操作,本发明实施例不做具体限定。It should be noted that the business operations described in the embodiments of the present invention include but are not limited to business operations such as ordering meals, purchasing insurance products, and paying telephone bills, which are not specifically limited in the embodiments of the present invention.

在另一个本发明实施例中,为了进一步限定及说明,步骤根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据,并向所述客户端反馈所述目标公共业务数据之前,所述方法还包括:In another embodiment of the present invention, in order to further define and illustrate, the step retrieves the target public service data corresponding to the target public service component version according to the target service item version, and feeds back the target public service data to the client. Before the business data, the method further includes:

当接收到业务回滚请求后,根据所述业务回滚请求所携带的业务回滚对象确定待回滚业务项目版本和/或待回滚公共业务组件版本;After receiving the service rollback request, determine the version of the service item to be rolled back and/or the version of the common service component to be rolled back according to the service rollback object carried in the service rollback request;

若所述待回滚业务项目版本为所述目标业务项目版本,则从历史业务项目版本、预设业务项目版本中更新确定目标业务项目版本;If the version of the business item to be rolled back is the target business item version, update and determine the target business item version from the historical business item version and the preset business item version;

若所述待回滚公共业务组件版本为所述目标公共业务组件版本,则从历史公共业务组件版本、预设公共业务组件版本中更新确定目标公共业务组件版本。If the public service component version to be rolled back is the target public service component version, update and determine the target public service component version from the historical public service component version and the preset public service component version.

本发明实施例中,当公共业务组件需要进行业务迭代或者bug修复等操作时,就需要对该公共业务组件或者绑定了该公共业务组件的业务项目进行回滚操作。由客户端发出业务回滚请求,当前执行端接收到业务回滚请求后,需要先根据业务回滚请求找到该请求中需要进行业务回滚的对象,即确定待回滚的业务项目或确定待回滚公共业务组件;接着解析该待回滚的业务项目或待回滚的公共业务组件所对应的业务项目版本或公共业务组件版本;最后对解析到的待回滚业务项目版本或是待回滚公共业务组件版本进行判断,如果待回滚业务项目版本与目标业务项目版本一致,则从历史业务项目版本或者预设业务项目版本中选择需要进行回滚的业务项目版本。其中,历史业务项目版本为除当前业务项目版本和预设业务项目版本外的所有因更新操作保存的业务项目版本;预设业务项目版本为预先进行设定的默认版本,可以是主版本、实际使用时最稳定的版本等,本发明实施例不做具体限定。如果待回滚公共业务组件版本与目标公共业务组件版本一致,则从历史公共业务组件版本或者预设公共业务组件版本中选择需要进行回滚的公共业务组件版本。其中,历史公共业务组件版本为除当前公共业务组件版本和预设公共业务组件版本外的所有因更新操作保存的公共业务组件版本;预设公共业务组件版本为预先进行设定的默认版本,可以是主版本、实际使用时最稳定的版本等,本发明实施例不做具体限定。In the embodiment of the present invention, when the common business component needs to perform operations such as business iteration or bug repair, it is necessary to perform a rollback operation on the common business component or the business project bound with the common business component. The client sends a business rollback request. After the current execution end receives the business rollback request, it needs to first find the object in the request that needs to be rolled back according to the business rollback request, that is, to determine the business item to be rolled back or the business item to be rolled back. Roll back the common business component; then parse the business item version or common business component version corresponding to the business item to be rolled back or the public business component to be rolled back; The version of the common business component is rolled for judgment. If the version of the business item to be rolled back is consistent with the version of the target business item, the business item version to be rolled back is selected from the historical business item version or the preset business item version. Among them, the historical business item version is all the business item versions saved due to the update operation except the current business item version and the preset business item version; the preset business item version is the default version set in advance, which can be the main version, the actual The most stable version in use, etc., is not specifically limited in this embodiment of the present invention. If the version of the public service component to be rolled back is the same as the version of the target public service component, select the version of the public service component that needs to be rolled back from the historical public service component version or the preset public service component version. Among them, the historical public service component version is all the public service component versions saved due to the update operation except the current public service component version and the preset public service component version; the preset public service component version is a preset default version, which can be It is the main version, the most stable version in actual use, etc., which is not specifically limited in the embodiment of the present invention.

需要说明的是,在业务回滚时,不仅可以针对不同的目标业务项目进行回滚,还可以针对不同版本的公共业务组件进行回滚,这种可选择的回滚方式,使得每次回滚时发布的内容可控,不需要对所有业务项目进行全量回归,不仅减少了发布风险,还节省了回归人力。It should be noted that when the business is rolled back, not only can it be rolled back for different target business projects, but also for different versions of common business components. This optional rollback method makes every rollback possible. The released content is controllable, and there is no need to perform a full return of all business projects, which not only reduces the release risk, but also saves return manpower.

在另一个本发明实施例中,为了进一步限定及说明,步骤根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据之后,所述方法还包括:In another embodiment of the present invention, in order to further limit and illustrate, after the step calls the target public service data corresponding to the target public service component version according to the target service item version, the method further includes:

解析所述目标公共业务数据中的业务数据类型,以及业务项目的项目类型;Parse the business data type in the target public business data, and the item type of the business item;

若所述业务数据类型与所述项目类型不匹配,则向所述客户端发送验证请求,所述验证请求中携带有业务验证权限,以当所述客户端通过验证后反馈所述目标公共业务数据。If the service data type does not match the item type, a verification request is sent to the client, and the verification request carries the service verification authority, so that when the client passes the verification, the target public service is fed back data.

本发明实施例中,为了提高公共业务组件调取目标公共业务数据的处理准确性,从而提高目标公共业务数据反馈至客户端中进行处理的效率,解析目标公共业务数据中的业务数据类型以及业务项目的项目类型。由于公共业务数据包括公共用户基础数据、公共交通数据、公共住宿姿态数据等,且业务项目包括但不限于银行类业务项目、保险类业务项目、生活服务类业务项目等,因此,对公共业务数据、业务项目所对应的数据类型进行解析,得到业务数据类型,以及项目类型,其中,业务数据类型包括但不限于数字类型、图像类型、文本类型、金融资源类型,项目类型包括但不限于交易类型、数据处理类、数据查询类等,本发明实施例不做具体限定。例如,公共业务数据中公共用户基础数据属于文本类型、图像类型、数字类型,此时,可以与业务项目的项目类型,如数据处理类型相匹配,或数据查询类型相匹配,而不能与交易类型相匹配,本发明实施例不做具体限定。In the embodiment of the present invention, in order to improve the processing accuracy of the target public service data fetched by the public service component, thereby improving the efficiency of feeding back the target public service data to the client for processing, the service data types and services in the target public service data are analyzed. The item type of the item. Since public business data includes public user basic data, public transportation data, public accommodation posture data, etc., and business items include but are not limited to banking business projects, insurance business projects, life service business projects, etc., public business data , analyze the data type corresponding to the business project, and obtain the business data type and project type, wherein the business data type includes but is not limited to digital type, image type, text type, financial resource type, and the project type includes but is not limited to transaction type , data processing class, data query class, etc., which are not specifically limited in the embodiments of the present invention. For example, the public user basic data in the public business data belongs to the text type, image type, and number type. In this case, it can match the project type of the business project, such as the data processing type, or the data query type, but not the transaction type. Matching, the embodiment of the present invention does not make specific limitations.

需要说明的是,在业务数据类型与项目类型进行匹配时,可以与预先写入的匹配规则进行匹配判断,例如,匹配规则中包含项目类型中交易类型仅仅可以与业务数据类型中的金融资源类型相匹配,从而交易类型的业务项目基于金融资源类型的公共业务数据进行业务处理,本发明实施例不做具体限定。若业务数据类型与项目类型不匹配,说明业务项目没有权限基于调取的目标公共业务数据进行数据处理,因此,向客户端发送验证请求。此时,当前执行端发送的验证请求中携带有业务验证权限,以当客户端通过验证后反馈目标公共业务数据。具体的,业务验证权限用于指示用户进行业务权限的验证录入,例如,用户为vip用户,当触发业务项目s时,当前执行端确定此业务项目s的项目类型与请求调取的公共业务数据的业务数据类型不匹配,则发送业务验证权限,用户录入属于vip的验证权限后,通过验证,从而使得当前执行端向客户端反馈此不匹配的公共业务数据,满足不同用户对公共业务数据的处理需求。It should be noted that when the business data type is matched with the project type, it can be matched with the pre-written matching rules. For example, the matching rule contains the transaction type in the project type that can only match the financial resource type in the business data type. Therefore, the business item of the transaction type performs business processing based on the public business data of the financial resource type, which is not specifically limited in the embodiment of the present invention. If the business data type does not match the project type, it means that the business project does not have the right to perform data processing based on the fetched target public business data, so a verification request is sent to the client. At this time, the verification request sent by the current execution terminal carries the service verification authority, so that the client can feed back the target public service data after passing the verification. Specifically, the business verification authority is used to instruct the user to verify and enter the business authority. For example, if the user is a vip user, when the business item s is triggered, the current execution end determines the project type of the business item s and the public business data requested to be retrieved. If the type of business data does not match, the business verification authority is sent. After the user enters the verification authority belonging to the vip, the verification is passed, so that the current execution end feeds back the unmatched public business data to the client, so as to meet the needs of different users for public business data. Process demand.

在另一个本发明实施例中,为了进一步限定及说明,上述任意方法实施例中的公共业务数据的处理方法还包括:In another embodiment of the present invention, in order to further limit and illustrate, the method for processing public service data in any of the above method embodiments further includes:

统计第二预设时间间隔内所述调取请求的请求次数;Counting the number of requests for the retrieval request within the second preset time interval;

若所述请求次数匹配预设次数阈值,则发送所述公共业务组件的更新请求,以请求对所述公共业务组件进行更新。If the number of requests matches the preset number of times threshold, an update request for the public service component is sent to request to update the public service component.

本发明实施例中,为了能够随客户端对公共业务组件中公共业务数据的需求情况的大小的变化,改变对公共业务组件的更新频率,在当前执行端内设置了第二预设时间间隔,用于统计客户端调取公共业务数据请求的请求次数,例如,先设置统计次数为0,每当检测到客户端请求调取公共业务数据时,统计次数就加1,若设置第二预设时间间隔为4小时,就统计4小时内客户端一共发出了多少条公共业务数据的调取指令,过了第二预设时间间隔4小时后统计次数清零,进行下一个4小时的统计;若设置第二预设时间间隔为1天,就统计1天内客户端一共发出了多少条公共业务数据的调取指令,过了第二预设时间间隔1天后统计次数清零,进行下一个1天的统计,本发明实施例不做具体限定。In the embodiment of the present invention, in order to be able to change the update frequency of the public service component according to the change of the client's demand for the public service data in the public service component, a second preset time interval is set in the current execution end, Used to count the number of requests made by the client to retrieve public service data. For example, first set the number of statistics to 0. Whenever it is detected that the client requests to retrieve public service data, the number of statistics is incremented by 1. If the second preset is set If the time interval is 4 hours, count the number of public service data retrieval commands sent by the client within 4 hours. After the second preset time interval of 4 hours has passed, the number of counts will be cleared, and the next 4 hours will be counted; If the second preset time interval is set to 1 day, the number of public service data retrieval instructions sent by the client in 1 day is counted. After the second preset time interval has passed for 1 day, the number of statistics is cleared, and the next 1 The statistics of the day are not specifically limited in this embodiment of the present invention.

当前执行端统计到的请求次数达到预设的次数阈值时,自动向更新操作端发送公共业务组件的更新请求,实现对公共业务组件的更新操作。其中,次数阈值设置可以是固定的次数阈值,如2000、10000等,还可以根据用户每个时段的使用频率的不同,进行分时段的设置次数阈值,本发明实施例不做具体限定。When the number of requests counted by the current execution end reaches a preset number of times threshold, it automatically sends an update request for the public service component to the update operation end to implement the update operation for the public service component. The number of times threshold setting may be a fixed number of times threshold, such as 2000, 10000, etc., and the number of times threshold may be set by time period according to the different usage frequency of the user in each time period, which is not specifically limited in this embodiment of the present invention.

进一步的,作为对上述图1所示方法的实现,本发明实施例提供了一种公共业务数据的处理装置,如图3所示,该装置包括:Further, as an implementation of the method shown in FIG. 1, an embodiment of the present invention provides an apparatus for processing public service data. As shown in FIG. 3, the apparatus includes:

加载模块31,用于加载公共业务组件所绑定的版本映射关系,所述版本映射关系中配置有不同业务项目版本与不同公共业务组件版本之间的映射内容;The loading module 31 is used to load the version mapping relationship bound by the common business component, and the mapping content between different business item versions and different common business component versions is configured in the version mapping relationship;

匹配模块32,用于当接收到客户端的公共业务数据调取请求,则基于所述版本映射关系,确定与所述公共业务数据调取请求携带的目标业务项目匹配的目标业务项目版本以及目标公共业务组件版本;The matching module 32 is configured to, when receiving the public service data retrieval request of the client, determine the target service item version and the target public service matching the target service item carried in the public service data retrieval request based on the version mapping relationship. business component version;

执行模块33,用于根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据,并向所述客户端反馈所述目标公共业务数据。The execution module 33 is configured to retrieve the target public service data corresponding to the target public service component version according to the target service item version, and feed back the target public service data to the client.

进一步地,所述匹配模块32还包括:Further, the matching module 32 also includes:

解析单元,用于解析目标业务项目的版本标识,并查找所述版本映射关系中与所述版本标识对应的目标业务项目版本;a parsing unit for parsing the version identifier of the target business item, and searching for the version of the target business item corresponding to the version identifier in the version mapping relationship;

确定单元,首先判断是否查找到所述目标业务项目版本,若查找到所述目标业务项目版本,则基于所述版本映射关系中的映射内容确定与所述目标业务项目版本匹配的目标公共业务组件版本;若未查找到所述目标业务项目版本,则将预设备用公共业务组件版本确定为目标公共业务组件版本。The determining unit firstly judges whether the target business item version is found, and if the target business item version is found, then determines the target public service component matching the target business item version based on the mapping content in the version mapping relationship version; if the target business item version is not found, the preset standby public business component version is determined as the target public business component version.

进一步地,所述装置还包括:Further, the device also includes:

更新检测模块,当检测到对所述公共业务组件的更新操作完成时,向更新操作端发送所述公共业务组件的更新请求;an update detection module, when detecting that the update operation of the public service component is completed, sending an update request of the public service component to the update operator;

所述加载模块31还用于响应于所述更新请求的更新反馈信息,更新所述公共业务组件,并加载所述公共业务组件绑定的版本映射关系。The loading module 31 is further configured to update the common service component in response to the update feedback information of the update request, and load the version mapping relationship bound by the common service component.

进一步的,所述装置还包括:Further, the device also includes:

第一更新请求发送模块,用于按照第一预设时间间隔发送第一版本映射关系更新请求,并基于接收到第二更新反馈信息对所述公共业务组件所绑定的版本映射关系进行更新;a first update request sending module, configured to send a first version mapping relationship update request according to a first preset time interval, and update the version mapping relationship bound to the public service component based on the received second update feedback information;

所述第一更新请求发送模块还用于获取所述客户端中执行业务操作所对应的执行业务项目版本;若所述执行业务项目版本与所述版本映射关系中的各所述业务项目版本至少一个不相同,则发送第二版本映射关系更新请求,并基于接收到的第三更新反馈信息对所述公共业务组件所绑定的版本映射关系进行更新。The first update request sending module is further configured to obtain the execution business item version corresponding to the execution business operation in the client; if the execution business item version and each of the business item versions in the version mapping relationship are at least If one is different, send a second version mapping relationship update request, and update the version mapping relationship bound to the common service component based on the received third update feedback information.

进一步的,所述装置还包括:Further, the device also includes:

业务回滚模块,所述业务回滚模块包括业务回滚项目确定单元,当接收到业务回滚请求后,根据所述业务回滚请求所携带的业务回滚对象确定待回滚业务项目版本和/或待回滚公共业务组件版本;A business rollback module, the business rollback module includes a business rollback item determination unit, and after receiving a business rollback request, determines the version of the business item to be rolled back and the business rollback object carried in the business rollback request according to the business rollback object. / or the version of the public business component to be rolled back;

所述业务回滚模块还包括业务回滚执行单元,若所述待回滚业务项目版本为所述目标业务项目版本,则从历史业务项目版本、预设业务项目版本中更新确定目标业务项目版本;The business rollback module further includes a business rollback execution unit, and if the version of the business item to be rolled back is the target business item version, the target business item version is updated and determined from the historical business item version and the preset business item version. ;

若所述待回滚公共业务组件版本为所述目标公共业务组件版本,则从历史公共业务组件版本、预设公共业务组件版本中更新确定目标公共业务组件版本。If the public service component version to be rolled back is the target public service component version, update and determine the target public service component version from the historical public service component version and the preset public service component version.

进一步的,所述装置还包括:Further, the device also includes:

验证模块,所述验证模块包括数据类型解析单元,用于解析所述目标公共业务数据中的业务数据类型;所述验证模块还包括项目类型解析单元,用于解析业务项目的项目类型;a verification module, the verification module includes a data type analysis unit for analyzing the business data type in the target public business data; the verification module further includes an item type analysis unit for analyzing the project type of the business project;

所述验证模块还包括验证执行单元,若所述业务数据类型与所述项目类型不匹配,则向所述客户端发送验证请求,所述验证请求中携带有业务验证权限,以当所述客户端通过验证后反馈所述目标公共业务数据。The verification module also includes a verification execution unit, and if the business data type does not match the item type, a verification request is sent to the client, and the verification request carries a business verification authority, so that when the client After passing the verification, the terminal feeds back the target public service data.

进一步的,所述装置还包括:Further, the device also includes:

第二更新请求发送模块,用于统计第二预设时间间隔内所述调取请求的请求次数;a second update request sending module, configured to count the number of times of the retrieval request within the second preset time interval;

所述第二更新请求发送模块,还用于判断请求次数是否达到预设的次数阈值,若所述请求次数匹配预设次数阈值,则发送所述公共业务组件的更新请求,以请求对所述公共业务组件进行更新。The second update request sending module is further configured to judge whether the number of requests reaches a preset number threshold, and if the number of requests matches the preset number threshold, send an update request for the public service component to request the Common business components are updated.

根据本发明一个实施例提供了一种存储介质,所述存储介质存储有至少一可执行指令,该计算机可执行指令可执行上述任意方法实施例中的公共业务数据的处理方法对应的操作。According to an embodiment of the present invention, a storage medium is provided, the storage medium stores at least one executable instruction, and the computer-executable instruction can perform operations corresponding to the method for processing public service data in any of the foregoing method embodiments.

图4示出了根据本发明一个实施例提供的一种计算机设备的结构示意图,本发明具体实施例并不对计算机设备的具体实现做限定。FIG. 4 shows a schematic structural diagram of a computer device according to an embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the computer device.

如图4所示,该计算机设备可以包括:处理器(processor)402、通信接口(Communications Interface)404、存储器(memory)406、以及通信总线408。As shown in FIG. 4 , the computer device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

其中:处理器402、通信接口404、以及存储器406通过通信总线408完成相互间的通信。The processor 402 , the communication interface 404 , and the memory 406 communicate with each other through the communication bus 408 .

通信接口404,用于与其它设备比如客户端或其它服务器等的网元通信。The communication interface 404 is used for communicating with network elements of other devices such as clients or other servers.

处理器402,用于执行程序410,具体可以执行上述公共业务数据的处理方法实施例中的相关步骤。The processor 402 is configured to execute the program 410, and specifically may execute the relevant steps in the foregoing embodiments of the method for processing public service data.

具体地,程序410可以包括程序代码,该程序代码包括计算机操作指令。Specifically, the program 410 may include program code including computer operation instructions.

处理器402可能是中央处理器CPU,或者是特定集成电路ASIC(ApplicationSpecific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。计算机设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 402 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the computer equipment may be the same type of processors, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.

存储器406,用于存放程序410。存储器406可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 406 is used to store the program 410 . Memory 406 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.

程序410具体可以用于使得处理器402执行以下操作:The program 410 can specifically be used to cause the processor 402 to perform the following operations:

加载公共业务组件所绑定的版本映射关系,所述版本映射关系中配置有不同业务项目版本与不同公共业务组件版本之间的映射内容;Loading the version mapping relationship bound by the common business component, where the mapping content between different business item versions and different common business component versions is configured in the version mapping relationship;

当接收到客户端的公共业务数据调取请求,则基于所述版本映射关系,确定与所述公共业务数据调取请求携带的目标业务项目匹配的目标业务项目版本以及目标公共业务组件版本;When receiving the public service data retrieval request from the client, determine the target service item version and the target public service component version matching the target service item carried in the public service data retrieval request based on the version mapping relationship;

根据所述目标业务项目版本调取所述目标公共业务组件版本对应的目标公共业务数据,并向所述客户端反馈所述目标公共业务数据。The target public service data corresponding to the target public service component version is retrieved according to the target service item version, and the target public service data is fed back to the client.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. A method for processing public service data is characterized by comprising the following steps:
loading a version mapping relation bound by a common service component, wherein mapping contents between different service item versions and different common service component versions are configured in the version mapping relation;
when a public service data calling request of a client is received, determining a target service item version and a target public service component version which are matched with a target service item carried by the public service data calling request based on the version mapping relation;
and calling target public service data corresponding to the target public service component version according to the target service project version, and feeding back the target public service data to the client.
2. The method of claim 1, wherein the determining, based on the version mapping relationship, a target service item version and a target common service component version that match a target service item carried by the common service data invocation request comprises:
analyzing the version identification of the target service item, and searching the version of the target service item corresponding to the version identification in the version mapping relation;
if the target service item version is found, determining a target public service component version matched with the target service item version based on the mapping content in the version mapping relation;
and if the target service project version is not found, determining the public service component version for the preset equipment as the target public service component version.
3. The method of claim 2, wherein before the loading the version mapping relationship to which the common business component is bound, the method further comprises:
when the completion of the updating operation of the public service assembly is detected, sending an updating request of the public service assembly to an updating operation terminal;
the loading of the version mapping relationship bound by the common service component comprises:
and responding to the update feedback information of the update request, updating the public service component, and loading the version mapping relation bound by the public service component.
4. The method of claim 2, wherein after loading the version mapping relationship to which the common business component is bound, the method further comprises:
sending a first version mapping relation updating request according to a first preset time interval, and updating the version mapping relation bound by the public service component based on the received second updating feedback information; or the like, or, alternatively,
acquiring an execution service project version corresponding to execution service operation in the client;
and if the execution service item version is different from at least one of the service item versions in the version mapping relationship, sending a second version mapping relationship updating request, and updating the version mapping relationship bound by the public service component based on the received third updating feedback information.
5. The method according to claim 1, wherein before the retrieving the target public service data corresponding to the target public service component version according to the target service project version and feeding back the target public service data to the client, the method further comprises:
after a service rollback request is received, determining a version of a service item to be rolled back and/or a version of a common service component to be rolled back according to a service rollback object carried by the service rollback request;
if the service item version to be rolled back is the target service item version, updating and determining the target service item version from the historical service item version and the preset service item version;
and if the common service component version to be rolled back is the target common service component version, updating and determining the target common service component version from the historical common service component version and the preset common service component version.
6. The method according to claim 1, wherein after the target common service data corresponding to the target common service component version is called according to the target service project version, the method further comprises:
analyzing the service data type in the target public service data and the item type of the service item;
and if the service data type is not matched with the project type, sending a verification request to the client, wherein the verification request carries a service verification authority so as to feed back the target public service data after the client passes the verification.
7. The method according to any one of claims 1-6, further comprising:
counting the request times of the calling request in a second preset time interval;
and if the request times are matched with a preset time threshold, sending an updating request of the public service assembly to request for updating the public service assembly.
8. An apparatus for processing public service data, comprising:
the loading module is used for loading a version mapping relation bound by the public service component, and mapping contents between different service item versions and different public service component versions are configured in the version mapping relation;
the matching module is used for determining a target service item version and a target public service component version which are matched with a target service item carried by a public service data calling request based on the version mapping relation when the public service data calling request of a client is received;
and the execution module is used for calling the target public service data corresponding to the target public service component version according to the target service project version and feeding back the target public service data to the client.
9. A storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the processing method of public service data according to any one of claims 1 to 7.
10. A computer device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the processing method of the public service data according to any one of claims 1-7.
CN202210845995.6A 2022-07-19 2022-07-19 Method and device for processing public service data Pending CN115098157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210845995.6A CN115098157A (en) 2022-07-19 2022-07-19 Method and device for processing public service data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210845995.6A CN115098157A (en) 2022-07-19 2022-07-19 Method and device for processing public service data

Publications (1)

Publication Number Publication Date
CN115098157A true CN115098157A (en) 2022-09-23

Family

ID=83298045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210845995.6A Pending CN115098157A (en) 2022-07-19 2022-07-19 Method and device for processing public service data

Country Status (1)

Country Link
CN (1) CN115098157A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314421A (en) * 2022-10-08 2022-11-08 北京国安广传网络科技有限公司 Quantification management system based on network intelligent platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015074467A1 (en) * 2013-11-25 2015-05-28 腾讯科技(深圳)有限公司 Data update method, apparatus, and system and storage medium
CN108363564A (en) * 2018-01-23 2018-08-03 平安普惠企业管理有限公司 Entry modularization implementation method, device, terminal device and storage medium
CN111142895A (en) * 2019-11-26 2020-05-12 叮当快药科技集团有限公司 Method and system for synchronously updating components in project based on SVN (singular value decomposition) module

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015074467A1 (en) * 2013-11-25 2015-05-28 腾讯科技(深圳)有限公司 Data update method, apparatus, and system and storage medium
CN108363564A (en) * 2018-01-23 2018-08-03 平安普惠企业管理有限公司 Entry modularization implementation method, device, terminal device and storage medium
CN111142895A (en) * 2019-11-26 2020-05-12 叮当快药科技集团有限公司 Method and system for synchronously updating components in project based on SVN (singular value decomposition) module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314421A (en) * 2022-10-08 2022-11-08 北京国安广传网络科技有限公司 Quantification management system based on network intelligent platform
CN115314421B (en) * 2022-10-08 2022-12-23 北京国安广传网络科技有限公司 Quantification management system based on network intelligent platform

Similar Documents

Publication Publication Date Title
CN111078140B (en) Nuclear power station file uploading management method and device, terminal equipment and medium
US20020052952A1 (en) Service execution method and apparatus
CN111723313A (en) Page jump processing method, device, equipment and storage medium
CN114595201A (en) Method, equipment and storage medium for inquiring acquisition record of interface access log
CN110928853A (en) A method and device for identifying logs
CN103370695B (en) Database update notification method
US20240273472A1 (en) Electronic receipt mail processing
CN103220352A (en) Terminal, server, file storage system and file storage method
CN110851339A (en) Method and device for reporting buried point data, storage medium and terminal equipment
CN111240953A (en) Log processing method and device and readable storage medium
CN107045466B (en) Method, device and system for auditing business data
CN115098157A (en) Method and device for processing public service data
CN116028696A (en) Resource information acquisition method, device, electronic device and storage medium
CN114428723A (en) Test system, system test method, related device and storage medium
CN116088892A (en) Distributed business system configuration change method, device, computer equipment and medium
CN113641384B (en) Method, device and system for upgrading management of probe
CN112131025A (en) Component transmission method, device, computer equipment and storage medium
CN117692499A (en) Distributed monitoring management method, system, equipment and medium for operation and maintenance service
US20030162559A1 (en) Mobile communications terminal, information transmitting system and information receiving method
CN111125232A (en) Method and device for accessing public cloud asset information
CN110704041A (en) Software development method and device
CN112783903A (en) Method and device for generating update log
CN110971664B (en) Interface service management system
CN114265739B (en) Data processing method, device, equipment and storage medium
CN113177157B (en) Label separation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination