CN112465615A - Bill data processing method, device and system - Google Patents

Bill data processing method, device and system Download PDF

Info

Publication number
CN112465615A
CN112465615A CN202011381761.8A CN202011381761A CN112465615A CN 112465615 A CN112465615 A CN 112465615A CN 202011381761 A CN202011381761 A CN 202011381761A CN 112465615 A CN112465615 A CN 112465615A
Authority
CN
China
Prior art keywords
task
bill data
centralized control
task type
control server
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.)
Granted
Application number
CN202011381761.8A
Other languages
Chinese (zh)
Other versions
CN112465615B (en
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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011381761.8A priority Critical patent/CN112465615B/en
Publication of CN112465615A publication Critical patent/CN112465615A/en
Application granted granted Critical
Publication of CN112465615B publication Critical patent/CN112465615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method, a device and a system for processing bill data, wherein the method comprises the following steps: the method comprises the steps that a centralized control server receives a bill processing task request sent by a user, wherein the task request carries a plurality of task types to be processed and corresponding bill data; the centralized control server determines the execution sequence of the plurality of task types; the centralized control server controls each remote server corresponding to each task type to process corresponding bill data in sequence according to the execution sequence; and the centralized control server generates final bill data of the task request according to the processing result of the bill data sent by each remote server. The method and the system realize that any number of remote servers execute the apportioned tasks, ensure the continuity of the task flow and improve the apportioned maintenance efficiency; meanwhile, manual monitoring participation is reduced, and labor cost is saved.

Description

Bill data processing method, device and system
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device and a system for processing bill data.
Background
With the increase of product profit, enterprises use the charge-out system to realize the allocation of income data, for example, the allocation of product income is realized by manually calling up a host shell, constructing task nodes in a single-node execution mode and the like.
In the prior art, manual participation is mostly adopted for income allocation, and a series of allocation processing is carried out after all the expenditure data are aggregated.
However, in the operation and maintenance process of the charge-off system, some tasks need to manually confirm that the current node is completed and then execute the next node task, which wastes the time of operation and maintenance personnel and cannot guarantee the continuity of the whole task, for example, the operation and maintenance personnel between two nodes cannot pay attention to the processing progress in real time, and the time waste of intermediate nodes occurs; therefore, the expenditure presentation sharing system in the prior art mostly needs manual participation, and has high operation and maintenance cost, long consumed time and poor expenditure presentation processing timeliness.
Disclosure of Invention
The invention provides a method, a device and a system for processing bill data, which are used for realizing that any number of remote servers execute apportioned tasks, ensuring the continuity of task flows and improving the apportioned maintenance efficiency; meanwhile, manual monitoring participation is reduced, and labor cost is saved.
In a first aspect, a method for processing bill data provided in an embodiment of the present invention includes:
the method comprises the steps that a centralized control server receives a task request for bill processing, wherein the task request carries a plurality of task types to be processed and corresponding bill data;
the centralized control server determines the execution sequence of the plurality of task types;
the centralized control server controls each remote server corresponding to each task type to process corresponding bill data in sequence according to the execution sequence;
and the centralized control server generates final bill data of the task request according to the processing result of the bill data sent by each remote server.
In one possible design, the centralized control server determines an execution order of the plurality of task types, including:
according to the task type, if the recorded existing task type is obtained in the message queue in a matching mode, setting execution time information according to a historical fair rule;
and if the recorded existing task type is not matched in the message queue, setting execution time information according to a fair rule corresponding to the newly added task type and the existing task type in the message queue.
In one possible design, the controlling each remote server corresponding to each task type to process the corresponding billing data in sequence includes:
sending a task execution request to a remote server corresponding to the task type according to the execution time information;
receiving a current processing result sent by the remote server to obtain the finishing node information of the current task type;
and sending a task execution request to a remote server corresponding to the task type at the next moment according to the completion node information, wherein the task execution request is used for indicating the remote server to call a preset database to obtain a corresponding processing result according to the task type.
In one possible design, the method further includes:
and if the number of the task types in the message queue at the current moment is larger than the task number threshold in the task pool, setting a plurality of message queues according to the task number threshold, and respectively setting execution time information corresponding to each task type in the message queues to obtain the sequencing of the plurality of task types in each message queue.
In one possible design, the method further includes:
if the task request is executed abnormally, the task pool detects whether bill data corresponding to the task type is stored in a preset database corresponding to the remote server;
and if the bill data does not exist in the preset database, the task pool refreshes the data in the preset database to obtain updated bill data, so that the remote server can execute the corresponding task type in the task request according to the updated bill data.
In a second aspect, another method for processing bill data provided in an embodiment of the present invention includes:
receiving a task type;
and according to the task type and the bill data corresponding to the task type, obtaining a processing result corresponding to the bill data in a preset database, and returning the processing result to the centralized control server, so that the centralized control server generates final bill data of the task request according to the processing result.
In one possible design, after receiving the task type, the method further includes:
and calling a corresponding shell script at a remote server according to the task type, and configuring the preset database.
In a third aspect, an apparatus for processing bill data provided in an embodiment of the present invention includes:
the system comprises a set receiving module, a bill processing module and a bill processing module, wherein the set receiving module is used for receiving a task request of bill processing by a central control server, and the task request carries a plurality of task types to be processed and corresponding bill data;
a determining module, configured to determine, by the centralized control server, an execution order of the plurality of task types;
the control module is used for controlling each remote server corresponding to each task type to sequentially process corresponding bill data by the centralized control server according to the execution sequence;
and the generation module is used for generating the final bill data of the task request by the centralized control server according to the processing result of the bill data sent by each remote server.
In one possible design, the determining module is specifically configured to:
according to the task type, if the recorded existing task type is obtained in the message queue in a matching mode, setting execution time information according to a historical fair rule;
and if the recorded existing task type is not matched in the message queue, setting execution time information according to a fair rule corresponding to the newly added task type and the existing task type in the message queue.
In one possible design, the controlling each remote server corresponding to each task type to process the corresponding billing data in sequence includes:
sending a task execution request to a remote server corresponding to the task type according to the execution time information;
receiving a current processing result sent by the remote server to obtain the finishing node information of the current task type;
and sending a task execution request to a remote server corresponding to the task type at the next moment according to the completion node information, wherein the task execution request is used for indicating the remote server to call a preset database to obtain a corresponding processing result according to the task type.
In one possible design, the apparatus further includes:
and if the number of the task types in the message queue at the current moment is larger than the task number threshold in the task pool, setting a plurality of message queues according to the task number threshold, and respectively setting execution time information corresponding to each task type in the message queues to obtain the sequencing of the plurality of task types in each message queue.
In one possible design, the apparatus further includes:
if the task request is executed abnormally, the task pool detects whether bill data corresponding to the task type is stored in a preset database corresponding to the remote server;
and if the bill data does not exist in the preset database, the task pool refreshes the data in the preset database to obtain updated bill data, so that the remote server can execute the corresponding task type in the task request according to the updated bill data.
In a fourth aspect, an apparatus for processing bill data provided in an embodiment of the present invention includes:
the receiving module is used for receiving the task type;
and the obtaining module is used for obtaining a processing result corresponding to the bill data in a preset database according to the task type and the bill data corresponding to the task type, and returning the processing result to the centralized control server so that the centralized control server generates final bill data of the task request according to the processing result.
In one possible design, after receiving the task type, the method further includes:
and calling a corresponding shell script at a remote server according to the task type, and configuring the preset database.
In a fifth aspect, an embodiment of the present invention provides a system for processing bill data, including: the device comprises a memory and a processor, wherein the memory stores executable instructions of the processor; wherein the processor is configured to execute the processing method of the billing data of any of the first and second aspects via executing the executable instructions.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for processing bill data according to any one of the first and second aspects.
The invention provides a method, a device and a system for processing bill data, wherein the method comprises the steps that a centralized control server receives a bill processing task request sent by a user, and the task request carries a plurality of task types to be processed and corresponding bill data; the centralized control server determines the execution sequence of the plurality of task types, and controls each remote server corresponding to each task type to process the corresponding bill data in sequence according to the execution sequence; and the centralized control server generates final bill data of the task request according to the processing result of the bill data sent by each remote server. The invention is developed based on a Shiro security framework and a springboot, and can realize the execution of apportionment tasks on any number of remote servers by combining with a redis message queue, ensure the continuity of a task flow and improve the apportionment maintenance efficiency; meanwhile, manual monitoring participation is reduced, and labor cost is saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a diagram of a typical application scenario provided by an embodiment of the present invention;
fig. 2 is an interaction signaling diagram of a method for processing billing data according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a billing data processing and development framework according to an embodiment of the present invention;
fig. 4 is a first flowchart illustrating a method for processing billing data according to an embodiment of the present invention;
fig. 5 is a schematic flow chart illustrating a method for processing billing data according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a centralized control server according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a remote server according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a system for processing bill data according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, system, article, or apparatus.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
In the prior art, manual participation is mostly adopted for income allocation, and a series of allocation processing is carried out after all the expenditure data are aggregated. In the operation and maintenance process of the charge-off system, certain tasks need to manually confirm that the current node is completed and then execute the next node task, so that the time of operation and maintenance personnel is wasted, and the continuity of the whole task cannot be guaranteed; therefore, the expenditure presentation sharing system in the prior art mostly needs manual participation, and has high operation and maintenance cost, long consumed time and poor expenditure presentation processing timeliness.
Fig. 1 is a typical application scenario diagram provided by an embodiment of the present invention, and as shown in fig. 1, according to the present invention, a task request is sent to a centralized control server 12 on a front-end device 11, and then the centralized control server 12 sends a task execution instruction and the like to each remote server 13 corresponding to a task type according to the task type, so that a node flow for apportioning tasks on any number of remote servers 13 is realized, it is not necessary to manually confirm the completion condition of each node, manual monitoring participation can be reduced, the labor cost is saved, and meanwhile, the continuity of the task flow is ensured, so that the apportionment maintenance efficiency is improved. Further, an average tariff that meets market logic, etc. may be obtained based on the user list and final billing data (including billing data for each user and their corresponding task type).
Fig. 2 is an interactive signaling diagram of a method for processing billing data according to an embodiment of the present invention, as shown in fig. 2, the present embodiment takes a centralized control server and a remote server as an example to explain the method of the present embodiment, as shown in fig. 2, the method includes:
s201, a centralized control server receives a task request for bill processing, wherein the task request carries a plurality of task types to be processed and corresponding bill data;
in this embodiment, the centralized control server receives a bill processing task request sent by a front-end device, where the front-end device may include a mobile device with an APP, or an electronic device with an input interactive interface, such as a computer, a smart phone, and a netbook, including a web browser. The task request is used for triggering the centralized control server to distribute the tasks to the remote server to execute, and the task request also carries a plurality of task types to be processed and corresponding bill data.
In an optional embodiment, based on the basic receipt and entry data such as user package recharging, the receipt data needs to be shared, operated and maintained, and in the prior art, manual participation is adopted to share income, and after all the receipt data are aggregated, a series of sharing processing needs to be performed, so that the problems of high operation and maintenance cost, long time consumption, poor time effectiveness of receipt processing and the like exist. According to the embodiment, the centralized control server receives the task request of bill processing, so that the remote server processes the bill data, and the timeliness of allocation, operation and maintenance is improved.
For example, the task request for bill processing includes basic data of a user package and carries a plurality of task types, where the task types may include a voice item, a network traffic item, a broadband item, a short message and multimedia message item, and the like, different task types may be set according to different services in this embodiment, and this embodiment is not limited specifically.
S202, the centralized control server determines the execution sequence of a plurality of task types.
According to the task type, if the recorded existing task type is obtained in the message queue in a matching mode, setting execution time information according to a historical fair rule; and if the recorded existing task types are not matched in the message queue, setting execution time information according to the fair rule corresponding to the newly added task type and the existing task types in the message queue.
In this embodiment, after receiving the bill processing task request, security admission analysis is performed by Shiro, and the task request meeting the security admission requirement is added to the redis message alignment according to the task type, so as to execute the subsequent task. For example, a permission rule corresponding to a task type is set in the centralized control server, and then an execution sequence of a plurality of task types is determined, where the permission rule may be flexibly configured according to a specific situation, for example, a task request includes a plurality of task types: the call service allocation type, the broadband network service type, and the network traffic service type, the basic receipt data corresponding to the task request is 100, and the fair rule may allocate 20 the call service allocation, 40 the broadband network service type, and 40 the network traffic service type, which is not limited to the above example and its specific numerical value in this embodiment.
The centralized control server may store all data of the apportionment process, i.e. store historical data. The centralized control server can match in the redis message queue according to the task type in the task request, and if the existing task type matched with the task type exists in the redis message queue, the execution time information of the task type can be set according to the historical permission rule corresponding to the existing task type. If the existing task type corresponding to the task type is not matched in the message alignment column, setting execution time information by combining the existing task type in the message alignment column according to a fair rule corresponding to the newly added task type (the fair rule can be flexibly set according to actual conditions). For example, if the task type in the task request is detected to be a broadband network service type, and the existing broadband network service type can be matched in the message queue, the execution time information can be directly set according to the historical fair rule of the broadband network service type, that is, no change is needed; if the task type is the home call broadband binding service type, the task type is not matched in the message queue, so that a fair rule corresponding to the newly added task type is set on the centralized control server, and the execution time information of the home call broadband binding service type is set behind the execution time information of the broadband network service type by combining the broadband network service type of the example.
And S203, the centralized control server controls each remote server corresponding to each task type to process the corresponding bill data in sequence according to the execution sequence.
In this embodiment, the centralized control server controls the remote server corresponding to each task type to process the corresponding bill data in sequence according to the execution sequence corresponding to the execution time information. And the centralized control server matches the task type in a preset remote server matching table to obtain a corresponding remote server. And controlling the remote server corresponding to each task type to process the corresponding bill data in sequence according to the execution time.
And S204, receiving the task type.
And the remote server receives the task type sent by the centralized control server so as to process the corresponding bill data according to the task type.
And S205, according to the task type and the corresponding bill data, obtaining a processing result corresponding to the bill data in a preset database, and returning the processing result to the centralized control server, so that the centralized control server generates the final bill data of the task request according to the processing result.
The remote server obtains a processing result corresponding to the bill data in a preset database according to the task type and the bill data corresponding to the task type, for example, the processing results corresponding to the bill data corresponding to the task type can be respectively obtained according to the user identification information in the bill data, and for example, the processing result of at least one user in the corresponding bill data can be obtained according to the task type. And returning the processing result to the centralized control server so that the centralized control server generates final bill data corresponding to the task request according to the processing result, wherein the final bill data comprises detailed bill data of the task type corresponding to each user.
And S206, the centralized control server generates final bill data of the task request according to the processing result of the bill data sent by each remote server.
In this embodiment, the centralized control server receives the processing result of the corresponding bill data sent by each remote server, and generates final bill data of the task request according to the processing result. For example, the final billing data includes itemized billing data for each user's corresponding task type.
Referring to fig. 3, fig. 3 is a schematic diagram of a processing and development framework of bill data according to an embodiment of the present invention, as shown in fig. 3, the embodiment is developed based on a Shiro security framework and a springboot, combines with a redis message queue, calls services, such as jdbc and rest, at a front-end device, sends a task request to a task control part, performs security admission analysis by Shiro, adds the request meeting the security admission requirement to the redis message queue, waits for actual execution of the task, performs task management by a quart task pool, effectively controls utilization of resources and stabilizes the load-carrying capability of the system, and performs corresponding control by matching a rule engine (including a preset remote server matching table). In the actual task execution process, according to the task type, calling the corresponding shell script and executing the corresponding spark ksql to complete the processing of the whole apportionment task flow. The shared tasks are executed on any number of remote servers, the continuity of the task flows is guaranteed, the task execution efficiency is improved, the processing time of the corresponding task flows is shortened, the participation of manual monitoring is reduced, and meanwhile, the labor cost is reduced.
On the basis of the above-described embodiment, how the centralized control server operates will be described below. Fig. 4 is a first flowchart illustrating a method for processing billing data according to an embodiment of the present invention. The embodiment of the present invention takes the centralized control server as an execution subject to describe the method of the embodiment. As shown in fig. 4, on the basis of the above embodiment, the method includes:
s301, the centralized control server receives a task request for bill processing, wherein the task request carries a plurality of task types to be processed and corresponding bill data;
s302, the centralized control server determines the execution sequence of a plurality of task types;
s303, the centralized control server controls each remote server corresponding to each task type to process corresponding bill data in sequence according to the execution sequence;
and S304, the centralized control server generates final bill data of the task request according to the processing result of the bill data sent by each remote server.
The technical terms, technical effects, technical features, and alternative embodiments of steps S301 to S304 can be understood with reference to steps S201 to S203 and S206 shown in fig. 2, and repeated contents will not be described in detail here.
In an optional embodiment, controlling each remote server corresponding to each task type to sequentially process the corresponding bill data may specifically include: sending a task execution request to a remote server corresponding to the task type according to the execution time information; receiving a current processing result sent by a remote server to obtain the completion node information of the current task type; and sending a task execution request to a remote server corresponding to the task type at the next moment according to the completion node information, wherein the task execution request is used for indicating the remote server to call a preset database to obtain a corresponding processing result according to the task type.
In this embodiment, the centralized control server obtains a remote server corresponding to the task type from a preset remote server matching table according to the task type, and sends a task execution request to the remote server corresponding to the task type according to the task type execution time information. And after each remote server receives the request, corresponding bill data according to the task type to obtain a corresponding processing result, and returning the processing result to the centralized control server. The centralized control server receives a current processing result returned by the remote server to obtain the completion node information of the current task type, and then sends a task execution request to the remote server corresponding to the task type at the next moment according to the completion node information, and further receives the processing result returned by the remote server. And sequentially obtaining processing results returned by the remote server according to the execution sequence of the plurality of task types in the message queue and the execution time information until all the task types are executed, and obtaining final bill data corresponding to the task request.
In this embodiment, the corresponding remote servers are obtained by matching in a preset remote server matching table according to the task types, and then the remote servers are controlled to process the corresponding bill data in sequence according to the execution time sequence, the server to be controlled to be centralized receives the processing result returned by the remote servers, and obtains the completion node information of the current task type, for example, the successful completion node information, and then sends a task execution request to the remote server corresponding to the task type at the next moment according to the execution time sequence. The method and the device have the advantages that the continuity of the task execution flow is guaranteed, the task execution efficiency is improved, the processing time of the corresponding task flow is shortened, the participation of manual monitoring is reduced, and meanwhile, the labor cost is reduced.
In an alternative embodiment, the method further comprises: and if the number of the task types in the message queue at the current moment is greater than the task number threshold in the task pool, setting a plurality of message queues according to the task number threshold, and respectively setting execution time information corresponding to each task type in the message queues to obtain the sequencing of the plurality of task types in each message queue.
In this embodiment, the centralized control server sets a Quartz task pool for management, and if it is detected that the number of task types in the message queue at the current time is greater than a task number threshold in the task pool, where the task number threshold is obtained according to the actual operation conditions according to the configuration of the centralized control server, and the like, the embodiment is not particularly limited, and for example, the task number threshold is 10 when the centralized control server is idle, and the task number threshold is 20 when the centralized control server is busy, and the like. And the centralized control server sets the number of the task types of the message queues according to the task number threshold, respectively sets a plurality of message queues, and sets execution time information corresponding to the task types in each message queue, thereby obtaining the sequencing of the plurality of task types in each message queue. Therefore, the remote servers are sequentially controlled to process the account statement data.
In an alternative embodiment, the method comprises: if the execution of the task request is abnormal, the task pool detects whether the bill data corresponding to the task type is stored in a preset database corresponding to the remote server; and if the bill data does not exist in the preset database, the task pool refreshes the data in the preset database to obtain updated bill data, so that the remote server executes the corresponding task type in the task request according to the updated bill data.
In this embodiment, when the centralized control server detects that an abnormal condition occurs in the execution of the task request, the task pool stores whether the bill data corresponding to the detected task type is stored in the preset database corresponding to the remote server. For example, the task pool detects whether the bill data (for example, the package basic data 100 charged by the user) corresponding to the task type (for example, the broadband network service type) is stored in a preset database of the remote server corresponding to the task type to be executed, and if the bill data does not exist in the preset database of the remote server, the task pool refreshes the data in the preset database to obtain updated bill data, for example, the package basic data 100 charged by the user is used to obtain updated bill data, so that the remote server can execute the corresponding task type in the task request according to the updated bill data.
On the basis of the above embodiment, how the remote server operates will be described below. Fig. 5 is a schematic flow chart of a method for processing billing data according to an embodiment of the present invention. The method of the embodiment is described with a remote server as an execution subject. As shown in fig. 5, on the basis of the above embodiment, the method includes:
s401, receiving a task type.
S402, according to the task type and the corresponding bill data, a processing result corresponding to the bill data is obtained in a preset database, and the processing result is returned to the centralized control server, so that the centralized control server generates the final bill data of the task request according to the processing result.
The terms, technical effects, technical features, and alternative embodiments of steps S401 to S402 can be understood with reference to steps S204 to S205 shown in fig. 2, and repeated contents will not be described herein.
In an alternative embodiment, after receiving the task type, the method further includes: and calling a corresponding shell script at the remote server according to the task type, and configuring a preset database.
In this embodiment, after receiving the task type, the remote server calls the shell script, calls a plurality of rows of early system commands or shell commands, increases the execution permission of the file, configures the preset database, and obtains a processing result according to the bill data of the task type.
In an optional embodiment, the centralized control server may send the processing result corresponding to the task type to the front-end device of the relevant operator, so that the relevant operator knows the execution condition of the task request.
Fig. 6 is a schematic structural diagram of a centralized control server according to an embodiment of the present invention, and as shown in fig. 6, the centralized control server in this embodiment may include:
the receiving module 51 is configured to receive a task request for bill processing by the central control server, where the task request carries multiple task types to be processed and corresponding bill data thereof;
a determining module 52, configured to determine, by the centralized control server, an execution order of the plurality of task types;
the control module 53 is configured to control, by the centralized control server, each remote server corresponding to each task type to sequentially process corresponding bill data according to the execution sequence;
and the generating module 54 is configured to generate final bill data of the task request according to the processing result of the bill data sent by each remote server by the centralized control server.
In one possible design, the determining module 52 is specifically configured to:
according to the task type, if the recorded existing task type is obtained in the message queue in a matching mode, setting execution time information according to a historical fair rule;
and if the recorded existing task types are not matched in the message queue, setting execution time information according to the fair rule corresponding to the newly added task type and the existing task types in the message queue.
In one possible design, controlling each remote server corresponding to each task type to process the corresponding bill data in sequence includes:
sending a task execution request to a remote server corresponding to the task type according to the execution time information;
receiving a current processing result sent by a remote server to obtain the completion node information of the current task type;
and sending a task execution request to a remote server corresponding to the task type at the next moment according to the completion node information, wherein the task execution request is used for indicating the remote server to call a preset database to obtain a corresponding processing result according to the task type.
In one possible design, the apparatus further includes:
and if the number of the task types in the message queue at the current moment is greater than the task number threshold in the task pool, setting a plurality of message queues according to the task number threshold, and respectively setting execution time information corresponding to each task type in the message queues to obtain the sequencing of the plurality of task types in each message queue.
In one possible design, the apparatus further comprises:
if the execution of the task request is abnormal, the task pool detects whether the bill data corresponding to the task type is stored in a preset database corresponding to the remote server;
and if the bill data does not exist in the preset database, the task pool refreshes the data in the preset database to obtain updated bill data, so that the remote server executes the corresponding task type in the task request according to the updated bill data.
The centralized control server in this embodiment may execute the technical solutions in the methods shown in fig. 2 and fig. 4, and the specific implementation process and technical principle of the centralized control server refer to the related descriptions in the methods shown in fig. 2 and fig. 4, which are not described herein again.
Fig. 7 is a schematic structural diagram of a remote server according to an embodiment of the present invention, and as shown in fig. 7, the remote server according to the embodiment may include:
a receiving module 61, configured to receive a task type;
the obtaining module 62 is configured to obtain a processing result corresponding to the bill data in the preset database according to the task type and the bill data corresponding to the task type, and return the processing result to the centralized control server, so that the centralized control server generates final bill data of the task request according to the processing result.
In one possible design, after receiving the task type, the method further includes:
and calling a corresponding shell script at the remote server according to the task type, and configuring a preset database.
The remote server in this embodiment may execute the technical solutions in the methods shown in fig. 2 and fig. 5, and the specific implementation process and technical principle of the remote server refer to the relevant descriptions in the methods shown in fig. 2 and fig. 5, which are not described herein again.
Fig. 8 is a schematic structural diagram of a bill data processing system according to an embodiment of the present invention, and as shown in fig. 8, the bill data processing system 70 according to this embodiment may include: a processor 71 and a memory 72.
A memory 72 for storing a computer program (such as an application program, a functional module, and the like that implement the processing method of the above-described bill data), computer instructions, and the like;
the computer programs, computer instructions, etc. described above may be stored in one or more memories 72 in partitions. And the above-mentioned computer program, computer instructions, data, etc. can be called by the processor 71.
A processor 71 for executing the computer program stored in the memory 72 to implement the steps of the method according to the above embodiments.
Reference may be made in particular to the description relating to the preceding method embodiment.
The processor 71 and the memory 72 may be separate structures or may be an integrated structure integrated together. When the processor 71 and the memory 72 are separate structures, the memory 72 and the processor 71 may be coupled by a bus 73.
The server in this embodiment may execute the technical solution in the method shown in fig. 2, and for the specific implementation process and the technical principle, reference is made to the relevant description in the method shown in fig. 2, which is not described herein again.
In addition, an embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when at least one processor of the user equipment executes the computer-executable instructions, the user equipment performs the above possibilities.
Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in user equipment. Of course, the processor and the storage medium may reside as discrete components in a communication device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the embodiments described above may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs the steps comprising the above embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for processing bill data, comprising:
the method comprises the steps that a centralized control server receives a task request for bill processing, wherein the task request carries a plurality of task types to be processed and corresponding bill data;
the centralized control server determines the execution sequence of the plurality of task types;
the centralized control server controls each remote server corresponding to each task type to process corresponding bill data in sequence according to the execution sequence;
and the centralized control server generates final bill data of the task request according to the processing result of the bill data sent by each remote server.
2. The method of claim 1, wherein the centralized control server determines an execution order of the plurality of task types, comprising:
according to the task type, if the recorded existing task type is obtained in the message queue in a matching mode, setting execution time information according to a historical fair rule;
and if the recorded existing task type is not matched in the message queue, setting execution time information according to a fair rule corresponding to the newly added task type and the existing task type in the message queue.
3. The method of claim 2, wherein the controlling the remote servers corresponding to each task type to process the corresponding billing data in sequence comprises:
sending a task execution request to a remote server corresponding to the task type according to the execution time information;
receiving a current processing result sent by the remote server to obtain the finishing node information of the current task type;
and sending a task execution request to a remote server corresponding to the task type at the next moment according to the completion node information, wherein the task execution request is used for indicating the remote server to call a preset database to obtain a corresponding processing result according to the task type.
4. The method according to any one of claims 1-3, further comprising:
and if the number of the task types in the message queue at the current moment is larger than the task number threshold in the task pool, setting a plurality of message queues according to the task number threshold, and respectively setting execution time information corresponding to each task type in the message queues to obtain the sequencing of the plurality of task types in each message queue.
5. The method of claim 4, further comprising:
if the task request is executed abnormally, the task pool detects whether bill data corresponding to the task type is stored in a preset database corresponding to the remote server;
and if the bill data does not exist in the preset database, the task pool refreshes the data in the preset database to obtain updated bill data, so that the remote server can execute the corresponding task type in the task request according to the updated bill data.
6. A method for processing bill data, comprising:
receiving a task type;
and according to the task type and the bill data corresponding to the task type, obtaining a processing result corresponding to the bill data in a preset database, and returning the processing result to the centralized control server, so that the centralized control server generates final bill data of the task request according to the processing result.
7. The method of any of claim 6, after receiving a task type, further comprising:
and calling a corresponding shell script at a remote server according to the task type, and configuring the preset database.
8. An apparatus for processing billing data, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a bill processing task request sent by a user by a centralized control server, and the task request carries a plurality of task types to be processed and corresponding bill data;
a determining module, configured to determine, by the centralized control server, an execution order of the plurality of task types;
the control module is used for controlling each remote server corresponding to each task type to sequentially process corresponding bill data by the centralized control server according to the execution sequence;
and the generation module is used for generating the final bill data of the task request by the centralized control server according to the processing result of the bill data sent by each remote server.
9. A system for processing billing data, comprising: the device comprises a memory and a processor, wherein the memory stores executable instructions of the processor; wherein the processor is configured to perform the method of processing billing data of any of claims 1-7 via execution of the executable instructions.
10. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the method of processing billing data according to any one of claims 1 to 7.
CN202011381761.8A 2020-12-01 2020-12-01 Method, device and system for processing bill data Active CN112465615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011381761.8A CN112465615B (en) 2020-12-01 2020-12-01 Method, device and system for processing bill data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011381761.8A CN112465615B (en) 2020-12-01 2020-12-01 Method, device and system for processing bill data

Publications (2)

Publication Number Publication Date
CN112465615A true CN112465615A (en) 2021-03-09
CN112465615B CN112465615B (en) 2023-06-30

Family

ID=74806021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011381761.8A Active CN112465615B (en) 2020-12-01 2020-12-01 Method, device and system for processing bill data

Country Status (1)

Country Link
CN (1) CN112465615B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283856A (en) * 2021-04-29 2021-08-20 西安点告网络科技有限公司 Resource consumption statistical method, system, device and readable storage medium
CN113296912A (en) * 2021-05-25 2021-08-24 北京京东振世信息技术有限公司 Task processing method, device and system, storage medium and electronic equipment
CN113342855A (en) * 2021-06-24 2021-09-03 汇付天下有限公司 Data matching method and device based on big data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062383A (en) * 2017-12-13 2018-05-22 泰康保险集团股份有限公司 Generation method, device and the equipment of moon bill are insured again
CN109800063A (en) * 2019-01-25 2019-05-24 深圳乐信软件技术有限公司 Business method for parallel processing, device, server, storage medium
US10319056B1 (en) * 2014-12-04 2019-06-11 HCA Holdings, Inc. Biased task assignments based on geotracking of discharge vehicles
CN110175820A (en) * 2019-05-31 2019-08-27 北京金山云网络技术有限公司 Bill processing method, device, electronic equipment and the storage medium of cloud calculation service
CN110348242A (en) * 2017-06-12 2019-10-18 腾讯科技(深圳)有限公司 Service request processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10319056B1 (en) * 2014-12-04 2019-06-11 HCA Holdings, Inc. Biased task assignments based on geotracking of discharge vehicles
CN110348242A (en) * 2017-06-12 2019-10-18 腾讯科技(深圳)有限公司 Service request processing method and device
CN108062383A (en) * 2017-12-13 2018-05-22 泰康保险集团股份有限公司 Generation method, device and the equipment of moon bill are insured again
CN109800063A (en) * 2019-01-25 2019-05-24 深圳乐信软件技术有限公司 Business method for parallel processing, device, server, storage medium
CN110175820A (en) * 2019-05-31 2019-08-27 北京金山云网络技术有限公司 Bill processing method, device, electronic equipment and the storage medium of cloud calculation service

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283856A (en) * 2021-04-29 2021-08-20 西安点告网络科技有限公司 Resource consumption statistical method, system, device and readable storage medium
CN113296912A (en) * 2021-05-25 2021-08-24 北京京东振世信息技术有限公司 Task processing method, device and system, storage medium and electronic equipment
CN113342855A (en) * 2021-06-24 2021-09-03 汇付天下有限公司 Data matching method and device based on big data

Also Published As

Publication number Publication date
CN112465615B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN112465615B (en) Method, device and system for processing bill data
CN111522641B (en) Task scheduling method, device, computer equipment and storage medium
CN106453146B (en) Method, system, device and readable storage medium for allocating private cloud computing resources
CN108540568B (en) Computing capacity sharing method and intelligent equipment
CN103346974A (en) Controlling method of service process and network device
CN109766172B (en) Asynchronous task scheduling method and device
CN106649638B (en) Big data acquisition method
CN102841846A (en) Software testing method, device and system based on Hadoop
CN109858655B (en) Method and system for reserved test
CN101331715A (en) Node discovery involving multiple node enumerators
CN102136967A (en) Method, device and system for managing service state
CN102208988B (en) Message processing method, system and equipment thereof
CN111340397A (en) Intelligent distribution method, server and storage medium for real estate channel customers
CN109343972A (en) Task processing method and terminal device
CN111209060A (en) Capability development platform processing method and device
CN111210340A (en) Automatic task processing method and device, server and storage medium
CN110519317B (en) Data transmission method and equipment
CN111835809B (en) Work order message distribution method, work order message distribution device, server and storage medium
CN102868594B (en) Method and device for message processing
CN115879889A (en) Service processing method and device based on block chain and computer equipment
CN106845926B (en) Distributed data stream processing method and system for third-party payment supervision system
CN114493756A (en) Resource management method, device, equipment and storage medium
Tasquier et al. Agent based negotiation of decentralized energy production
CN111524002A (en) Method and device for determining credit line of joint name card
US20180089603A1 (en) Medium storing control program for sharing service, and apparatus and method therefor

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
GR01 Patent grant
GR01 Patent grant