Enterprise consumption information processing method and device

The method and device address the challenge of high processing pressure by constructing unique identifiers, forming queues, and implementing asynchronous processing for enterprise consumption requests, achieving efficient and streamlined response to enterprise consumption information.

CN119127995AActive Publication Date: 2024-12-13BEIJING BISCUIT TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411586407.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2024-12-13
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

Real-time processing of consumption requests from a large number of enterprises with numerous subordinate enterprises poses significant computing resource challenges, requiring high processing pressure and resources.

Method used

A method and device for processing enterprise consumption information that constructs a unique identifier for each enterprise, parses consumption requests to form queues, processes information asynchronously, and uses a queue merging mechanism with timestamp-based priority to manage and respond to requests efficiently.

Benefits of technology

Enables one-click reporting and asynchronous response to consumption requests, reducing processing pressure and optimizing resource utilization for enterprise consumption information processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127995A_ABST
    Figure CN119127995A_ABST
Patent Text Reader

Abstract

The invention discloses an enterprise consumption information processing method and device, and the method comprises the steps: obtaining a consumption request of an enterprise in response to a pre-constructed interface, and constructing a unique identifier for the enterprise; the consumption request is analyzed to obtain a queue corresponding to the enterprise, and the queue comprises consumption information of a target enterprise associated with the enterprise and ID information of the target enterprise; and processing consumption information of the target enterprise in the queue, and sending a processing result to the enterprise through the pre-constructed interface based on the unique identifier. By constructing the queue of the C-end enterprises, one-key consumption request submission is realized, asynchronous response of the consumption requests is realized, and the problem of high processing pressure in real-time response of each C-end enterprise request is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information processing, and in particular to a method and device for processing enterprise consumption information. Background Art

[0002] When dealing with consumption requests from a large number of enterprises, such as pre-charge requests, real-time processing will usually cause processing pressure. In addition, each of the large number of enterprises has a large number of subordinate enterprises, and these subordinate enterprises send consumption requests to their subordinate enterprises from time to time. Therefore, real-time processing of consumption requests is relatively difficult and requires more computing resources to complete. Summary of the invention

[0003] The main purpose of the present invention is to provide an enterprise information consumption method and device to solve the deficiencies existing in the related technology.

[0004] In order to achieve the above-mentioned purpose, according to the first aspect of the present invention, a method for processing enterprise consumption information is provided, comprising: obtaining a consumption request of an enterprise in response to a pre-built interface, and constructing a unique identifier for the enterprise; parsing the consumption request to obtain a queue corresponding to the enterprise, wherein the queue includes consumption information of a target enterprise associated with the enterprise and ID information of the target enterprise; processing consumption information of the target enterprise in the queue, and sending the processing result to the enterprise through the pre-built interface based on the unique identifier.

[0005] Optionally, the method also includes: providing presentation page data for the enterprise so that the enterprise-side where the enterprise is located presents a visualization configuration page; wherein, enterprises associated with the enterprise are presented in the visualization configuration page; if there is an associated enterprise among the associated enterprises that sends a first consumption request to the server corresponding to the enterprise, the associated enterprises are distinguished and identified in the visualization configuration page; monitoring whether the associated enterprise with the distinguishing mark is selected; and generating the consumption request if selected.

[0006] Optionally, if selected, generating the consumption request includes: obtaining the ID corresponding to the selected associated enterprise from the database, and obtaining the consumption information of the corresponding first consumption request from the log; and building a queue based on the ID corresponding to the associated enterprise and the consumption information of the corresponding first consumption request to generate the consumption request.

[0007] Optionally, after obtaining the queue corresponding to the enterprise, it includes: adding a queue identifier to the queue corresponding to the enterprise, and associating timestamp information with the queue, wherein the queue identifier is consistent with the unique identifier; storing the queue with the associated timestamp information in a cache; when a queue with the same queue identifier is stored in the cache again within a specified period, merging the queues with the same queue identifier.

[0008] Optionally, processing consumption information of the target enterprise in the queue includes: determining a priority of queue processing based on associated timestamp information, and processing the queue based on the priority.

[0009] Optionally, processing consumption information of the target enterprise in the queue includes: calling the account of the target enterprise based on the ID of the target enterprise; and processing consumption information based on the consumption information of the target enterprise and the account information.

[0010] According to a second aspect of the present invention, a consumption information processing device is provided, comprising a request response unit, for obtaining a consumption request of an enterprise in response to a pre-built interface, and constructing a unique identifier for the enterprise; a parsing unit, for parsing the consumption request to obtain a queue corresponding to the enterprise, wherein the queue includes consumption information of a target enterprise associated with the enterprise and ID information of the target enterprise; a consumption information processing unit, for processing consumption information of the target enterprise in the queue, and sending the processing result to the enterprise through the pre-built interface based on the unique identifier.

[0011] According to a third aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute any one of the methods described in the first aspect.

[0012] According to a fourth aspect of the present invention, there is provided an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the method described in any one implementation of the first aspect.

[0013] According to a fifth aspect of the present invention, there is provided a computer program product, comprising a computer program, wherein the computer program implements the method described in any one of the first aspects when executed by a processor.

[0014] The enterprise consumption information processing method and device of this embodiment include: in response to the pre-built interface to obtain the consumption request of the enterprise, construct a unique identifier for the enterprise; parse the consumption request to obtain the queue corresponding to the enterprise, wherein the queue includes the consumption information of the target enterprise associated with the enterprise and the ID information of the target enterprise; process the consumption information of the target enterprise in the queue, and send the processing result to the enterprise through the pre-built interface based on the unique identifier. By constructing a queue for C-end enterprises, one-click reporting of consumption requests is realized, and asynchronous response to consumption requests is achieved, overcoming the problem of high processing pressure for real-time response to each C-end enterprise request. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 is a flow chart of a method for processing consumption information according to an embodiment of the present invention; Figure 2 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0018] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0019] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0020] According to an embodiment of the present invention, a method for processing enterprise consumption information is provided. The system architecture of the method in this embodiment is as follows: Figure 1 As shown, it includes the following steps 101 to 103: Step 101: In response to obtaining a consumption request from an enterprise through a pre-built interface, a unique identifier is constructed for the enterprise.

[0021] In this step, an interface for the B-side enterprise is pre-built, through which the consumption information processing request sent by the B-side enterprise can be realized. When the server receives the request, it builds a unique enterprise identifier based on the enterprise indicated in the request.

[0022] Step 102: Parse the consumption request to obtain a queue corresponding to the enterprise, wherein the queue includes consumption information of a target enterprise associated with the enterprise and ID information of the target enterprise.

[0023] In this step, any B-end enterprise can be associated with multiple enterprises, namely C-end enterprises. The C-end enterprise can send a first consumption request to the B-end enterprise to which it belongs. The consumption information indicated by the first consumption request and the enterprise ID information can be used to form a queue. For example, C1, C2, C3, and C4 send a first consumption request to B1 to which they belong, such as a pre-charge request. The pre-charge amount in the request is used as the consumption information and the ID information of C1, C2, C3, and C4 enterprises to form a queue.

[0024] Step 103: Process consumption information of the target enterprise in the queue, and send the processing result to the enterprise through the pre-built interface based on the unique identifier.

[0025] In this step, after the consumption information of the target enterprise in the queue is processed, the processed result is inserted into the queue and further fed back to the enterprise through the unique identifier of the enterprise.

[0026] As an optional implementation method of this embodiment, the method also includes: providing presentation page data for the enterprise so that the enterprise-side where the enterprise is located presents a visualization configuration page; wherein, enterprises associated with the enterprise are presented in the visualization configuration page; if there is an associated enterprise among the associated enterprises that sends a first consumption request to the server corresponding to the enterprise, the associated enterprise is distinguished and identified in the visualization configuration page; monitoring whether the associated enterprise with the distinguishing mark is selected; and generating the consumption request if selected.

[0027] In this optional implementation, there are a large number of C-end enterprises under the B-end enterprise. If each C-end enterprise sends consumption requests to its B-end enterprise from time to time, and the B-end sends requests to the server end, which is the main execution body of the method of this embodiment, in real time, then for this server end, it will face huge data processing challenges. Therefore, a visualization configuration page is provided for the B-end. In the visualization configuration page, all C-end enterprises associated with the B-end can be presented after the B-end enterprise logs in. If any C-end enterprise sends a consumption request to the B-end enterprise, the C-end enterprise will be identified in the visualization configuration page, so that the B-end enterprise user can select all or part of the identified C-end enterprises. Generate consumption requests for the selected C-end enterprises, including building queues for the C-end enterprises.

[0028] Through this optional implementation method, C-end enterprises can submit reports with one click, without the need for relevant technologies to respond to each consumption request of each C-end enterprise in real time.

