CN114528303A - Method and device for processing service data - Google Patents

Method and device for processing service data Download PDF

Info

Publication number
CN114528303A
CN114528303A CN202210116316.1A CN202210116316A CN114528303A CN 114528303 A CN114528303 A CN 114528303A CN 202210116316 A CN202210116316 A CN 202210116316A CN 114528303 A CN114528303 A CN 114528303A
Authority
CN
China
Prior art keywords
business
service
target
data
instance
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
CN202210116316.1A
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.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202210116316.1A priority Critical patent/CN114528303A/en
Publication of CN114528303A publication Critical patent/CN114528303A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/235Update request formulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2465Query processing support for facilitating data mining operations in structured databases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for processing service data, and relates to the technical field of Internet. The method comprises the following specific implementation modes: receiving one or more service requirement data; determining whether a target service scene corresponding to the service demand data is included in the horizontal service database; in the case where the target service scenario is included in the horizontal service database: determining a target business process step corresponding to business demand data in a target business scene and a target business instance corresponding to the business demand data in the target business process step; and updating the horizontal service database according to the requirement identification, the target service flow steps and the target service instance. The implementation method can expand the service scene based on the requirement details, reduce the development and maintenance cost of the requirement codes, improve the repeated utilization rate of the service logic, and precipitate the reusable service assets, thereby rapidly and stably supporting new service requirements and improving the service processing efficiency.

Description

一种业务数据的处理方法和装置Method and device for processing business data

技术领域technical field

本发明涉及数据处理技术领域,尤其涉及一种业务数据的处理方法和装置。The present invention relates to the technical field of data processing, and in particular, to a method and device for processing business data.

背景技术Background technique

随着计算机技术的飞速发展,各种应用层出不穷,面对海量的业务需求,各个应用需要详细分析需求逻辑,并开发流程代码进行测试,测试成功后发布以扩展应用功能。With the rapid development of computer technology, various applications emerge in an endless stream. Faced with massive business requirements, each application needs to analyze the demand logic in detail, and develop process code for testing. After the test is successful, it will be released to expand the application function.

现有的业务数据处理过程中,通常的处理方式是针对每一个新的业务需求数据,分析需求逻辑,并根据需求逻辑开发对应的流程代码,创建新的业务场景,以满足业务需求的实现目的。In the existing business data processing process, the usual processing method is to analyze the demand logic for each new business demand data, and develop the corresponding process code according to the demand logic, and create a new business scenario to meet the realization purpose of the business demand. .

现有的业务数据处理方式会使得业务场景数量剧增,开发、维护成本极大,代码稳定性较差,对后期维护及扩展都极其不利,而且系统的场景逻辑重复利用率低,无法沉淀可复用的业务资产。The existing business data processing methods will lead to a sharp increase in the number of business scenarios, huge development and maintenance costs, poor code stability, which is extremely unfavorable for later maintenance and expansion, and the system’s scenario logic reuse rate is low, making it impossible to precipitate possible scenarios. Reusable business assets.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供一种业务数据的处理方法和装置,能够基于需求细节扩展业务场景,降低需求代码的开发及维护成本,提高业务逻辑的重复利用率,沉淀可复用的业务资产,从而快速稳定地支持新的业务需求,提高业务处理效率。In view of this, embodiments of the present invention provide a business data processing method and device, which can expand business scenarios based on demand details, reduce the development and maintenance costs of demand codes, improve the reuse rate of business logic, and precipitate reusable business assets, so as to quickly and stably support new business needs and improve business processing efficiency.

为实现上述目的,根据本发明实施例的一个方面,提供了一种业务数据的处理方法,包括:To achieve the above purpose, according to an aspect of the embodiments of the present invention, a method for processing service data is provided, including:

接收一个或多个业务需求数据;其中,所述业务需求数据指示了需求标识;receiving one or more business requirement data; wherein, the business requirement data indicates a requirement identifier;

确定水平业务数据库中是否包括与所述业务需求数据对应的目标业务场景;其中,所述水平业务数据库包括多个业务场景、多个业务流程步骤与多个业务实例的第一对应关系;Determine whether the horizontal business database includes a target business scenario corresponding to the business requirement data; wherein, the horizontal business database includes a first correspondence between multiple business scenarios, multiple business process steps and multiple business instances;

响应于所述水平业务数据库中包括所述目标业务场景,确定所述目标业务场景下与所述业务需求数据对应的目标业务流程步骤、以及所述目标业务流程步骤下与所述业务需求数据对应的目标业务实例;In response to the horizontal business database including the target business scenario, determine the target business process step corresponding to the business requirement data under the target business scenario and the target business process step corresponding to the business requirement data the target business instance;

根据所述需求标识、所述目标业务流程步骤和所述目标业务实例,更新所述水平业务数据库。The horizontal business database is updated according to the requirement identification, the target business process steps and the target business instance.

可选地,还包括:Optionally, also include:

接收与所述业务需求数据对应的待处理业务请求;receiving a pending business request corresponding to the business requirement data;

根据所述水平业务数据库,确定与所述业务需求数据对应的目标业务场景;determining a target business scenario corresponding to the business requirement data according to the horizontal business database;

将所述待处理业务请求携带的请求参数作为所述目标业务场景的输入,根据所述目标业务场景的输出响应所述待处理业务请求。The request parameter carried by the service request to be processed is used as the input of the target service scenario, and the service request to be processed is responded to according to the output of the target service scenario.

可选地,还包括:Optionally, also include:

获取多个历史业务需求数据;Obtain multiple historical business demand data;

对所述历史业务需求数据进行分析,根据所述多个历史业务需求数据共有的一个或多个历史业务流程步骤,确定与所述多个历史业务需求数据对应的一个或多个业务场景、以及与所述业务场景对应的业务流程步骤;Analyzing the historical business demand data, and determining one or more business scenarios corresponding to the plurality of historical business demand data according to one or more historical business process steps common to the plurality of historical business demand data, and business process steps corresponding to the business scenario;

对所述历史业务流程步骤进行分析,根据所述多个历史业务流程步骤共有的一个或多个历史业务实例,确定与所述业务流程步骤对应的一个或多个业务实例;Analyzing the historical business process steps, and determining one or more business instances corresponding to the business process steps according to one or more historical business instances shared by the multiple historical business process steps;

构建所述业务场景、业务流程步骤和业务实例的第一对应关系;constructing the first correspondence between the business scenarios, business process steps and business instances;

根据所述第一对应关系,生成水平业务数据库。According to the first correspondence, a horizontal service database is generated.

可选地,所述确定所述目标业务场景下与所述业务需求数据对应的目标业务流程步骤、以及所述目标业务流程步骤下与所述业务需求数据对应的目标业务实例,包括:Optionally, the determining the target business process step corresponding to the business demand data under the target business scenario and the target business instance corresponding to the business demand data under the target business process step includes:

确定所述目标业务场景下是否包括与所述业务需求数据对应的业务流程步骤;determining whether the target business scenario includes business process steps corresponding to the business requirement data;

如果是,将与所述业务需求数据对应的业务流程步骤作为目标业务流程步骤,确定所述目标业务流程步骤下是否包括与所述业务需求数据对应的业务实例;If yes, take the business process step corresponding to the business demand data as the target business process step, and determine whether the target business process step includes a business instance corresponding to the business demand data;

如果是,将与所述业务需求数据对应的业务实例作为目标业务实例。If yes, take the service instance corresponding to the service requirement data as the target service instance.

可选地,在所述目标业务场景下不包括与所述业务需求数据对应的业务流程步骤的情况下,所述更新所述水平业务数据库,包括:Optionally, when the target business scenario does not include business process steps corresponding to the business requirement data, the updating the horizontal business database includes:

确定与所述业务需求数据对应的需求业务流程步骤、以及与所述需求业务流程步骤对应的需求业务实例;determining a demand business process step corresponding to the business demand data and a demand business instance corresponding to the demand business process step;

将所述需求业务流程步骤作为所述业务需求数据的目标业务流程步骤、所述需求业务实例作为所述业务需求数据的目标业务实例;Taking the demand business process step as the target business process step of the business demand data, and the demand business instance as the target business instance of the business demand data;

将所述需求标识、所述目标业务流程步骤和所述目标业务实例的第二对应关系添加至所述水平业务数据库。A second correspondence between the requirement identifier, the target business process step and the target business instance is added to the horizontal business database.

可选地,在所述目标业务流程步骤下不包括与所述业务需求数据对应的业务实例的情况下,所述更新所述水平业务数据库,包括:Optionally, when the target business process step does not include a business instance corresponding to the business requirement data, the updating the horizontal business database includes:

确定与所述业务需求数据对应的需求业务实例;determining a demand business instance corresponding to the business demand data;

