CN111211997B - Message processing method, device and system - Google Patents

Message processing method, device and system Download PDF

Info

Publication number
CN111211997B
CN111211997B CN201911398426.6A CN201911398426A CN111211997B CN 111211997 B CN111211997 B CN 111211997B CN 201911398426 A CN201911398426 A CN 201911398426A CN 111211997 B CN111211997 B CN 111211997B
Authority
CN
China
Prior art keywords
message
target
user
type
message type
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.)
Active
Application number
CN201911398426.6A
Other languages
Chinese (zh)
Other versions
CN111211997A (en
Inventor
牛丽敏
徐江曼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201911398426.6A priority Critical patent/CN111211997B/en
Publication of CN111211997A publication Critical patent/CN111211997A/en
Application granted granted Critical
Publication of CN111211997B publication Critical patent/CN111211997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Technology Law (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a message processing method, a device and a system. Then, the message quantity corresponding to the target message type corresponding to the user is determined, and the target resource consumed for transmitting the message corresponding to the target message type is calculated according to the message quantity corresponding to the target message type and the first parameter corresponding to the target message type. That is, when determining the service cost corresponding to the user within the preset time period, the target message type meeting the maintenance condition and the cost unit price corresponding to the target message type are determined according to the current time. And determining the message quantity corresponding to each target message type, and determining the cost corresponding to the message corresponding to the transmission target message type according to the message quantity corresponding to the target message type and the cost unit price, thereby realizing periodic calculation of the cost of the user and reducing the calculated amount.

Description

Message processing method, device and system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for processing a packet.
Background
The Society For world wide bank Financial Telecommunication (SWIFT) is used as a non-profit international cooperation organization among international banks, and the Financial electronic text network of the operator world level, banks and enterprises exchange messages through the SWIFT network to complete Financial transactions. When providing SWIFT message service to enterprises, banks will charge service fees.
At present, when a bank collects service fees, the bank collects certain service fees every time a message sent by an enterprise is received or every time a message sent to the enterprise is received. However, when there are a large number of messages to be received or sent, the charging method will increase the load of the communication network and affect the communication efficiency.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a system for processing a packet, so as to manage incoming and outgoing packets more reasonably and effectively, reduce network load, and improve communication efficiency.
In order to solve the above problem, the technical solution provided by the embodiment of the present application is as follows:
in a first aspect of an embodiment of the present application, a method for processing a packet is provided, where the method includes:
aiming at any user, determining a target message type corresponding to the user and a first parameter corresponding to each target message type according to the current time;
determining the number of messages corresponding to each target message type;
and acquiring target resources consumed by transmitting the messages corresponding to the target message type according to the number of the messages corresponding to the target message type and the first parameter corresponding to the target message type.
Optionally, when determining the target packet type corresponding to the user and the first parameter corresponding to each target packet type according to the current date, the method further includes:
determining a message identifier corresponding to each target message type; the message identification comprises an incoming message identification and an outgoing message identification;
the determining the number of the messages corresponding to each target message type includes:
acquiring the number of messages corresponding to the target message type from an information table corresponding to the message identification according to the message identification corresponding to the target message type; the information table corresponding to the message identifier comprises a coming information table and a going information table.
Optionally, the obtaining, according to the packet identifier corresponding to the target packet type, the number of packets corresponding to the target packet type from the information table corresponding to the packet identifier includes:
obtaining the message corresponding to the target message type from the information table corresponding to the message identification,
taking the number of the messages with the receiving time or the sending time within the preset time as the number of the messages corresponding to the target message type; the receiving time of the message is recorded in the incoming message table, the sending time of the message is recorded in the incoming message table, and the preset time is determined according to the current time and the maintenance period.
Optionally, the method further includes:
and deducting the target resource from the account corresponding to the user.
Optionally, before deducting the target resource from the account corresponding to the user, the method further includes:
judging whether the residual resources in the account corresponding to the user are greater than or equal to the target resources;
if yes, deducting the target resource from the account corresponding to the user;
if not, recording deduction failure and reporting.
Optionally, before deducting the target resource from the account corresponding to the user, the method further includes:
judging whether the target resource is positioned in a first resource threshold value and a second resource threshold value; the second resource threshold is greater than the first resource threshold;
determining the first resource threshold as a target resource if the target resource is less than the first resource threshold;
determining the second resource threshold as a target resource if the target resource is greater than the second resource threshold.
Optionally, the method further includes:
receiving a request message sent by the user, and recording the message type and the receiving time of the request message in an incoming message table;
and sending a message to the user, and recording the message type and the sending time of the message in a message-to-report table.
In a second aspect of the embodiments of the present application, there is provided a packet processing apparatus, where the apparatus includes:
the first determining unit is used for determining a target message type corresponding to any user and a first parameter corresponding to each target message type according to the current time;
a second determining unit, configured to determine the number of packets corresponding to each target packet type;
and the acquisition unit is used for acquiring target resources consumed by transmitting the message corresponding to the target message type according to the number of the messages corresponding to the target message type and the first parameter corresponding to the target message type.
In a third aspect of the embodiments of the present application, a message processing system is provided, where the system includes:
the parameter maintenance module is used for maintaining the relevant information of the user; the user related information at least comprises a user identifier, an incoming and outgoing identifier, a message type, a unit price, a current date and a next starting date;
the report module is used for recording the message type, the receiving date and the user identification sent by the user;
the report sending module is used for recording the message type, the sending date and the user identification sent to the user;
and the calculation module is used for inquiring the relevant information of the user, determining the relevant information of the user to be maintained and determining the cost according to the information recorded by the report module or the report module.
Optionally, the system further includes:
and the online deduction module is used for deducting the fee determined by the calculation module from the account corresponding to the user.
Optionally, the system further includes:
and the deduction supplementing module is used for receiving a deduction request and deducting the fee determined by the calculating module from the account corresponding to the user when the deduction of the online deduction module fails.
In a fourth aspect of embodiments of the present application, a computer-readable storage medium is provided, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is caused to execute the message processing method according to the first aspect.
In a fifth aspect of the embodiments of the present application, an apparatus for implementing packet processing is provided, including: the message processing method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the message processing method of the first aspect is realized.
Therefore, the embodiment of the application has the following beneficial effects:
according to the embodiment of the application, the target message type meeting the time condition and corresponding to each user and the first parameter corresponding to the target message type are determined according to the current time. Then, the message quantity corresponding to the target message type corresponding to the user is determined, and the target resource consumed for transmitting the message corresponding to the target message type is calculated according to the message quantity corresponding to the target message type and the first parameter corresponding to the target message type. That is, when determining the service cost corresponding to the user within the preset time period, the embodiment of the present application first determines the target packet type meeting the maintenance condition and the cost unit price corresponding to the target packet type according to the current time. Compared with the prior art, the method can calculate the cost of the user in the maintenance period periodically and reduce the calculated amount.
Drawings
Fig. 1 is a flowchart of a method for recording incoming messages according to an embodiment of the present application;
fig. 2 is a flowchart of a message processing method according to an embodiment of the present application;
fig. 3a is a structural diagram of a message processing system according to an embodiment of the present application;
FIG. 3b is a diagram of an application framework provided by an embodiment of the present application;
fig. 4 is a structural diagram of a message processing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the drawings are described in detail below.
In order to facilitate understanding of the technical solutions provided in the embodiments of the present application, a description will be given below of a process of sending and receiving a record message according to the present application.
Referring to fig. 1, which is a flowchart of a message information storage method provided in an embodiment of the present application, as shown in fig. 1, the method may include:
s101: and receiving a request message sent by a user and recording the receiving time.
In this implementation, when the system receives a request message sent by a user, the receiving time needs to be recorded. Wherein the receiving time comprises a specific year, month and day.
S102: and acquiring a user identifier and a message type according to the request message.
In this embodiment, in order to distinguish each user, each user applying for adding the SWIFT organization needs to formulate a user identifier (i.e., a SWIFT identification code) according to the rule of the SWIFT resistance value, and becomes effective after approval by the SWIFT organization. The user is a terminal device which points to the bank system to send messages.
The message processing system can obtain the user identifier and the message type corresponding to the message after receiving the request message sent by the user.
Since all financial-related messages must conform to the SWIFT message structure, the type of SWIFT message is made up of three numbers, specifically MTXXX, where the first "X" represents the category, describing the basic function of the message, category 1 represents customer payments and checks; the second "X" represents a packet describing the message function in a particular category, such as 11n representing a check payment message for category 1; the third "X" represents a type describing a specific function, such as 112 representing a message of a check payment request. Specifically, the message type may be determined according to the MTXXX in the request message. In addition, the SWIFT message may also include pain.XXX and camp.XXX type messages
S103: and storing the user identification, the message type and the receiving time in an incoming message information table.
And after the user identification, the message type and the receiving time of the received request message are acquired, the user identification, the message type and the receiving time are stored in a message incoming information table as a record. The presentation form of the incoming telegram information table is shown in table 1:
TABLE 1 incoming information Table
User identification Type of message Time of reception
001 MT101 12 month and 2 days 2019
002 MT104 12 months and 3 days in 2019
003 Pain.001 12 months and 2 days in 2019
001 MT101 12.12.12.2019
For the process that the bank system sends the message to the user, when the message needs to be sent to a certain user, the user identification, the message type and the sending time of the message are recorded, and the information is recorded in the report information table. See in particular the report information table shown in table 2:
TABLE 2 report information table
Figure BDA0002346914270000061
Figure BDA0002346914270000071
It can be understood that different users may need different services, and the fees corresponding to different services are different, so that the message types corresponding to the respective users, the charging parameters corresponding to each message type, the maintenance period, and other information may be stored in advance, so that the clients needing to be maintained may be determined according to the information. Specifically, a user identifier, a message identifier (incoming call identifier or outgoing call identifier), a message type, each message cost, a discount ratio, a cost lower limit, a cost upper limit, a maintenance period (week, month, and quarter), an account corresponding to the user, a current start date (a maintenance date and a current start date), and a next start date (the current start date + the maintenance period) may be stored in the user maintenance table.
Based on the above description, a message processing method provided in the embodiment of the present application will be described below with reference to the accompanying drawings, referring to fig. 2, which is a flowchart of the message processing method provided in the embodiment of the present application, and as shown in fig. 2, the method may include:
s201: and determining the target message type corresponding to the user and the first parameter corresponding to each target message type according to the current time for any user.
In this embodiment, the message processing system determines, for any user, a target message type that the user needs to maintain and a first parameter corresponding to each target message type according to the current time. Specifically, each target message type with the next starting date being the current date is determined according to the next starting date in the user maintenance table. It should be noted that when the next start dates of some message types of a certain user are the current date, multiple target message types exist, and for each target message type, the first parameter corresponding to the target message type is obtained.
The first parameter may be a cost unit price corresponding to the target packet type, and when a certain target packet type further corresponds to the discount ratio, the first parameter may be the cost unit price obtained by multiplying the cost unit price by the discount ratio.
S202: and determining the number of messages corresponding to each target message type.
S203: and acquiring target resources consumed by transmitting the message corresponding to the target message type according to the number of the messages corresponding to the target message type and the first parameter corresponding to the target message type.
And after determining each target message type corresponding to a certain user, acquiring the message quantity corresponding to each target message type, and calculating and acquiring the target resource consumed by transmitting the message according to the message quantity and the corresponding first parameter.
As can be seen from the above description, the message sent by the user and the message sent to the user are respectively recorded in different information tables, so that when the number of messages corresponding to each target message type is obtained, it is also necessary to determine the message identifier corresponding to the target message type, that is, determine whether the target message type belongs to incoming telegrams or incoming telegrams; and then, acquiring the number of the messages corresponding to the target message type from an information table corresponding to the message identification according to the message identification corresponding to the target message type, wherein the information table corresponding to the message identification comprises a coming message information table and a coming message information table.
Specifically, a message corresponding to the type of a target message is obtained from an information table corresponding to a message identifier; and taking the number of the messages within the preset time of the receiving time or the sending time as the number of the messages corresponding to the target message type. The receiving time of the message is recorded in the incoming message table, the sending time of the message is recorded in the incoming message table, and the preset time is determined according to the current time and the maintenance period. That is, when the message corresponding to the target message type is acquired from the information table corresponding to the message identifier, there may be a message that is not within the maintenance period in the acquired message, and therefore, a message that meets the maintenance condition may be selected from the received time or the sent time of the message and the preset time, and the number of messages that meet the maintenance condition is determined as the number of messages corresponding to the target message type. The preset time is from the current date (included) to the next date (not included). That is, the messages received or sent from the start date of the current period to the next start date are counted.
And after determining the target resources of each target message type corresponding to the user, deducting the target resources from the account corresponding to the user, namely deducting the total cost from the account. Specifically, after the target resource of the target message type is determined, the target resource is recorded in the fee flow meter and marked as an unremoved state. The deduction module can read the record with the state of non-deduction from the charge flow water meter, judge whether the residual resource in the account corresponding to the user is greater than or equal to the target resource, if yes, deduct the target resource from the corresponding account, and mark as deduction success; otherwise, recording as deduction failure, and reporting to inform the staff of manual deduction.
In addition, a lowest consumption resource threshold and a highest consumption resource threshold can be set for different target message types, after the target resource corresponding to the target message type is obtained through calculation, whether the target resource is located within a first resource threshold and a second resource threshold is judged, and if the target resource is smaller than the first resource threshold, the first resource threshold is determined as the target resource; if the target resource is greater than the second resource threshold, determining the second resource threshold as the target resource. Wherein the first resource threshold is less than the second resource threshold.
It should be noted that, after the maintenance is completed, the current date (the next start date before modification) and the next start date (the next start date before modification + the maintenance period) in the user maintenance table need to be updated, so that when the next maintenance period comes, the cost for sending and receiving the message in the maintenance period is calculated.
Based on the above description, the target packet type satisfying the time condition and corresponding to each user and the first parameter corresponding to the target packet type are determined according to the current time. Then, the message quantity corresponding to the target message type corresponding to the user is determined, and the target resource consumed for transmitting the message corresponding to the target message type is calculated according to the message quantity corresponding to the target message type and the first parameter corresponding to the target message type. That is, when determining the service cost corresponding to the user within the preset time period, the embodiment of the present application first determines the target packet type meeting the maintenance condition and the cost unit price corresponding to the target packet type according to the current time. Compared with the prior art, the method can periodically calculate the cost of the user in the maintenance period and reduce the calculation amount.
Based on the foregoing method embodiment, an embodiment of the present application provides a message processing system, and referring to fig. 3a, the system may include:
a parameter maintenance module 301, configured to maintain user-related information; the user related information at least comprises a user identifier, an incoming and outgoing identifier, a message type, a unit price, a current period starting date and a next starting date;
the incoming message module 302 is configured to record a message type sent by a user, a receiving date, and the user identifier;
a report module 303, configured to record a type of a message sent to the user, a sending date, and the user identifier;
the calculation module 304 is configured to query the user-related information, determine user-related information to be maintained, and determine a cost according to the information recorded by the report module or the report module.
In one possible implementation, the system further includes:
and the online deduction module is used for deducting the fee determined by the calculation module from the account corresponding to the user.
In one possible implementation, the system further includes:
and the deduction supplementing module is used for receiving a deduction request and deducting the fee determined by the calculating module from the account corresponding to the user when the deduction of the online deduction module fails.
It should be noted that, implementation of each module may refer to the foregoing method embodiment, and this embodiment is not described herein again.
For understanding, referring to the application framework diagram shown in fig. 3b, the message processing system may include a parameter maintenance module, an incoming message module, a message forwarding module, a calculation module, an online deduction module, and a deduction module.
[ parameter maintenance module ]: the counter request is received, an enterprise identifier (user identifier), a message incoming and outgoing identifier (incoming or outgoing), a message type (incoming includes pain.001, MT101, pain.008 and MT104; incoming includes pain.052, pain.053, MT940, MT942, pain.002 and MT 199), each message cost, a charging proportion, a total cost lower limit, a total cost upper limit, a charging period (week, month, quarter, half year and year), a charging account, a current period starting date (a maintenance date, namely a current period starting date), a next period starting date (a current period starting date + a period) are recorded, and the information is stored in an A-cost parameter table.
[ report module ]: receiving enterprise file request, recording enterprise identification (user identification), message type, receiving date and time, and storing the information in B1-incoming message table.
[ report to module ]: sending the report to the enterprise, recording the enterprise code, the message type, the sending date and time, and storing the report in a B2-report information table.
[ calculation Module ]: and (4) searching a record of the 'next period starting date = the current day' of the A-expense parameter table in a round-robin manner, and acquiring the expense parameter of the record. And inquiring B1-incoming information or B2-incoming information table according to the recorded incoming and outgoing information identification, and calculating the cost:
the charge is reported as follows: and (3) inquiring records of 'receiving date and time' in A-cost parameters from a B1-incoming message table, calculating message numbers meeting conditions, comparing the message cost with the message output quantity charging ratio with the total cost upper limit and the total cost lower limit (not exceeding the upper limit and not lower than the lower limit), calculating final cost, and inserting a C-cost flow water meter in the state of not deducting. The current date of start (date of start of next date before modification) and the date of start of next date (date of start of next date before modification + period) of the a-fee parameter table are updated.
The expense is reported: recording in the range of the current period starting date (including) and the next period starting date (not including), calculating the message number meeting the conditions, comparing with the upper limit and the lower limit of the total cost (not exceeding the upper limit and not being lower than the lower limit), calculating the final cost, inserting a C-cost flow meter, and keeping the state of the C-cost flow meter un-deducted. And updates the present date start date (the date of the next date start before modification) and the date of the next date start (the date of the next date start before modification + the period) of the a-fee parameter table.
[ online deduction module ]: and inquiring the record with the state of being not deducted from the C-fee flow table, calling a core charging interface, and deducting the calculated total fee from the charging account. After the fee deduction is successful, the state is successful, otherwise, the state is failed.
[ make-up module ]: the teller inquires the record of which the state is 'failure' in the C-expense flow water meter from the counter, clicks a charging option after the record is verified to be correct, and deducts the calculated total expense from the charging account.
Based on the foregoing method embodiment, an embodiment of the present application provides a message processing apparatus, and referring to fig. 4, the apparatus may include:
a first determining unit 401, configured to determine, according to current time, a target packet type corresponding to any user and a first parameter corresponding to each target packet type;
a second determining unit 402, configured to determine the number of packets corresponding to each target packet type;
an obtaining unit 403, configured to obtain, according to the number of packets corresponding to the target packet type and the first parameter corresponding to the target packet type, a target resource consumed for transmitting the packet corresponding to the target packet type.
In one possible implementation, the apparatus further includes:
a third determining unit, configured to determine a packet identifier corresponding to each target packet type; the message identification comprises an incoming message identification and an outgoing message identification;
the second determining unit is specifically configured to obtain, according to a packet identifier corresponding to the target packet type, the number of packets corresponding to the target packet type from an information table corresponding to the packet identifier; the information table corresponding to the message identifier comprises a coming information table and a coming information table.
In a possible implementation manner, the second determining unit includes:
an obtaining subunit, configured to obtain, from the information table corresponding to the packet identifier, a packet corresponding to the target packet type,
a determining subunit, configured to use the number of packets within a preset time of receiving time or sending time as the number of packets corresponding to the target packet type; the receiving time of the message is recorded in the incoming message table, the sending time of the message is recorded in the incoming message table, and the preset time is determined according to the current time and the maintenance period.
In one possible implementation, the apparatus further includes:
and the deduction unit is used for deducting the target resource from the account corresponding to the user.
In one possible implementation, the apparatus further includes:
a first judging unit, configured to judge whether a remaining resource in an account corresponding to the user is greater than or equal to the target resource before the deducting unit is executed; if yes, executing the deduction unit; if not, recording deduction failure and reporting.
In one possible implementation, the apparatus further includes:
a second determining unit, configured to determine whether the target resource is located within the first resource threshold and the second resource threshold before executing the deducting unit; the second resource threshold is greater than the first resource threshold;
a fourth determining unit, configured to determine the first resource threshold as a target resource if the target resource is smaller than the first resource threshold;
a fifth determining unit, configured to determine the second resource threshold as the target resource if the target resource is greater than the second resource threshold.
In one possible implementation, the apparatus further includes:
a receiving unit, configured to receive a request packet sent by the user, and record a packet type and a receiving time of the request packet in an incoming packet information table;
and the sending unit is used for sending a message to the user and recording the message type and the sending time of the message in a message sending information table.
It should be noted that, implementation of each unit in this embodiment may refer to the above method embodiment, and this embodiment is not described herein again.
In addition, an embodiment of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is enabled to execute the message processing method.
The embodiment of the present application provides an apparatus for implementing message processing, including: the message processing method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the message processing method is realized.
Based on the above description, the target packet type meeting the time condition and corresponding to each user and the first parameter corresponding to the target packet type are determined according to the current time. Then, the message quantity corresponding to the target message type corresponding to the user is determined, and the target resource consumed for transmitting the message corresponding to the target message type is calculated according to the message quantity corresponding to the target message type and the first parameter corresponding to the target message type. That is, when determining the service cost corresponding to the user within the preset time period, the embodiment of the present application first determines the target packet type meeting the maintenance condition and the cost unit price corresponding to the target packet type according to the current time. Compared with the prior art, the method can periodically calculate the cost of the user in the maintenance period and reduce the calculation amount.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" is used to describe the association relationship of the associated object, indicating that there may be three relationships, for example, "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A message processing method is applied to message service between an enterprise and a bank, and the method comprises the following steps:
aiming at any user, determining a target message type corresponding to the user and a first parameter corresponding to each target message type according to the current time;
determining the number of messages corresponding to each target message type;
obtaining target resources consumed by transmitting the messages corresponding to the target message type according to the number of the messages corresponding to the target message type and the first parameter corresponding to the target message type;
when determining the target message type corresponding to the user and the first parameter corresponding to each target message type according to the current date, the method further comprises:
determining a message identifier corresponding to each target message type; the message identification comprises an incoming message identification and an outgoing message identification;
the determining the number of the messages corresponding to each target message type includes:
acquiring the number of messages corresponding to the target message type from an information table corresponding to the message identification according to the message identification corresponding to the target message type; the information table corresponding to the message identifier comprises a coming information table and a coming information table;
the acquiring the number of the messages corresponding to the target message type from the information table corresponding to the message identification according to the message identification corresponding to the target message type includes:
obtaining the message corresponding to the target message type from the information table corresponding to the message identification,
taking the number of messages within the preset time of receiving time or sending time as the number of messages corresponding to the target message type; the receiving time of the message is recorded in the incoming message table, the sending time of the message is recorded in the incoming message table, and the preset time is determined according to the current time and the maintenance period.
2. The method of claim 1, further comprising:
and deducting the target resource from the account corresponding to the user.
3. The method of claim 2, wherein prior to deducting the target resource from the account corresponding to the user, the method further comprises:
judging whether the residual resources in the account corresponding to the user are greater than or equal to the target resources or not;
if yes, deducting the target resource from the account corresponding to the user;
if not, recording deduction failure and reporting.
4. The method of claim 2, wherein prior to deducting the target resource from the account corresponding to the user, the method further comprises:
judging whether the target resource is positioned in a first resource threshold value and a second resource threshold value; the second resource threshold is greater than the first resource threshold;
determining the first resource threshold as a target resource if the target resource is less than the first resource threshold;
determining the second resource threshold as a target resource if the target resource is greater than the second resource threshold.
5. The method of claim 1, further comprising:
receiving a request message sent by the user, and recording the message type and the receiving time of the request message in an incoming message table;
and sending a message to the user, and recording the message type and the sending time of the message in a message-to-report table.
6. A message processing apparatus, applied to a message service between an enterprise and a bank, the apparatus comprising:
the first determining unit is used for determining a target message type corresponding to any user and a first parameter corresponding to each target message type according to the current time;
a second determining unit, configured to determine the number of packets corresponding to each target packet type;
an obtaining unit, configured to obtain, according to the number of packets corresponding to the target packet type and a first parameter corresponding to the target packet type, a target resource consumed for transmitting a packet corresponding to the target packet type;
the device further comprises:
a third determining unit, configured to determine a packet identifier corresponding to each target packet type; the message identification comprises an incoming message identification and an outgoing message identification;
the second determining unit is specifically configured to obtain, according to a packet identifier corresponding to the target packet type, the number of packets corresponding to the target packet type from an information table corresponding to the packet identifier; the information table corresponding to the message identifier comprises a coming information table and a coming information table;
the second determination unit includes:
an obtaining subunit, obtaining the message corresponding to the target message type from the information table corresponding to the message identifier,
a determining subunit, configured to use the number of packets within a preset time of receiving time or sending time as the number of packets corresponding to the target packet type; the receiving time of the message is recorded in the incoming message table, the sending time of the message is recorded in the incoming message table, and the preset time is determined according to the current time and the maintenance period.
7. A message processing system for use in a messaging service between an enterprise and a bank, the system comprising:
the parameter maintenance module is used for maintaining the relevant information of the user; the user related information at least comprises a user identifier, an incoming and outgoing identifier, a message type, a unit price, a current period starting date and a next period starting date;
the report module is used for recording the message type, the receiving date and the user identification sent by the user;
the report sending module is used for recording the message type, the sending date and the user identification sent to the user;
and the calculation module is used for inquiring the relevant information of the user, determining the relevant information of the user to be maintained and determining the cost according to the information recorded by the report module or the report module.
8. The system of claim 7, further comprising:
and the online deduction module is used for deducting the fee determined by the calculation module from the account corresponding to the user.
9. The system of claim 8, further comprising:
and the deduction module is used for receiving a deduction request when the online deduction module fails to deduct the fee determined by the calculation module from the account corresponding to the user.
10. A computer-readable storage medium having stored therein instructions that, when run on a terminal device, cause the terminal device to perform the message processing method of any of claims 1-5.
11. An apparatus for implementing message processing, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the message processing method of any of claims 1-5 when executing the computer program.
CN201911398426.6A 2019-12-30 2019-12-30 Message processing method, device and system Active CN111211997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911398426.6A CN111211997B (en) 2019-12-30 2019-12-30 Message processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911398426.6A CN111211997B (en) 2019-12-30 2019-12-30 Message processing method, device and system

Publications (2)

Publication Number Publication Date
CN111211997A CN111211997A (en) 2020-05-29
CN111211997B true CN111211997B (en) 2023-01-20

Family

ID=70788338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911398426.6A Active CN111211997B (en) 2019-12-30 2019-12-30 Message processing method, device and system

Country Status (1)

Country Link
CN (1) CN111211997B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504753A (en) * 2009-03-27 2009-08-12 中国工商银行股份有限公司 Packet processing method, apparatus and system
CN102132550A (en) * 2008-06-26 2011-07-20 诺基亚西门子通信公司 Charging for short message delivery
CN102905234A (en) * 2011-07-26 2013-01-30 中兴通讯股份有限公司 Short message service charging method, short message service center and prepayment charging system
CN107425989A (en) * 2017-08-07 2017-12-01 郑州云海信息技术有限公司 A kind of virtual management platform charging method and apparatus
WO2019192085A1 (en) * 2018-04-02 2019-10-10 平安科技(深圳)有限公司 Method, apparatus and device for direct-connected communication between bank and enterprise, and computer-readable storage medium
CN110418022A (en) * 2018-04-28 2019-11-05 华为技术有限公司 The method and device of flow package is adjusted for multiple user identifiers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102132550A (en) * 2008-06-26 2011-07-20 诺基亚西门子通信公司 Charging for short message delivery
CN101504753A (en) * 2009-03-27 2009-08-12 中国工商银行股份有限公司 Packet processing method, apparatus and system
CN102905234A (en) * 2011-07-26 2013-01-30 中兴通讯股份有限公司 Short message service charging method, short message service center and prepayment charging system
CN107425989A (en) * 2017-08-07 2017-12-01 郑州云海信息技术有限公司 A kind of virtual management platform charging method and apparatus
WO2019192085A1 (en) * 2018-04-02 2019-10-10 平安科技(深圳)有限公司 Method, apparatus and device for direct-connected communication between bank and enterprise, and computer-readable storage medium
CN110418022A (en) * 2018-04-28 2019-11-05 华为技术有限公司 The method and device of flow package is adjusted for multiple user identifiers

Also Published As

Publication number Publication date
CN111211997A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
US7801783B2 (en) System and method for automatic analysis of rate information
CN102521909A (en) Queuing service processing method and system
JP2012022708A5 (en)
CN109034823A (en) risk identification method, device and server
CN101601273A (en) The control of prepaid balance status notification
CN109087136B (en) Method and device for adjusting advertisement resource value
CN101110680A (en) Data communication charging system, data communication charging method and computer-readable recording medium
CN109460842A (en) A kind of determination method and device of service quality
CN111211997B (en) Message processing method, device and system
CN111400283B (en) Data processing method, system, electronic equipment and storage medium
US20170293948A1 (en) System and method for charitable donation handling
CN101853477A (en) Bank account expense early-reminding device and method
CN110717745B (en) Service processing method and server
CN113409147B (en) Account data processing method, device, electronic equipment and storage medium
CN112365174B (en) Residential electricity distribution decision-making method and system based on electricity consumption behavior preference
CN115131085A (en) Method, device and equipment for processing super package bills
CN112435073B (en) Red packet sending method and red packet sending system
CN115185695A (en) System resource allocation method, device, equipment and storage medium
CN113129091B (en) Recommendation method and device for tariff package
CN111160991B (en) PDB advertisement flow optimization method and device, storage medium and electronic equipment
CN110782167B (en) Method, device and storage medium for managing receiving and dispatching area
CN111524002A (en) Method and device for determining credit line of joint name card
CN113177785B (en) Electricity charge management method and device of electricity marketing system based on collection provincial concentration
CN117596559A (en) Account checking method and device
CN115988475B (en) Method, device and storage medium for predicting portable user

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant