CN113313482A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113313482A
CN113313482A CN202110586500.8A CN202110586500A CN113313482A CN 113313482 A CN113313482 A CN 113313482A CN 202110586500 A CN202110586500 A CN 202110586500A CN 113313482 A CN113313482 A CN 113313482A
Authority
CN
China
Prior art keywords
service
strategy
data
settlement
charging
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
CN202110586500.8A
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.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information 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 Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202110586500.8A priority Critical patent/CN113313482A/en
Publication of CN113313482A publication Critical patent/CN113313482A/en
Pending legal-status Critical Current

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
    • 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/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0834Choice of carriers
    • G06Q10/08345Pricing
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services

Landscapes

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

Abstract

The embodiment of the invention discloses a data processing method, a data processing device, electronic equipment and a storage medium, wherein the data processing method comprises the following steps: acquiring each service settlement strategy configured for a service user, wherein each service settlement strategy comprises a data statistics strategy and a charging strategy; inquiring service data meeting a data statistics strategy in a current service settlement strategy from service data of a service user to obtain a data statistics domain; executing a charging strategy in the current service settlement strategy on the data statistical domain to obtain a service cost corresponding to the current service settlement strategy; and calculating the sum of the service cost corresponding to each service settlement strategy. The embodiment of the invention can realize the charging of a plurality of charging modes and meet the charging requirement under a complex scene.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
When a service user uses a service provided by a service provider, the service user needs to pay a corresponding fee for the service provider. For example, in the logistics industry, when a merchant uses the logistics service provided by the logistics company, the merchant is usually charged in a monthly manner.
The current common charging method is as follows: counting the total document quantity, the total weight, the total volume and the like of the whole month of the merchant, and matching the quotation according to the counting result, wherein the quotation of the merchant is 0-10 kg: x element/kg; 10-20 kg: y element/kg; and counting that the total weight of the whole month of the merchant is 15kg, and then the bill amount of the merchant in the month is 15X Y yuan. In the process of implementing the invention, discoverers find that the existing charging mode has the problems of single mode and incapability of meeting the charging requirement in a complex scene during monthly charging.
Disclosure of Invention
Embodiments of the present invention provide a data processing method and apparatus, an electronic device, and a storage medium, which can implement charging in multiple charging modes and meet charging requirements in complex scenarios.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
acquiring each service settlement strategy configured for a service user, wherein each service settlement strategy comprises a data statistics strategy and a charging strategy;
inquiring service data meeting a data statistics strategy in a current service settlement strategy from the service data of the service user to obtain a data statistics domain;
executing a charging strategy in the current service settlement strategy on the data statistical domain to obtain a service cost corresponding to the current service settlement strategy;
and calculating the sum of the service cost corresponding to each service settlement strategy.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, where the apparatus includes:
the system comprises an acquisition module, a service accounting module and a charging module, wherein the acquisition module is used for acquiring each service accounting strategy configured for a service user, and each service accounting strategy comprises a data statistics strategy and a charging strategy;
the statistical module is used for inquiring service data meeting a data statistical strategy in a current service settlement strategy from the service data of the service user to obtain a data statistical domain;
the charging module is used for executing the charging strategy in the current service settlement strategy to the data statistics domain to obtain the service cost corresponding to the current service settlement strategy;
and the calculation module is used for calculating the sum of the service costs corresponding to the service settlement strategies.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the data processing method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the data processing method according to any one of the embodiments of the present invention.
In the embodiment of the invention, a plurality of service settlement strategies can be configured for a service user, data statistics and charging are respectively carried out according to each service settlement strategy, finally, the charging results corresponding to each service settlement strategy are summarized, namely, the sum of the service costs corresponding to each service settlement strategy is calculated, and charging in a plurality of charging modes is realized by configuring different service settlement strategies comprising the data statistics strategies and the charging strategies, so that the charging requirements under complex scenes can be met.
Furthermore, by setting a time constraint strategy, a region constraint strategy and a charging element in the data statistics strategy, data statistics can be carried out from different dimensions, the personalized charging requirement of a service user is met to the maximum extent, a universal charging scheme is provided for the charging requirement under a complex scene, the service user is charged conveniently, and the charging efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention.
Fig. 2 is another schematic flow chart of a data processing method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a method for generating a data statistics field according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a charging method according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a data processing system according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a schematic flowchart of a data processing method according to an embodiment of the present invention, where the method may be executed by a data processing apparatus according to an embodiment of the present invention, and the apparatus may be implemented in software and/or hardware. In a specific embodiment, the apparatus may be integrated in an electronic device, which may be, for example, a server, which may be a background server of a service provider. The following embodiments will be described by taking as an example that the apparatus is integrated in an electronic device, and referring to fig. 1, the method may specifically include the following steps:
step 101, obtaining each service settlement policy configured for a service user, wherein each service settlement policy comprises a data statistics policy and a charging policy.
For example, the method of the embodiment of the present invention may be applied to a service provider, where the service provider provides services for a service consumer, and the service consumer needs to pay a corresponding fee for the service provider. The service mentioned in the embodiment of the present invention may be a logistics service, and may also be other services that require payment, and is not limited herein.
In a specific implementation, a service settlement policy may be configured for a service user according to a service type, a requirement of the service user, an actual operation requirement of a service provider, and the like, and the service settlement policy configured for one service user may include a plurality of policies, where each policy includes a data statistics policy and a charging policy. The data statistics policy is used for performing data statistics, and the data statistics policy includes, for example: the number of shipments in the statistical time period a1, the shipment weight in the statistical time period a2, the number of shipments sent to the location B in the statistical time period a1, the shipment weight by the warehouse 1 in the statistical time period a2, etc.; the charging policy is used for charging data obtained by querying a corresponding data statistics policy, and the charging policy includes: m yuan/kg, N yuan/yuan, etc.
Specifically, the data statistics policy and the charging policy configured in different service settlement policies may be different, different data statistics policies may perform data statistics from different data dimensions and/or different data intervals, and different charging policies may perform charging according to different charging elements and/or different unit prices.
And 102, inquiring service data meeting a data statistics strategy in the current service settlement strategy from the service data of the service user to obtain a data statistics domain.
For example, the data processing method provided by the embodiment of the present invention may be used in a scenario where service charges are settled according to a period, where a specific settlement period is, for example, one month, six months, one year, and the like, and may be set according to an actual requirement, which is not specifically limited herein. Therefore, in practical application, when charging, all service data generated by a service user in a settlement period can be acquired, and service data meeting a data statistics policy in a current service settlement policy can be inquired and obtained from the service data to obtain a data statistics domain. The current service settlement policy may be any one of a plurality of service settlement policies configured for the service user, that is, all service data generated by the service user in a settlement period are classified and counted according to different data statistics policies to obtain different data statistics domains.
The service data refers to relevant data generated during the process of using the service provided by the service provider by the service user. In a specific embodiment, taking the service provided by the service provider as the logistics service, the service data may include waybill information of daily shipments of the merchant, merchant code, date, number of shipments, weight of goods, volume of goods, origin, destination, storage (warehouse), delivery location, etc., and the service data may come from a warehouse management system, an order system, etc.
Step 103, executing the charging policy in the current service settlement policy to the data statistics domain to obtain the service cost corresponding to the current service settlement policy.
The charging processing is carried out on the data statistical domain obtained currently according to the charging strategy in the current service settlement strategy, so that the service cost corresponding to the current service settlement strategy is obtained.
And 104, calculating the sum of the service cost corresponding to each service settlement strategy.
Specifically, after each piece of service data of the service user is counted, the service data of the service user is divided into different data statistics domains, a service cost corresponding to each service settlement policy is obtained after corresponding charging policies are executed for the different data statistics domains, and the sum of the service costs corresponding to the service settlement policies is calculated, so that the service cost to be paid by the service user can be obtained.
In the embodiment of the invention, a plurality of service settlement strategies can be configured for a service user, data statistics and charging are respectively carried out according to each service settlement strategy, finally, the charging results corresponding to each service settlement strategy are summarized, namely, the sum of the service costs corresponding to each service settlement strategy is calculated, and charging in a plurality of charging modes is realized by configuring different service settlement strategies comprising the data statistics strategies and the charging strategies, so that the charging requirements under complex scenes can be met.
The following further describes the data processing method provided by the embodiment of the present invention, taking the service provided by the service user as a logistics service as an example, as shown in fig. 2, the method may include the following steps:
step 201, determining whether the service settlement mode of the service user is periodic settlement, if so, executing step 203, and if not, executing step 202.
In a specific implementation, a service settlement manner may be negotiated with a service user (e.g., a merchant) in advance, if a negotiation result is a settlement manner that employs periodic settlement, a service settlement policy may be configured for the service user in a configuration information table after a contract is made with the service user, the service settlement policy configured for one service user may include a plurality of policies, each service settlement policy has a policy identifier (policy id), and an identifier (such as a merchant id, a merchant name, a merchant code, and the like) of each service user may be stored in association with a corresponding policy identifier in the configuration information table.
Each service settlement policy includes a data statistics policy and a charging policy. The data statistics policy is used for performing data statistics, the charging policy is used for charging data obtained by querying the corresponding data statistics policy, and the service settlement policy can be stored in the policy information table.
For example, the data statistics policy and the charging policy configured in different service settlement policies may be different, the different data statistics policies may perform data statistics from different data dimensions and/or different data intervals, and the different charging policies may perform charging according to different charging elements and/or different unit prices.
Specifically, when service data of a service user is accessed from a warehouse management system, an order system, or the like, it can be judged whether a service settlement manner of the service user is periodic settlement; if the service data is not the periodic settlement, directly matching the current service data with the quotation according to the corresponding charging strategy and then generating a charging result in real time; if the service data is periodic settlement, marking the periodic settlement mark on the current service data and storing the service data for use after the settlement period is reached.
By way of example, the service data may include waybill information for each daily shipment by the merchant, merchant code, date, number of shipments, weight of the shipment, volume of the shipment, origin, destination, storage (warehouse), delivery location, and the like.
Step 202, real-time settlement is performed.
Step 203, marking the service data of the service user with a periodic settlement mark.
For example, when the service settlement method is periodic settlement, the settlement period may be set according to actual requirements, for example, one month, three months, six months, and the like, and the periodic settlement mark marked for the service data may include the settlement period. For convenience of description, the settlement period is hereinafter described as one month.
Step 204, obtaining each service settlement policy configured for the service user, wherein each service settlement policy comprises a data statistics policy and a charging policy.
For example, when the settlement period is one month, statistical settlement may be performed on the service data generated by the service user in the previous month on the following 1 th day, specifically as follows:
(1) and inquiring the configuration information table according to the identifier of the service user to obtain the policy identifier of the service settlement policy configured for the service user.
(2) And inquiring a policy information table according to the policy identifier to obtain a data statistics policy in a service settlement policy configured for a service user.
For example, as shown in fig. 3, the configuration information table may be queried 1 day after the month to obtain the policy identifier, the policy information table may be queried according to the policy identifier to obtain the data statistics policy, and the service data of the service user may be counted according to the data statistics policy to obtain the data statistics domain.
(3) And inquiring a policy information table according to the policy identifier to obtain a charging policy in the service settlement policy configured for the service user.
For example, as shown in fig. 4, the policy information table may be queried to obtain a charging policy, and meanwhile, obtain a corresponding data statistics domain, perform charging processing on the corresponding data statistics domain according to the charging policy, and generate a charging result corresponding to a certain service settlement policy.
Step 205, obtaining service data meeting the data statistics policy in the current service settlement policy by querying the service data of the service user, and obtaining a data statistics domain.
The current service settlement policy may be any one of a plurality of service settlement policies configured for the service user, that is, each piece of service data generated by the service user in the last month may be matched with a data statistics policy in each service settlement policy, if a certain data statistics policy is matched, the piece of service data is written into a statistics result table corresponding to the data statistics policy, and is continuously accumulated, and when all the service data generated by the service user in the last month is completely counted, a data statistics domain corresponding to each data statistics policy may be obtained.
Wherein, the data statistics policy in each service settlement policy includes a time constraint policy, a region constraint policy and a charging element, in a specific embodiment:
the time constraint policy may include: a policy effective time and a policy ineffective time; the policy effective time and the policy ineffective time can be all formed by year, month and day.
The geographical constraint policy may include: at least one of the origin, the destination, the storage (warehouse), and the delivery location, of course, the extension of the region constraint policy may be performed according to the development of the business.
The charging element includes any one of a number (for example, an order number, a cargo number, and the like), a weight, and a volume, and of course, the charging element may be expanded according to the development of the service.
Specifically, the querying, from the service data of the service user, service data that satisfies a data statistics policy in the current service settlement policy to obtain a data statistics domain may specifically include: and inquiring the service data of the service user to obtain the element values of the charging elements meeting the time constraint strategy and the region constraint strategy in the current data statistics strategy so as to obtain a data statistics domain. Illustratively, the data statistics policy may be, for example: the number of shipments sent to the site B in the time period a1 is counted, and the shipping weight shipped from the warehouse 1 in the time period a2 is counted.
It should be noted that, if the policy effective time and the policy ineffective time in the data statistics policy span a month, the statistics month needs to be compared with the policy effective time and the policy ineffective time, so as to implement data statistics. If the statistical month is the month in which the strategy effective time is, the statistical period is from the strategy effective time to the last day of the month end of the statistical month; and if the statistical month is the month of the strategy failure time, the statistical period is from the first day of the statistical month to the strategy failure time. For example, the policy effective time is 3 months and 15 days, and the failure time is 4 months and 20 days. The statistical period is 3 months 15 days to 3 months 31 days when the statistical month is 3 months of service data, and 4 months 1 days to 4 months 20 days when the statistical month is 4 months.
Step 206, executing the charging policy in the current service settlement policy to the data statistics domain to obtain the service cost corresponding to the current service settlement policy.
The charging processing is carried out on the data statistical domain obtained currently according to the charging strategy in the current service settlement strategy, so that the service cost corresponding to the current service settlement strategy is obtained. Wherein, the charging policy in the current service settlement policy is set according to the charging element in the current data statistics policy. For example, if the charging element in the current data statistics policy is weight, the charging policy in the current service settlement policy may be M yuan/kg; the charging element in the current data statistics policy is a quantity (piece), and then the charging policy in the current service settlement policy may be an N-element/piece, etc.
Of course, the charging policy may also be set in different regions, for example, when the charging element is weight, the charging policy may be 0-10 kg: x element/kg; 10-20 kg: and Y element/kg, when the charging processing is carried out on the currently obtained data statistical domain according to the charging strategy in the current service settlement strategy, a charging interval matched with the current data statistical domain can be determined firstly, and the charging processing is carried out on the current data statistical domain according to the charging mode corresponding to the charging interval.
Step 207, calculating the sum of the service costs corresponding to the service settlement policies.
Specifically, after each piece of service data of the service user is counted, the service data of the service user is divided into different data statistics domains, and after corresponding charging policies are executed for different data statistics domains, service costs corresponding to each service settlement policy are obtained, and the service costs corresponding to all the service settlement policies are summarized, that is, the service use costs of the service user can be generated. The specific summarizing method may be to add the service costs corresponding to all the service settlement policies.
And step 208, sending the calculated sum value to the service user so that the service user pays the service fee according to the sum value.
Specifically, the sum value may be transmitted to a terminal of the service user so that the service user pays the service fee through the terminal according to the sum value. The terminal can be a mobile phone, a computer, a personal computer and the like.
In the embodiment of the invention, a plurality of service settlement strategies can be configured for a service user, data statistics and charging are respectively carried out according to each service settlement strategy, finally, the charging results corresponding to each service settlement strategy are summarized, namely, the sum of the service costs corresponding to each service settlement strategy is calculated, and charging in a plurality of charging modes is realized by configuring different service settlement strategies comprising the data statistics strategies and the charging strategies, so that the charging requirements under complex scenes can be met.
Furthermore, by setting a time constraint strategy, a region constraint strategy and a charging element in the data statistics strategy, data statistics can be carried out from different dimensions, the personalized charging requirement of a service user is met to the maximum extent, a universal charging scheme is provided for the charging requirement under a complex scene, the service user is charged conveniently, and the charging efficiency is improved.
The following describes a data processing method provided in an embodiment of the present invention in a specific application scenario:
for example, if a certain merchant changes its signs and offers a price in the month, charges the price in the first half of the month according to the number, charges the price in the second half of the month according to the weight, two service settlement policies may be configured for the merchant, and the data statistics policy in the first service settlement policy may be: counting the delivery quantity of the previous half month, wherein the corresponding charging strategy can be N elements/pieces; the data statistics policy in the second service settlement policy may be: and counting the delivery weight in the latter half month, wherein the corresponding charging policy can be M yuan/kg. Namely, different service settlement strategies comprising a data statistics strategy and a charging strategy are configured to realize the charging of various charging modes. And when the settlement period is reached, respectively counting and charging according to the two service settlement strategies to obtain service costs corresponding to the two service settlement strategies, finally calculating the sum of the service costs corresponding to the two service settlement strategies, and requesting the merchant to pay the service cost according to the calculated sum.
For example, if a merchant delivers a business, and the merchant is to offer a price according to the originating city + the destination city, the data statistics policy in a certain service settlement policy configured for the merchant may be: and counting the quantity of goods sent from the city 1 to the city 2 in the whole month, wherein the corresponding charging strategy can be N elements/pieces. Namely, data statistics is carried out from different dimensions, and personalized charging requirements of merchants are met to the greatest extent.
Fig. 5 is a block diagram of a data processing apparatus according to an embodiment of the present invention, which is suitable for executing the data processing method according to the embodiment of the present invention. As shown in fig. 5, the apparatus may specifically include:
an obtaining module 301, configured to obtain each service settlement policy configured for a service user, where each service settlement policy includes a data statistics policy and a charging policy;
a statistic module 302, configured to query service data of the service user to obtain service data that satisfies a data statistic policy in a current service settlement policy, so as to obtain a data statistic domain;
a charging module 303, configured to execute a charging policy in the current service settlement policy on the data statistics domain to obtain a service cost corresponding to the current service settlement policy;
the calculating module 304 is configured to calculate a sum of service costs corresponding to the service settlement policies.
In an embodiment, the data statistics policy in the current service settlement policy includes a time constraint policy, a region constraint policy, and a charging element, and the statistics module 302 queries service data of the service user to obtain service data that satisfies the data statistics policy in the current service settlement policy, and obtains a data statistics domain, including:
and inquiring the service data to obtain the element values of the charging elements meeting the time constraint strategy and the region constraint strategy so as to obtain the data statistical domain.
In one embodiment, the time constraint policy includes a policy effective time and a policy invalid time;
the geographical constraint policy comprises at least one of an origin, a destination, a storage location, and a delivery location;
the billing element includes any one of a number, a weight, and a volume.
In one embodiment, a charging policy in the current service settlement policy is set according to the charging element.
In one embodiment, the apparatus further comprises:
the determining module is used for determining the service settlement mode of the service user;
if the service settlement manner is periodic settlement, the acquiring module 301 is triggered to execute the step of acquiring each service settlement policy configured for the service user.
In one embodiment, the apparatus further comprises:
the marking module is used for marking the service data of the service user with a periodic settlement mark;
the statistical module 302 queries service data of the service user to obtain service data meeting a data statistical policy in a current service settlement policy, including:
and inquiring the service data with the periodic settlement mark to obtain the service data meeting the data statistical strategy in the current service settlement strategy.
In one embodiment, the apparatus further comprises:
and the sending module is used for sending the calculated sum value to the service user so that the service user can pay service cost according to the sum value.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the functional module, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
The device of the embodiment of the invention can configure a plurality of service settlement strategies for the service user, respectively carry out data statistics and charging according to each service settlement strategy, finally summarize the charging results corresponding to each service settlement strategy, namely calculate the sum of the service costs corresponding to each service settlement strategy, and realize the charging of a plurality of charging modes by configuring different service settlement strategies comprising the data statistics strategies and the charging strategies, thereby meeting the charging requirements under complex scenes.
Furthermore, by setting a time constraint strategy, a region constraint strategy and a charging element in the data statistics strategy, data statistics can be carried out from different dimensions, the personalized charging requirement of a service user is met to the maximum extent, a universal charging scheme is provided for the charging requirement under a complex scene, the service user is charged conveniently, and the charging efficiency is improved.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, and when the processor executes the computer program, the data processing method provided in any of the above embodiments is implemented.
The embodiment of the invention also provides a computer readable medium, on which a computer program is stored, and the program is executed by a processor to implement the data processing method provided by any one of the above embodiments.
Fig. 6 shows the structure of a data processing system 400 according to an embodiment of the invention, and as shown in fig. 6, the system architecture 400 may comprise terminals 401, 402, 403, a network 404 and a server 405. The network 404 serves as a medium for providing communication links between the terminals 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
The service user may use the terminals 401, 402, 403 to interact with the server 405 over the network 404 to receive or send messages or the like. The terminals 401, 402, 403 may have various client applications installed thereon, such as an enterprise application client, an e-commerce application client, a web browser application, a search-type application, an instant messaging tool, a mailbox client, and the like.
The terminals 401, 402, 403 may be various electronic devices having display screens and supporting various clients, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server that provides various services, such as a background server that supports settlement requests sent by users using the terminals 401, 402, 403. The background server can process the received settlement request and feed back a processing result (service use cost) to the terminal.
It should be noted that the data processing method provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the data processing apparatus is generally disposed in the server 405.
It should be understood that the number of terminals, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminals, networks, and servers, as desired for an implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 500 suitable for use in implementing an electronic device of an embodiment of the present invention. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware. The described modules and/or units may also be provided in a processor, and may be described as: a processor comprises an acquisition module, a statistic module, a charging module and a calculation module. Wherein the names of the modules do not in some cases constitute a limitation of the module itself.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: acquiring each service settlement strategy configured for a service user, wherein each service settlement strategy comprises a data statistics strategy and a charging strategy; inquiring service data meeting a data statistics strategy in a current service settlement strategy from the service data of the service user to obtain a data statistics domain; executing a charging strategy in the current service settlement strategy on the data statistical domain to obtain a service cost corresponding to the current service settlement strategy; and calculating the sum of the service cost corresponding to each service settlement strategy.
According to the technical scheme of the embodiment of the invention, a plurality of service settlement strategies can be configured for a service user, data statistics and charging are respectively carried out according to each service settlement strategy, the charging results corresponding to each service settlement strategy are finally summarized, namely, the sum of the service costs corresponding to each service settlement strategy is calculated, and charging in a plurality of charging modes is realized by configuring different service settlement strategies comprising the data statistics strategies and the charging strategies, so that the charging requirements under complex scenes can be met.
Furthermore, by setting a time constraint strategy, a region constraint strategy and a charging element in the data statistics strategy, data statistics can be carried out from different dimensions, the personalized charging requirement of a service user is met to the maximum extent, a universal charging scheme is provided for the charging requirement under a complex scene, the service user is charged conveniently, and the charging efficiency is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A data processing method, comprising:
acquiring each service settlement strategy configured for a service user, wherein each service settlement strategy comprises a data statistics strategy and a charging strategy;
inquiring service data meeting a data statistics strategy in a current service settlement strategy from the service data of the service user to obtain a data statistics domain;
executing a charging strategy in the current service settlement strategy on the data statistical domain to obtain a service cost corresponding to the current service settlement strategy;
and calculating the sum of the service cost corresponding to each service settlement strategy.
2. The data processing method according to claim 1, wherein the data statistics policy in the current service settlement policy includes a time constraint policy, a region constraint policy, and a charging element, and the querying of the service data of the service user to obtain the service data satisfying the data statistics policy in the current service settlement policy obtains a data statistics domain, including:
and inquiring the service data to obtain the element values of the charging elements meeting the time constraint strategy and the region constraint strategy so as to obtain the data statistical domain.
3. The data processing method of claim 2,
the time constraint strategy comprises strategy effective time and strategy ineffective time;
the geographical constraint policy comprises at least one of an origin, a destination, a storage location, and a delivery location;
the billing element includes any one of a number, a weight, and a volume.
4. The data processing method of claim 2, wherein a charging policy in the current service settlement policy is set according to the charging element.
5. The data processing method according to claim 1, further comprising, before acquiring each service settlement policy configured for a service user:
determining a service settlement mode of the service user;
and if the service settlement mode is periodic settlement, triggering and executing the step of acquiring each service settlement strategy configured for the service user.
6. The data processing method of claim 5, further comprising, before triggering the step of obtaining respective service settlement policies configured for the service consumers, the step of:
marking the service data of the service user with a periodic settlement mark;
the querying of the service data of the service user to obtain the service data meeting the data statistics policy in the current service settlement policy includes:
and inquiring the service data with the periodic settlement mark to obtain the service data meeting the data statistical strategy in the current service settlement strategy.
7. The data processing method of any of claims 1 to 6, wherein the method further comprises:
and sending the calculated sum value to the service user so that the service user pays the service fee according to the sum value.
8. A data processing apparatus, comprising:
the system comprises an acquisition module, a service accounting module and a charging module, wherein the acquisition module is used for acquiring each service accounting strategy configured for a service user, and each service accounting strategy comprises a data statistics strategy and a charging strategy;
the statistical module is used for inquiring service data meeting a data statistical strategy in a current service settlement strategy from the service data of the service user to obtain a data statistical domain;
the charging module is used for executing the charging strategy in the current service settlement strategy to the data statistics domain to obtain the service cost corresponding to the current service settlement strategy;
and the calculation module is used for calculating the sum of the service costs corresponding to the service settlement strategies.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the data processing method according to any of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the data processing method of any one of claims 1 to 7.
CN202110586500.8A 2021-05-27 2021-05-27 Data processing method and device, electronic equipment and storage medium Pending CN113313482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110586500.8A CN113313482A (en) 2021-05-27 2021-05-27 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110586500.8A CN113313482A (en) 2021-05-27 2021-05-27 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113313482A true CN113313482A (en) 2021-08-27