将所述需求业务实例作为所述业务需求数据的目标业务实例;Taking the demand business instance as the target business instance of the business demand data;

将所述需求标识、所述目标业务流程步骤和所述目标业务实例的第三对应关系添加至所述水平业务数据库。A third correspondence between the requirement identifier, the target business process step and the target business instance is added to the horizontal business database.

可选地,在所述水平业务数据库中不包括所述目标业务场景的情况下,还包括:Optionally, in the case that the target business scenario is not included in the horizontal business database, it also includes:

拒绝响应所述业务需求数据,并将所述业务需求数据发送给开发平台,使得所述开发平台的开发人员对所述业务需求数据进行处理。Refuse to respond to the business requirement data, and send the business requirement data to the development platform, so that the developer of the development platform can process the business requirement data.

根据本发明实施例的再一个方面,提供了一种业务数据处理装置,包括:According to yet another aspect of the embodiments of the present invention, a service data processing apparatus is provided, including:

接收模块,用于接收一个或多个业务需求数据;其中,所述业务需求数据指示了需求标识;a receiving module, configured to receive one or more business requirement data; wherein, the business requirement data indicates a requirement identifier;

判断模块,用于确定水平业务数据库中是否包括与所述业务需求数据对应的目标业务场景;其中,所述水平业务数据库包括多个业务场景、多个业务流程步骤与多个业务实例的第一对应关系;A judgment module, used to determine whether the horizontal business database includes a target business scenario corresponding to the business requirement data; wherein, the horizontal business database includes a plurality of business scenarios, a plurality of business process steps and the first of a plurality of business instances Correspondence;

响应模块,用于响应于所述水平业务数据库中包括所述目标业务场景,确定所述目标业务场景下与所述业务需求数据对应的目标业务流程步骤、以及所述目标业务流程步骤下与所述业务需求数据对应的目标业务实例;A response module, configured to determine, in response to the horizontal business database including the target business scenario, a target business process step corresponding to the business requirement data in the target business scenario, and a target business process step corresponding to the target business process step. Describe the target business instance corresponding to the business requirement data;

更新模块,用于根据所述需求标识、所述目标业务流程步骤和所述目标业务实例,更新所述水平业务数据库。An update module, configured to update the horizontal business database according to the requirement identifier, the target business process steps and the target business instance.

根据本发明实施例的另一个方面,提供了一种业务数据处理的电子设备,包括:According to another aspect of the embodiments of the present invention, an electronic device for processing service data is provided, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明提供的业务数据的处理方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the service data processing method provided by the present invention.

根据本发明实施例的还一个方面,提供了一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现本发明提供的业务数据的处理方法。According to yet another aspect of the embodiments of the present invention, a computer-readable medium is provided, and a computer program is stored thereon, and when the program is executed by a processor, the method for processing service data provided by the present invention is implemented.

上述发明中的一个实施例具有如下优点或有益效果:因为采用通过基于历史业务需求抽象出的水平业务数据库,根据水平业务数据库中业务场景、业务流程步骤以及业务实例的对应关系,支持新的业务需求数据的技术手段,所以克服了现有的业务数据处理方式会使得业务场景数量剧增,开发、维护成本极大,代码稳定性较差,对后期维护及扩展都极其不利,而且系统的业务逻辑重复利用率低,无法沉淀可复用的业务资产的技术问题,进而达到能够基于需求细节扩展业务场景,降低代码的开发及维护成本,提高业务逻辑的重复利用率,沉淀可复用的业务资产,从而快速稳定地支持新的业务需求,提高业务处理效率的技术效果。An embodiment in the above-mentioned invention has the following advantages or beneficial effects: because the horizontal business database abstracted based on historical business requirements is adopted, and according to the correspondence between business scenarios, business process steps and business instances in the horizontal business database, new business services are supported. The technical means of requiring data, so overcoming the existing business data processing methods will lead to a sharp increase in the number of business scenarios, huge development and maintenance costs, poor code stability, which is extremely unfavorable for later maintenance and expansion. The logic reuse rate is low, and it is impossible to precipitate the technical problem of reusable business assets, so as to expand the business scenario based on the requirements details, reduce the cost of code development and maintenance, improve the reuse rate of business logic, and precipitate reusable business. Assets, so as to quickly and stably support new business requirements and improve the technical effect of business processing efficiency.

上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above non-conventional alternatives will be described below in conjunction with specific embodiments.

附图说明Description of drawings

附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used for better understanding of the present invention and do not constitute an improper limitation of the present invention. in:

图1是根据本发明实施例的业务数据的处理方法的主要流程的示意图;1 is a schematic diagram of the main flow of a method for processing business data according to an embodiment of the present invention;

图2是根据本发明实施例的水平业务数据库的确定方法的主要流程的示意图;2 is a schematic diagram of the main flow of a method for determining a horizontal service database according to an embodiment of the present invention;

图3是根据本发明实施例的水平业务数据库的更新方法的主要流程的示意图;3 is a schematic diagram of the main flow of a method for updating a horizontal service database according to an embodiment of the present invention;

图4是根据本发明实施例的业务请求的处理方法的主要流程的示意图;4 is a schematic diagram of a main flow of a method for processing a service request according to an embodiment of the present invention;

图5是根据本发明实施例的业务数据的处理装置的主要模块的示意图;FIG. 5 is a schematic diagram of main modules of an apparatus for processing service data according to an embodiment of the present invention;

图6示出了适于应用于本发明实施例的业务数据的处理方法或业务数据的处理装置的示例性系统架构图;FIG. 6 shows an exemplary system architecture diagram of a business data processing method or a business data processing apparatus suitable for application in an embodiment of the present invention;

图7是适于用来实现本发明实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 7 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

图1是根据本发明实施例的业务数据的处理方法的主要流程的示意图,如图1所示,本发明的业务数据的处理方法包括如下步骤:FIG. 1 is a schematic diagram of the main flow of a business data processing method according to an embodiment of the present invention. As shown in FIG. 1 , the business data processing method of the present invention includes the following steps:

在业务系统的开发过程中,多个业务需求的流程极其相似,区别仅在于流程节点内部的个别细节。因此,为了降低代码的开发及维护成本,本发明公开了一种业务数据的处理方法,通过对业务流程(业务流程包括多个业务流程步骤)进行抽象,聚合共有的业务逻辑,从而面对新的业务需求数据时可以直接进行利用,无需不断开发,提高业务逻辑的重复利用率,沉淀可复用的业务资产;其中,业务资产是指可以产生业务价值的核心业务逻辑。In the development process of the business system, the processes of multiple business requirements are very similar, and the difference is only in the individual details inside the process nodes. Therefore, in order to reduce the cost of code development and maintenance, the present invention discloses a business data processing method, which abstracts the business process (the business process includes a plurality of business process steps) and aggregates the common business logic, so as to face new challenges. The data can be directly used when the business needs of the data are collected, without continuous development, the reuse rate of business logic can be improved, and reusable business assets can be deposited; among them, business assets refer to the core business logic that can generate business value.

步骤S101,接收一个或多个业务需求数据;其中,所述业务需求数据指示了需求标识。Step S101, receiving one or more business requirement data; wherein, the business requirement data indicates a requirement identifier.

在本发明实施例中,比如,业务需求数据为商品秒杀业务(秒杀是指多个用户同时抢购一个商品,属于一种限时抢购活动)的相关数据,比如,商品秒杀业务为纸巾秒杀。In the embodiment of the present invention, for example, the business demand data is related data of a commodity flash sale business (seckill refers to multiple users snapping up a commodity at the same time, which belongs to a time-limited flash purchase activity). For example, the commodity flash sale business is a tissue flash sale.

步骤S102,确定水平业务数据库中是否包括与所述业务需求数据对应的目标业务场景;其中,所述水平业务数据库包括多个业务场景、多个业务流程步骤与多个业务实例的第一对应关系。Step S102, determining whether the horizontal business database includes a target business scenario corresponding to the business requirement data; wherein, the horizontal business database includes a first correspondence between multiple business scenarios, multiple business process steps and multiple business instances .

在本发明实施例中,对接收到的业务需求数据进行分析,查找水平业务数据库,确定水平业务数据库中是否包括与业务需求数据对应的目标业务场景。In the embodiment of the present invention, the received business demand data is analyzed, the horizontal business database is searched, and whether the horizontal business database includes a target business scenario corresponding to the business demand data is determined.

在本发明实施例中,水平业务数据库可以包括业务场景标识、业务流程步骤和业务实例的对应关系;其中,水平业务是指可以被复用的业务流程,无法脱离实际的业务场景而独立存在,比如,水平业务的业务场景包括秒杀、团购、他人代付等。In the embodiment of the present invention, the horizontal business database may include the correspondence between business scenario identifiers, business process steps, and business instances; wherein, horizontal business refers to a business process that can be reused, and cannot exist independently of an actual business scenario. For example, the business scenarios of horizontal business include seckill, group purchase, and payment by others.

在本发明实施例中,比如,与纸巾秒杀对应的目标业务场景为秒杀场景。In the embodiment of the present invention, for example, the target business scenario corresponding to the tissue seckill is the seckill scenario.

在本发明实施例中,业务场景下可以包括一个或多个业务流程步骤,一个业务流程步骤可以对应一个或多个业务实例。比如,业务场景为秒杀场景,秒杀场景下可以包括秒杀信息配置、秒杀校验、秒杀、发奖等业务流程步骤。In this embodiment of the present invention, a business scenario may include one or more business process steps, and one business process step may correspond to one or more business instances. For example, the business scenario is a seckill scenario, which may include seckill information configuration, seckill verification, seckill, and awarding and other business process steps.

进一步地,业务流程步骤的秒杀信息配置对应的业务实例包括手机秒杀实例、汽车秒杀实例、水果秒杀实例;Further, the business instances corresponding to the seckill information configuration of the business process step include a mobile phone seckill instance, a car seckill instance, and a fruit seckill instance;

业务流程步骤的秒杀校验对应的业务实例包括手机秒杀实例、汽车秒杀实例;The business instances corresponding to the seckill verification of the business process steps include mobile phone seckill instances and automobile seckill instances;

业务流程步骤的秒杀对应的业务实例包括手机秒杀实例、汽车秒杀实例、水果秒杀实例;The business instances corresponding to the seckill of business process steps include mobile phone seckill instances, automobile seckill instances, and fruit seckill instances;

业务流程步骤的发奖对应的业务实例包括手机秒杀实例、汽车秒杀实例、水果秒杀实例。The business instances corresponding to the awarding of the business process steps include the instant killing of mobile phones, the instant killing of automobiles, and the instant killing of fruits.

在本发明实施例中,业务流程步骤的秒杀信息配置用于配置秒杀信息,包括秒杀物品的类型、数量;秒杀活动的开始时间、结束时间;秒杀成功用户的奖励等。In the embodiment of the present invention, the seckill information configuration of the business process step is used to configure the seckill information, including the type and quantity of the seckill item; the start time and end time of the seckill activity; the reward for the successful seckill user, and the like.

在本发明实施例中,业务流程步骤的秒杀校验用于校验用户信息,不同业务实例需要校验的用户信息可以相同或不同,比如,手机秒杀实例校验用户的积分信息;汽车秒杀实例校验用户的征信信息;水果秒杀实例无需校验用户信息,故而秒杀校验不包括水果秒杀实例。In this embodiment of the present invention, the instant verification of the business process step is used to verify user information, and the user information that needs to be verified for different business instances may be the same or different. Verify the user's credit information; the fruit seckill instance does not need to verify user information, so the seckill verification does not include the fruit seckill instance.

在本发明实施例中,业务流程步骤的秒杀用于接收用户的秒杀信息并确定秒杀成功用户。In the embodiment of the present invention, the seckill of the business process step is used to receive the seckill information of the user and determine the successful seckill user.

在本发明实施例中,业务流程步骤的发奖用于向秒杀成功用户发送奖品信息,使得第三方为用户发放奖品,不同场景可以调用不同的发奖系统以实现对应的发奖步骤。In the embodiment of the present invention, the award distribution of the business process step is used to send award information to users who have succeeded in the second kill, so that a third party distributes awards to users. Different award distribution systems can be invoked in different scenarios to implement corresponding award distribution steps.

在本发明实施例中,如图2所示,本发明的水平业务数据库的确定方法包括如下步骤:In the embodiment of the present invention, as shown in FIG. 2 , the method for determining a horizontal service database of the present invention includes the following steps:

步骤S201,获取多个历史业务需求数据。Step S201, acquiring a plurality of historical business demand data.

步骤S202,对所述历史业务需求数据进行分析,根据所述多个历史业务需求数据共有的一个或多个历史业务流程步骤,确定与所述多个历史业务需求数据对应的一个或多个业务场景、以及与所述业务场景对应的业务流程步骤。Step S202, analyze the historical business demand data, and determine one or more business processes corresponding to the multiple historical business demand data according to one or more historical business process steps common to the multiple historical business demand data Scenarios, and business process steps corresponding to the business scenarios.

比如,对与秒杀相关的历史业务需求数据(比如,手机秒杀、汽车秒杀、水果秒杀、图书秒杀、文具秒杀、美妆秒杀、眼镜秒杀、家电秒杀、餐厨秒杀、服装秒杀、鞋靴秒杀、药品秒杀、箱包秒杀、家具秒杀、数码秒杀、家纺秒杀等的相关数据)进行分析,根据多个与秒杀相关的历史业务需求数据共有的历史业务流程步骤,确定与多个历史业务需求数据对应的业务场景(即秒杀场景)、以及与秒杀场景对应的业务流程步骤(包括秒杀信息配置、秒杀校验、秒杀、发奖)。For example, the historical business demand data related to spikes (for example, mobile spikes, car spikes, fruit spikes, books spikes, stationery spikes, beauty spikes, glasses spikes, home appliances spikes, kitchen spikes, clothing spikes, shoes spikes, Analyze the relevant data of drug spikes, luggage spikes, furniture spikes, digital spikes, home textile spikes, etc.), and determine the corresponding historical business demand data according to the historical business process steps shared by multiple historical business demand data related to spikes. The business scenario (that is, the seckill scenario), and the business process steps corresponding to the seckill scenario (including the seckill information configuration, the seckill verification, the seckill, and the award).

又比如,对与团购相关的历史业务需求数据进行分析,根据多个与团购相关的历史业务需求数据共有的历史业务流程步骤,确定与多个历史业务需求数据对应的业务场景(即团购场景)、以及与团购场景对应的业务流程步骤(包括团购信息配置、团购校验、团购、发奖)。For another example, analyze the historical business demand data related to group buying, and determine the business scenarios (ie, group buying scenarios) corresponding to the multiple historical business demand data according to the historical business process steps shared by the multiple historical business demand data related to group buying. , and the business process steps corresponding to the group purchase scenario (including group purchase information configuration, group purchase verification, group purchase, and awarding).

再比如,对与他人代付相关的历史业务需求数据进行分析,根据多个与他人代付相关的历史业务需求数据共有的历史业务流程步骤,确定与多个历史业务需求数据对应的业务场景(即他人代付场景)、以及与他人代付场景对应的业务流程步骤(包括代付信息配置、代付校验、收款)。其中,代付信息配置用于配置代付信息,包括代付金额标准、代付方式等,比如,对于代付金额小于100元的情况,他人代付时无法选择分期付款;对于代付金额大于1000元的情况,他人代付时可以选择分期付款。For another example, analyze the historical business demand data related to the payment on behalf of others, and determine the business scenarios ( That is, the payment by others scenario), and the business process steps corresponding to the payment by others scenario (including the configuration of the payment information, the verification of the payment, and the collection). Among them, the agent payment information configuration is used to configure the agent payment information, including the agent payment amount standard and agent payment method. In the case of 1,000 yuan, you can choose to pay in installments when someone else pays for it.

步骤S203,对所述历史业务流程步骤进行分析,根据所述多个历史业务流程步骤共有的一个或多个历史业务实例,确定与所述业务流程步骤对应的一个或多个业务实例。Step S203: Analyze the historical business process steps, and determine one or more business instances corresponding to the business process steps according to one or more historical business instances shared by the multiple historical business process steps.

比如,对与秒杀场景对应的业务流程步骤(包括秒杀信息配置、秒杀校验、秒杀、发奖)进行分析,根据多个历史业务流程步骤共有的一个或多个历史业务实例,确定与业务流程步骤对应的一个或多个业务实例(比如,秒杀校验包括手机秒杀实例、汽车秒杀实例;秒杀包括手机秒杀实例、汽车秒杀实例、水果秒杀实力)。具体地:For example, analyze the business process steps corresponding to the seckill scenario (including seckill information configuration, seckill verification, seckill, and awarding), and determine the corresponding business process according to one or more historical business instances shared by multiple historical business process steps. One or more business instances corresponding to the steps (for example, seckill verification includes mobile phone seckill instances and automobile seckill instances; seckill includes mobile phone seckill instances, automobile seckill instances, and fruit seckill strengths). specifically:

业务流程步骤的秒杀信息配置用于配置秒杀信息,由于配置信息的不同,手机秒杀实例、汽车秒杀实例、水果秒杀实例分别对应不同的业务逻辑;比如,手机秒杀实例为seckill_phone,对应的业务实例为seckillphoneImpl;汽车秒杀实例为seckill_car,对应的业务实例为seckillcarImpl;水果秒杀实例为seckill_fruit,对应的业务实例为seckillfruitImpl;The seckill information configuration of the business process step is used to configure the seckill information. Due to different configuration information, the mobile phone seckill instance, the car seckill instance, and the fruit seckill instance correspond to different business logics; for example, the mobile phone seckill instance is seckill_phone, and the corresponding business instance is seckillphoneImpl; the car spike instance is seckill_car, and the corresponding business instance is seckillcarImpl; the fruit spike instance is seckill_fruit, and the corresponding business instance is seckillfruitImpl;

业务流程步骤的秒杀校验用于校验用户信息,手机秒杀实例、汽车秒杀实例分别对应不同的业务逻辑;比如,手机秒杀实例seckill_phone对应的业务实例为seckillPointsImpl;汽车秒杀实例seckill_car对应的业务实例为seckillCreditImpl;The seckill verification of the business process step is used to verify user information. The mobile seckill instance and the car seckill instance correspond to different business logics; for example, the business instance corresponding to the mobile seckill instance seckill_phone is seckillPointsImpl; the car seckill instance seckill_car corresponds to the business instance seckillCreditImpl;

业务流程步骤的秒杀用于接收用户的秒杀信息并确定秒杀成功用户,手机秒杀实例、汽车秒杀实例、水果秒杀实例可以对应相同的业务逻辑;比如,手机秒杀实例seckill_phone对应的业务实例为seckillDefaultImpl;汽车秒杀实例seckill_car对应的业务实例为seckillDefaultImpl;水果秒杀实例为seckill_fruit,对应的业务实例为seckillDefaultImpl;The seckill of the business process step is used to receive the user's seckill information and determine the successful seckill user. The mobile seckill instance, the car seckill instance, and the fruit seckill instance can correspond to the same business logic; for example, the business instance corresponding to the mobile phone seckill instance seckill_phone is seckillDefaultImpl; The business instance corresponding to the spike instance seckill_car is seckillDefaultImpl; the fruit spike instance is seckill_fruit, and the corresponding business instance is seckillDefaultImpl;

业务流程步骤的发奖用于通过对应的发奖系统进行发奖,手机秒杀实例、汽车秒杀实例、水果秒杀实例分别对应不同的业务逻辑;比如,手机秒杀实例seckill_phone对应的业务实例为seckillPhoneImpl;汽车秒杀实例seckill_car对应的业务实例为seckillCarImpl;水果秒杀实例seckill_fruit对应的业务实例为seckillFruitImpl。The award distribution of the business process step is used to distribute awards through the corresponding award distribution system. The mobile phone seckill instance, the car seckill instance, and the fruit seckill instance correspond to different business logics; for example, the business instance corresponding to the mobile phone seckill instance seckill_phone is seckillPhoneImpl; The business instance corresponding to the seckill instance seckill_car is seckillCarImpl; the business instance corresponding to the fruit seckill instance seckill_fruit is seckillFruitImpl.

在本发明实施例中,根据与纸巾秒杀对应的目标业务场景(即,秒杀场景),确定与纸巾秒杀对应的目标业务实例(包括在秒杀信息配置中,纸巾秒杀场景为seckill_tissue,对应的业务实例为seckillDefaultImpl;在秒杀中,纸巾秒杀场景为seckill_tissue,对应的业务实例为seckillDefaultImpl;在发奖中,纸巾秒杀场景seckill_tissue对应的业务实例为seckillFruitImpl)。In the embodiment of the present invention, according to the target business scenario corresponding to the tissue seckill (ie, the seckill scenario), the target business instance corresponding to the tissue seckill (included in the seckill information configuration, the tissue seckill scenario is seckill_tissue, the corresponding business instance is determined) It is seckillDefaultImpl; in the seckill, the tissue seckill scenario is seckill_tissue, and the corresponding business instance is seckillDefaultImpl; in the award, the business instance corresponding to the tissue seckill scenario seckill_tissue is seckillFruitImpl).

步骤S204,构建所述业务场景、业务流程步骤和业务实例的第一对应关系。Step S204, constructing a first correspondence between the business scenarios, business process steps and business instances.

在本发明实施例中,根据步骤S202和步骤S203确定的业务场景、与业务场景对应的业务流程步骤、以及与业务流程步骤对应的业务实例,构建业务场景、业务流程步骤和业务场景的对应关系,即第一对应关系。In the embodiment of the present invention, according to the business scenarios determined in steps S202 and S203, the business process steps corresponding to the business scenarios, and the business instances corresponding to the business process steps, the corresponding relationship between the business scenarios, the business process steps and the business scenarios is constructed , that is, the first correspondence.

步骤S205,根据所述第一对应关系,生成水平业务数据库。Step S205, generating a horizontal service database according to the first corresponding relationship.

在本发明实施例中,通过本发明的水平业务数据库的确定方法,能够抽取历史业务需求数据的共同业务流程步骤,构建水平业务的业务场景、业务流程步骤和业务实例的对应关系,生成水平业务数据库,从而降低代码的开发及维护成本,沉淀可复用的业务资产,进而可以快速稳定地支持新的业务需求。In the embodiment of the present invention, through the method for determining a horizontal business database of the present invention, it is possible to extract common business process steps of historical business demand data, build a business scenario, business process steps and business instances of the horizontal business corresponding relationship, and generate a horizontal business Database, thereby reducing the cost of code development and maintenance, and precipitating reusable business assets, which can quickly and stably support new business requirements.

步骤S103,响应于所述水平业务数据库中包括所述目标业务场景,确定所述目标业务场景下与所述业务需求数据对应的目标业务流程步骤、以及所述目标业务流程步骤下与所述业务需求数据对应的目标业务实例。Step S103, in response to the horizontal business database including the target business scenario, determine a target business process step corresponding to the business requirement data under the target business scenario, and a target business process step corresponding to the business under the target business process step. The target business instance corresponding to the demand data.

在本发明实施例中,对接收到的业务需求数据进行分析,将其拆分为多个步骤,可以根据业务需求数据拆分后的多个步骤,确定水平业务数据库中是否包括目标业务场景下与拆分后的多个步骤对应的目标业务流程步骤。In the embodiment of the present invention, the received business demand data is analyzed and divided into multiple steps, and it can be determined whether the horizontal business database includes the target business scenario according to the split steps of the business demand data. The target business process step corresponding to the split multiple steps.

在本发明实施例中,比如,业务需求数据为纸巾秒杀的相关数据,对纸巾秒杀的相关数据进行分析,将其拆分为秒杀信息配置、秒杀、发奖三个步骤,确定水平业务数据库中包括秒杀场景下与拆分后的秒杀信息配置、秒杀、发奖三个步骤对应的目标业务流程步骤;其中,目标业务流程步骤包括秒杀信息配置、秒杀和发奖。In the embodiment of the present invention, for example, the business demand data is the data related to the second kill of tissue paper, and the related data of the second kill of paper towel is analyzed, and it is divided into three steps of configuration of the second kill information, second killing, and awarding, and the level of the business database is determined in the three steps. Including the target business process steps corresponding to the three steps of split second kill information configuration, second kill, and award distribution in the second kill scenario; wherein, the target business process steps include second kill information configuration, second kill, and award issuance.

在本发明实施例中,对目标业务流程步骤下的多个业务实例进行分析,确定水平业务数据库中是否包括目标业务流程步骤下与纸巾秒杀对应的业务实例。In the embodiment of the present invention, a plurality of business instances under the target business process step are analyzed to determine whether the horizontal business database includes the business instances corresponding to the tissue seckill under the target business process step.

在本发明实施例中,比如,业务需求数据为纸巾秒杀的相关数据,目标业务流程步骤包括秒杀信息配置、秒杀和发奖,对发奖步骤下的多个业务实例进行分析,确定水平业务数据库中包括发奖步骤下与纸巾秒杀对应的目标业务实例为水果秒杀实例。In the embodiment of the present invention, for example, the business requirement data is the data related to Tissue Seckill, the target business process steps include Seckill information configuration, Seckill and awarding, analyze multiple business instances under the awarding step, and determine the horizontal business database Including the target business instance corresponding to the tissue seckill under the awarding step is the fruit seckill instance.

步骤S104,根据所述需求标识、所述目标业务流程步骤和所述目标业务实例,更新所述水平业务数据库。Step S104: Update the horizontal business database according to the requirement identifier, the target business process steps and the target business instance.

在本发明实施例中,比如,业务需求数据为纸巾秒杀的相关数据,根据步骤S102和步骤S103确定纸巾秒杀的目标业务场景为秒杀场景,目标业务流程步骤包括秒杀信息配置、秒杀和发奖。In the embodiment of the present invention, for example, the business requirement data is the data related to the second kill of tissue paper, according to steps S102 and S103, it is determined that the target business scenario of the second killing of tissue paper is the second killing scene, and the target business process steps include second killing information configuration, second killing and awarding.

在本发明实施例中,秒杀信息配置步骤中,现有的手机秒杀实例、汽车秒杀实例、水果秒杀实例与纸巾秒杀的配置信息不同,现有的业务实例无法满足纸巾秒杀的业务需求数据。In the embodiment of the present invention, in the step of configuring the seckill information, the configuration information of the existing mobile phone seckill instances, car seckill instances, and fruit seckill instances is different from that of the tissue seckill, and the existing business instances cannot meet the business requirement data of the tissue seckill.

在本发明实施例中,秒杀步骤中,手机秒杀实例、汽车秒杀实例、水果秒杀实例可以满足纸巾秒杀的业务需求,手机秒杀、汽车秒杀、水果秒杀和纸巾秒杀可以采用相同的秒杀系统;发奖步骤中,水果秒杀实例可以满足纸巾秒杀的业务需求数据。In the embodiment of the present invention, in the seckill step, the mobile phone seckill instance, the car seckill instance, and the fruit seckill instance can meet the business requirements of the paper towel seckill, and the same seckill system can be used for the mobile phone seckill, automobile seckill, fruit seckill and paper towel seckill; In the step, the fruit spike instance can meet the business demand data of the tissue spike.

进一步地,秒杀步骤中,手机秒杀、汽车秒杀、水果秒杀和纸巾秒杀可以采用相同的秒杀系统;发奖步骤中,水果秒杀和纸巾秒杀可以采用相同的发奖系统。Further, in the seckill step, the same seckill system can be used for the mobile phone seckill, the car seckill, the fruit seckill and the tissue seckill; in the awarding step, the same reward system can be used for the fruit seckill and the tissue seckill.

在本发明实施例中,如图3所示,本发明的水平业务数据库的更新方法包括如下步骤:In the embodiment of the present invention, as shown in FIG. 3 , the updating method of the horizontal service database of the present invention includes the following steps:

步骤S301,根据第一对应关系,确定目标业务场景下是否包括与业务需求数据对应的业务流程步骤,如果是,转至步骤S302;如果否,转至步骤S306。Step S301, according to the first correspondence, determine whether the target business scenario includes business process steps corresponding to the business requirement data, if yes, go to step S302; if not, go to step S306.

在本发明实施例中,比如,业务需求数据为纸巾秒杀的相关数据,根据第一对应关系,确定秒杀场景的目标业务流程步骤中包括与纸巾秒杀对应的业务流程步骤(包括秒杀信息配置、秒杀和发奖)。In this embodiment of the present invention, for example, the business requirement data is the data related to Tissue Seckill, and according to the first correspondence, the target business process steps of determining the SecKill scenario include the business process steps corresponding to Tissue SecKale (including SecKill information configuration, SecKill) and award).

步骤S302,将与所述业务需求数据对应的业务流程步骤作为目标业务流程步骤。Step S302, taking the business process step corresponding to the business requirement data as the target business process step.

在本发明实施例中,将与纸巾秒杀对应的业务流程步骤作为目标业务流程步骤(包括秒杀信息配置、秒杀和发奖)。In the embodiment of the present invention, the business process steps corresponding to the tissue seckill are taken as the target business process steps (including seckill information configuration, seckill and prize distribution).

步骤S303,确定所述目标业务流程步骤下是否包括与所述业务需求数据对应的业务实例,如果是,转至步骤S304;如果否,转至步骤S309。Step S303, determine whether the target business process step includes a business instance corresponding to the business requirement data, if yes, go to step S304; if not, go to step S309.

在本发明实施例中,确定秒杀信息配置步骤下不包括与纸巾秒杀对应的业务实例;秒杀步骤下包括与纸巾秒杀对应的业务实例(比如,seckillDefaultImpl);发奖步骤下包括与纸巾秒杀对应的业务实例(比如,seckillFruitImpl)。In the embodiment of the present invention, it is determined that the seckill information configuration step does not include a business instance corresponding to the tissue seckill; the seckill step includes a business instance (for example, seckillDefaultImpl) corresponding to the tissue seckill; the awarding step includes a business instance corresponding to the tissue seckill Business instance (eg, seckillFruitImpl).

步骤S304,将与所述业务需求数据对应的业务实例作为目标业务实例。Step S304, taking the service instance corresponding to the service requirement data as the target service instance.

在本发明实施例中,秒杀步骤下将seckillDefaultImpl作为纸巾秒杀的目标业务实例;发奖步骤下将seckillFruitImpl作为纸巾秒杀的目标业务实例。In the embodiment of the present invention, in the seckill step, seckillDefaultImpl is used as the target service instance of the tissue seckill; in the awarding step, seckillFruitImpl is used as the target service instance of the tissue seckill.

步骤S305,将所述需求标识、所述目标业务流程步骤和所述目标业务实例的第四对应关系添加至所述水平业务数据库。Step S305, adding the fourth corresponding relationship of the requirement identifier, the target business process steps and the target business instance to the horizontal business database.

步骤S306,确定与所述业务需求数据对应的需求业务流程步骤、以及与所述需求业务流程步骤对应的需求业务实例。Step S306, determining a demand service process step corresponding to the service demand data and a demand service instance corresponding to the demand service process step.

步骤S307,将所述需求业务流程步骤作为所述业务需求的目标业务流程步骤、所述需求业务实例作为所述业务需求的目标业务实例。Step S307, taking the demand business process step as the target business process step of the business demand, and the demand business instance as the target business instance of the business demand.

步骤S308,将所述需求标识、所述目标业务流程步骤和所述目标业务实例的第二对应关系添加至所述水平业务数据库。Step S308, adding the second corresponding relationship between the requirement identifier, the target business process step and the target business instance to the horizontal business database.

步骤S309,确定与所述业务需求数据对应的需求业务实例。Step S309, determining a demand service instance corresponding to the service demand data.

在本发明实施例中,确定秒杀信息配置步骤下与纸巾秒杀对应的业务逻辑为需求业务实例seckilltissueImpl。In the embodiment of the present invention, it is determined that the business logic corresponding to the tissue seckill in the seckill information configuration step is the demand service instance seckilltissueImpl.

步骤S310,将所述需求业务实例作为所述业务需求的目标业务实例。Step S310, taking the demand service instance as the target service instance of the service requirement.

在本发明实施例中,将需求业务实例seckilltissueImpl作为秒杀信息配置步骤下与纸巾秒杀对应的目标业务实例。In the embodiment of the present invention, the demand service instance seckilltissueImpl is used as the target service instance corresponding to the tissue seckill in the seckill information configuration step.

步骤S311,将所述需求标识、所述目标业务流程步骤和所述目标业务实例的第三对应关系添加至所述水平业务数据库。Step S311, adding the third corresponding relationship between the requirement identifier, the target business process step and the target business instance to the horizontal business database.

在本发明实施例中,纸巾秒杀的需求标识为seckill_tissue,将秒杀信息配置(seckill_tissue:seckilltissueImpl)、秒杀(seckill_tissue:seckillDefaultImpl)、发奖(seckill_tissue:seckillFruitImpl)的第四对应关系添加至水平业务数据库。In the embodiment of the present invention, the requirement of the tissue seckill is identified as seckill_tissue, and the fourth correspondence of seckill information configuration (seckill_tissue: seckilltissueImpl), seckill (seckill_tissue: seckillDefaultImpl), and award (seckill_tissue: seckillFruitImpl) is added to the horizontal business database.

在本发明实施例中,更新水平业务数据库时,比如:In this embodiment of the present invention, when updating the horizontal service database, for example:

在秒杀场景的秒杀信息配置步骤中,确定纸巾秒杀的业务逻辑,增加纸巾秒杀实例,对应标识为纸巾秒杀标识;秒杀步骤中增加纸巾秒杀场景,纸巾秒杀实例的业务逻辑与手机秒杀实例、汽车秒杀实例、水果秒杀实例相同,可以采用手机秒杀实例、汽车秒杀实例、水果秒杀实例中的任意一个,对应标识为纸巾秒杀标识;发奖步骤中增加纸巾秒杀场景,纸巾秒杀实例的业务逻辑与水果秒杀实例相同,可以采用水果秒杀实例,对应标识为纸巾秒杀标识。In the seckill information configuration step of the seckill scenario, determine the business logic of the tissue seckill, add a tissue seckill instance, and the corresponding logo is the tissue seckill logo; in the seckill step, add a tissue seckill scene, and the business logic of the tissue seckill instance is related to the mobile phone seckill instance and the car seckill. The instance and the fruit seckill instance are the same, and any one of the mobile phone seckill instance, the car seckill instance, and the fruit seckill instance can be used, and the corresponding logo is the tissue seckill logo; in the awarding step, the tissue seckill scene is added, and the business logic of the tissue seckill instance is the same as that of the fruit seckill instance. The examples are the same, you can use the fruit seckill instance, and the corresponding logo is the tissue seckill logo.