[0029] As an optional implementation method of this embodiment, if selected, generating the consumption request includes: obtaining the ID corresponding to the selected associated enterprise from the database, and obtaining the consumption information of the corresponding first consumption request from the log; and building a queue based on the ID corresponding to the associated enterprise and the consumption information of the corresponding first consumption request to generate the consumption request.

[0030] In this optional implementation, each C-end enterprise has its own corresponding enterprise ID, which can be an account ID. The enterprise ID can be retrieved from the database, and the consumption operation of the account can be completed through the enterprise ID in the subsequent consumption information processing stage. The consumption request of each C-end enterprise is recorded in the log, so the consumption information of the C-end enterprise, such as pre-charge information, is obtained from the log.

[0031] As an optional implementation method of this embodiment, after obtaining the queue corresponding to the enterprise, it includes: adding a queue identifier to the queue corresponding to the enterprise, and associating timestamp information with the queue, wherein the queue identifier is consistent with the unique identifier; storing the queue with the associated timestamp information in a cache; when a queue with the same queue identifier is stored in the cache again within a specified period, merging the queues with the same queue identifier.

[0032] In this optional implementation, since the server is facing many B-side enterprises, if it is processed synchronously, it will also generate great processing pressure on the server. Therefore, all queues are stored in the cache, and the queues are marked with timestamps when they are stored in the cache, so that asynchronous processing can be performed in chronological order.

[0033] Furthermore, since the B-end enterprise may receive the consumption request from the C-end enterprise in real time, the B-end enterprise may continuously send consumption processing requests to the server. If the server is also designed as a real-time response adopted in the relevant technology, there is still a large processing pressure. Therefore, a queue merging mechanism is designed in the cache. Under this mechanism, a cycle is set. If queues with the same queue identifier are stored within a cycle, the queues are merged. Specifically, when the queues are stored in the cache, matching is performed based on the queue identifier. If a queue with the same identifier is matched, the current queue is merged with the previous queue; if a queue with the same identifier is not matched, the current queue is directly stored in the cache. When merging, the enterprise ID is merged. If the same enterprise ID exists in the queue, the enterprises with the same ID are paralleled for subsequent parallel processing.

[0034] As an optional implementation method of this embodiment, processing consumption information of the target enterprise in the queue includes: determining the priority of queue processing based on associated timestamp information, and processing the queue based on the priority.

[0035] In this optional implementation, processing is performed in the order of queue time.

[0036] As an optional implementation method of this embodiment, processing consumption information of the target enterprise in the queue includes: calling the account information of the target enterprise based on the ID of the target enterprise; and processing consumption information based on the consumption information of the target enterprise and the account information.

[0037] In this optional implementation, during processing, the target enterprise's account information is called based on the ID, and the account information is processed based on the consumption information. If it is a pre-charge request, the processing includes recharging the account.

[0038] After the processing is completed, the processing results of different enterprises are inserted into the queue and fed back together through a unique identifier. This embodiment realizes the asynchronous processing of consumption information through the concept of one-key reporting and queue asynchronous processing.

[0039] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0040] According to an embodiment of the present invention, a consumption information processing device is also provided, including a request response unit, which is used to obtain a consumption request of an enterprise in response to a pre-built interface and build a unique identifier for the enterprise; a parsing unit, which is used to parse the consumption request to obtain a queue corresponding to the enterprise, wherein the queue includes consumption information of a target enterprise associated with the enterprise and ID information of the target enterprise; a consumption information processing unit, which is used to process consumption information of the target enterprise in the queue and send the processing result to the enterprise through the pre-built interface based on the unique identifier.

[0041] As an optional implementation method of this embodiment, the device also provides presentation page data for the enterprise so that the enterprise-side where the enterprise is located can present a visualization configuration page; wherein, enterprises associated with the enterprise are presented in the visualization configuration page; if there is an associated enterprise among the associated enterprises that sends a first consumption request to the server corresponding to the enterprise, the associated enterprises are distinguished and identified in the visualization configuration page; it is monitored whether the associated enterprise with the distinguishing mark is selected; if selected, the consumption request is generated.

[0042] As an optional implementation method of this embodiment, if selected, generating the consumption request includes: obtaining the ID corresponding to the selected associated enterprise from the database, and obtaining the consumption information of the corresponding first consumption request from the log; and building a queue based on the ID corresponding to the associated enterprise and the consumption information of the corresponding first consumption request to generate the consumption request.

