CN116468436A - Charging rule generation method and device - Google Patents

Charging rule generation method and device Download PDF

Info

Publication number
CN116468436A
CN116468436A CN202310317838.2A CN202310317838A CN116468436A CN 116468436 A CN116468436 A CN 116468436A CN 202310317838 A CN202310317838 A CN 202310317838A CN 116468436 A CN116468436 A CN 116468436A
Authority
CN
China
Prior art keywords
charging
preset
preset charging
sub
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310317838.2A
Other languages
Chinese (zh)
Inventor
牛永浩
高瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bairong Zhixin Beijing Technology Co ltd
Original Assignee
Bairong Zhixin Beijing Technology 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 Bairong Zhixin Beijing Technology Co ltd filed Critical Bairong Zhixin Beijing Technology Co ltd
Priority to CN202310317838.2A priority Critical patent/CN116468436A/en
Publication of CN116468436A publication Critical patent/CN116468436A/en
Pending legal-status Critical Current

Links

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • G06Q20/145Payments according to the detected use or quantity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a charging rule generation method and device, relates to the technical field of charging, and mainly aims to improve the development efficiency of charging rules. The main technical scheme of the invention is as follows: acquiring configuration requirements and preset charging flows of a user, wherein the preset charging flows comprise a plurality of preset charging sub-flows with sequential relation, and each preset charging sub-flow comprises a plurality of preset charging logics; and generating a target charging rule by utilizing a plurality of preset charging logics in the plurality of preset charging sub-flows based on the configuration requirement. The invention is used for generating a charging rule for calculating the cost generated when a customer calls a product.

Description

