CN116775167A - Service processing method, device, electronic equipment and computer readable medium - Google Patents

Service processing method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN116775167A
CN116775167A CN202310775429.7A CN202310775429A CN116775167A CN 116775167 A CN116775167 A CN 116775167A CN 202310775429 A CN202310775429 A CN 202310775429A CN 116775167 A CN116775167 A CN 116775167A
Authority
CN
China
Prior art keywords
service
type identifier
implementation class
service type
matching
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
CN202310775429.7A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202310775429.7A priority Critical patent/CN116775167A/en
Publication of CN116775167A publication Critical patent/CN116775167A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a business processing method, a business processing device, electronic equipment and a computer readable medium, relating to the technical field of computers, wherein a specific implementation mode comprises the steps of receiving a business processing request and obtaining a corresponding business type identifier; responding to the service type identifier not in the preset identifier list, and calling an expansion interface to match the corresponding implementation class for the service type identifier; and updating the service type identifier to a preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data. Therefore, the efficiency and the accuracy in service processing can be improved, and the service processing expansion performance can be enhanced.

Description

Service processing method, device, electronic equipment and computer readable medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a service processing method, a device, an electronic apparatus, and a computer readable medium.
Background
At present, in a company, there are often different product lines in which a plurality of application systems are running. These application systems often share a set of underlying data, but implement different application scenarios and functions, respectively. By extracting some application parameters and maintenance of general basic data, the maintenance is performed as a separate application system, which is commonly called a configuration center. In the configuration center, the message is inevitably sent to other systems frequently, and because of a plurality of access systems, the format and the processing mode of the message sent to each system are different, if IfElse statement is used for judging, the code volume is large, and the reading is inconvenient; frequent logic judgment is easier to generate logic code errors, the service processing efficiency and accuracy are low, and the service processing expansibility is poor.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art:
when business processing is carried out, frequent logic judgment is easier to cause logic code errors, the business processing efficiency and accuracy are low, and the expansibility of the business processing is poor.
Disclosure of Invention
In view of the above, embodiments of the present application provide a service processing method, apparatus, electronic device, and computer readable medium, which can solve the problems that when the existing service is processed, frequent logic judgment is easier to generate a logic code error, the service processing efficiency and accuracy are low, and the service processing expansibility is poor.
To achieve the above object, according to an aspect of an embodiment of the present application, there is provided a service processing method, including:
receiving a service processing request and acquiring a corresponding service type identifier;
responding to the service type identifier not in the preset identifier list, and calling an expansion interface to match the corresponding implementation class for the service type identifier;
and updating the service type identifier to a preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data.
Optionally, calling the extension interface to match the corresponding implementation class for the service type identifier includes:
calling an expansion interface to acquire an implementation class database;
and matching the service type identifier with each implementation class in the implementation class database to determine the implementation class matched with the service type identifier.
Optionally, matching the service type identifier with each implementation class in the implementation class database includes:
acquiring corresponding service detail data according to the service type identifier;
and acquiring service scene data corresponding to each implementation class, and matching the service detail data with each service scene data.
Optionally, matching the service detail data with each service scene data includes:
clustering the service detail data to obtain each cluster;
and performing similarity matching on each cluster and the business scene data.
Optionally, calling the extension interface to match the corresponding implementation class for the service type identifier includes:
and calling the expansion interface to generate an implementation class corresponding to the service type identifier based on the class template and the service type identifier in the expansion interface.
Optionally, after updating the implementation class into the preset identifier list, the method further includes:
based on the updated preset identification list and the implementation class, updating the corresponding key value pair mapping table.
Optionally, the service processing method further includes:
and responding to the service type identifier in a preset identifier list, calling a key value pair mapping table to acquire and execute the implementation class corresponding to the service type identifier from the key value pair mapping table, and returning corresponding service processing result data.
In addition, the application also provides a service processing device, which comprises:
the receiving unit is configured to receive the service processing request and acquire a corresponding service type identifier;
the matching unit is configured to call the expansion interface to match the corresponding realization class for the service type identifier in response to the service type identifier not being in the preset identifier list;
and the execution unit is configured to update the service type identifier to a preset identifier list, call and execute the implementation class and return corresponding service processing result data.
Optionally, the matching unit is further configured to:
calling an expansion interface to acquire an implementation class database;
and matching the service type identifier with each implementation class in the implementation class database to determine the implementation class matched with the service type identifier.
Optionally, the matching unit is further configured to:
acquiring corresponding service detail data according to the service type identifier;
and acquiring service scene data corresponding to each implementation class, and matching the service detail data with each service scene data.
Optionally, the matching unit is further configured to:
clustering the service detail data to obtain each cluster;
and performing similarity matching on each cluster and the business scene data.
Optionally, the matching unit is further configured to:
and calling the expansion interface to generate an implementation class corresponding to the service type identifier based on the class template and the service type identifier in the expansion interface.
Optionally, the execution unit is further configured to:
based on the updated preset identification list and the implementation class, updating the corresponding key value pair mapping table.
Optionally, the execution unit is further configured to:
and responding to the service type identifier in a preset identifier list, calling a key value pair mapping table to acquire and execute the implementation class corresponding to the service type identifier from the key value pair mapping table, and returning corresponding service processing result data.
In addition, the application also provides a service processing electronic device, which comprises: one or more processors; and a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the service processing method as described above.
In addition, the application also provides a computer readable medium, on which a computer program is stored, which when executed by a processor implements the service processing method as described above.
To achieve the above object, according to still another aspect of an embodiment of the present application, there is provided a computer program product.
The computer program product of the embodiment of the application comprises a computer program, and the service processing method provided by the embodiment of the application is realized when the program is executed by a processor.
One embodiment of the above application has the following advantages or benefits: the application obtains the corresponding service type identifier by receiving the service processing request; responding to the service type identifier not in the preset identifier list, and calling an expansion interface to match the corresponding implementation class for the service type identifier; and updating the service type identifier to a preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data. Therefore, the efficiency and the accuracy in service processing can be improved, and the service processing expansion performance can be enhanced.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the application and are not to be construed as unduly limiting the application. Wherein:
fig. 1 is a schematic diagram of the main flow of a service processing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of the main flow of a business processing method according to one embodiment of the application;
FIG. 3 is a schematic diagram of the main flow of a business processing method according to one embodiment of the application;
fig. 4 is a schematic diagram of main units of a service processing apparatus according to an embodiment of the present application;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
fig. 6 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. 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 application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness. In the technical scheme of the application, the aspects of acquisition, analysis, use, transmission, storage and the like of the related user personal information all meet the requirements of related laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside the aspects of legal use and the like, and are subjected to supervision and management of a supervision department. Necessary measures should be taken for the personal information of the user to prevent illegal access to such personal information data, ensure that personnel having access to the personal information data comply with the regulations of the relevant laws and regulations, and ensure the personal information of the user. Once these user personal information data are no longer needed, the risk should be minimized by limiting or even prohibiting the data collection and/or deletion.
User privacy is protected by de-identifying data when used, including in some related applications, such as by removing a particular identifier, controlling the amount or specificity of stored data, controlling how data is stored, and/or other methods.
Fig. 1 is a schematic diagram of main flow of a service processing method according to an embodiment of the present application, and as shown in fig. 1, the service processing method includes:
step S101, receiving a service processing request and obtaining a corresponding service type identifier.
In this embodiment, the execution body (for example, may be a server) of the service processing method may receive the service processing request by means of a wired connection or a wireless connection. The service processing request may be a request for processing order data, logistics data or complaint data, and the content of the service processing request is not particularly limited in the embodiment of the present application. After the execution body receives the service processing request, the service type identifier carried in the request can be obtained. The service type identifier may be, for example, DD (i.e., representing a service for processing order data), WL (i.e., representing a service for processing logistics data), or TS (i.e., representing a service for processing complaint data), which is not specifically limited in the embodiment of the present application.
Step S102, in response to the service type identifier not being in the preset identifier list, calling an expansion interface to match the corresponding implementation class for the service type identifier.
The preset identifier list may be a list formed by service type identifiers corresponding to each service type. The service type corresponding to each preset identifier in the preset identifier list has a corresponding implementation class, and can be directly called. When the service type identifier is not in the preset identifier list, it indicates that the service type identifier has no corresponding implementation class available for calling, and then the extension program needs to be executed. And calling an expansion interface to match the corresponding implementation class for the service type identification.
Specifically, calling the extension interface to match the corresponding implementation class for the service type identifier includes: and calling the expansion interface to generate an implementation class corresponding to the service type identifier based on the class template and the service type identifier in the expansion interface.
For example, the execution body may instantiate a class template in the extension interface based on the service type identification to generate a corresponding implementation class.
Step S103, updating the service type identifier to a preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data.
According to the embodiment, the new expanded service type identifier is updated to the preset identifier list, so that the dynamic update of the preset identifier list can be realized, the preset identifier list is kept to provide service in the latest state, and the accuracy of service processing is improved. The related service processing is conveniently and intuitively carried out by calling and executing the extended implementation class, so that the front end is prevented from involving important service and data processing, and the service processing efficiency and accuracy are improved.
The embodiment of the application obtains the corresponding service type identifier by receiving the service processing request; responding to the service type identifier not in the preset identifier list, and calling an expansion interface to match the corresponding implementation class for the service type identifier; and updating the service type identifier to a preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data. Therefore, the efficiency and the accuracy in service processing can be improved, and the service processing expansion performance can be enhanced.
Fig. 2 is a schematic flow chart of a service processing method according to an embodiment of the present application, and as shown in fig. 2, the service processing method includes:
step S201, receiving a service processing request and obtaining a corresponding service type identifier.
Step S202, calling an expansion interface to acquire an implementation class database in response to the service type identifier not being in the preset identifier list.
The realization class database stores the realization class corresponding to each service type identifier and the associated service data of the corresponding realization class. When the execution body identifies that the service type identifier is not in the preset identifier list, the extension interface can be called to acquire an implementation class database storing implementation classes corresponding to the service type identifiers.
Step S203, the service type identifier is matched with each implementation class in the implementation class database to determine the implementation class matched with the service type identifier.
Specifically, the execution body may determine a service type identifier (for example, A, B, C, …, N) corresponding to each implementation class in the implementation class database, and perform cosine similarity matching on the service type identifier Q obtained according to the service processing request and the service type identifiers A, B, C, …, N, so as to determine a service type identifier, for example, a, that matches the service type identifier obtained according to the service processing request, and further determine an implementation class corresponding to the service type identifier a as an implementation class that matches the service type identifier Q.
As another implementation manner of the embodiment of the present application, the execution body may also extract the keyword Q of the service type identifier Q, and extract the service type identifier, for example, the keywords a, b, c, …, N of A, B, C, …, N, so as to perform cosine similarity on Q and a, b, c, …, N
And calculating the degree, so as to obtain each cosine similarity, and determining the corresponding realization class as the realization class matched with the service type identifier Q by using the service type identifier corresponding to the cosine similarity larger than a preset threshold, for example, any one of a, b, c, … and n, such as a.
Step S204, updating the service type identifier to a preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data.
The processing of the service can be more accurate by dynamically updating the preset identification list based on the extended service type identification.
Fig. 3 is a schematic view of an application scenario of a service processing method according to an embodiment of the present application. As shown in fig. 3, the service processing method includes:
step S301, receiving a service processing request and obtaining a corresponding service type identifier.
In this embodiment, the execution body (for example, may be a server) of the service processing method may receive the service processing request by means of a wired connection or a wireless connection. The business processing request may be a request for processing deposit data, loan data, or medical consultation data, and the content of the business processing request is not particularly limited in the embodiment of the present application.
Step S302, calling an expansion interface to acquire an implementation class database in response to the service type identifier not being in the preset identifier list.
The realization class corresponding to each service type identifier is stored in the realization class database.
Step S303, according to the service type identification, the corresponding service detail data is obtained.
Step S304, obtaining the business scene data corresponding to each realization class, and matching the business detail data with each business scene data to determine the realization class matched with the business type identifier.
Specifically, matching the service detail data with each service scene data includes: clustering the service detail data to obtain each cluster; and performing similarity matching on each cluster and the business scene data.
Specifically, the service detail data may be clustered based on field dimensions in the service detail data, and exemplary, the field dimensions in the service detail data may include: the field dimension in the business detail data is not particularly limited in the embodiment of the application.
Converting each cluster obtained by clustering into a cluster vector, converting service scene data corresponding to each implementation class in the implementation class database into service scene vectors, and calculating cosine similarity between each cluster vector (for example X, Y, Z) and each service scene vector V for each service scene vector, for example the service scene vector V, so as to obtain each cosine similarity x, y and z. Taking the average value U= (x+y+z)/3 of each cosine similarity, and taking the average value U as the final similarity between each cluster vector (for example X, Y, Z) and the service scene vector V. The other calculation modes of the service scene vectors are the same, and are not described in detail here. And determining the service scene data corresponding to the service scene vector corresponding to the service with the maximum final similarity as service scene data matched with the service detail data corresponding to the service type identifier, and determining the implementation class corresponding to the service scene data matched with the service detail data corresponding to the service type identifier as the implementation class corresponding to the service type identifier corresponding to the service processing request.
Step S305, updating the service type identifier to a preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data.
Specifically, after updating the implementation class into the preset identifier list, the service processing method further comprises the following steps: based on the updated preset identification list and the implementation class, updating the corresponding key value pair mapping table.
Specifically, the service processing method further comprises the following steps: and responding to the service type identifier in a preset identifier list, calling a key value pair mapping table to acquire and execute the implementation class corresponding to the service type identifier from the key value pair mapping table, and returning corresponding service processing result data.
The embodiment of the application uses the concrete implementation class corresponding to the factory mode cache service. For example, the factory pattern may be a key-value-pair mapping table map pattern. Storing the service type identifier and the corresponding implementation class as a key value pair into a key value pair mapping table map, exposing a method for inquiring the implementation class in a cache map according to the service type, directly calling and inquiring later, adding one implementation class for each service scene of each application system, designing a unique type value and returning the unique type value to a getType method (the method is used for returning the service type enumeration value), and improving the service processing capacity and the service processing accuracy.
In the embodiment of the application, when the front-end page initiates a request to the configuration center, the configuration center needs to judge which application system the message needs to be sent to according to the request type, and organizes the service data format needed by the application system to be sent to the application system. The method for judging the request type and organizing the data transmission can use the strategy mode and the factory mode to be combined, so that the method is simplified and intuitively transmitted to the corresponding application system, multiple conditions which are difficult to maintain are avoided, and the client is prevented from involving more services and important algorithms and data. The strategy mode is used in combination with the factory mode to optimize the excessive decision logic. The traffic type is defined to distinguish between different operations of the systems. And adding an implementation class for each service, and respectively realizing a return service type and a service processing method. And caching the implementation classes corresponding to the different service types by using the factory mode. After the front end initiates the request, the corresponding implementation class is directly fetched and called in the factory through the service type. Convenient and visual, and strong expandability.
Fig. 4 is a schematic diagram of main units of a service processing apparatus according to an embodiment of the present application. As shown in fig. 4, the service processing apparatus 400 includes a receiving unit 401, a matching unit 402, and an executing unit 403.
The receiving unit 401 is configured to receive the service processing request, and obtain the corresponding service type identifier.
And a matching unit 402 configured to call the extension interface to match the corresponding implementation class for the service type identifier in response to the service type identifier not being in the preset identifier list.
And the execution unit 403 is configured to update the service type identifier to a preset identifier list, call and execute the implementation class, and return corresponding service processing result data.
In some embodiments, the matching unit 402 is further configured to: calling an expansion interface to acquire an implementation class database; and matching the service type identifier with each implementation class in the implementation class database to determine the implementation class matched with the service type identifier.
In some embodiments, the matching unit 402 is further configured to: acquiring corresponding service detail data according to the service type identifier; and acquiring service scene data corresponding to each implementation class, and matching the service detail data with each service scene data.
In some embodiments, the matching unit 402 is further configured to: clustering the service detail data to obtain each cluster; and performing similarity matching on each cluster and the business scene data.
In some embodiments, the matching unit 402 is further configured to: and calling the expansion interface to generate an implementation class corresponding to the service type identifier based on the class template and the service type identifier in the expansion interface.
In some embodiments, execution unit 403 is further configured to: based on the updated preset identification list and the implementation class, updating the corresponding key value pair mapping table.
In some embodiments, execution unit 403 is further configured to: and responding to the service type identifier in a preset identifier list, calling a key value pair mapping table to acquire and execute the implementation class corresponding to the service type identifier from the key value pair mapping table, and returning corresponding service processing result data.
Note that, the service processing method and the service processing apparatus of the present application have a corresponding relationship in terms of implementation contents, and therefore, the description of the repeated contents is not repeated.
Fig. 5 illustrates an exemplary system architecture 500 to which a business processing method or business processing apparatus of embodiments of the present application may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be a variety of electronic devices having a business process screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for business process requests submitted by users using the terminal devices 501, 502, 503. The background management server can receive the service processing request and acquire the corresponding service type identifier; responding to the service type identifier not in the preset identifier list, and calling an expansion interface to match the corresponding implementation class for the service type identifier; and updating the service type identifier to a preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data. Therefore, the efficiency and the accuracy in service processing can be improved, and the service processing expansion performance can be enhanced.
It should be noted that, the service processing method provided in the embodiment of the present application is generally executed by the server 505, and accordingly, the service processing apparatus is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing an embodiment of the present application. The terminal device shown in fig. 6 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the computer system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a liquid crystal credit authorization query processor (LCD), and the like, and a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts 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 application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block 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 will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes a receiving unit, a matching unit, and an execution unit. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs, which when executed by one of the devices, cause the device to receive a service processing request and obtain a corresponding service type identifier; responding to the service type identifier not in the preset identifier list, and calling an expansion interface to match the corresponding implementation class for the service type identifier; and updating the service type identifier to a preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data.
The computer program product of the present application comprises a computer program which, when executed by a processor, implements the service processing method in the embodiments of the present application.
According to the technical scheme of the embodiment of the application, the efficiency and the accuracy in service processing can be improved, and the service processing expansion performance can be enhanced.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (16)