在本发明实施例中,通过本发明的水平业务数据库的更新方法,能够支持新的业务需求数据,确定新的业务需求数据的业务场景、与业务场景对应的业务流程步骤以及与业务流程步骤对应的业务实例,并将与新的业务需求数据对应的业务流程步骤需求标识和业务实例的对应关系添加至水平业务数据库,可以利用已有的水平业务数据,提高业务逻辑的重复利用率,无需不断开发,降低代码的开发及维护成本,同时通过更新水平业务数据库沉淀可复用的业务资产。In the embodiment of the present invention, through the updating method of the horizontal business database of the present invention, new business demand data can be supported, business scenarios of the new business demand data, business process steps corresponding to the business scenarios, and business process steps corresponding to the business process steps can be determined. and add the corresponding relationship between the business process step requirement identifier and the business instance corresponding to the new business demand data to the horizontal business database, so that the existing horizontal business data can be used to improve the repeated utilization of business logic, and there is no need to continuously Development, reduce the cost of code development and maintenance, and accumulate reusable business assets by updating the horizontal business database.

在本发明实施例中,如图4所示,本发明的业务请求的处理方法包括如下步骤:In the embodiment of the present invention, as shown in FIG. 4 , the processing method of the service request of the present invention includes the following steps:

步骤S401,接收与业务需求数据对应的待处理业务请求。Step S401, receiving a pending service request corresponding to the service requirement data.

在本发明实施例中,比如,待处理业务请求为纸巾秒杀请求。In this embodiment of the present invention, for example, the service request to be processed is a tissue seckill request.

步骤S402,根据所述水平业务数据库,确定与所述业务需求数据对应的目标业务场景。Step S402, according to the horizontal business database, determine a target business scenario corresponding to the business requirement data.

在本发明实施例中,确定与纸巾秒杀对应的目标业务场景为秒杀场景。In the embodiment of the present invention, it is determined that the target business scenario corresponding to the tissue seckill is the seckill scenario.

步骤S403,将所述待处理业务请求携带的请求参数作为所述目标业务场景的输入,根据所述目标业务场景的输出响应所述待处理业务请求。Step S403, taking the request parameter carried by the service request to be processed as the input of the target service scenario, and responding to the service request to be processed according to the output of the target service scenario.

在本发明实施例中,确定水平业务数据库中包括的与纸巾秒杀对应的目标业务流程步骤(秒杀信息配置、秒杀和发奖)和目标业务实例(秒杀信息配置为纸巾秒杀实例;秒杀为手机秒杀实例、汽车秒杀实例、水果秒杀实例之一;发奖为水果秒杀实例),响应纸巾秒杀请求。In the embodiment of the present invention, determine the target business process steps (seckill information configuration, seckill and awarding) and target business instances (seckill information is configured as a tissue seckill instance; seckill is a mobile phone seckill) included in the horizontal business database Instance, car seckill instance, and one of the fruit seckill instances; the reward is the fruit seckill instance), and responds to the tissue seckill request.

在本发明实施例中,将纸巾秒杀请求携带的请求参数作为秒杀场景对应的秒杀信息配置、秒杀和发奖的业务实例的输入,根据秒杀场景的输出响应纸巾秒杀请求;其中,请求参数可以是秒杀物品的类型、数量、品牌、规格等,比如,类型为纸巾、数量为1包、品牌为某柔、规格为120抽。In the embodiment of the present invention, the request parameter carried in the tissue seckill request is used as the input of the seckill information configuration corresponding to the seckill scenario, the seckill and the business instance of awarding, and the tissue seckill request is responded to according to the output of the seckill scenario; wherein, the request parameter may be The type, quantity, brand, specification, etc. of the seckill item, for example, the type is tissue, the quantity is 1 pack, the brand is a soft, and the specification is 120 draws.

在本发明实施例中,通过本发明的业务请求的处理方法,能够利用沉淀的可复用的业务资产处理业务请求,可以大大提高业务效率。In the embodiment of the present invention, through the method for processing a service request of the present invention, the service request can be processed by using the precipitation and reusable service assets, and the service efficiency can be greatly improved.

在本发明实施例中,本发明的业务场景、业务流程步骤与业务实例可以通过插件化扩展的方式实现,即定义一个接口和多个不同的实现类的方式以实现差异化逻辑,同一个接口可以有多个实现类,每一个实现类可以作为一个业务实例。In the embodiment of the present invention, the business scenarios, business process steps and business instances of the present invention can be implemented by means of plug-in extension, that is, by defining one interface and multiple different implementation classes to implement differentiated logic, the same interface There can be multiple implementation classes, and each implementation class can be used as a business instance.

在本发明实施例中,通过接收一个或多个业务需求数据;确定水平业务数据库中是否包括与所述业务需求数据对应的目标业务场景;其中,所述水平业务数据库包括多个业务场景、多个业务流程步骤与多个业务实例的第一对应关系;在所述水平业务数据库中包括所述目标业务场景的情况下:确定所述目标业务场景下与所述业务需求数据对应的目标业务流程步骤、以及所述目标业务流程步骤下与所述业务需求数据对应的目标业务实例;根据与所述业务需求数据对应的所述目标业务场景、所述目标业务流程步骤和所述目标业务实例,更新所述水平业务数据库等步骤,能够基于需求细节扩展业务场景,降低需求代码的开发及维护成本,提高业务逻辑的重复利用率,沉淀可复用的业务资产,从而快速稳定地支持新的业务需求,提高业务处理效率。In the embodiment of the present invention, by receiving one or more business requirement data; it is determined whether the horizontal business database includes a target business scenario corresponding to the business requirement data; wherein, the horizontal business database includes multiple business scenarios, multiple The first correspondence between each business process step and multiple business instances; in the case that the target business scenario is included in the horizontal business database: determine the target business process corresponding to the business requirement data in the target business scenario step, and the target business instance corresponding to the business requirement data under the target business process step; according to the target business scenario, the target business process step and the target business instance corresponding to the business requirement data, Steps such as updating the horizontal business database can expand business scenarios based on demand details, reduce the development and maintenance costs of demand codes, improve the reuse rate of business logic, and precipitate reusable business assets, so as to support new businesses quickly and stably requirements and improve business processing efficiency.

图5是根据本发明实施例的业务数据的处理装置的主要模块的示意图,如图5所示,本发明的业务数据的处理装置500包括:FIG. 5 is a schematic diagram of main modules of a service data processing apparatus according to an embodiment of the present invention. As shown in FIG. 5 , the service data processing apparatus 500 of the present invention includes:

接收模块501,用于接收一个或多个业务需求数据;其中,所述业务需求数据指示了需求标识。The receiving module 501 is configured to receive one or more business requirement data, wherein the business requirement data indicates a requirement identifier.

在本发明实施例中,所述接收模块501用于接收一个或多个业务需求,比如,业务需求数据为纸巾秒杀的相关数据。In this embodiment of the present invention, the receiving module 501 is configured to receive one or more business requirements, for example, the business requirement data is data related to a tissue seckill.

判断模块502,用于确定水平业务数据库中是否包括与所述业务需求数据对应的目标业务流程步骤;其中,所述水平业务数据库包括多个业务流程步骤与多个业务场景的第一对应关系。The judging module 502 is configured to determine whether the horizontal business database includes target business process steps corresponding to the business requirement data; wherein the horizontal business database includes a first correspondence between multiple business process steps and multiple business scenarios.

在本发明实施例中,所述判断模块502对接收到的业务需求数据进行分析,将其拆分为多个步骤,并查找水平业务数据库,确定水平业务数据库中是否包括与拆分后的多个步骤对应的目标业务流程步骤。In the embodiment of the present invention, the judging module 502 analyzes the received business demand data, divides it into multiple steps, searches the horizontal business database, and determines whether the horizontal business database includes and splits the multiple The target business process step corresponding to each step.

在本发明实施例中,水平业务数据库可以包括水平业务标识、业务流程步骤和业务场景的对应关系;其中,水平业务是指可以被复用的业务流程,比如,水平业务包括秒杀、团购、他人代付等。In the embodiment of the present invention, the horizontal business database may include the corresponding relationship between horizontal business identifiers, business process steps and business scenarios; wherein, horizontal business refers to business processes that can be reused. For example, horizontal business includes seckill, group purchase, others payment, etc.

进一步地,所述判断模块502可以根据拆分后的多个步骤,确定水平业务数据库中是否包括与业务需求数据对应的目标水平业务标识、目标业务流程步骤。Further, the judging module 502 can determine whether the horizontal business database includes the target horizontal business identifier and the target business process steps corresponding to the business requirement data according to the split steps.