Charging rule generation method and device
Technical Field
The present invention relates to the field of charging technologies, and in particular, to a method and an apparatus for generating a charging rule.
Background
Currently, unified billing rules are developed before new products are brought online, and when a client is calling a new product that is brought online, the cost generated when the client calls the new product can be calculated according to the unified billing rules. However, some clients want to customize proprietary billing rules, and research and development need to develop billing logic according to the client's needs, and then develop proprietary billing rules according to the billing logic. As more and more customers want to develop proprietary billing rules, developers cannot develop proprietary billing rules for each customer in a timely manner.
Disclosure of Invention
In view of the above, the present invention provides a method and apparatus for generating a charging rule, which are mainly aimed at improving the development efficiency of the charging rule.
In order to solve the technical problems, the invention provides the following scheme:
in a first aspect, the present invention provides a charging rule generating method, where the method includes:
acquiring configuration requirements and preset charging flows of a user, wherein the preset charging flows comprise a plurality of preset charging sub-flows with sequential relation, and each preset charging sub-flow comprises a plurality of preset charging logics;
and generating a target charging rule by utilizing a plurality of preset charging logics in the plurality of preset charging sub-flows based on the configuration requirement.
In a second aspect, the present invention provides a charging rule generating apparatus, the apparatus comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring configuration requirements of a user and preset charging flows, the preset charging flows comprise a plurality of preset charging sub-flows with sequential relation, and each preset charging sub-flow comprises a plurality of preset charging logics;
the generating unit is configured to generate a target charging rule by using a plurality of preset charging logics in a plurality of preset charging sub-flows of the preset charging flow acquired by the acquiring unit based on the configuration requirement acquired by the acquiring unit.
In order to achieve the above object, according to a third aspect of the present invention, there is provided a storage medium including a stored program, wherein the device in which the storage medium is controlled to execute the charging rule generating method of the first aspect when the program runs.
In order to achieve the above object, according to a fourth aspect of the present invention, there is provided a processor for running a program, wherein the program runs to execute the charging rule generation method of the first aspect.
By means of the technical scheme, the charging rule generating method and device provided by the invention can be provided with a plurality of charging logics in advance, then a plurality of preset charging sub-flows are formed according to the plurality of preset charging logics, and then a complete preset charging flow is formed according to the plurality of preset charging sub-flows, so that when the configuration requirement of the special charging rule exists for the user, the configuration requirement of the user and the preset charging flow which is formed in advance can be obtained, and the target charging rule meeting the configuration requirement of the user can be generated directly according to the plurality of preset charging logics in the plurality of preset charging sub-flows of the preset charging flow. That is, all charging logics are configured in advance and cover a plurality of possibilities, so that no matter how many users need to configure the special charging rules in the follow-up, no developer need to develop the special charging rules at present, the special charging logics can be directly generated according to the existing charging logics, the reusability is high, and the efficiency of generating the charging rules can be improved to a certain extent.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 shows a flowchart of a charging rule generating method provided by an embodiment of the present invention;
fig. 2 is a flowchart of another charging rule generation method according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a charging rule generating device according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another charging rule generating apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Currently, unified billing rules are developed before new products are brought online, and when a client is calling a new product that is brought online, the cost generated when the client calls the new product can be calculated according to the unified billing rules. However, some customers want to customize proprietary billing rules, and research and development is required to develop proprietary billing rules according to the customer's needs. As more and more customers want to develop proprietary billing rules, developers need to develop proprietary billing rules for each customer separately, which can lead to inefficiency in development. Therefore, the invention provides a charging rule generation method which can improve the development efficiency of the charging rule. The specific implementation steps are shown in fig. 1, including:
101. and acquiring the configuration requirement of the user and presetting a charging flow.
Because the cost generated by calling the product by the user is calculated by a plurality of charging logics, the configuration type suitable for each charging logic is different, the plurality of charging logics can be obtained by collecting the charging logics in the generated plurality of charging rules, and then the plurality of charging logics are divided according to different configuration types.
By way of example, the configuration type may be, for example, a billing period, a billing manner, a settlement manner, etc., and the billing period may be annual billing, monthly billing, daily billing, etc. when the user invokes the product; the charging mode can be that when a user has a plurality of accounts, the user performs combined charging or independent charging on the plurality of accounts; the settlement mode can be how to settle after charging according to the charging period, and whether the settlement is a annual settlement fee or a monthly calculation fee.
In addition, a plurality of charging sub-flow empty templates which are constructed in advance according to an algorithm can be obtained, wherein the number of the empty templates corresponds to the number of types of the charging logics after classification, and then a plurality of charging logics under one type are added into one sub-flow empty template until all types of charging logics are added.
Furthermore, since the configuration types may have a sequential relationship, for example, between the charging period and the settlement period, the charging logic corresponding to the charging period needs to be used for charging, and then the charging logic corresponding to the settlement period needs to be used for settling, so that the charging sequence can be understood, therefore, after the configuration type of the configuration logic is added to a sub-flow blank template, a complete preset charging sub-flow is obtained, and each preset sub-flow corresponds to a configuration type, so that the preset charging sub-flows should have a sequential relationship, therefore, the preset charging sub-flows can be connected according to the charging sequence corresponding to the configuration type, and a whole preset charging flow is obtained, and when the user has a requirement for configuring a special charging rule, the configuration requirement can be sent, and then the configuration requirement and the preset charging flow of the user can be directly obtained in the step.
102. Based on the configuration requirement, generating a target charging rule by utilizing a plurality of preset charging logics in a plurality of preset charging sub-flows.
After the configuration requirement and the preset charging flow are obtained in step 101, since there are a plurality of preset charging sub-flows with preset sequence relationships in the preset charging flows, each preset charging sub-flow further includes a plurality of preset charging logics corresponding to the same configuration type, and therefore, the target charging rule can be generated by using a plurality of preset charging logics in the plurality of preset charging sub-flows according to the configuration requirement of the user.
Specifically, a preset charging logic can be selected under each preset charging sub-flow according to the configuration requirement of the user, and then a target charging rule is formed according to a plurality of preset charging logics selected under a plurality of preset charging sub-flows, so that all the possibilities are directly covered in advance without development, and the target charging rule can be directly selected when the user needs to use the target charging rule.
Based on the implementation manner of fig. 1, it can be seen that the method for generating a charging rule provided by the present invention may be configured with a plurality of charging logics in advance, then form a plurality of preset charging sub-flows according to the plurality of preset charging logics, and then form a complete preset charging flow according to the plurality of preset charging sub-flows, so that when a user has a configuration requirement of a proprietary charging rule, the configuration requirement of the user and the preset charging flow formed in advance can be obtained, and a target charging rule meeting the configuration requirement of the user can be generated directly according to the plurality of preset charging logics in the plurality of preset charging sub-flows of the preset charging flow. That is, all charging logics are configured in advance, so that no matter how many users need to configure the special charging rules in the follow-up process, the special charging rules are not required to be developed by a developer, the special charging logics are directly generated according to the existing charging logics, the reusability is high, and the efficiency of generating the charging rules can be improved to a certain extent.
Further, as a refinement and extension to the embodiment shown in fig. 1, the embodiment of the present invention further provides another charging rule generating method, as shown in fig. 2, which specifically includes the following steps:
201. and acquiring the configuration requirement of the user and presetting a charging flow.
The implementation of step 201 is the same as that of step 101, and the same technical effects can be achieved, so that the same technical problems are solved, and the description thereof will not be repeated here.
202. Based on the configuration requirement, generating a target charging rule by utilizing a plurality of preset charging logics in a plurality of preset charging sub-flows.
In this step, since each charging logic is applicable to different configuration types, when the user sends the configuration requirement, the user needs to define the configuration type of the charging rule to be used for charging in the configuration requirement, and specifically define configuration information in each configuration type, where each configuration type corresponds to a preset charging flow, which is the same as what is stated in step 101, because each charging logic is applicable to different configuration types, and after multiple charging logics are divided according to the configuration types, they are added into corresponding sub-flow blank templates, and therefore, each preset charging sub-flow corresponds to one configuration type.
For example, if the configuration type is a billing period, the configuration information under the billing period may be calculated by year, month, or day.
Therefore, in this step, the configuration requirement of the user needs to be analyzed to obtain a plurality of configuration types and configuration information under each configuration type, and then it is determined whether there is a target charging logic matching with the configuration information in the corresponding configuration type in a plurality of preset charging logics of each preset charging sub-flow.
For example, if the configuration type is a charging period, the configuration information is daily charging, and the configuration type corresponds to a first preset charging sub-flow in the preset charging flows, where the first preset charging sub-flow includes 5 preset charging logics related to the charging period, and then it may be determined whether there is a target charging logic matched with daily charging in the 5 preset charging logics related to the charging period in the first preset charging sub-flow.
If the target charging logic exists in each preset charging sub-flow, the target charging logic can be selected under each preset charging sub-flow, then the selected target charging logics are extracted, and the connection is carried out according to the sequence of the preset charging sub-flows, so as to obtain the target charging rule. The reason for connection is that there may be a sequence of processing when charging, so that the processing is clearer, for example, the processing may be performed by using the target charging logic related to the charging mode of the configuration type, then the processing is performed to the target charging logic related to the charging period, and finally the processing is performed to the target charging logic related to the settlement mode.
If the three preset charging sub-flows exist in the original preset charging flow, the configuration types corresponding to the three preset charging sub-flows are a charging mode, a charging period and a settlement mode respectively, the configuration information corresponding to the charging mode is that two account numbers under the same company are combined for charging, the charging period is that the charging is carried out by month, the settlement mode is that the charging is carried out by month, in the first preset charging sub-flow, the target charging logic related to combined charging exists, in the second preset charging sub-flow, the target charging logic related to monthly charging exists, in the third preset charging sub-flow, the target charging logic related to monthly settlement exists, and the target charging logic can be selected under the three preset charging sub-flows respectively.
In addition, it is also possible that in the individual preset charging sub-flows, there is no target charging logic matching the configuration information in the corresponding configuration type, and in this case, the target charging logic matching the configuration information in the corresponding configuration type may be added to the preset charging sub-flow in which there is no target charging logic. For example, the configuration type corresponding to the first preset charging sub-flow is a charging mode, the specific configuration information is two account merging charging, in a plurality of charging rules of the first preset charging sub-flow, no target charging logic matched with the configuration information of the two account merging charging exists, and then the target charging logic matched with the configuration information of the two account merging charging can be added to the first preset charging sub-flow, so that the charging logic can be expanded at any time under the condition of lacking the corresponding charging logic, and after the expansion, the charging logic is extracted, so that more special charging scenes can be covered.
203. And applying the target charging rule.
In this step, after the configured target charging rule is formed, the charging object to be charged, that is, the charging product and the charging account number, may be obtained, and after the obtaining, the charging product and the charging account number may be added to the target charging rule, so that the user may use the target charging rule to perform charging when invoking the charging product in the charging account number.
For example, if three target charging logics exist in the target charging rule, a first one of the three target charging logics is extracted from a preset charging sub-process corresponding to a charging mode in a configuration type, a second one of the three target charging logics is extracted from a preset charging sub-process corresponding to a charging period in a configuration type, and a third one of the three target charging logics is extracted from a preset charging sub-process corresponding to a settlement mode in a configuration type.
The configuration information corresponding to the charging mode is combined charging, the configuration information corresponding to the charging period is monthly charging, and the configuration information corresponding to the settlement mode is monthly settlement. When the two accounts are used for calling the A product, the user can process the two accounts according to the target charging logic corresponding to the combined charging mode, process the data in the A product called by the combined charging account according to the target charging logic of monthly charging, and finally process the data generated by the target charging logic corresponding to monthly charging according to the target charging logic of monthly settlement.
It should be noted that, the monthly charging may be a process of processing the invoked data when the user invokes the data in the product using the account, for example, the user invokes a plurality of data in the product, the user needs to purge and duplicate the invoked data, the duplication is to de-duplicate the data in one month or the duplication is to de-duplicate the data in one year, that is, the period of repeated invocation is determined, and then only one invocation cost is generated in the repeated invocation record.
In addition, whether the configuration requirements of other users exist can be detected, if so, the configuration requirements of the other users can be analyzed to obtain a plurality of configuration types in the configuration requirements of the other users and configuration information in each type, so that whether the configuration requirements of the other users are consistent with the configuration requirements of the users or not is determined according to the configuration information of the other users, and if so, the target charging rules generated by the users can be directly given to the other users for use, and therefore, the same set of charging rules can be used without independent configuration under the condition that the configuration requirements of the plurality of users are the same.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention further provides a charging rule generating device, which is configured to implement the method shown in fig. 1. The embodiment of the device corresponds to the embodiment of the method, and for convenience of reading, details of the embodiment of the method are not repeated one by one, but it should be clear that the device in the embodiment can correspondingly realize all the details of the embodiment of the method. As shown in fig. 3, the apparatus includes:
the obtaining unit 301 is configured to obtain a configuration requirement of a user and a preset charging flow, where the preset charging flow includes a plurality of preset charging sub-flows with a sequential relationship, and each preset charging sub-flow includes a plurality of preset charging logics;
a generating unit 302, configured to generate, based on the configuration requirement acquired by the acquiring unit 301, a target charging rule by using a plurality of preset charging logics in a plurality of preset charging sub-flows of the preset charging flows acquired by the acquiring unit 301.
Further, as an implementation of the method shown in fig. 2, another charging rule generating device is further provided in the embodiment of the present invention, which is used for implementing the method shown in fig. 2. The embodiment of the device corresponds to the embodiment of the method, and for convenience of reading, details of the embodiment of the method are not repeated one by one, but it should be clear that the device in the embodiment can correspondingly realize all the details of the embodiment of the method. As shown in fig. 4, the apparatus includes:
the obtaining unit 301 is configured to obtain a configuration requirement of a user and a preset charging flow, where the preset charging flow includes a plurality of preset charging sub-flows with a sequential relationship, and each preset charging sub-flow includes a plurality of preset charging logics;
a generating unit 302, configured to generate, based on the configuration requirement acquired by the acquiring unit 301, a target charging rule by using a plurality of preset charging logics in a plurality of preset charging sub-flows of the preset charging flows acquired by the acquiring unit 301.
In an alternative embodiment, the generating unit 302 includes:
a requirement analysis module 3021, configured to analyze the configuration requirement to obtain a plurality of configuration types in the configuration requirement, where each configuration type includes configuration information, and each configuration type corresponds to a preset charging sub-flow;
the rule generating module 3022 is configured to generate a target charging rule based on the configuration information in the configuration type parsed by the requirement parsing module 3021 and a plurality of preset charging logics in the preset charging sub-flow.
In an alternative embodiment, the rule generating module 3022 includes:
logic determining submodule 30221, configured to determine whether a target charging logic matched with the configuration information in the corresponding configuration type exists in a plurality of preset charging logics of each preset charging sub-flow;
a logic extracting sub-module 30222, configured to extract the target charging logic from each preset charging sub-flow if the logic determining sub-module 30221 determines that the determination is yes;
the rule generating sub-module 30223 is configured to connect the plurality of target charging logics extracted by the logic extracting sub-module 30222 according to the sequence among a plurality of preset charging sub-flows, so as to obtain a target charging rule.
In an alternative embodiment, if the logic determining submodule 30221 determines that there is no target charging logic matched with the configuration information in the corresponding configuration type in the plurality of preset charging logics in each preset charging sub-flow, the apparatus further includes a logic adding submodule 30224, where the logic adding submodule 30224 is specifically configured to:
determining that a specified preset charging sub-flow of the target charging logic does not exist in the plurality of preset charging sub-flows;
and adding target charging logic matched with configuration information in a configuration type corresponding to the specified preset charging sub-flow in the specified preset charging sub-flow.
In an alternative embodiment, before the obtaining unit 301 obtains the configuration requirement of the user and the preset charging flow, the apparatus further includes a flow construction unit 303, where the flow construction unit 303 includes:
a logic acquisition module 3031, configured to acquire a plurality of preset charging logics;
a sub-flow construction module 3032, configured to construct a plurality of preset charging sub-flows based on the plurality of preset charging logics acquired by the logic acquisition module 3031;
and the sub-flow connection module 3033 is configured to connect the plurality of preset charging sub-flows constructed by the sub-flow construction module 3032 according to a preset charging sequence to obtain a preset charging flow.
In an alternative embodiment, after the generating unit 302 generates the target charging rule by using the preset charging logics in the preset charging sub-flows based on the configuration requirement, the apparatus further includes a parameter adding unit 304, where the parameter adding unit 304 includes:
the parameter obtaining module 3041 is configured to obtain a billing account number and a billing product;
and a parameter adding module 3042, configured to add the charging account number and the charging product obtained by the parameter obtaining module 3041 to the target charging rule, so as to perform charging by using the target charging rule when the charging product is called in the charging account number.
In an alternative embodiment, after the generating unit 302 generates the target charging rule by using the preset charging logics in the preset charging sub-flows based on the configuration requirement, the apparatus further includes a rule synchronizing unit 305, and the rule synchronizing unit 305 includes:
the requirement detection module 3051 is configured to detect whether a configuration requirement of another user exists;
a requirement determining module 3052, configured to determine whether the configuration requirement of the other user is consistent with the configuration requirement of the user if the requirement detecting module 3051 detects the presence;
and a rule synchronization module 3053, configured to synchronize the target charging rule to the target charging rule of the other user if the requirement determination module 3052 determines that the requirement is consistent.
Further, an embodiment of the present invention further provides a storage medium, where the storage medium is configured to store a computer program, where when the computer program runs, control a device where the storage medium is located to execute the charging rule generating method described in fig. 1-2.
Further, an embodiment of the present invention further provides a processor, where the processor is configured to execute a program, where the program executes the charging rule generating method described in fig. 1-2.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the methods and apparatus described above may be referenced to one another. In addition, the "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent the merits and merits of the embodiments.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
Furthermore, the memory may include volatile memory, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), in a computer readable medium, the memory including at least one memory chip.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A charging rule generation method, the method comprising:
acquiring configuration requirements and preset charging flows of a user, wherein the preset charging flows comprise a plurality of preset charging sub-flows with sequential relation, and each preset charging sub-flow comprises a plurality of preset charging logics;
and generating a target charging rule by utilizing a plurality of preset charging logics in the plurality of preset charging sub-flows based on the configuration requirement.
2. The method of claim 1, wherein generating a target charging rule using a plurality of preset charging logics in the plurality of preset charging sub-flows based on the configuration requirements comprises:
analyzing the configuration requirement to obtain a plurality of configuration types in the configuration requirement, wherein each configuration type comprises configuration information, and each configuration type corresponds to a preset charging sub-flow;
and generating a target charging rule based on the configuration information in the configuration type and a plurality of preset charging logics in the preset charging sub-flow.
3. The method of claim 2, wherein generating the target charging rule based on the configuration information in the configuration type and the plurality of preset charging logics in the preset charging sub-flow comprises:
determining whether target charging logic matched with configuration information in a corresponding configuration type exists in a plurality of preset charging logics of each preset charging sub-flow;
if yes, extracting the target charging logic from each preset charging sub-flow respectively;
and connecting the plurality of target charging logics according to the sequence among a plurality of preset charging sub-flows to obtain a target charging rule.
4. The method of claim 3, wherein if there is no target charging logic in the plurality of preset charging logics in each preset charging sub-flow that matches the configuration information in the corresponding configuration type, the method further comprises:
determining that a specified preset charging sub-flow of the target charging logic does not exist in the plurality of preset charging sub-flows;
and adding target charging logic matched with configuration information in a configuration type corresponding to the specified preset charging sub-flow in the specified preset charging sub-flow.
5. The method of claim 1, wherein prior to obtaining the user's configuration requirements, the preset billing process, the method further comprises:
acquiring a plurality of preset charging logics;
constructing a plurality of preset charging sub-flows based on the plurality of preset charging logics;
and connecting the plurality of preset charging sub-flows according to a preset charging sequence to obtain a preset charging flow.
6. The method of claim 1, wherein after generating the target charging rule using a plurality of preset charging logics in the plurality of preset charging sub-flows based on the configuration requirement, the method further comprises:
acquiring a billing account number and a billing product;
and adding the charging account number and the charging product into the target charging rule so as to charge by using the target charging rule when the charging product is called in the charging account number.
7. The method of claim 1, wherein after generating the target charging rule using a plurality of preset charging logics in the plurality of preset charging sub-flows based on the configuration requirement, the method further comprises:
detecting whether configuration requirements of other users exist;
if so, determining whether the configuration requirements of the other users are consistent with the configuration requirements of the users;
and if the target charging rules are consistent, synchronizing the target charging rules into the target charging rules of the other users.
8. A charging rule generation apparatus, the apparatus comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring configuration requirements of a user and preset charging flows, the preset charging flows comprise a plurality of preset charging sub-flows with sequential relation, and each preset charging sub-flow comprises a plurality of preset charging logics;
the generating unit is configured to generate a target charging rule by using a plurality of preset charging logics in a plurality of preset charging sub-flows of the preset charging flow acquired by the acquiring unit based on the configuration requirement acquired by the acquiring unit.
9. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the charging rule generation method according to any one of claims 1 to 7.
10. A processor, characterized in that the processor is configured to run a program, wherein the program when run performs the charging rule generation method according to any one of claims 1 to 7.
CN202310317838.2A 2023-03-28 2023-03-28 Charging rule generation method and device Pending CN116468436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310317838.2A CN116468436A (en) 2023-03-28 2023-03-28 Charging rule generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310317838.2A CN116468436A (en) 2023-03-28 2023-03-28 Charging rule generation method and device

