CN112199413A - Service request execution method, device, electronic equipment and storage medium - Google Patents

Service request execution method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112199413A
CN112199413A CN202010980317.1A CN202010980317A CN112199413A CN 112199413 A CN112199413 A CN 112199413A CN 202010980317 A CN202010980317 A CN 202010980317A CN 112199413 A CN112199413 A CN 112199413A
Authority
CN
China
Prior art keywords
inventory management
service request
type
management action
mapping table
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
CN202010980317.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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 filed Critical China Construction Bank Corp
Priority to CN202010980317.1A priority Critical patent/CN112199413A/en
Publication of CN112199413A publication Critical patent/CN112199413A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/2474Sequence data queries, e.g. querying versioned data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/285Clustering or classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders

Abstract

The invention discloses a service request execution method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring the type of the corresponding inventory management scene according to the type of the service request; acquiring an inventory management operation sequence according to the type of an inventory management scene, wherein the inventory management action sequence comprises at least one inventory management action; and executing the inventory management action sequence to acquire service data corresponding to the service request. Through the two-layer mapping relation between the service scene and the inventory management scene and between the inventory management scene and the inventory management action sequence, the inventory management action sequence to be executed can be determined according to the type of the service request, the service data corresponding to the service request can be obtained, and when a new request needs to be added, the corresponding inventory management scene or inventory management action only needs to be recombined without modifying a large number of codes, so that the execution efficiency of the service request is improved, and the experience effect of a user is improved.

Description

Service request execution method, device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a service request execution method, a service request execution device, electronic equipment and a storage medium.
Background
In the real-estate fund system inventory management in the financial field, the existing configuration mode is to respectively correspond to a designated code for each business scene, and when a business request of a user is received, the designated code is executed for the business request.
When executing a service request based on the existing inventory management configuration mode, although corresponding service data can be obtained, the service request usually directly corresponds to a fixed complex code, so that once a new service request is added, a large amount of code modification needs to be performed again, the system reusability is poor, and the execution efficiency of the service request is reduced due to the upgrade of the system, thereby affecting the experience effect of a user.
Disclosure of Invention
The embodiment of the invention provides a service request execution method, a service request execution device, service request execution equipment and a storage medium, so as to obtain corresponding service data according to a service request.
In a first aspect, an embodiment of the present invention discloses a method for executing a service request, including:
acquiring the type of a corresponding inventory management scene according to the type of the service request, wherein the inventory management scene supports the execution of the service request;
acquiring an inventory management operation sequence according to the type of an inventory management scene, wherein the inventory management action sequence comprises at least one inventory management action;
and executing the inventory management action sequence to acquire service data corresponding to the service request.
In a second aspect, an embodiment of the present invention provides a service request execution device, including:
the type acquisition module of the inventory management scene is used for acquiring the type of the corresponding inventory management scene according to the type of the service request, wherein the inventory management scene supports the execution of the service request;
the inventory management operation sequence acquisition module is used for acquiring an inventory management operation sequence according to the type of an inventory management scene, wherein the inventory management action sequence comprises at least one inventory management action;
and the service data acquisition module is used for executing the inventory management action sequence to acquire service data corresponding to the service request.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
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 are caused to implement the methods of any of the embodiments of the present invention.
In a fourth aspect, the embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method of any of the embodiments of the present invention.
In the embodiment of the invention, through the two-layer mapping relation between the service scene and the inventory management scene and between the inventory management scene and the inventory management action sequence, the inventory management action sequence to be executed can be determined according to the type of the service request, the service data corresponding to the service request can be obtained, and when a new request needs to be added, only the corresponding inventory management scene or inventory management action needs to be recombined without modifying a large number of codes, so that the execution efficiency of the service request and the experience effect of a user are improved.
Drawings
Fig. 1 is a flowchart of a service request execution method according to an embodiment of the present invention;
fig. 2 is a flowchart of a service request execution method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service request execution device according to a third embodiment of the present invention;
fig. 4 is a block diagram of a device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a service request execution method according to an embodiment of the present invention, which is applicable to a case where corresponding service data is obtained according to a service request. The method may be executed by a service request execution device in the embodiment of the present invention, where the device may be implemented in a software and/or hardware manner, and the method in the embodiment of the present invention specifically includes the following steps:
and step 101, acquiring the type of the corresponding inventory management scene according to the type of the service request.
The inventory management scenes support the execution of the service requests, and each inventory management scene supports at least one type of service request, namely, the service requests can normally run only under the corresponding inventory management scene, otherwise, errors can be reported.
Optionally, obtaining the type of the corresponding inventory management scenario according to the type of the service request may include: acquiring a first mapping table from a database, wherein the first mapping table comprises the corresponding relation between service requests and inventory management scenes, and each inventory management scene at least corresponds to one service request; and inquiring from the first mapping table according to the type of the service request to obtain the type of the inventory management scene.
Optionally, the types of the inventory management scenario may include: the method comprises the steps of inventory early warning, physical sale, physical buyback, to-be-extracted sale and to-be-extracted non-specified buyback.
Wherein, the following table 1 shows a first mapping table:
TABLE 1
Figure BDA0002687288930000041
The first mapping table shown in table 1 is an example of different service requests in a real precious metal scene, and at least one service request corresponds to each inventory management scene, and the first mapping table further includes an identifier corresponding to each service request and an identifier corresponding to each inventory management scene, and only part of the content of the first mapping table is shown in this embodiment due to space limitations.
In a specific implementation, when it is determined that the type of the acquired service request input by the user is that the account fund identified as 0903 is exchanged for physical sale, the type of the service request is queried in the first mapping table shown in table 1, and the type of the inventory management scenario is obtained as physical sale identified as a 001.
Optionally, before obtaining the first mapping table from the database, the method further includes: acquiring a first configuration instruction; and configuring the first mapping table according to the first configuration instruction.
Specifically, in this embodiment, before the first mapping table is obtained from the database, the first mapping table needs to be configured according to a first configuration instruction input by a user, where the configuration instruction may include a correspondence between each service request and an inventory management scenario, and the correspondence is added to the first mapping table to complete a configuration process.
Step 102, obtaining an inventory management operation sequence according to the type of the inventory management scene.
Wherein the inventory management action sequence comprises at least one inventory management action.
Optionally, obtaining the inventory management action sequence according to the type of the inventory management scenario may include: acquiring a second mapping table from the database, wherein the second mapping table comprises a corresponding relation between an inventory management scene and an inventory management operation sequence; and querying from the second mapping table according to the type of the inventory management scene to obtain an inventory management action sequence.
Wherein, the following table 2 shows a second mapping table:
TABLE 2
Figure BDA0002687288930000061
Each inventory management scenario in the second mapping table shown in table 2 corresponds to one inventory management action sequence, each inventory management action sequence includes at least one inventory management action, each inventory management action in the inventory management action sequence is executed sequentially, and the second mapping table further includes an identifier corresponding to each inventory management scenario and an identifier of each inventory management action.
Specifically, in the embodiment, a two-layer mapping relationship is established to determine the inventory management action to be executed corresponding to the service request, and when the service request is added or deleted, only the existing mapping relationship needs to be adjusted, and the original system code does not need to be modified, so that the function is easier to expand.
Optionally, before obtaining the second mapping table from the database, the method may further include: acquiring a second configuration instruction; and configuring the second mapping table according to the second configuration instruction.
Specifically, in this embodiment, before the second mapping table is obtained from the database, the second mapping table needs to be configured according to a second configuration instruction of the user, specifically, a specified type of inventory management action is selected from the inventory management action set for a specified inventory management scenario, and the inventory management actions are combined according to a specified order to obtain an inventory management action sequence.
It should be noted that the inventory management actions included in the inventory management action set may specifically be: the method comprises the steps of exchanging account money for physical sale, exchanging accumulated money for physical sale, exchanging deposited money for physical sale, exchanging account money for ready-to-draw sale, exchanging accumulated money for ready-to-draw sale, exchanging deposited money for ready-to-draw sale, justice flat warehouse, buying back for ready-to-draw, mortgage flat warehouse, justice flat warehouse in a frozen state and mortgage flat warehouse in a frozen state. Of course, the present embodiment is described by way of example only, and is not limited to the inventory management operations included in the inventory management operation set. And the user can select the specified inventory management actions from the inventory management operation sequences according to the requirement and combine the selected inventory management actions according to the sequence to obtain the inventory management operation sequence corresponding to the specified type of inventory management scene.
Optionally, querying from the second mapping table according to the type of the inventory management scenario to determine the inventory management action sequence may include: querying from a second mapping table according to the type of the inventory management scene; and judging whether a library management action sequence corresponding to the type of the inventory management scene is inquired in the second mapping table, if so, directly determining the inventory management action sequence, otherwise, receiving an updating instruction of a user aiming at the second mapping table, updating the second mapping table according to the updating instruction, and determining the inventory management action sequence according to the updated second mapping table.
It should be noted that, when querying from the second mapping table according to the type of the inventory management scenario, if the inventory management action sequence corresponding to the specified type of inventory management scenario is directly queried in the second mapping table, it is indicated that the configuration has been performed for the specified type of inventory management action in the process of configuring the second mapping table; if the query is not obtained, the fact that the configuration is not performed on the inventory management scenes of the specified type before is shown, but the update instruction of the user is received, the inventory management action selected from the inventory management action set and the identification of each inventory management action are contained in the update instruction, the second mapping table is updated according to the update instruction, and the inventory management action sequence is determined again according to the updated second mapping table. Therefore, the extension of the inventory management function can be realized according to actual requirements under the condition of not changing the original mapping relation.
And 103, executing the inventory management action sequence to acquire service data corresponding to the service request.
Optionally, executing the inventory management action sequence to obtain service data corresponding to the service request may include: acquiring an identifier of an inventory management action contained in an inventory management action sequence; acquiring parameters of inventory management actions from an inventory management action component library according to the identification of the inventory management actions; and executing the inventory management action according to the parameters to acquire service data corresponding to the service request.
Optionally, the parameters include: component identification, component name, component calling class, component entry mode, component message information and component correction mark.
For example, when it is determined that the type of the service request is that the account money identified as 0903 is exchanged for physical sale, it is determined that the corresponding inventory management scenario is physical sale identified as a001 according to the first mapping table, and then it may be further determined that the corresponding inventory management action sequence is: t006 limit processing + T001 physical inventory processing + T004 pending inventory query + T005 pay-by-load rate check, namely, the processing is performed according to the shown action combination sequence. Since each inventory management action implements an independent component, the component in this embodiment may be specifically encoded logic corresponding to the inventory management action based on the implementation of the component to complete the execution of the action. When the specific execution is performed, the identifier T006 of the first inventory management action in the inventory management action sequence is sequentially obtained, the inventory management action-amount processing parameter is obtained from the inventory management action building library according to T006, the inventory management action component library includes inventory management action parameters corresponding to each component, and as shown in table 3, the inventory management action-amount processing parameter is shown in the form of an information table:
field numbering Name of field Type of field
1 Inventory management action identification: t006 char(4)
2 Component identification: 001 char(6)
3 Name of the component: quota handling VARchar2(50)
4 Component call class: person VARchar2(50)
5 Component inlet mode: x1 VARchar2(20)
6 Component message information: aabbbcc VARchar2(50)
7 Punching a positive mark on a component: + char(2)
However, in this embodiment, the parameter of the quota processing is merely illustrated, the specific value of the parameter is not limited, and the parameter form of other types of inventory management actions is substantially the same as that in table 1, and therefore, the details are not repeated in this embodiment. And sequentially executing each inventory management action in the inventory management action sequence according to each inventory management action parameter so as to obtain service data corresponding to the service request-account fund exchange physical sale.
Optionally, executing an inventory management action according to the parameter to obtain service data corresponding to the service request includes: executing inventory management action according to the parameters and acquiring an execution number; and judging whether the inventory management action is successfully executed, if so, sequentially executing the residual inventory management actions in the inventory management action sequence until business data corresponding to the business request is obtained, otherwise, correcting the inventory management action which is already executed in the inventory management action sequence according to the execution number, and re-executing the inventory management operation sequence after the correction is completed until the business data corresponding to the business request is determined to be obtained.
In one particular implementation, the inventory management action sequence is: t006 limit processing + T001 physical inventory processing + T004 inventory query to be extracted + T005 prepayment rate checking, when the prepayment rate checking action is executed according to the parameter of the prepayment rate checking, the execution serial number is 100000, and under the condition that the prepayment rate checking action is successfully executed, the service data corresponding to the service request-account fund conversion physical sale is directly acquired; and under the condition that the execution of the reserve payment rate checking action is determined to be failed, correcting the inventory management action which is executed in the inventory management action sequence according to the transaction serial number, specifically judging whether a component correction mark in the parameter of each inventory management action is plus, and if so, correcting. For example, if it is determined that only the positive flags of the components in the T006 credit line processing and the T001 physical inventory processing are "+" in the operation before the T005 preparation rate check, the data values before the execution of the credit line processing and the physical inventory processing operation, that is, the original data of the credit line processing and the physical inventory processing before the current transaction are restored.
In the embodiment of the invention, through the two-layer mapping relation between the service scene and the inventory management scene and between the inventory management scene and the inventory management action sequence, the inventory management action sequence to be executed can be determined according to the type of the service request, the service data corresponding to the service request can be obtained, and when a new request needs to be added, only the corresponding inventory management scene or inventory management action needs to be recombined without modifying a large number of codes, so that the execution efficiency of the service request and the experience effect of a user are improved.
Example two
Fig. 2 is a flowchart of a service request execution method according to a second embodiment of the present invention, where the present embodiment is based on the foregoing embodiment, and after the inventory management action sequence is executed to obtain service data corresponding to the service request, the present embodiment further includes: and detecting the service data, and sending an alarm prompt under the condition that the service data is determined to be abnormal according to the detection result.
As shown in fig. 2, the method of the embodiment of the present disclosure specifically includes:
step 201, obtaining the type of the corresponding inventory management scenario according to the type of the service request.
Optionally, obtaining the type of the corresponding inventory management scenario according to the type of the service request may include: acquiring a first mapping table from a database, wherein the first mapping table comprises the corresponding relation between service requests and inventory management scenes, and each inventory management scene at least corresponds to one service request; and inquiring from the first mapping table according to the type of the service request to obtain the type of the inventory management scene.
Optionally, the types of the inventory management scenario may include: the method comprises the steps of inventory early warning, physical sale, physical buyback, to-be-extracted sale and to-be-extracted non-specified buyback.
Optionally, before obtaining the first mapping table from the database, the method further includes: acquiring a first configuration instruction; and configuring the first mapping table according to the first configuration instruction.
Step 202, obtaining an inventory management operation sequence according to the type of the inventory management scenario.
Wherein the inventory management action sequence comprises at least one inventory management action.
Optionally, obtaining the inventory management action sequence according to the type of the inventory management scenario may include: acquiring a second mapping table from the database, wherein the second mapping table comprises a corresponding relation between an inventory management scene and an inventory management operation sequence; and querying from the second mapping table according to the type of the inventory management scene to obtain an inventory management action sequence.
Optionally, before obtaining the second mapping table from the database, the method may further include: acquiring a second configuration instruction; and configuring the second mapping table according to the second configuration instruction.
Step 203, executing the inventory management action sequence to obtain the service data corresponding to the service request.
Optionally, executing the inventory management action sequence to obtain service data corresponding to the service request may include: acquiring an identifier of an inventory management action contained in an inventory management action sequence; acquiring parameters of inventory management actions from an inventory management action component library according to the identification of the inventory management actions; and executing the inventory management action according to the parameters to acquire service data corresponding to the service request.
Optionally, the parameters include: component identification, component name, component calling class, component entry mode, component message information and component correction mark.
And 204, detecting the service data, and sending an alarm prompt under the condition that the service data is determined to be abnormal according to the detection result.
Specifically, in this embodiment, after the service data corresponding to the service request is obtained, the service data needs to be detected, specifically, whether there is an obvious error in the service data is detected, for example, there is a messy code, or the service data is obviously inconsistent with the service request, and the reason for this may be that there is a configuration error in the process of configuring the mapping relationship, or the problem of the device hardware itself. Therefore, under the condition that the service data are determined to be abnormal, operation and maintenance personnel can be indicated to carry out maintenance and repair in time by sending out the alarm prompt, and the processing efficiency of the service request is further improved.
The alarm prompting can be specifically carried out in a voice broadcasting or text display mode, the specific alarm mode is not limited in the embodiment, and the embodiment does not limit the alarm prompting function for operation and maintenance personnel as long as the prompt prompting function is within the protection range of the application.
In the embodiment of the invention, through the two-layer mapping relation between the service scene and the inventory management scene and between the inventory management scene and the inventory management action sequence, the inventory management action sequence to be executed can be determined according to the type of the service request, the service data corresponding to the service request can be obtained, and when a new request needs to be added, only the corresponding inventory management scene or inventory management action needs to be recombined without modifying a large number of codes, so that the execution efficiency of the service request and the experience effect of a user are improved. Under the condition that the service data are determined to be abnormal, operation and maintenance personnel can be indicated to overhaul and maintain in time by sending out an alarm prompt, so that the processing efficiency of service requests is further improved.
EXAMPLE III
Fig. 3 is a service request execution device provided in the fourth embodiment of the present invention, which specifically includes: a type acquisition module 301 of an inventory management scenario, an inventory management operation sequence acquisition module 302 and a business data acquisition module 303.
A type obtaining module 301 of an inventory management scenario, configured to obtain a type of a corresponding inventory management scenario according to a type of a service request, where the inventory management scenario supports execution of the service request;
an inventory management operation sequence obtaining module 302, configured to obtain an inventory management operation sequence according to a type of an inventory management scenario, where the inventory management action sequence includes at least one inventory management action;
and a service data obtaining module 303, configured to execute the inventory management action sequence to obtain service data corresponding to the service request.
Optionally, the type obtaining module 301 of the inventory management scenario is configured to obtain a first mapping table from a database, where the first mapping table includes a correspondence between the service request and the inventory management scenario, and each inventory management scenario corresponds to at least one service request;
and inquiring from the first mapping table according to the type of the service request to obtain the type of the inventory management scene.
Optionally, the apparatus further includes a first configuration module, configured to obtain a first configuration instruction;
and configuring the first mapping table according to the first configuration instruction.
Optionally, the inventory management operation sequence obtaining module 302 includes:
the second mapping table obtaining submodule is used for obtaining a second mapping table from the database, wherein the second mapping table comprises a corresponding relation between an inventory management scene and an inventory management operation sequence;
and the inventory management action sequence acquisition submodule is used for inquiring from the second mapping table according to the type of the inventory management scene to acquire an inventory management action sequence.
Optionally, the apparatus further includes a second configuration module, configured to obtain a second configuration instruction;
and configuring the second mapping table according to the second configuration instruction.
Optionally, the service data obtaining module 303 includes:
the identification acquisition submodule of the inventory management action is used for acquiring the identification of the inventory management action contained in the inventory management action sequence;
the parameter acquisition submodule of the inventory management action is used for acquiring the parameters of the inventory management action from the inventory management action component library according to the identifier of the inventory management action;
and the service data acquisition submodule is used for executing the inventory management action according to the parameters to acquire service data corresponding to the service request.
Optionally, the parameters include: component identification, component name, component calling class, component entry mode, component message information and component correction mark.
Optionally, the service data obtaining sub-module is configured to execute the inventory management action according to the parameter and obtain an execution number;
and judging whether the inventory management action is successfully executed, if so, sequentially executing the residual inventory management actions in the inventory management action sequence until business data corresponding to the business request is obtained, otherwise, correcting the inventory management action which is already executed in the inventory management action sequence according to the execution number, and re-executing the inventory management operation sequence after the correction is completed until the business data corresponding to the business request is determined to be obtained.
Optionally, the inventory management action sequence obtaining sub-module is configured to query from the second mapping table according to the type of the inventory management scenario;
judging whether a library management action sequence corresponding to the type of the inventory management scene is inquired in the second mapping table or not, if so, directly determining the inventory management action sequence,
otherwise, receiving an updating instruction of the user aiming at the second mapping table, updating the second mapping table according to the updating instruction, and determining an inventory management action sequence according to the updated second mapping table.
Optionally, the apparatus further includes a detection module, configured to detect the service data;
and sending an alarm prompt under the condition that the service data are determined to be abnormal according to the detection result.
Optionally, the types of the inventory management scenario include: the method comprises the steps of inventory early warning, physical sale, physical buyback, to-be-extracted sale and to-be-extracted non-specified buyback.
Optionally, the inventory management action includes: the method comprises the steps of exchanging account money for physical sale, exchanging accumulated money for physical sale, exchanging deposited money for physical sale, exchanging account money for ready-to-draw sale, exchanging accumulated money for ready-to-draw sale, exchanging deposited money for ready-to-draw sale, justice flat warehouse, buying back for ready-to-draw, mortgage flat warehouse, justice flat warehouse in a frozen state and mortgage flat warehouse in a frozen state.
The device can execute the service request execution method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 412 suitable for use in implementing embodiments of the present invention. The electronic device 412 shown in fig. 4 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 4, the electronic device 412 is in the form of a general purpose computing device. The components of the electronic device 412 may include, but are not limited to: one or more processors 412, a memory 428, and a bus 418 that couples the various system components (including the memory 428 and the processor 416).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 412 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 428 is used to store instructions. Memory 428 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the electronic device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the electronic device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown, network adapter 420 communicates with the other modules of electronic device 412 over bus 418. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 performs various functional applications and data processing by executing instructions stored in the memory 428, such as performing the following:
acquiring the type of a corresponding inventory management scene according to the type of the service request, wherein the inventory management scene supports the execution of the service request; acquiring an inventory management operation sequence according to the type of an inventory management scene, wherein the inventory management action sequence comprises at least one inventory management action; and executing the inventory management action sequence to acquire service data corresponding to the service request.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a service request execution method, where the method includes:
acquiring the type of a corresponding inventory management scene according to the type of the service request, wherein the inventory management scene supports the execution of the service request; acquiring an inventory management operation sequence according to the type of an inventory management scene, wherein the inventory management action sequence comprises at least one inventory management action; and executing the inventory management action sequence to acquire service data corresponding to the service request.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the service request execution method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions to enable an electronic device (which may be a personal computer, a server, or a network device) to execute the service request execution method according to the embodiments of the present invention.
It should be noted that, the units and modules included in the above embodiments are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A method for performing service requests, comprising:
acquiring the type of a corresponding inventory management scene according to the type of the service request, wherein the inventory management scene supports the execution of the service request;
acquiring an inventory management operation sequence according to the type of the inventory management scene, wherein the inventory management action sequence comprises at least one inventory management action;
and executing the inventory management action sequence to acquire service data corresponding to the service request.
2. The method according to claim 1, wherein the obtaining the type of the corresponding inventory management scenario according to the type of the service request comprises:
acquiring a first mapping table from a database, wherein the first mapping table comprises a corresponding relation between service requests and inventory management scenes, and each inventory management scene corresponds to at least one service request;
and inquiring from the first mapping table according to the type of the service request to obtain the type of the inventory management scene.
3. The method of claim 2, wherein prior to obtaining the first mapping table from the database, further comprising:
acquiring a first configuration instruction;
and configuring the first mapping table according to the first configuration instruction.
4. The method of claim 1, wherein obtaining the inventory management action sequence according to the type of the inventory management scenario comprises:
acquiring a second mapping table from a database, wherein the second mapping table comprises a corresponding relation between an inventory management scene and an inventory management operation sequence;
and inquiring from the second mapping table according to the type of the inventory management scene to obtain the inventory management action sequence.
5. The method of claim 4, wherein before retrieving the second mapping table from the database, further comprising:
acquiring a second configuration instruction;
and configuring the second mapping table according to the second configuration instruction.
6. The method of claim 1, wherein the performing the inventory management action sequence to obtain business data corresponding to the business request comprises:
acquiring an identifier of an inventory management action contained in the inventory management action sequence;
acquiring parameters of inventory management actions from an inventory management action component library according to the identification of the inventory management actions;
and executing the inventory management action according to the parameters to acquire service data corresponding to the service request.
7. The method of claim 6, wherein the parameters comprise: component identification, component name, component calling class, component entry mode, component message information and component correction mark.
8. The method of claim 6, wherein the performing the inventory management action according to the parameter to obtain the service data corresponding to the service request comprises:
executing the inventory management action according to the parameters and acquiring an execution number;
and judging whether the inventory management action is successfully executed, if so, sequentially executing the residual inventory management actions in the inventory management action sequence until business data corresponding to the business request is obtained, otherwise, correcting the inventory management action which is already executed in the inventory management action sequence according to the execution number, and re-executing the inventory management operation sequence after correction is completed until the business data corresponding to the business request is determined to be obtained.
9. The method according to claim 4, wherein the querying from the second mapping table according to the type of the inventory management scenario to obtain the inventory management action sequence comprises:
inquiring from the second mapping table according to the type of the inventory management scene;
judging whether a library management action sequence corresponding to the type of the inventory management scene is inquired in the second mapping table or not, if so, directly determining the inventory management action sequence,
otherwise, receiving an updating instruction of the user aiming at the second mapping table, updating the second mapping table according to the updating instruction, and determining the inventory management action sequence according to the updated second mapping table.
10. The method of claim 1, wherein after the performing the inventory management action sequence to obtain the service data corresponding to the service request, further comprising:
detecting the service data;
and sending an alarm prompt under the condition that the service data is determined to be abnormal according to the detection result.
11. The method of claim 1, wherein the type of inventory management scenario comprises:
the method comprises the steps of inventory early warning, physical sale, physical buyback, to-be-extracted sale and to-be-extracted non-specified buyback.
12. The method of claim 1, wherein the inventory management action comprises:
the method comprises the steps of exchanging account money for physical sale, exchanging accumulated money for physical sale, exchanging deposited money for physical sale, exchanging account money for ready-to-draw sale, exchanging accumulated money for ready-to-draw sale, exchanging deposited money for ready-to-draw sale, justice flat warehouse, buying back for ready-to-draw, mortgage flat warehouse, justice flat warehouse in a frozen state and mortgage flat warehouse in a frozen state.
13. A service request execution apparatus, characterized in that the apparatus comprises:
the type acquisition module of the inventory management scene is used for acquiring the type of the corresponding inventory management scene according to the type of the service request, wherein the inventory management scene supports the execution of the service request;
the inventory management operation sequence acquisition module is used for acquiring an inventory management operation sequence according to the type of the inventory management scene, wherein the inventory management action sequence comprises at least one inventory management action;
and the service data acquisition module is used for executing the inventory management action sequence to acquire service data corresponding to the service request.
14. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means 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-12.
15. A computer-readable storage 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-12.
CN202010980317.1A 2020-09-17 2020-09-17 Service request execution method, device, electronic equipment and storage medium Pending CN112199413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010980317.1A CN112199413A (en) 2020-09-17 2020-09-17 Service request execution method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010980317.1A CN112199413A (en) 2020-09-17 2020-09-17 Service request execution method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112199413A true CN112199413A (en) 2021-01-08

