Disclosure of Invention
The embodiment of the invention provides a data processing method and device based on a data tag, which can improve the success rate and efficiency of data processing.
In one aspect, an embodiment of the present invention provides a data processing method based on a data tag, where the method includes:
acquiring a data transfer request, and recording target time information of the data transfer request, wherein the data transfer request comprises target transfer data quantity and user information;
acquiring data transfer deadline information corresponding to the user information and preset transfer data quantity, and determining an advanced transfer time range according to the data transfer deadline information;
if the target time information does not belong to the advanced transfer time range and the target transfer data volume is larger than the preset transfer data volume, carrying out data splitting on the target transfer data volume according to the preset transfer data volume to obtain a first transfer data volume and a second transfer data volume, setting a deadline transfer label for the first transfer data volume and setting an advanced transfer label for the second transfer data volume;
and sending the first transfer data volume carrying the deadline transfer label and the second transfer data volume carrying the advanced transfer label to a target server, so that the target server carries out deadline data transfer processing on the first transfer data volume according to the deadline transfer label and carries out advanced data transfer processing on the second transfer data volume according to the advanced transfer label.
If the target time information does not belong to the advanced transfer time range and the target transfer data volume is larger than the preset transfer data volume, performing data splitting on the target transfer data volume according to the preset transfer data volume to obtain a first transfer data volume and a second transfer data volume, including:
if the target time information is equal to the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, carrying out data splitting on the target transfer data volume according to the preset transfer data volume to obtain a first transfer data volume and a second transfer data volume;
if the target time information is larger than the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, calculating a transfer data increment corresponding to the user information based on the target time information, and carrying out data splitting on the target transfer data volume according to the preset transfer data volume and the transfer data increment to obtain a first transfer data volume and a second transfer data volume.
If the target time information is equal to the data transfer deadline information and the target transfer data volume is greater than the preset transfer data volume, performing data splitting on the target transfer data volume according to the preset transfer data volume to obtain a first transfer data volume and a second transfer data volume, including:
And if the target time information is equal to the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, determining the preset transfer data volume as a first transfer data volume, and determining a difference value between the target transfer data volume and the first transfer data volume as a second transfer data volume.
If the target time information is greater than the data transfer deadline information and the target transfer data volume is greater than the preset transfer data volume, obtaining a transfer data increment, and performing data splitting on the target transfer data volume according to the preset transfer data volume and the transfer data increment to obtain a first transfer data volume and a second transfer data volume, including:
if the target time information is larger than the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, acquiring a unit data increment corresponding to a preset unit time, and calculating a difference value between the target time information and the data transfer deadline information;
and generating a transfer data increment corresponding to the user information based on the unit data increment and the difference value, determining the preset transfer data amount and the transfer data increment as a first transfer data amount, and determining the difference value between the target transfer data amount and the first transfer data amount as a second transfer data amount.
Wherein the method further comprises:
acquiring feedback information sent by the target server, wherein the feedback information comprises a deadline data transfer processing result and an advanced data transfer processing result;
and sending the feedback information to the client and displaying the feedback information.
Another aspect of the embodiments of the present invention provides a data processing apparatus based on a data tag, including:
the first acquisition module is used for acquiring a data transfer request and recording target time information of the acquired data transfer request, wherein the data transfer request comprises target transfer data quantity and user information;
the second acquisition module is used for acquiring data transfer deadline information corresponding to the user information and preset transfer data quantity, and determining an advanced transfer time range according to the data transfer deadline information;
the data tag setting module is used for carrying out data splitting on the target transfer data volume according to the preset transfer data volume if the target time information does not belong to the advanced transfer time range and the target transfer data volume is larger than the preset transfer data volume, so as to obtain a first transfer data volume and a second transfer data volume, setting a deadline transfer tag for the first transfer data volume and setting an advanced transfer tag for the second transfer data volume;
The first sending module is configured to send the first transfer data volume carrying the deadline transfer tag and the second transfer data volume carrying the advanced transfer tag to a target server, so that the target server performs deadline data transfer processing on the first transfer data volume according to the deadline transfer tag, and performs advanced data transfer processing on the second transfer data volume according to the advanced transfer tag.
Wherein, the data tag sets up the module, include:
the first splitting unit is used for splitting the target transfer data volume according to the preset transfer data volume to obtain a first transfer data volume and a second transfer data volume if the target time information is equal to the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume;
and the second splitting unit is used for calculating a transfer data increment corresponding to the user information based on the target time information if the target time information is larger than the data transfer deadline information and the target transfer data amount is larger than the preset transfer data amount, and splitting the target transfer data amount according to the preset transfer data amount and the transfer data increment to obtain a first transfer data amount and a second transfer data amount.
Wherein, the first splitting unit is used for:
and if the target time information is equal to the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, determining the preset transfer data volume as a first transfer data volume, and determining a difference value between the target transfer data volume and the first transfer data volume as a second transfer data volume.
Wherein, the second splitting unit is used for:
if the target time information is larger than the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, acquiring a unit data increment corresponding to a preset unit time, and calculating a difference value between the target time information and the data transfer deadline information;
and generating a transfer data increment corresponding to the user information based on the unit data increment and the difference value, determining the preset transfer data amount and the transfer data increment as a first transfer data amount, and determining the difference value between the target transfer data amount and the first transfer data amount as a second transfer data amount.
Wherein the apparatus further comprises:
the third acquisition module is used for acquiring feedback information sent by the target server, wherein the feedback information comprises a deadline data transfer processing result and an advanced data transfer processing result;
And the second sending module is used for sending the feedback information to the client and displaying the feedback information.
Another aspect of the embodiments of the present invention provides a data processing apparatus based on a data tag, including: a processor and a memory;
the processor is connected to a memory, wherein the memory is configured to store program code, and the processor is configured to invoke the program code to perform a method as in one aspect of an embodiment of the present invention.
Another aspect of the embodiments of the present invention provides a computer storage medium storing a computer program comprising program instructions which, when executed by a processor, perform a method as in one aspect of the embodiments of the present invention.
According to the embodiment of the invention, the data transfer request is acquired, and the target time information of the data transfer request is recorded, wherein the data transfer request comprises the target transfer data quantity and the user information; acquiring data transfer deadline information and preset transfer data quantity corresponding to the user information, and determining an advanced transfer time range according to the data transfer deadline information; if the target time information does not belong to the advanced transfer time range and the target transfer data amount is larger than the preset transfer data amount, carrying out data splitting on the target transfer data amount according to the preset transfer data amount to obtain a first transfer data amount and a second transfer data amount, setting a deadline transfer tag for the first transfer data amount and an advanced transfer tag for the second transfer data amount; and sending the first transfer data volume carrying the deadline transfer label and the second transfer data volume carrying the advanced transfer label to a target server, so that the target server performs deadline data transfer processing on the first transfer data volume according to the deadline transfer label and advanced data transfer processing on the second transfer data volume according to the advanced transfer label. Therefore, the data to be processed is split into two parts, and the label information is respectively set for the split two parts of data, so that a server receiving the two parts of data can respectively process the two parts of data according to the label information, service processing failure caused by exceeding service specified time is avoided, the success rate of data processing is further improved, multiple service requests initiated due to service processing failure are also avoided, and further the efficiency of data processing is improved.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention. As shown in fig. 1, the architecture may include a terminal device 100, a server 200a, and a server 200b, where the terminal device 100 may be provided with various clients capable of providing a service handling function for a user, the server 200a may be represented as a background server corresponding to a platform (such as a small credit company) for handling the service, and the server 200b may be represented as a background server corresponding to another platform (such as a bank) involved in the service handling process of the user, so that the user may initiate a request for a service to be handled on the client of the terminal device 100, the server 200a may obtain the request initiated by the user, and obtain data required for handling the service provided by the user, the server 200a may divide the data and set tag information, and may transfer the processed data carrying the tag information to the server 200b, that is, so that data transmission may be performed between the server 200a and the server 200 b. Terminal device 100 may include a cell phone, tablet, notebook, palm top, mobile internet device (mobile internet device, MID), wearable device (e.g., smart watch, smart bracelet, etc.). After the above-described service processing procedure is completed, the user can view the service processing result on the client side of the terminal device 100.
Further, the specific flow of the data processing method based on the data tag provided by the invention will be described with reference to fig. 2 and 3.
Referring to fig. 2, fig. 2 is a flow chart of a data processing method based on a data tag according to an embodiment of the present invention. As shown in the figure, the method provided by the embodiment of the present invention can be specifically described with reference to step S201 to step S204.
S201, acquiring a data transfer request, and recording target time information of the data transfer request, wherein the data transfer request comprises target transfer data quantity and user information.
In some possible embodiments, a user may perform daily service processing through a client on the terminal device, and after the user initiates a service handling request on the client, a background server corresponding to the service processing platform may obtain a data transfer request, where the data transfer request may include a target transfer data amount and user information, and then may record target time information for obtaining the data transfer request. Wherein the target data transfer amount may represent data provided by the user, the user information may represent personal basic information of the user, including but not limited to name, sex, and certificate number of the user, and the target time information may represent time of receiving the data provided by the user in the form of date.
In some possible embodiments, when the user performs service processing through the client, the user needs to fill in personal basic information on the client to register, and the client can store the personal basic information of the user in data so as to read the personal basic information data of the user later.
S202, acquiring data transfer deadline information and preset transfer data quantity corresponding to the user information, and determining an advanced transfer time range according to the data transfer deadline information.
In some possible embodiments, based on the obtained user information, the background server may obtain, from the data system, data transfer deadline information corresponding to the user information and a preset transfer data amount, that is, obtain processing time information specified by a service to be processed of the user and a specified data amount to be provided, which are all advanced transfer time ranges before the data transfer deadline information (specified processing time information). It should be noted that, the data transfer period information is based on one month, that is, each month has one data transfer period information, and any time before the data transfer period information of the current month and after the data transfer period information of the previous month may be an advanced transfer time range. Assuming that 20 number of each month is the data transfer deadline information of the user, any time before 20 number of that month and after 20 number of the previous month is an advance transfer time range.
In some possible embodiments, the service processing platform may interface with data systems of other platforms, may acquire admission qualification of the data systems of other platforms, and may further acquire service processing record information of a user, where the service processing record information may include data transfer deadline information, a preset transfer data amount, and the like, and the other platforms refer to platforms having services to and from the service processing platform.
S203, if the target time information does not belong to the advanced transfer time range and the target transfer data amount is larger than the preset transfer data amount, performing data splitting on the target transfer data amount according to the preset transfer data amount to obtain a first transfer data amount and a second transfer data amount, setting a deadline transfer tag for the first transfer data amount, and setting an advanced transfer tag for the second transfer data amount.
In some possible embodiments, it is determined whether the obtained target time information belongs to an advanced transfer time range, and the target transfer data amount and a preset transfer data amount are compared, if the target time information does not belong to the advanced transfer time range and the target transfer data amount is greater than the preset transfer data amount, the target transfer data amount may be split into two parts, one part may include the preset transfer data amount and be determined as a first transfer data amount, and the other part may include a difference between the target transfer data amount and the first transfer data amount and be determined as a second transfer data amount, and the other part may include the "advanced transfer" as a tag.
S204, the first transfer data volume carrying the deadline transfer label and the second transfer data volume carrying the advanced transfer label are sent to a target server, so that the target server carries out deadline data transfer processing on the first transfer data volume according to the deadline transfer label and carries out advanced data transfer processing on the second transfer data volume according to the advanced transfer label.
In some possible embodiments, the background server may send the obtained first transfer data amount marked with the "deadline transfer" as a label and the obtained second transfer data amount marked with the "early transfer" as a label to the target server, so that the target server may process the first transfer data amount and the second transfer data amount according to the label information, where the target server may refer to a background server of another platform having a service to and from the client. The target server may perform user data matching on a first transfer data amount whose tag information is "deadline transfer", save the current service processing record information of the user, update the service processing state of the user, store a second transfer data amount whose tag information is "early transfer", and update the service processing state of the user synchronously, and may send a processing result of the first transfer data amount and the second transfer data amount to the background server as feedback information.
According to the embodiment of the invention, the data transfer request is acquired, and the target time information of the data transfer request is recorded, wherein the data transfer request comprises the target transfer data quantity and the user information; acquiring data transfer deadline information and preset transfer data quantity corresponding to the user information, and determining an advanced transfer time range according to the data transfer deadline information; if the target time information does not belong to the advanced transfer time range and the target transfer data amount is larger than the preset transfer data amount, carrying out data splitting on the target transfer data amount according to the preset transfer data amount to obtain a first transfer data amount and a second transfer data amount, setting a deadline transfer tag for the first transfer data amount and an advanced transfer tag for the second transfer data amount; and sending the first transfer data volume carrying the deadline transfer label and the second transfer data volume carrying the advanced transfer label to a target server, so that the target server performs deadline data transfer processing on the first transfer data volume according to the deadline transfer label and advanced data transfer processing on the second transfer data volume according to the advanced transfer label. Therefore, the data to be processed is split into two parts, and the label information is respectively set for the split two parts of data, so that a server receiving the two parts of data can respectively process the two parts of data according to the label information, service processing failure caused by exceeding service specified time is avoided, the success rate of data processing is further improved, multiple service requests initiated due to service processing failure are also avoided, and further the efficiency of data processing is improved.
Referring to fig. 3, fig. 3 is a flow chart of another data processing method based on a data tag according to an embodiment of the invention. As shown in fig. 3, the method provided by the embodiment of the present invention may be specifically described with reference to steps S301 to S307.
S301, acquiring a data transfer request, and recording target time information of the data transfer request, wherein the data transfer request comprises target transfer data quantity and user information.
The specific implementation process of step S301 may be referred to the description of step S201 in the embodiment corresponding to fig. 2, and will not be described herein.
In some possible embodiments, taking the advance payment service as an example, the above step S301 is specifically described. The data transfer request may refer to a request for transferring an amount to a bank from a small credit company after receiving the advanced payment amount of the user, the target transfer data amount may refer to the advanced payment amount paid by the user, the target time information may refer to time information of the advanced payment amount received by the small credit company, the time information may be represented in the form of date, and the user information may include personal basic information such as name, sex, and license number of the user. Therefore, when the user handles the advanced repayment service, the user can process the advanced repayment service through the client on the terminal device, the user can pay the amount of the advanced repayment to the small credit company through the third party payment company, and after the small credit company receives the advanced repayment amount paid by the user, the background server of the small credit company can receive the request for transferring the advanced repayment amount, and the request can comprise the advanced repayment amount and user information of the user.
Optionally, when the loan company provides the loan service for the user, the user needs to fill in the personal basic information to perform real-name registration or registration, and the loan company stores the personal basic information of the user into the user information database for later data reading.
S302, acquiring data transfer deadline information and preset transfer data quantity corresponding to the user information, and determining an advanced transfer time range according to the data transfer deadline information.
The specific implementation process of step S302 may be referred to the description of step S202 in the embodiment corresponding to fig. 2, and will not be described herein.
In some possible embodiments, taking the advance payment service as an example, the above step S302 is specifically described. The data transfer term information may refer to a predetermined payment date of the user during the repayment period, which indicates a final date of the repayment of the monthly repayment portion, which is defined by the loan company or/and the bank of the user, the predetermined transfer data amount may refer to a predetermined payment amount of the user during the repayment period, and the advance transfer time range may refer to a time range of the advance payment. Based on the obtained user information, the background server of the small credit company can obtain the specified repayment date and the specified repayment amount corresponding to the user information from a data system of a bank, and the time range of early repayment can be determined according to the specified repayment date, namely, any time after the last month of specified repayment date and before the current month of specified repayment date is in the time range of early repayment.
In some possible embodiments, the small credit company can interface with the data systems of the cooperative banks to acquire the data system access qualification of each cooperative bank, and further acquire the information of the specified repayment date, the specified repayment amount, the total amount owed by the user based on the user information (such as name, sex, license number and the like).
S303, if the target time information is equal to the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, performing data splitting on the target transfer data volume according to the preset transfer data volume to obtain a first transfer data volume and a second transfer data volume, setting a deadline transfer label for the first transfer data volume and setting an advance transfer label for the second transfer data volume.
In some possible embodiments, if the target time information is equal to the data transfer deadline information and the target transfer data amount is greater than the preset transfer data amount, the preset transfer data amount may be determined as a first transfer data amount, a difference between the target transfer data amount and the first transfer data amount may be determined as a second transfer data amount, and the first transfer data amount may be marked with a "deadline transfer" as a label and the second transfer data amount may be marked with an "early transfer" as a label.
In some possible embodiments, the foregoing step S303 is specifically described taking the advance payment service as an example. If the time of the small credit company receiving the advanced payment amount of the user is the same as the specified payment date of the user in the month, dividing the part of the advanced payment amount, the amount of which is equal to the specified payment amount, into a first transfer data amount, setting the label information as 'term transfer', dividing the rest part of the advanced payment amount into a second data transfer data amount, and setting the label information as 'advanced transfer'.
S304, if the target time information is greater than the data transfer deadline information and the target transfer data volume is greater than the preset transfer data volume, calculating a transfer data increment corresponding to the user information based on the target time information, and carrying out data splitting on the target transfer data volume according to the preset transfer data volume and the transfer data increment to obtain a first transfer data volume and a second transfer data volume, setting a deadline transfer label for the first transfer data volume, and setting an advance transfer label for the second transfer data volume.
In some possible embodiments, if the target time information is greater than the data transfer deadline information and the target transfer data amount is greater than the preset transfer data amount, a unit data increment corresponding to a preset unit time may be obtained first, and a difference between the target time information and the data transfer deadline information may be calculated; generating a transfer data increment corresponding to the user information based on the unit data increment and the difference value, determining the preset transfer data amount and the transfer data increment as a first transfer data amount, determining the difference value between the target transfer data amount and the first transfer data amount as a second transfer data amount, and marking the first transfer data amount by using "deadline transfer" as a label and marking the second transfer data amount by using "early transfer" as a label.
In some possible embodiments, the step S304 is specifically described by taking the advance payment service as an example. The unit time may refer to one day, the unit data increment may refer to fine information generated when the user pays every day beyond the specified payment date, the transfer data increment may refer to total fine information generated when the user does not pay on the specified payment date, for example, the time for which the payment amount is received by the small loan company exceeds the specified payment date of the month by 5 days, and the user pays 30 additional fine information (namely, transfer data increment) on the day for which the small loan company pays on the assumption that the user pays every day beyond the day. If the time of the early repayment amount received by the small credit company is after the specified repayment day of the user's month, calculating the fine generated by the user when the user ends the day of the early repayment amount received by the small credit company, dividing the part of the early repayment amount, the amount of which is equal to the sum of the specified repayment amount and the penalty, into a first transfer amount, setting the label information as ' term transfer ', dividing the rest part of the early repayment amount into a second data transfer amount, and setting the label information as ' early transfer '.
Wherein, the penalty is the penalty paid by the user when the user does not pay for overdue due to the specified payment date, and the penalty is the punishment charged to the user and is related to the loan amount of the user. In addition, the different banks may deviate from the collection of penalties, typically 130% -150% of the user's loan interest rate.
In some possible embodiments, if the advanced payment amount of the user is less than or equal to the prescribed payment amount, the advanced payment amount may be divided into a first transfer amount, the set label information may be "term transfer", the second transfer amount may be empty, and the set label information may be "advanced transfer". Optionally, if the advanced payment amount of the user is less than or equal to the specified payment amount, the "term transfer" tag information may be directly set for the advanced payment amount without any amount splitting.
S305, the first transfer data volume carrying the deadline transfer label and the second transfer data volume carrying the advanced transfer label are sent to a target server, so that the target server carries out deadline data transfer processing on the first transfer data volume according to the deadline transfer label and carries out advanced data transfer processing on the second transfer data volume according to the advanced transfer label.
The specific implementation process of step S305 may refer to the description of step S204 in the embodiment corresponding to fig. 2, and will not be described herein.
In some possible embodiments, the step S305 is specifically described by taking the advance payment service as an example. The target server may refer to a background server of a bank cooperating with a small credit company. The background server of the small credit company sends the first transfer amount carrying the 'deadline transfer' label information and the second transfer amount carrying the 'early transfer' label information to the bank, so that the bank can correspondingly process the received first transfer amount and second transfer amount according to the label information. The bank processes the received amount with the tag information as follows: matching the first transfer amount with the repayment amount which is supposed to be received on the same day of the bank payment, if the matching is successful, storing the business transaction information record of the user, updating the repayment state of the user in the month, if the matching is failed, calculating the difference between the first transfer amount and the repayment amount which is supposed to be received on the same day of the bank payment, sending the processing result as feedback information to a background server of a small credit company, and storing the business transaction information record of the user; and storing the second transfer amount, updating the repayment state of the user, and sending the processing result to a background server of the small credit company as feedback information. The repayment state includes, but is not limited to, the total amount owed by the user to the current moment, whether the repayment in the month is totally repaid, how much the amount to be repaid in the month is not repaid, and the like.
S306, obtaining feedback information sent by the target server, wherein the feedback information comprises a deadline data transfer processing result and an advanced data transfer processing result.
In some possible embodiments, taking an advanced repayment service as an example, the term data transfer processing result may refer to a processing result of a first transfer amount of the label information that is "term transfer" by the bank, and the advanced data transfer processing result may refer to a processing result of a second transfer amount of the label information that is "advanced transfer" by the bank. The background server can receive feedback information sent by the bank, and the feedback information can comprise processing results of the advanced repayment service of the user, such as whether the advanced repayment service is processed successfully, the repayment amount and the owed amount.
S307, the feedback information is sent to the client and displayed.
In some possible embodiments, taking the advanced repayment service as an example, the background server of the small credit company may send the feedback information to the client corresponding to the user information, so that the user can check the processing result of the advanced repayment service and the repayment state thereof.
For example, assuming that a user selects 1200 yuan in advance on a client side and pays a payoff amount to a small credit company through a third party payment company, when the small credit company receives the amount paid by the third party payment company, the small credit company acquires a target transfer data amount (i.e. 1200 yuan) required to be transferred to a bank and basic information of the user, and records time information of the payoff amount, i.e. target time information, according to the user information, the payoff amount (i.e. preset transfer data amount) of the user corresponding to the payoff bank per month is 1000 yuan, the payoff amount (i.e. data transfer term information) is 20 yuan per month, if the recorded target time information and the payoff amount of the current month are two parts of 1000 yuan and 200 yuan, the tag information set by 1000 yuan is "time transfer", the tag information set by 200 yuan is "the tag information set by the time transfer" is the tag information is the early transfer ", if the target time information recorded exceeds the current month is recorded, the fine information is calculated, the payoff amount is calculated and the user is set as the tag information of the user is the latest if the transfer state of the user is 50, the tag is set as the payoff amount of the user, the user is set as the user, the tag is 150, the payoff amount is set as the tag is the user, and the tag is set as the payoff amount is 150, and the tag is stored as the user is paid by the tag is in advance, so that the user can view the processing result of the advanced repayment service.
In the embodiment of the invention, aiming at the data processing process of the early repayment service, after a user performs a small loan on a small loan company, the client of the small loan company can be used for processing the early repayment service, when the user pays the early repayment amount to the client of the small loan company through a third party payment company, the early repayment amount of the user is possibly delayed to be transferred to the small loan company after the specified repayment day or even after the specified repayment day is delayed due to the abnormality of the third party payment company, and a background server of the small loan company can acquire the early repayment amount and the user information of the user and record the target time information of the acquired early repayment amount of the user; the background server can acquire a specified repayment day and a specified repayment amount corresponding to the user, and can determine a time range of early repayment according to the specified repayment day; if the target time information does not belong to the time range of the advanced repayment and the advanced repayment amount is larger than the specified repayment amount, the advanced repayment amount can be split into a first transfer amount and a second transfer amount according to the specified repayment amount, a time limit transfer label is set for the first transfer amount, and an advanced transfer label is set for the second transfer amount; the background server can send the first transfer amount and the second transfer amount carrying the tag information to a bank so that the bank can correspondingly process the received first transfer amount and second transfer amount; the background server may acquire feedback information sent by the bank, and send the feedback information to a client corresponding to the user information, that is, a client of the small credit company, where the feedback information may include a processing result of the bank on the first transfer amount and the second transfer amount. Therefore, the bank receiving the two-part money can process the two-part data according to the label information respectively by splitting the advanced repayment money into two parts and setting label information for the split two-part money, so that the advanced repayment processing failure caused by delayed advanced repayment time is avoided, the success rate of the advanced repayment is further improved, the multiple service requests initiated due to the advanced repayment processing failure are also avoided, and the processing efficiency of repayment service is further improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data processing device based on a data tag according to an embodiment of the present invention. As shown in fig. 4, the data tag-based data processing apparatus 1 may include: a first acquisition module 10, a second acquisition module 20, a data tag setting module 30, a first transmission module 40;
a first obtaining module 10, configured to obtain a data transfer request, and record target time information obtained from the data transfer request, where the data transfer request includes a target transfer data amount and user information;
a second obtaining module 20, configured to obtain data transfer deadline information and a preset transfer data amount corresponding to the user information, and determine an advanced transfer time range according to the data transfer deadline information;
a data tag setting module 30, configured to, if the target time information does not belong to the advanced transfer time range and the target transfer data amount is greater than the preset transfer data amount, split the target transfer data amount according to the preset transfer data amount to obtain a first transfer data amount and a second transfer data amount, set a deadline transfer tag for the first transfer data amount, and set an advanced transfer tag for the second transfer data amount;
The first sending module 40 is configured to send the first transfer data volume carrying the deadline transfer tag and the second transfer data volume carrying the early transfer tag to a target server, so that the target server performs deadline data transfer processing on the first transfer data volume according to the deadline transfer tag and performs early data transfer processing on the second transfer data volume according to the early transfer tag.
The specific function implementation manners of the first acquiring module 10, the second acquiring module 20, the data tag setting module 30, and the first transmitting module 40 may refer to step S201 to step S204 in the embodiment corresponding to fig. 2, and are not described herein.
Referring to fig. 4 again, the data processing apparatus 1 based on the data tag may further include: a third acquisition module 50, a second transmission module 60;
a third obtaining module 50, configured to obtain feedback information sent by the target server, where the feedback information includes a deadline data transfer processing result and an advanced data transfer processing result;
and the second sending module 60 is configured to send the feedback information to the client and display the feedback information.
The specific function implementation manner of the third obtaining module 50 and the second sending module 60 may refer to step S306-step S307 in the embodiment corresponding to fig. 3, which is not described herein.
Further, as shown in fig. 4, the data tag setting module 30 may include: a first splitting unit 301 and a second splitting unit 302;
a first splitting unit 301, configured to, if the target time information is equal to the data transfer deadline information and the target transfer data amount is greater than the preset transfer data amount, split the target transfer data amount according to the preset transfer data amount, so as to obtain a first transfer data amount and a second transfer data amount;
and a second splitting unit 302, configured to calculate a transfer data increment corresponding to the user information based on the target time information if the target time information is greater than the data transfer deadline information and the target transfer data amount is greater than the preset transfer data amount, and split the target transfer data amount according to the preset transfer data amount and the transfer data increment, so as to obtain a first transfer data amount and a second transfer data amount.
In some possible embodiments, the first splitting unit 301 is further configured to:
and if the target time information is equal to the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, determining the preset transfer data volume as a first transfer data volume, and determining a difference value between the target transfer data volume and the first transfer data volume as a second transfer data volume.
In some possible embodiments, the second splitting unit 302 is further configured to:
if the target time information is larger than the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, acquiring a unit data increment corresponding to a preset unit time, and calculating a difference value between the target time information and the data transfer deadline information;
and generating a transfer data increment corresponding to the user information based on the unit data increment and the difference value, determining the preset transfer data amount and the transfer data increment as a first transfer data amount, and determining the difference value between the target transfer data amount and the first transfer data amount as a second transfer data amount.
The specific functional implementation manner of the first splitting unit 301 and the second splitting unit 302 may refer to step S303 to step S304 in the embodiment corresponding to fig. 3, which is not described herein.
According to the embodiment of the invention, the data transfer request is acquired, and the target time information of the data transfer request is recorded, wherein the data transfer request comprises the target transfer data quantity and the user information; acquiring data transfer deadline information and preset transfer data quantity corresponding to the user information, and determining an advanced transfer time range according to the data transfer deadline information; if the target time information does not belong to the advanced transfer time range and the target transfer data amount is larger than the preset transfer data amount, carrying out data splitting on the target transfer data amount according to the preset transfer data amount to obtain a first transfer data amount and a second transfer data amount, setting a deadline transfer tag for the first transfer data amount and an advanced transfer tag for the second transfer data amount; and sending the first transfer data volume carrying the deadline transfer label and the second transfer data volume carrying the advanced transfer label to a target server, so that the target server performs deadline data transfer processing on the first transfer data volume according to the deadline transfer label and advanced data transfer processing on the second transfer data volume according to the advanced transfer label. Therefore, the data to be processed is split into two parts, and the label information is respectively set for the split two parts of data, so that a server receiving the two parts of data can respectively process the two parts of data according to the label information, service processing failure caused by exceeding service specified time is avoided, the success rate of data processing is further improved, multiple service requests initiated due to service processing failure are also avoided, and further the efficiency of data processing is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another data processing apparatus based on a data tag according to an embodiment of the present invention. As shown in fig. 5, a data tag-based data processing apparatus 500 in an embodiment of the present invention may include: one or more processors 501 and a memory 502. The processor 501 and the memory 502 are connected via a bus 503. The memory 502 is used for storing a computer program comprising program instructions, and the processor 501 is used for executing the program instructions stored in the memory 502 for performing the following operations:
acquiring a data transfer request, and recording target time information of the data transfer request, wherein the data transfer request comprises target transfer data quantity and user information;
acquiring data transfer deadline information corresponding to the user information and preset transfer data quantity, and determining an advanced transfer time range according to the data transfer deadline information;
if the target time information does not belong to the advanced transfer time range and the target transfer data volume is larger than the preset transfer data volume, carrying out data splitting on the target transfer data volume according to the preset transfer data volume to obtain a first transfer data volume and a second transfer data volume, setting a deadline transfer label for the first transfer data volume and setting an advanced transfer label for the second transfer data volume;
And sending the first transfer data volume carrying the deadline transfer label and the second transfer data volume carrying the advanced transfer label to a target server, so that the target server carries out deadline data transfer processing on the first transfer data volume according to the deadline transfer label and carries out advanced data transfer processing on the second transfer data volume according to the advanced transfer label.
In some possible embodiments, when executing the above-mentioned method, if the target time information does not belong to the advanced transfer time range and the target transfer data size is greater than the preset transfer data size, the processor 501 is specifically configured to, when executing the above-mentioned method, split the data of the target transfer data size according to the preset transfer data size to obtain a first transfer data size and a second transfer data size:
if the target time information is equal to the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, carrying out data splitting on the target transfer data volume according to the preset transfer data volume to obtain a first transfer data volume and a second transfer data volume;
if the target time information is larger than the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, calculating a transfer data increment corresponding to the user information based on the target time information, and carrying out data splitting on the target transfer data volume according to the preset transfer data volume and the transfer data increment to obtain a first transfer data volume and a second transfer data volume.
In some possible embodiments, when the processor 501 performs the above-mentioned data splitting on the target transfer data amount according to the preset transfer data amount if the target time information is equal to the data transfer deadline information and the target transfer data amount is greater than the preset transfer data amount, the data splitting is specifically used to obtain a first transfer data amount and a second transfer data amount:
and if the target time information is equal to the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, determining the preset transfer data volume as a first transfer data volume, and determining a difference value between the target transfer data volume and the first transfer data volume as a second transfer data volume.
In some possible embodiments, when the processor 501 performs the above-mentioned steps of obtaining a transfer data increment if the target time information is greater than the data transfer deadline information and the target transfer data amount is greater than the preset transfer data amount, and performing data splitting on the target transfer data amount according to the preset transfer data amount and the transfer data increment to obtain a first transfer data amount and a second transfer data amount, the method is specifically used for:
If the target time information is larger than the data transfer deadline information and the target transfer data volume is larger than the preset transfer data volume, acquiring a unit data increment corresponding to a preset unit time, and calculating a difference value between the target time information and the data transfer deadline information;
and generating a transfer data increment corresponding to the user information based on the unit data increment and the difference value, determining the preset transfer data amount and the transfer data increment as a first transfer data amount, and determining the difference value between the target transfer data amount and the first transfer data amount as a second transfer data amount.
In some possible embodiments, the above processor 501 is further configured to:
acquiring feedback information sent by the target server, wherein the feedback information comprises a deadline data transfer processing result and an advanced data transfer processing result;
and sending the feedback information to the client and displaying the feedback information.
In some possible embodiments, the processor 501 may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), off-the-shelf programmable gate arrays (field-programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 502 may include read only memory and random access memory and provide instructions and data to the processor 501. A portion of memory 502 may also include non-volatile random access memory. For example, the memory 502 may also store information of device type.
It should be understood that the above-mentioned data processing apparatus 500 based on the data tag may perform the description of the data processing method based on the data tag in the embodiment corresponding to fig. 2 or fig. 3, and the description of the data processing apparatus based on the data tag in the embodiment corresponding to fig. 4 may also be performed, which is not repeated herein.
According to the embodiment of the invention, the data transfer request is acquired, and the target time information of the data transfer request is recorded, wherein the data transfer request comprises the target transfer data quantity and the user information; acquiring data transfer deadline information and preset transfer data quantity corresponding to the user information, and determining an advanced transfer time range according to the data transfer deadline information; if the target time information does not belong to the advanced transfer time range and the target transfer data amount is larger than the preset transfer data amount, carrying out data splitting on the target transfer data amount according to the preset transfer data amount to obtain a first transfer data amount and a second transfer data amount, setting a deadline transfer tag for the first transfer data amount and an advanced transfer tag for the second transfer data amount; and sending the first transfer data volume carrying the deadline transfer label and the second transfer data volume carrying the advanced transfer label to a target server, so that the target server performs deadline data transfer processing on the first transfer data volume according to the deadline transfer label and advanced data transfer processing on the second transfer data volume according to the advanced transfer label. Therefore, the data to be processed is split into two parts, and the label information is respectively set for the split two parts of data, so that a server receiving the two parts of data can respectively process the two parts of data according to the label information, service processing failure caused by exceeding service specified time is avoided, the success rate of data processing is further improved, multiple service requests initiated due to service processing failure are also avoided, and further the efficiency of data processing is improved.
Furthermore, it should be noted here that: the embodiment of the present invention further provides a computer storage medium, in which the aforementioned computer program executed by the data tag-based data processing apparatus 1 is stored, and the aforementioned computer program includes program instructions, when executed by a processor, can execute the description of the aforementioned data tag-based data processing method in the embodiment corresponding to fig. 3, and therefore, a detailed description thereof will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer storage medium according to the present invention, please refer to the description of the method embodiments of the present invention.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments. The term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The method and related apparatus provided in the embodiments of the present invention are described with reference to the flowchart and/or schematic structural diagrams of the method provided in the embodiments of the present invention, and each flow and/or block of the flowchart and/or schematic structural diagrams of the method may be implemented by computer program instructions, and combinations of flows and/or blocks in the flowchart and/or block diagrams. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or structural diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or structures.
The terms "comprising" and "having" and any variations thereof, as used in the description, claims and drawings, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.