1. A method for processing a service, comprising:
receiving a service processing request and acquiring a corresponding service type identifier;
responding to the service type identifier not in a preset identifier list, and calling an expansion interface to match the corresponding implementation class for the service type identifier;
and updating the service type identifier to the preset identifier list, calling and executing the implementation class, and returning corresponding service processing result data.
2. The method of claim 1, wherein the invoking the extension interface to identify a matching corresponding implementation class for the traffic type comprises:
calling an expansion interface to acquire an implementation class database;
and matching the service type identifier with each implementation class in the implementation class database to determine the implementation class matched with the service type identifier.
3. The method of claim 2, wherein said matching the service type identification with each implementation class in the implementation class database comprises:
acquiring corresponding service detail data according to the service type identifier;
and acquiring the service scene data corresponding to each implementation class, and matching the service detail data with each service scene data.
4. A method according to claim 3, wherein said matching said business detail data with each of said business context data comprises:
clustering the service detail data to obtain each cluster;
and performing similarity matching on the clustering clusters and the business scene data.
5. The method of claim 1, wherein the invoking the extension interface to identify a matching corresponding implementation class for the traffic type comprises:
and calling an expansion interface to generate an implementation class corresponding to the service type identifier based on a class template in the expansion interface and the service type identifier.
6. The method of claim 1, wherein after the updating the implementation class into the preset identity list, the method further comprises:
and updating the corresponding key value pair mapping table based on the updated preset identification list and the implementation class.
7. The method of claim 6, wherein the method further comprises:
and responding to the service type identifier in a preset identifier list, calling a key value pair mapping table to acquire and execute the implementation class corresponding to the service type identifier from the key value pair mapping table, and returning corresponding service processing result data.
8. A service processing apparatus, comprising:
the receiving unit is configured to receive the service processing request and acquire a corresponding service type identifier;
the matching unit is configured to call an expansion interface to match the corresponding implementation class for the service type identifier in response to the service type identifier not being in a preset identifier list;
and the execution unit is configured to update the service type identifier to the preset identifier list, call and execute the implementation class and return corresponding service processing result data.
9. The apparatus of claim 8, wherein the matching unit is further configured to:
calling an expansion interface to acquire an implementation class database;
and matching the service type identifier with each implementation class in the implementation class database to determine the implementation class matched with the service type identifier.
10. The apparatus of claim 9, wherein the matching unit is further configured to:
acquiring corresponding service detail data according to the service type identifier;
and acquiring the service scene data corresponding to each implementation class, and matching the service detail data with each service scene data.
11. The apparatus of claim 10, wherein the matching unit is further configured to:
clustering the service detail data to obtain each cluster;
and performing similarity matching on the clustering clusters and the business scene data.
12. The apparatus of claim 8, wherein the matching unit is further configured to:
and calling an expansion interface to generate an implementation class corresponding to the service type identifier based on a class template in the expansion interface and the service type identifier.
13. The apparatus of claim 8, wherein the execution unit is further configured to:
and updating the corresponding key value pair mapping table based on the updated preset identification list and the implementation class.
14. A business processing electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.
15. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
16. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202310775429.7A 2023-06-28 2023-06-28 Service processing method, device, electronic equipment and computer readable medium Pending CN116775167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310775429.7A CN116775167A (en) 2023-06-28 2023-06-28 Service processing method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310775429.7A CN116775167A (en) 2023-06-28 2023-06-28 Service processing method, device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN116775167A true CN116775167A (en) 2023-09-19