在本发明实施例中,水平业务可以包括一个或多个业务流程步骤,一个业务流程步骤可以对应一个或多个业务场景。比如,业务流程为秒杀,可以包括秒杀信息配置、秒杀校验、秒杀、发奖等业务流程步骤。In this embodiment of the present invention, the horizontal service may include one or more service process steps, and one service process step may correspond to one or more service scenarios. For example, if the business process is a seckill, it may include such business process steps as seckill information configuration, seckill verification, seckill, and awarding.

在本发明实施例中,比如,业务需求数据为纸巾秒杀的相关数据,对纸巾秒杀进行分析,所述判断模块502将其拆分为多个步骤,包括秒杀信息配置、秒杀、发奖,所述判断模块502查找水平业务数据库,确定水平业务数据库中包括与纸巾秒杀的多个步骤对应的目标业务流程步骤包括秒杀信息配置、秒杀和发奖。In the embodiment of the present invention, for example, the business requirement data is the relevant data of the tissue seckill, and the tissue seckill is analyzed, and the judgment module 502 divides it into multiple steps, including seckill information configuration, seckill, and awarding. The judging module 502 searches the horizontal business database, and determines that the horizontal business database includes target business process steps corresponding to multiple steps of the tissue seckill, including seckill information configuration, seckill and awarding.

响应模块503,用于响应于所述水平业务数据库中包括所述目标业务场景,确定所述目标业务场景下与所述业务需求数据对应的目标业务流程步骤、以及所述目标业务流程步骤下与所述业务需求数据对应的目标业务实例。The response module 503 is configured to, in response to the horizontal business database including the target business scenario, determine the target business process step corresponding to the business requirement data in the target business scenario, and the target business process step corresponding to the target business process step. The target service instance corresponding to the service requirement data.

在本发明实施例中,所述响应模块503对接收到的业务需求数据进行分析,将其拆分为多个步骤,可以根据业务需求数据拆分后的多个步骤,确定水平业务数据库中是否包括目标业务场景下与拆分后的多个步骤对应的目标业务流程步骤。In the embodiment of the present invention, the response module 503 analyzes the received business demand data, and divides it into multiple steps, and can determine whether there is a horizontal business database according to the multiple steps after the business demand data is split. Including the target business process steps corresponding to the split steps in the target business scenario.

在本发明实施例中,所述响应模块503对目标业务流程步骤下的多个业务实例进行分析,确定水平业务数据库中是否包括目标业务流程步骤下与纸巾秒杀对应的业务实例。In the embodiment of the present invention, the response module 503 analyzes multiple business instances under the target business process step, and determines whether the horizontal business database includes the business instance corresponding to the tissue seckill under the target business process step.

更新模块504,用于根据所述需求标识、所述目标业务流程步骤和所述目标业务实例,更新所述水平业务数据库。The updating module 504 is configured to update the horizontal business database according to the requirement identifier, the target business process step and the target business instance.

在本发明实施例中,所述更新模块504利用需求标识、目标业务流程步骤和目标业务实例,更新水平业务数据库。In the embodiment of the present invention, the updating module 504 updates the horizontal business database by using the requirement identifier, the target business process steps and the target business instance.

在本发明实施例中,通过接收模块、判断模块、响应模块和更新模块等模块,能够基于需求细节扩展业务场景,降低需求代码的开发及维护成本,提高业务逻辑的重复利用率,沉淀可复用的业务资产,从而快速稳定地支持新的业务需求,提高业务处理效率。In the embodiment of the present invention, through modules such as a receiving module, a judging module, a response module, and an update module, the business scenarios can be expanded based on the requirements details, the development and maintenance costs of the requirement codes can be reduced, the reuse rate of the business logic can be improved, and the precipitation can be repeated. It can quickly and steadily support new business requirements and improve business processing efficiency.

图6示出了适于应用于本发明实施例的业务数据的处理方法或业务数据的处理装置的示例性系统架构图,如图6所示,本发明实施例的业务数据的处理方法或业务数据的处理装置的示例性系统架构包括:FIG. 6 shows an exemplary system architecture diagram of a method for processing service data or an apparatus for processing service data that is suitable for application in an embodiment of the present invention. As shown in FIG. 6 , the method or service for processing service data in an embodiment of the present invention An exemplary system architecture of a data processing apparatus includes:

如图6所示,系统架构600可以包括终端设备601、602、603,网络604和服务器605。网络604用以在终端设备601、602、603和服务器105之间提供通信链路的介质。网络604可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 6 , the system architecture 600 may include terminal devices 601 , 602 , and 603 , a network 604 and a server 605 . The network 604 is a medium used to provide a communication link between the terminal devices 601 , 602 , 603 and the server 105 . Network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备601、602、603通过网络604与服务器605交互,以接收或发送消息等。终端设备601、602、603上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages and the like. Various communication client applications may be installed on the terminal devices 601 , 602 and 603 , such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, and the like.

终端设备601、602、603可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

服务器605可以是提供各种服务的服务器,例如对用户利用终端设备601、602、603所浏览的购物类网站提供支持的后台管理服务器。后台管理服务器可以对接收到的皮肤秒杀业务需求等数据进行分析等处理,并将处理结果(例如目标业务流程步骤、目标业务场景以及与目标业务场景对应的目标业务实例)反馈给终端设备601、602、603。The server 605 can be a server that provides various services, for example, a background management server that provides support for shopping websites browsed by the terminal devices 601 , 602 , and 603 . The background management server can analyze and process the received data such as the skin seckill business requirements, and feed back the processing results (for example, the target business process steps, the target business scenario, and the target business instance corresponding to the target business scenario) to the terminal device 601, 602, 603.

需要说明的是,本发明实施例所提供的业务数据的处理方法一般由服务器605执行,相应地,业务数据的处理装置一般设置于服务器605中。It should be noted that the method for processing service data provided by the embodiment of the present invention is generally executed by the server 605 , and accordingly, the apparatus for processing service data is generally set in the server 605 .

应该理解,图6中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 6 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.

图7是适于用来实现本发明实施例的终端设备或服务器的计算机系统的结构示意图,如图7所示,本发明实施例的终端设备或服务器的计算机系统700包括:FIG. 7 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention. As shown in FIG. 7 , the computer system 700 of the terminal device or server according to the embodiment of the present invention includes:

中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分707加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM703中,还存储有系统700操作所需的各种程序和数据。CPU701、ROM702以及RAM703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。A central processing unit (CPU) 701 can execute various appropriate actions and processes according to a program stored in a read only memory (ROM) 702 or a program loaded into a random access memory (RAM) 703 from a storage section 707 . In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701 , the ROM 702 , and the RAM 703 are connected to each other through a bus 704 . An input/output (I/O) interface 705 is also connected to bus 704 .

以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc. ; and a communication section 709 including a network interface card such as a LAN card, a modem, and the like. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

特别地,根据本发明公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本发明的系统中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as computer software programs in accordance with the disclosed embodiments of the present invention. For example, embodiments disclosed herein include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 709 and/or installed from the removable medium 711 . When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the system of the present invention are executed.

需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

描述于本发明实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块也可以设置在处理器中,例如,可以描述为:一种处理器包括接收模块、判断模块和更新模块。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,更新模块还可以被描述为“根据所述需求标识、所述目标业务流程步骤和所述目标业务实例,更新所述水平业务数据库的模块”。The modules involved in the embodiments of the present invention may be implemented in a software manner, and may also be implemented in a hardware manner. The described module can also be set in the processor, for example, it can be described as: a processor includes a receiving module, a judging module and an updating module. Wherein, the names of these modules do not constitute a limitation of the module itself under certain circumstances, for example, the update module can also be described as "according to the requirement identifier, the target business process step and the target business instance, Modules that update the horizontal business database".

作为另一方面,本发明还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该设备包括:接收一个或多个业务需求数据;其中,所述业务需求数据指示了需求标识;确定水平业务数据库中是否包括与所述业务需求数据对应的目标业务流程步骤;响应于所述水平业务数据库中包括所述目标业务场景,确定所述目标业务场景下与所述业务需求数据对应的目标业务流程步骤、以及所述目标业务流程步骤下与所述业务需求数据对应的目标业务实例;As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or may exist alone without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the device includes: receiving one or more business requirement data; wherein, the business requirement data indicates requirement identification; determine whether the horizontal business database includes the target business process steps corresponding to the business requirement data; in response to the horizontal business database including the target business scenario, determine whether the target business scenario corresponds to the business requirement a target business process step corresponding to the data, and a target business instance corresponding to the business requirement data under the target business process step;

根据所述需求标识、所述目标业务流程步骤和所述目标业务实例,更新所述水平业务数据库。The horizontal business database is updated according to the requirement identification, the target business process steps and the target business instance.