Publications (1)

Publication Number Publication Date
CN116468436A true CN116468436A (en) 2023-07-21

Family

ID=87178083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310317838.2A Pending CN116468436A (en) 2023-03-28 2023-03-28 Charging rule generation method and device

Country Status (1)

Country Link
CN (1) CN116468436A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117252345A (en) * 2023-11-14 2023-12-19 盛业信息科技服务(深圳)有限公司 Charging method and system based on charging logic sequence

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117252345A (en) * 2023-11-14 2023-12-19 盛业信息科技服务(深圳)有限公司 Charging method and system based on charging logic sequence
CN117252345B (en) * 2023-11-14 2024-02-23 盛业信息科技服务(深圳)有限公司 Charging method and system based on charging logic sequence

Similar Documents

Publication Publication Date Title
CN106557486A (en) A kind of storage method and device of data
CN110019835B (en) Resource arranging method and device and electronic equipment
CN113222723B (en) Bill processing method, device, equipment and storage medium
CN112015739A (en) Data verification and data query method and device
US10394907B2 (en) Filtering data objects
CN110766545A (en) Bank accounting entry generation method
CN111241073A (en) Data quality inspection method and device
CN116468436A (en) Charging rule generation method and device
CN111008404A (en) Service call auditing method, equipment and medium based on block chain
CN112052857A (en) Method and related device for detecting target field in bill image
CN113568697A (en) Method, system and medium for converting PC end page into mobile end page
CN116993519A (en) Bill generation method and device
CN116501317A (en) Page generation method and device, storage medium and electronic equipment
CN112905443A (en) Test case generation method, device and storage medium
CN114817209A (en) Monitoring rule processing method and device, processor and electronic equipment
CN114968028A (en) Method, apparatus, and medium for dynamically changing menu layout based on user behavior analysis
CN112965873A (en) Page processing method and device, storage medium and processor
CN114968795A (en) Test method, test device, electronic equipment and computer storage medium
CN112579242B (en) Page jump relation analysis method, device, equipment and storage medium
CN117972820A (en) CAD drawing processing method and device and electronic equipment
CN115629791A (en) Version file delivery method and device, storage medium and electronic equipment
CN116842931A (en) Expression analysis method, equipment and medium of accounting document template
CN117808963A (en) Device modeling method and system based on micro-plane irradiation
CN117215537A (en) Method, device, storage medium and electronic equipment for determining code file
CN114625853A (en) Text processing method and device, electronic equipment and computer storage medium

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