[0043] As an optional implementation method of this embodiment, after obtaining the queue corresponding to the enterprise, it includes: adding a queue identifier to the queue corresponding to the enterprise, and associating timestamp information with the queue, wherein the queue identifier is consistent with the unique identifier; storing the queue with the associated timestamp information in a cache; when a queue with the same queue identifier is stored in the cache again within a specified period, merging the queues with the same queue identifier.

[0044] As an optional implementation method of this embodiment, processing consumption information of the target enterprise in the queue includes: determining the priority of queue processing based on associated timestamp information, and processing the queue based on the priority.

[0045] As an optional implementation of this embodiment, processing consumption information of the target enterprise in the queue includes: calling the account of the target enterprise based on the ID of the target enterprise; and processing consumption information based on the consumption information of the target enterprise and the account information.

[0046] According to an embodiment of the present invention, the present invention also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the method described in any of the above embodiments when executing.

[0047] According to an embodiment of the present invention, the present invention further provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the method described in any of the above embodiments when executed.

[0048] According to an embodiment of the present invention, the present invention further provides a computer program product, which can implement the method described in any of the above embodiments when executed by a processor.

[0049] Figure 2 A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices.

[0050] like Figure 2 As shown, the electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0051] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0052] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as the object matching method. For example, in some embodiments, the object matching method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method described above may be performed.

[0053] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0054] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0055] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

Claims

1. A method for processing enterprise consumption information, characterized in that: include: In response to obtaining a consumption request from an enterprise through a pre-built interface, a unique identifier is constructed for the enterprise; Parsing the consumption request to obtain a queue corresponding to the enterprise, wherein the queue includes consumption information of a target enterprise associated with the enterprise and ID information of the target enterprise; The consumption information of the target enterprise in the queue is processed, and the processing result is sent to the enterprise through the pre-built interface based on the unique identifier.

2. The consumption information processing method according to claim 1, characterized in that: The method further comprises: Providing presentation page data to the enterprise so that the enterprise end of the enterprise can present a visual configuration page; Among them, the enterprises associated with the enterprise are presented in the visualization configuration page; if there is an associated enterprise among the associated enterprises that sends a first consumption request to the server corresponding to the enterprise, the associated enterprises are distinguished and identified in the visualization configuration page; it is monitored whether the associated enterprise with the distinguishing mark is selected; if it is selected, the consumption request is generated.

3. The consumption information processing method according to claim 1, characterized in that: If selected, the consumption request is generated including: Obtaining the ID corresponding to the selected associated enterprise from the database, and obtaining the consumption information of the corresponding first consumption request from the log; A queue is constructed based on the ID corresponding to the associated enterprise and the consumption information of the first consumption request corresponding to the associated enterprise to generate the consumption request.

4. The consumption information processing method according to claim 1, characterized in that: After obtaining the queue corresponding to the enterprise, the following steps are included: Add a queue identifier to the queue corresponding to the enterprise, and associate timestamp information with the queue, wherein the queue identifier is consistent with the unique identifier; and store the queue associated with the timestamp information in a cache; When a queue with the same queue ID is stored in the cache again within a specified period, the queues with the same queue ID are merged.

5. The consumption information processing method according to claim 4, characterized in that: Processing consumption information of the target enterprise in the queue includes: determining a priority of queue processing based on associated timestamp information, and processing the queue based on the priority.

6. The consumption information processing method according to claim 5, characterized in that: Processing consumption information of the target enterprise in the queue includes: calling the account of the target enterprise based on the ID of the target enterprise; and processing consumption information based on the consumption information of the target enterprise and the account information.

7. A consumption information processing device, characterized in that: include A request response unit, configured to generate a unique identifier for the enterprise in response to a consumption request obtained from the pre-built interface; A parsing unit, configured to parse the consumption request to obtain a queue corresponding to the enterprise, wherein the queue includes consumption information of a target enterprise associated with the enterprise and ID information of the target enterprise; The consumption information processing unit is used to process the consumption information of the target enterprise in the queue and send the processing result to the enterprise through the pre-built interface based on the unique identifier.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 6.

9. An electronic device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the method described in any one of claims 1-6.

10. A computer program product, characterized in that The method comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Service processing method and device based on message queue, equipment and storage medium

    CN112527534A

  • Message pushing method and device, electronic equipment and storage medium

    CN114221925A

  • Data processing method and device, storage medium and electronic equipment

    CN114265853A

  • Industrial interconnection platform message queue deployment method and device based on identification analysis

    CN115379012A

  • Message transmission method and device

    CN116208547A