在业务系统的开发过程中,时常会面临多个业务需求的流程极其相似、流程节点的实现细节又不同的现象,现有的处理方法通常是每一个业务需求开发一套新的系统。In the development process of a business system, it is often faced with the phenomenon that the processes of multiple business requirements are very similar and the implementation details of the process nodes are different. The existing processing method is usually to develop a new system for each business requirement.

现有的处理方法使得系统数量剧增,代码的可维护性、可扩展性越来越差,而且,系统的业务逻辑很难被复用,无法沉淀可以复用的业务资产。The existing processing methods make the number of systems increase sharply, and the maintainability and scalability of the code are getting worse and worse. Moreover, the business logic of the system is difficult to reuse, and it is impossible to accumulate business assets that can be reused.

本发明将相似性高的重复性业务流程步骤抽象成水平业务,实现业务流程步骤对应的业务逻辑复用,而且将可复用的业务逻辑以业务资产的形式沉淀下来,可以快速稳定地支持新的业务需求。The invention abstracts the repetitive business process steps with high similarity into horizontal services, realizes the reuse of business logic corresponding to the business process steps, and precipitates the reusable business logic in the form of business assets, which can quickly and stably support new business needs.

根据本发明实施例的技术方案,能够基于需求细节扩展业务场景,降低需求代码的开发及维护成本,提高业务逻辑的重复利用率,沉淀可复用的业务资产,从而快速稳定地支持新的业务需求,提高业务处理效率。According to the technical solutions of the embodiments of the present invention, business scenarios can be expanded based on requirements details, the development and maintenance costs of requirement codes can be reduced, the reuse rate of business logic can be improved, and reusable business assets can be deposited, thereby rapidly and stably supporting new businesses. requirements and improve business processing efficiency.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements 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 service data is characterized by comprising the following steps:
receiving one or more service requirement data; wherein the service requirement data indicates a requirement identifier;
determining whether a target service scene corresponding to the service demand data is included in a horizontal service database; the horizontal business database comprises a plurality of business scenes, a plurality of business process steps and a first corresponding relation of a plurality of business instances;
responding to the target service scene included in the horizontal service database, and determining a target service process step corresponding to the service demand data in the target service scene and a target service instance corresponding to the service demand data in the target service process step;
and updating the horizontal service database according to the requirement identification, the target service flow step and the target service instance.
2. The method of claim 1, further comprising:
receiving a service request to be processed corresponding to the service demand data;
determining a target service scene corresponding to the service demand data according to the horizontal service database;
and taking the request parameters carried by the service request to be processed as the input of the target service scene, and responding the service request to be processed according to the output of the target service scene.
3. The method of claim 1, further comprising:
acquiring a plurality of historical service demand data;
analyzing the historical service demand data, and determining one or more service scenes corresponding to the historical service demand data and a service flow step corresponding to the service scene according to one or more historical service flow steps shared by the historical service demand data;
analyzing the historical business process steps, and determining one or more business instances corresponding to the business process steps according to one or more historical business instances shared by the historical business process steps;
constructing a first corresponding relation among the service scene, the service process steps and the service instance;
and generating a horizontal service database according to the first corresponding relation.
4. The method according to claim 1, wherein the determining a target business process step corresponding to the business requirement data in the target business scenario and a target business instance corresponding to the business requirement data in the target business process step comprises:
determining whether the target service scene comprises a service flow step corresponding to the service demand data;
if yes, taking a business process step corresponding to the business requirement data as a target business process step, and determining whether a business instance corresponding to the business requirement data is included in the target business process step;
and if so, taking the service instance corresponding to the service requirement data as a target service instance.
5. The method of claim 4, wherein in the case that a business process step corresponding to the business requirement data is not included in the target business scenario, the updating the horizontal business database comprises:
determining a demand business process step corresponding to the business demand data and a demand business instance corresponding to the demand business process step;
taking the required business process step as a target business process step of the business required data and taking the required business instance as a target business instance of the business required data;
and adding the requirement identification, the target business process step and the second corresponding relation of the target business instance to the horizontal business database.
6. The method of claim 5, wherein in the event that the target business process step does not include a business instance corresponding to the business demand data, the updating the horizontal business database comprises:
determining a demand service instance corresponding to the service demand data;
taking the requirement service instance as a target service instance of the service requirement data;
and adding the third corresponding relation among the requirement identification, the target business process step and the target business instance to the horizontal business database.
7. The method of claim 1, wherein in the case that the target business scenario is not included in the horizontal business database, further comprising:
refusing to respond to the service requirement data, and sending the service requirement data to a development platform, so that a developer of the development platform processes the service requirement data.
8. A device for processing service data, comprising:
the receiving module is used for receiving one or more service demand data; wherein the service requirement data indicates a requirement identifier;
the judging module is used for determining whether a target service scene corresponding to the service demand data is included in the horizontal service database; the horizontal business database comprises a plurality of business scenes, a plurality of business process steps and a first corresponding relation of a plurality of business instances;
the response module is used for responding to the target service scene included in the horizontal service database, and determining a target service process step corresponding to the service demand data in the target service scene and a target service instance corresponding to the service demand data in the target service process step;
and the updating module is used for updating the horizontal service database according to the requirement identification, the target service flow steps and the target service instance.
9. An electronic device for processing business data, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202210116316.1A 2022-02-07 2022-02-07 Method and device for processing service data Pending CN114528303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210116316.1A CN114528303A (en) 2022-02-07 2022-02-07 Method and device for processing service data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210116316.1A CN114528303A (en) 2022-02-07 2022-02-07 Method and device for processing service data

Publications (1)

Publication Number Publication Date
CN114528303A true CN114528303A (en) 2022-05-24

Family

ID=81622747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210116316.1A Pending CN114528303A (en) 2022-02-07 2022-02-07 Method and device for processing service data

Country Status (1)

Country Link
CN (1) CN114528303A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115511277A (en) * 2022-09-16 2022-12-23 中国平安财产保险股份有限公司 Activity task publishing method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958796A (en) * 2017-05-23 2018-12-07 阿里巴巴集团控股有限公司 service request processing method and device, service request processing system
CN110442424A (en) * 2019-07-12 2019-11-12 苏州浪潮智能科技有限公司 A kind of method and apparatus for realizing virtual machine management platform dynamic configuration rule
CN112015402A (en) * 2020-07-14 2020-12-01 北京淇瑀信息科技有限公司 Method, device and electronic device for rapid establishment of business scenarios

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958796A (en) * 2017-05-23 2018-12-07 阿里巴巴集团控股有限公司 service request processing method and device, service request processing system
CN110442424A (en) * 2019-07-12 2019-11-12 苏州浪潮智能科技有限公司 A kind of method and apparatus for realizing virtual machine management platform dynamic configuration rule
CN112015402A (en) * 2020-07-14 2020-12-01 北京淇瑀信息科技有限公司 Method, device and electronic device for rapid establishment of business scenarios

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115511277A (en) * 2022-09-16 2022-12-23 中国平安财产保险股份有限公司 Activity task publishing method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110348894B (en) Method and device for displaying resource advertisement and electronic equipment
JP2020537229A (en) Systems and methods for loyalty point distribution
US10853786B2 (en) Multi-factor identity authentication
CN111488995B (en) Method, device and system for evaluating joint training model
US20240281802A1 (en) Digital Currency-Based Payment Method, Platform and System, and Terminal
CN110070394A (en) Data processing method, system, medium and calculating equipment
CN114528303A (en) Method and device for processing service data
US20240212039A1 (en) Automated non-billing cycle remittance
CN112348612B (en) Order generation method and device
CN113362061A (en) Method, system, device, storage medium and electronic equipment for responding to user request
US20200226560A1 (en) Automated non-billing cycle remittance
US20240193594A1 (en) Method, Terminal and System for Splitting and Managing Digital Currency in Transaction
CN113297436B (en) User policy distribution method and device based on relational graph network and electronic equipment
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN114372198A (en) A method, server and system for pushing information
CN112968876A (en) Content sharing method and device, electronic equipment and storage medium
CN113762698A (en) A method, device and system for processing business information
CN112163855A (en) Data processing method, device, system and storage medium
CN106663097A (en) Method for searching for electronic transaction certificate, and electronic transaction terminal
CN109741474A (en) Electronic certificate method for pushing, device and electronic equipment based on the behavior of registering
US20240403859A1 (en) Payment Tokenization Method, Apparatus and System Based On Digital Currency Sub-Wallet
CN114240564B (en) Order synchronization method and device, electronic equipment and storage medium
CN111784429B (en) Information pushing method and device
CN117633038A (en) Activity data existence verification method and device
CN115222526A (en) A method, terminal and currency management device for managing the number of digital currency transactions

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