Family

ID=88009658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310775429.7A Pending CN116775167A (en) 2023-06-28 2023-06-28 Service processing method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN116775167A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149799A (en) * 2023-11-01 2023-12-01 建信金融科技有限责任公司 Data updating method, device, electronic equipment and computer readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149799A (en) * 2023-11-01 2023-12-01 建信金融科技有限责任公司 Data updating method, device, electronic equipment and computer readable medium
CN117149799B (en) * 2023-11-01 2024-02-13 建信金融科技有限责任公司 Data updating method, device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
CN111447257B (en) Message conversion method and device
CN110706093A (en) Accounting processing method and device
CN109766148B (en) Method and apparatus for processing interface method calls
CN111460129A (en) Method and device for generating identification, electronic equipment and storage medium
CN110648216A (en) Wind control method and device
CN110909022A (en) Data query method and device
CN116775167A (en) Service processing method, device, electronic equipment and computer readable medium
CN111401684A (en) Task processing method and device
CN114297278A (en) Method, system and device for quickly writing batch data
CN113761565B (en) Data desensitization method and device
CN112948138A (en) Method and device for processing message
CN116861397A (en) Request processing method, device, electronic equipment and computer readable medium
CN115277707A (en) Service processing method, device, electronic equipment and storage medium
CN110941683B (en) Method, device, medium and electronic equipment for acquiring object attribute information in space
CN114372078A (en) Data security protection method and device
CN113704222A (en) Method and device for processing service request
CN113127416A (en) Data query method and device
CN111737218A (en) File sharing method and device
CN113362097B (en) User determination method and device
CN113312521B (en) Content retrieval method, device, electronic equipment and medium
CN117170821B (en) Service processing method, device, electronic equipment and computer readable medium
CN113239687B (en) Data processing method and device
CN113760860B (en) Data reading method and device
CN110716885B (en) Data management method and device, electronic equipment and storage medium
CN116582594A (en) Method, apparatus, electronic device and computer readable medium for accessing service

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