Family

ID=77375626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110586500.8A Pending CN113313482A (en) 2021-05-27 2021-05-27 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113313482A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034194A (en) * 2009-09-29 2011-04-27 上海博科资讯股份有限公司 Logistics billing method based on rule
CN106372963A (en) * 2016-08-29 2017-02-01 石化盈科信息技术有限责任公司 Inference engine-based logistics billing system and logistics billing method
CN109587642A (en) * 2018-12-14 2019-04-05 中国联合网络通信集团有限公司 A kind of charging method and equipment
CN110189158A (en) * 2019-04-16 2019-08-30 德邦物流股份有限公司 A kind of logistics billing method and system based on charging regulation engine
CN111460298A (en) * 2020-03-31 2020-07-28 深圳市酷开网络科技有限公司 Service data processing method and device, computer equipment and storage medium
CN112365611A (en) * 2020-09-16 2021-02-12 深圳市顺易通信息科技有限公司 Parking fee settlement method and related device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034194A (en) * 2009-09-29 2011-04-27 上海博科资讯股份有限公司 Logistics billing method based on rule
CN106372963A (en) * 2016-08-29 2017-02-01 石化盈科信息技术有限责任公司 Inference engine-based logistics billing system and logistics billing method
CN109587642A (en) * 2018-12-14 2019-04-05 中国联合网络通信集团有限公司 A kind of charging method and equipment
CN110189158A (en) * 2019-04-16 2019-08-30 德邦物流股份有限公司 A kind of logistics billing method and system based on charging regulation engine
CN111460298A (en) * 2020-03-31 2020-07-28 深圳市酷开网络科技有限公司 Service data processing method and device, computer equipment and storage medium
CN112365611A (en) * 2020-09-16 2021-02-12 深圳市顺易通信息科技有限公司 Parking fee settlement method and related device