Family

ID=74015319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010980317.1A Pending CN112199413A (en) 2020-09-17 2020-09-17 Service request execution method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112199413A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030167317A1 (en) * 1999-07-26 2003-09-04 Deen Brian J. Methods and systems for processing HTTP requests
CN106779844A (en) * 2016-12-15 2017-05-31 北京金山安全软件有限公司 Method and device for acquiring value added service information and electronic equipment
CN108256994A (en) * 2018-01-04 2018-07-06 中国银行股份有限公司 The generation method and device of bank's account
CN111260465A (en) * 2020-01-20 2020-06-09 深圳乐信软件技术有限公司 Business processing method, device, server and storage medium
CN111435495A (en) * 2019-01-14 2020-07-21 阿里巴巴集团控股有限公司 Service processing method, device and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030167317A1 (en) * 1999-07-26 2003-09-04 Deen Brian J. Methods and systems for processing HTTP requests
CN106779844A (en) * 2016-12-15 2017-05-31 北京金山安全软件有限公司 Method and device for acquiring value added service information and electronic equipment
CN108256994A (en) * 2018-01-04 2018-07-06 中国银行股份有限公司 The generation method and device of bank's account
CN111435495A (en) * 2019-01-14 2020-07-21 阿里巴巴集团控股有限公司 Service processing method, device and equipment
CN111260465A (en) * 2020-01-20 2020-06-09 深圳乐信软件技术有限公司 Business processing method, device, server and storage medium

Similar Documents

Publication Publication Date Title
CN108415925B (en) Electronic device, data call log generation and query method and storage medium
CN111260465A (en) Business processing method, device, server and storage medium
CN110633977A (en) Payment exception processing method and device and terminal equipment
CN112055016A (en) Message generation method and device, electronic equipment and storage medium
CN110046086B (en) Expected data generation method and device for test and electronic equipment
CN110675249A (en) Matching method, device, server and storage medium for network lending
CN114549068A (en) Short link generation method, equipment, device and computer readable storage medium
CN113312259A (en) Interface testing method and device
CN110955562A (en) Data recovery method, system, equipment and readable storage medium
CN112199413A (en) Service request execution method, device, electronic equipment and storage medium
CN111680974B (en) Method and device for positioning problems of electronic underwriting process
CN111241082B (en) Data correction method and device
CN114511314A (en) Payment account management method and device, computer equipment and storage medium
CN114691768A (en) Data processing method, accounting system and related equipment
CN113239064A (en) Database updating method and device, electronic equipment and storage medium
CN110807037B (en) Data modification method and device, electronic equipment and storage medium
CN112965986A (en) Service consistency processing method, device, equipment and storage medium
CN112632030B (en) Data abnormity positioning method and device
CN111914128A (en) Method and device for determining associated user, electronic equipment and readable storage medium
CN110765144A (en) Distributed heterogeneous database data processing method and device
CN110309211A (en) A kind of method and relevant device positioning ETL Process Problems
CN113821575B (en) Data checking method, device, equipment and computer storage medium
CN108256989B (en) Data display method and system of fund preparation system
CA3137185A1 (en) License content error correction method, apparutus, and system
CN116974801A (en) Transaction link abnormality analysis method and device, storage medium and computer equipment

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