Similar Documents

Publication Publication Date Title
CN108805632B (en) Charging method and device
WO2019205791A1 (en) Method and device for adjusting data plan for a plurlaity of user identifications
US8346212B2 (en) Resource and utilization management of telecommunication devices
CN111047243A (en) Method and device for determining logistics distribution cost
CN111130810B (en) Charging method and device for cloud service usage package and related equipment
CN112884405A (en) Inquiry system and scheduling method thereof
CN110706093A (en) Accounting processing method and device
US8818908B2 (en) Providing recycling fees
CN111881329A (en) Account balance management method and system
US20140370848A1 (en) Systems and methods for exchanging data related to unconsumed cellular time
CN111127224B (en) Information processing method, information processing device, electronic equipment and storage medium
CN113313482A (en) Data processing method and device, electronic equipment and storage medium
CN114445128A (en) Card ticket management method and device, electronic equipment and computer readable medium
WO2020242339A1 (en) System and method for searching for and automatically providing content
CN113393190B (en) Warehouse information processing method and device, electronic equipment and readable medium
US8538993B2 (en) Outsourced options management
CN111526184B (en) Business auditing method and device
CN111127221B (en) Method, device, medium and electronic equipment for policy claim settlement
CN113779412A (en) Message reach method, node and system based on block chain network
CN108718241B (en) Charging method and device
CN113434754A (en) Method and device for determining recommended API (application program interface) service, electronic equipment and storage medium
CN113496386A (en) Method and device for combined charging
CN111402030A (en) Bill generation method and device
CN111242576A (en) Method and device for processing request
CN112785361A (en) Interactive processing method and device for ordering goods

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