Data processing method and device, electronic equipment and storage medium
By setting preset time intervals and trigger processing compensation mechanisms in the bank transaction system, the problem of missing transaction details in the non-tax system is solved, and data integrity and processing efficiency are improved.
Patent Information
- Application Number
- CN202411878456.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-14
AI Technical Summary
In the prior art, non-tax systems may have missing problems when obtaining transaction details data of bank transaction systems, resulting in inefficient data processing and high operating costs.
By setting a preset time interval in the bank transaction system, sending a deduction detailed request to the bank transaction system, and triggering a processing compensation mechanism until the transaction details data containing reconciliation and transfer data are received.
It effectively avoids the problem of missing data, ensures the integrity and accuracy of data, thereby improving the efficiency of data processing and reducing operating costs.
Smart Images

Figure CN119624612A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of non-tax data processing, and in particular to a data processing method, device, electronic equipment and storage medium. Background Art
[0002] The non-tax system is used to realize the agency non-tax revenue collection business of various regions. At present, banks provide paper payment slips to the finance department when they pay local non-tax revenue into the treasury, and manually enter the payment into the treasury according to the content of the payment slip. The execution efficiency of paying into the treasury is low, prone to errors and has high operating costs.
[0003] When a non-tax business transaction occurs in a certain place and is paid to the national treasury, the non-tax system will proactively initiate a query request to the bank every day. Due to the postponement of reconciliation and settlement (transfer) due to holidays, or the failure of reconciliation due to network reasons, the transaction details data obtained by the non-tax system are missing. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a data processing method, device, electronic device and storage medium to solve the problem that the acquired data may be missing in the prior art.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] A first aspect of an embodiment of the present invention shows a data processing method, the method comprising:
[0007] A request for deduction details is sent to a bank transaction system at a preset first time interval;
[0008] If it is determined that the transaction details data fed back by the bank transaction system based on the deduction details request does not contain reconciliation and transfer data, triggering a corresponding processing compensation mechanism;
[0009] A deduction detail request is sent based on the processing compensation mechanism until the transaction detail data sent by the bank transaction system contains reconciliation and transfer data.
[0010] Optionally, trigger the corresponding processing compensation mechanism, including:
[0011] Determine the number of times that no reconciliation and transfer data exists in each of the currently received transaction details data;
[0012] Record the deduction detail request corresponding to the non-existent reconciliation and transfer data, and use it as the first deduction detail request;
[0013] Based on the preset first time interval, number of times and first deduction detail request, a corresponding processing compensation mechanism is determined and triggered.
[0014] Optionally, determining a corresponding processing compensation mechanism based on the preset first time interval, number of times and the first deduction detail request includes:
[0015] Determine the time point corresponding to the preset first time interval;
[0016] Determine a compensation sending time corresponding to the first deduction detail request based on the number of times, a time point corresponding to the preset first time interval, and a preset time point, wherein the number of the compensation sending times is the same as the number of times;
[0017] A correspondence between the compensation sending time and the first deduction detail request is created to construct a compensation processing mechanism.
[0018] Optionally, determining the compensation sending time corresponding to the first deduction detail request based on the number of times, the time point corresponding to the preset first time interval, and the preset time point includes:
[0019] If the number is 1, the sum of the time point corresponding to the preset first time interval and the preset time point is used as the compensation sending time corresponding to the first deduction details request.
[0020] Optionally, determining the compensation sending time corresponding to the first deduction detail request based on the number of times, the time point corresponding to the preset first time interval, and the preset time point includes:
[0021] If the number is N, a time period is determined based on the time point corresponding to the preset first time interval and N preset time points, and the time period is a time sequence consisting of N consecutive time points, where N is a positive integer greater than or equal to 2;
[0022] The compensation sending time corresponding to each first deduction detail request is determined based on the request dates of the N first deduction detail requests and each time point within the time period.
[0023] Optionally, sending a deduction detail request based on the processing compensation mechanism until receiving reconciliation and transfer data in the transaction detail data sent by the bank transaction system, including:
[0024] When it is determined that the current time reaches the compensation sending time in the processing compensation mechanism, sending a first deduction detail request corresponding to the compensation sending time to the bank transaction system based on the processing compensation mechanism until all the marked first deduction detail requests in the processing compensation mechanism are sent;
[0025] If it is determined that the transaction detail data fed back based on the first deduction detail request contains reconciliation and transfer data, it is determined that the data processing is completed.
[0026] Optionally, also include:
[0027] If it is determined that at least one of the transaction details received based on the feedback of the first deduction details request does not contain reconciliation and transfer data, the corresponding first deduction details request is recorded and the processing compensation mechanism is updated; the processing compensation mechanism is updated at the time point corresponding to the preset first time interval on the next day.
[0028] A second aspect of an embodiment of the present invention shows a data processing device, wherein the method includes:
[0029] A sending unit, configured to send a deduction detail request to a bank transaction system at a preset first time interval;
[0030] A triggering unit, configured to trigger a corresponding processing compensation mechanism if it is determined that the transaction detail data fed back by the bank transaction system based on the deduction detail request does not contain reconciliation and transfer data;
[0031] The processing unit is used to send a deduction detail request based on the processing compensation mechanism until the transaction detail data sent by the bank transaction system contains reconciliation and transfer data.
[0032] A third aspect of an embodiment of the present invention shows an electronic device, which is used to run a program, wherein the program executes the data processing method shown in the first aspect of the embodiment of the present invention when it is run.
[0033] A fourth aspect of an embodiment of the present invention shows a storage medium, which includes a storage program, wherein when the program is running, the device where the storage medium is located is controlled to execute the data processing method shown in the first aspect of the embodiment of the present invention.
[0034] Based on the above-mentioned embodiment of the present invention, a data processing method, device, electronic device and storage medium are provided, the method includes: sending a deduction detail request to a bank transaction system at a preset first time interval; if it is determined that the transaction detail data fed back by the bank transaction system based on the deduction detail request does not contain reconciliation and transfer data, triggering a corresponding processing compensation mechanism; sending a deduction detail request based on the processing compensation mechanism until the transaction detail data sent by the bank transaction system contains reconciliation and transfer data. In an embodiment of the present invention, when it is determined that the acquired data is missing, the corresponding processing compensation mechanism is triggered to resend the corresponding deduction detail request until it is determined that the acquired data does not exist, thereby avoiding the problem of missing the acquired data to ensure data integrity. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0036] Figure 1 This is a schematic diagram of the architecture of a bank transaction system, a non-tax system, a financial system, and a People's Bank of China system according to an embodiment of the present invention;
[0037] Figure 2 A schematic diagram of the interaction between a bank transaction system, a non-tax system, a financial system, and a People's Bank of China system according to an embodiment of the present invention;
[0038] Figure 3 A schematic flow chart of a data processing method according to an embodiment of the present invention;
[0039] Figure 4 The present invention is a schematic diagram of the structure of a data processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] It should be noted that the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0043] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0044] From the background technology, we can know that due to the fact that the People's Bank of China system does not initiate reconciliation and transfer requests on weekends, National Day, Spring Festival and other holidays, the bank side, that is, the bank transaction system does not actively push data to the non-tax system and other objective factors, resulting in the non-tax system being unable to obtain the reconciliation and transfer date of the batch of data on time when deducting money on the same day, or, after the reconciliation is completed, due to a failure in the bank transaction system processing, the non-tax system is unable to receive the transaction details data with reconciliation and transfer data, making it impossible to notify the finance department, resulting in confusion in data processing.
[0045] See also Figure 1 , is a schematic diagram of the architecture of a bank transaction system, a non-tax system, a financial system, and a People's Bank of China system shown in an embodiment of the present invention.
[0046] The bank transaction system 10, the non-tax system 20, the fiscal system 30, and the People's Bank of China system 40 are wirelessly connected.
[0047] The financial system 30 sends a balance query request to the non-tax system 20. The non-tax system 20 obtains the current balance of the non-tax special account through the bank transaction system 10 and returns it to the financial system 30 so that the financial system can determine whether the current real-time balance of the non-tax special account is sufficient to offset the deduction amount.
[0048] The financial system 30 sends a deduction request to the PBOC system 40, which records the deduction information in the deduction request and forwards the deduction request to the bank transaction system 10 so that the bank transaction system 10 can deduct money from the non-tax special account (an account opened by the local finance in the bank) to deduct the money to the account to be reported (an intermediate temporary account) and return the processing result (deduction success or failure) to the PBOC system 40.
[0049] The PBOC system 40 sends a reconciliation request to the bank transaction system 10 on a regular basis every day.
[0050] It should be noted that non-tax payment business refers to the small slips (including tuition fees, etc.), electronic tickets or penalty tickets issued by the non-tax bureau to relevant institutions or individuals, the payment initiated by the institutions or individuals, the authenticity of the tickets inquired from the financial system through the bank system through the counter or online channels, and the process of paying the funds to the non-tax special account.
[0051] Electronic payment business refers to the process in which the non-tax bureau pays the above-mentioned funds to the treasury of the People's Bank of China after receiving them. It is a payment process initiated by the financial end.
[0052] The bank transaction system 10 determines the reconciliation request sent by the PBOC system 40. The bank transaction system 10 compares whether the details generated by itself within the reconciliation time corresponding to the reconciliation request are consistent with the transaction details carried in the reconciliation request message sent by the PBOC system 40. If they are consistent, it means that the reconciliation is successful and a reconciliation status of successful reconciliation is obtained; if they are inconsistent, it means that the reconciliation has failed and a reconciliation status of failed reconciliation is obtained.
[0053] Optionally, during reconciliation, if the details of the bank transaction system 10 are inconsistent with those of the PBOC system 40, if the bank transaction system 10 overdeducts, the overdeducted amount will be returned from the account to be reported to the special fiscal account; if underdeducted, the fiscal system 30 will be required to make up the payment to the account to be reported.
[0054] Optionally, if the reconciliation status is successful, the bank transaction system 10 completes the transfer operation, that is, the amount deducted to the account to be reported in the current reconciliation details is transferred to the treasury.
[0055] The bank transaction system 10 determines that the reconciliation time of the reconciliation request sent by the PBOC system 40 is daytime or end-of-day. After the daytime reconciliation is completed, the settlement will be completed in real time. The end-of-day reconciliation will be settled (transferred) at 6:20 am on the second working day. The settlement (transfer) is to transfer the payable amount in the account to be reported to the treasury account.
[0056] The non-tax system 20 sends a deduction detail request to the bank transaction system 10 at a preset first time interval;
[0057] It should be noted that the preset first time interval is set in advance by the technicians based on multiple experiments, and can generally be set to early morning every day, or 7 am the next day, which is not limited in this embodiment of the present invention.
[0058] It should be noted that the deduction details request includes the non-tax transaction details corresponding to the requested deduction date;
[0059] In a specific implementation, the non-tax system 20 sends a deduction detail request to obtain the deduction details and reconciliation status by asynchronously calling the relevant interface of the bank transaction system 10.
[0060] Optionally, when the bank transaction system 10 receives a corresponding deduction detail request, it determines whether the reconciliation status within the corresponding time is successful based on the deduction detail request, and generates corresponding transaction detail data from the deduction details (deduction date, deduction account, deduction amount and other deduction detail related fields), reconciliation and transfer data, and other details, and feeds it back to the non-tax system 20.
[0061] Among them, the reconciliation and transfer data include the reconciliation status and / or the transfer date.
[0062] Other details include pending expenditures and pending income. The non-tax special account has income or expenditure accounts through other systems. For the non-tax system 20, these accounts are unknown. Therefore, when the non-tax system uses the deduction details to request to check the transactions of the account, those that do not match will be pending. These unknown accounts are called pending expenditures from the non-tax special account, and the money received by the non-tax special account is called pending income.
[0063] Optionally, the non-tax system 20 receives the transaction detail data sent by the bank transaction system 10 based on the deduction detail request, and sends a transaction verification request to the bank. Specifically, the deduction date and customer account number are sent to the bank transaction system, and the bank transaction system returns all transaction details of the customer account on that day. The non-tax system compares the details with the component serial number and amount fields in the details returned by the bank transaction system, and a consensus indicates that the transaction did occur.
[0064] Furthermore, after the bank transaction system 10 performs the deduction operation based on the deduction request, it notifies the PBOC system 40 of the deduction status. However, the notification fails due to network or other reasons. At this time, the PBOC system 40 believes that the deduction is unsuccessful, but in fact, the bank transaction system 10 has completed the deduction, resulting in an error in the account reconciliation. The account will be considered as the money transferred from the non-tax special account for unknown reasons, thus generating an unchecked expenditure. Based on this, the non-tax system 20 needs to distinguish whether the transaction details that failed to be reconciled are unchecked expenditures for electronic payment to the treasury.
[0065] In an embodiment of the present invention, the non-tax system sends a deduction details request to obtain the deduction details and reconciliation status by asynchronously calling the relevant interface of the bank transaction system, so as to reduce the time taken to generate such business transaction details due to the large amount of data in the bank transaction system and avoid timeout problems.
[0066] The non-tax system 20 determines whether the reconciliation status in the transaction details data sent by the bank transaction system based on the deduction details request does not contain reconciliation and transfer data. If so, the corresponding processing compensation mechanism is triggered. If not, it means that there is a successful reconciliation status, and the successful reconciliation deduction details, reconciliation and transfer data, pending expenditures and pending income are sent to the financial system 30.
[0067] Optionally, the financial system 30 receives the deduction details of the successful reconciliation, and the reconciliation date, reconciliation status, pending expenditures and pending income in the reconciliation and transfer data, and updates the transaction transfer field.
[0068] Optionally, based on the above specific implementation, Figure 2 The interaction diagram is used to illustrate this.
[0069] In an embodiment of the present invention, when it is determined that the acquired data is missing, the corresponding processing compensation mechanism is triggered to resend the corresponding deduction details request until it is determined that the acquired data does not exist, thereby avoiding the problem of missing data, ensuring data integrity, and further avoiding confusion in data processing.
[0070] Based on the architecture shown in the above embodiment of the present invention, the process of implementing the data processing method is as follows: Figure 3 As shown, the method is applied to the non-tax system shown in the above embodiment of the present invention, and includes:
[0071] Step S301: Sending a deduction details request to a bank transaction system at a preset first time interval;
[0072] It should be noted that the preset first time interval is set in advance by the technicians based on multiple experiments, and can generally be set to early morning every day, or 7 am the next day, which is not limited in this embodiment of the present invention.
[0073] It should be noted that the deduction details request includes the non-tax transaction details corresponding to the requested deduction date;
[0074] In the specific implementation step S301, the non-tax system sends a deduction detail request to obtain transaction detail data such as the transfer date by asynchronously calling the relevant interface of the bank transaction system.
[0075] Step S302: Determine whether there is no reconciliation and transfer data in the transaction detail data fed back by the bank transaction system based on the deduction detail request. If so, execute step S303. If not, there is a reconciliation status of successful reconciliation, and the successfully reconciled deduction details, reconciliation and transfer data, pending expenditures and pending income are sent to the financial system so that the financial system can update the transaction transfer field based on it.
[0076] Optionally, the non-tax system sends a deduction detail request, i.e., a query request, containing fields such as the deduction date to the bank transaction system; the bank transaction system first responds to the non-tax system with a query status, and after the query is completed, the bank transaction system sends transaction detail data based on the feedback of the deduction detail request to the non-tax system.
[0077] Specifically, the non-tax system sends a deduction detail request, i.e., a query request, to the bank transaction system, which carries fields such as the deduction date, first-level branch number, sponsoring bank number, project number, and business type. Before querying, the bank transaction system first sends the status of the file generation to the non-tax system, and then queries the bank transaction system database according to the above fields, and generates a .txt file with the tax payment reconciliation flow details. The bank transaction system then calls the transaction code of the deduction detail request issued by the non-tax system, and notifies the non-tax system of the storage location of the file. The non-tax system obtains the file (i.e., transaction detail data) through the file transfer protocol sftp, and stores the transaction date, transaction time, reconciliation date, settlement date, reconciliation batch, tax invoice number, and other deduction details, reconciliation and transfer data, pending expenditures and pending income in the file into the database of the non-tax system.
[0078] In the process of implementing step S302, determine whether the reconciliation and transfer data in the transaction details are empty. If so, execute step S303. If not, determine whether there is a reconciliation status of successful reconciliation. If so, send the successful reconciliation deduction details, reconciliation and transfer data, pending expenses and pending income to the financial system so that the financial system can update the transaction transfer field based on it.
[0079] Optionally, if there is a reconciliation status of reconciliation failure, the failed details will be treated as expenditures to be checked and sent to the financial system so that the financial system can obtain the expenditure flow to be checked.
[0080] Step S303: triggering a corresponding processing compensation mechanism;
[0081] It should be noted that the specific implementation of step S303 includes the following steps:
[0082] Step S11: determining the number of times that no reconciliation and transfer data exists in each of the currently received transaction details data;
[0083] In the specific implementation of step S11, the number of times that the reconciliation and transfer data does not exist in each of the currently received transaction details is counted;
[0084] Step S12: Record the deduction detail request corresponding to the non-existent reconciliation and transfer data, and use it as the first deduction detail request;
[0085] In the specific implementation of step S12, the deduction detail request corresponding to the non-existent reconciliation and transfer data is recorded according to the request date, and is used as the first deduction detail request;
[0086] Step S13: Determine a corresponding processing compensation mechanism based on the preset first time interval, number of times and first deduction detail request, and trigger it.
[0087] It should be noted that the specific implementation of step S13 includes the following steps:
[0088] Step S21: Determine the time point corresponding to the preset first time interval;
[0089] In the specific implementation of step S21, the time point corresponding to the preset first time interval is obtained.
[0090] For example, if the first time interval is 7:00 am every Sunday, then the time point corresponding to the preset first time interval is 7:00 am the next day.
[0091] Step S22: determining a compensation sending time corresponding to the first deduction detail request based on the number of times, a time point corresponding to the preset first time interval, and a preset time point, wherein the number of the compensation sending times is the same as the number of times;
[0092] In the process of implementing step S22, taking the number of times equal to 1 as an example, the time point corresponding to the preset first time interval is added to the preset time point, and it is used as the compensation sending time corresponding to the first deduction details request.
[0093] It should be noted that the preset time point is set based on multiple implementations and can generally be set to 1 hour;
[0094] Assume that the time point corresponding to the preset first time interval, 7:00 am the next day, is added to the preset time point for 1 hour, and the result is 8:00 am the next day, which is used as the compensation sending time corresponding to the first deduction details request.
[0095] Taking the number of times equal to N as an example, where N is a positive integer greater than or equal to 2, the specific process of implementing step S22 includes the following steps:
[0096] Step S31: determining a time period based on the time point corresponding to the preset first time interval and N preset time points.
[0097] Wherein, the time period is a time sequence consisting of N consecutive time points, where N is a positive integer greater than or equal to 2;
[0098] In the process of implementing step S32, the sum of the time point corresponding to the preset first time interval and a preset time point is taken as the initial time point, and the sum of the time point corresponding to the preset first time interval and N preset time points is taken as the final time point. Based on the initial time point and the final time point, a time period with preset time points as time intervals is created.
[0099] For example: the sum of the time point 7 o'clock corresponding to the preset first time interval and the preset time point 1 hour, at this time N is equal to 1, and 8 o'clock is obtained as the initial time point; the time point 7 o'clock corresponding to the preset first time interval and N*preset time point 1 hour, that is, 7+N*1 is used as the final time point, and the time series composed of N consecutive time points such as 8 o'clock, 9 o'clock, 10 o'clock...7+N*1 o'clock is used as the time period.
[0100] Step S32: Determine the compensation sending time corresponding to each first deduction detail request based on the request dates of the N first deduction detail requests and each time point within the time period.
[0101] In the process of implementing step S32, the request dates of N first deduction detail requests are obtained, and then time points are allocated from the time period in ascending order according to the request date, and used as the compensation sending time. That is, the time point in the time period corresponding to the earliest request date is the smallest, for example, 8 o'clock in the time period corresponding to the earliest request date is used as the compensation sending time for the first deduction detail request with the earliest request date.
[0102] Step S23: Create a corresponding relationship between the compensation sending time and the first deduction detail request to build a processing compensation mechanism.
[0103] In the specific implementation of step S23, taking the number of times equal to 1 as an example, a corresponding relationship between the first deduction detail request and the compensation sending time is directly created to build a processing compensation mechanism. Taking the number of times equal to N as an example, for each compensation sending time, a corresponding relationship between the compensation sending time and the first deduction detail request of its corresponding request date is created to build a processing compensation mechanism.
[0104] Step S304: Send a deduction detail request based on the processing compensation mechanism until the transaction detail data sent by the bank transaction system contains reconciliation and transfer data.
[0105] It should be noted that the specific implementation of step S304 includes the following steps:
[0106] Step S41: Determine whether the current time reaches the compensation sending time in the processing compensation mechanism. If so, execute step S42; if not, continue to return to execute step S41.
[0107] In the process of implementing step S41, it is determined whether the current time reaches the compensation sending time described in the processing compensation mechanism. If so, step S42 is executed; if not, the process returns to step S41.
[0108] It should be noted that if the compensation mechanism includes multiple compensation sending times, the following steps will be executed every time a compensation sending time is reached.
[0109] Step S42: sending a first deduction detail request corresponding to the compensation sending time to the bank transaction system based on the processing compensation mechanism, until all the first deduction detail requests marked in the processing compensation mechanism are sent;
[0110] In the specific implementation of step S42, when a certain compensation sending time is reached, based on the correspondence between the compensation sending time and the first deduction detail request in the processing compensation mechanism, the first deduction detail request corresponding to the compensation sending time is sent, and then the execution of step S41 is returned until all the marked first deduction detail requests in the processing compensation mechanism are sent;
[0111] Optionally, the bank transaction system first responds to the non-tax system with a query status. After the query is completed, the bank transaction system sends transaction detail data based on the first deduction detail request feedback to the non-tax system. The specific implementation process can be found in step S302.
[0112] Step S43: Determine whether the transaction details data fed back based on the first deduction details request contain reconciliation and transfer data. If so, execute step S44; if not, execute step S45.
[0113] In the process of implementing step S43, the transaction detail data fed back by the bank transaction system based on the query of the first deduction detail request is obtained. For each transaction detail data, it is determined whether there is reconciliation and transfer data. If so, step S44 is executed, if not, step S45 is executed.
[0114] Step S44: Determine that the data processing is completed;
[0115] In the process of implementing step S44, it is determined whether the processing of the compensation mechanism is completed, and for the transaction detail data fed back after the query of the first deduction detail request, it is determined whether there is a reconciliation status of successful reconciliation. If there is a reconciliation status of successful reconciliation, the reconciliation details of the successful reconciliation, the reconciliation and transfer data, the expenditures to be checked and the income to be checked are sent to the financial system so that the financial system can update the transaction transfer field based on it.
[0116] Optionally, if there is a reconciliation status of reconciliation failure, the failed details will be treated as expenditures to be checked and sent to the financial system so that the financial system can obtain the expenditure flow to be checked.
[0117] Step S45: Record the corresponding first deduction detail request and update the processing compensation mechanism.
[0118] The processing compensation mechanism is updated when the time point corresponding to the preset first time interval is reached on the next day.
[0119] In the specific implementation step S45, the first deduction detail request for which there is still no reconciliation and transfer data is recorded, and step S12 is executed based on the first deduction detail request.
[0120] For example, because the details of the end-of-day reconciliation are based on the preset first time interval, the transfer is made at 6:20 on the second working day. Therefore, under normal circumstances (not during holidays), when the non-tax system initiates the first deduction detail request aa to the bank transaction system in the early morning, it is impossible to obtain the transfer date field and determine the corresponding processing compensation mechanism A; A contains the corresponding relationship between the compensation sending time a17:20 and the first deduction detail request aa;
[0121] When the current time reaches the preset first time interval, a deduction detail request is first sent to the bank transaction system; then, when the current time reaches the compensation sending time a1, based on the processing compensation mechanism A, a first deduction detail request aa corresponding to the compensation a1 sending time is sent to the bank transaction system.
[0122] Scenario 2: The PBOC system does not initiate reconciliation requests at the end of the day on holidays, so the bank transaction system does not perform reconciliation and transfer operations. For example: During the National Day holiday, the local finance initiated the first deduction details request aa on October 1, but no reconciliation was performed that night. Therefore, at 3:00 the next day (October 2), the non-tax system scheduled task initiated a query for the deduction details of T-1 day (October 1), but only the relevant fields of the deduction details (such as: deduction date, deduction account, deduction amount, etc.) could be obtained, and the reconciliation status and transfer date could not be obtained. Design the data compensation mechanism A as mentioned above, that is, at 3:00 a.m. the next day (October 3), the non-tax system scheduled task initiated a query for the deduction details of T-1 day (October 2), and then sent another query for the deduction details of T-1 day (October 2) at 4:00 a.m. (October 3) when the current time reaches 12:00 a.m.
[0123] If the compensation mechanism A is processed; A includes the corresponding relationship between the compensation sending time 7:20 and the first deduction detail request T-1; the corresponding relationship between the compensation sending time 8:20 and the first deduction detail request T-2; the corresponding relationship between the compensation sending time 10:20 and the first deduction detail request T-3; the corresponding relationship between the compensation sending time 11:20 and the first deduction detail request T-4; the corresponding relationship between the compensation sending time 12:20 and the first deduction detail request T-5; the non-tax system first sends the deduction detail request T at the preset time interval of 6:20; then the current When the current time reaches the compensation sending time of 7:20, the first deduction detail request T-1 is sent; then the current time reaches the compensation sending time of 7:20, the first deduction detail request T-1 is sent; the current time reaches the compensation sending time of 8:20, the first deduction detail request T-2 is sent; the current time reaches the compensation sending time of 9:20, the first deduction detail request T-3 is sent; the current time reaches the compensation sending time of 10:20, the first deduction detail request T-4 is sent; the current time reaches the compensation sending time of 11:20, the first deduction detail request T-5 is sent to realize asynchronous sending.
[0124] In an embodiment of the present invention, a deduction detail request is sent to a bank transaction system at a preset first time interval; if it is determined that the transaction detail data fed back by the bank transaction system based on the deduction detail request does not contain reconciliation and transfer data, a corresponding processing compensation mechanism is triggered; based on the processing compensation mechanism, a deduction detail request is sent until the transaction detail data sent by the bank transaction system contains reconciliation and transfer data, thereby avoiding the problem of missing data in the acquired data to ensure data integrity.
[0125] Based on the data processing method shown in the above embodiment of the present invention, correspondingly, the embodiment of the present invention also corresponds to a data processing device shown, such as Figure 4 As shown, the device comprises:
[0126] The sending unit 401 is used to send a deduction detail request to the bank transaction system according to a preset first time interval;
[0127] A triggering unit 402 is configured to trigger a corresponding processing compensation mechanism if it is determined that the transaction details data fed back by the bank transaction system based on the deduction details request do not contain reconciliation and transfer data;
[0128] The processing unit 403 is used to send a deduction detail request based on the processing compensation mechanism until the transaction detail data sent by the bank transaction system contains reconciliation and transfer data.
[0129] The specific principles and execution processes of each unit in the data processing device disclosed in the above embodiment of the present invention are the same as the corresponding contents in the data processing method provided in the above embodiment of the present invention. Please refer to the corresponding parts of the data processing method disclosed in the above embodiment of the present invention, and will not be repeated here.
[0130] In an embodiment of the present invention, when it is determined that the acquired data is missing, the corresponding processing compensation mechanism is triggered to resend the corresponding deduction details request until it is determined that the acquired data does not exist, thereby avoiding the problem of missing data, ensuring data integrity, and further avoiding confusion in data processing.
[0131] Optionally, based on the data processing device shown in the above embodiment of the present invention, the triggering unit 402 for triggering the corresponding processing compensation mechanism is specifically configured to:
[0132] Determine the number of times that no reconciliation and transfer data exists in each of the currently received transaction details data;
[0133] Record the deduction detail request corresponding to the non-existent reconciliation and transfer data, and use it as the first deduction detail request;
[0134] Based on the preset first time interval, number of times and first deduction detail request, a corresponding processing compensation mechanism is determined and triggered.
[0135] Wherein, determining a corresponding processing compensation mechanism based on the preset first time interval, number of times and the first deduction detail request includes:
[0136] Determine the time point corresponding to the preset first time interval;
[0137] Determine a compensation sending time corresponding to the first deduction detail request based on the number of times, a time point corresponding to the preset first time interval, and a preset time point, wherein the number of the compensation sending times is the same as the number of times;
[0138] A correspondence between the compensation sending time and the first deduction detail request is created to construct a compensation processing mechanism.
[0139] Wherein, determining the compensation sending time corresponding to the first deduction detail request based on the number of times, the time point corresponding to the preset first time interval, and the preset time point includes:
[0140] If the number is 1, the sum of the time point corresponding to the preset first time interval and the preset time point is used as the compensation sending time corresponding to the first deduction details request.
[0141] Wherein, determining the compensation sending time corresponding to the first deduction detail request based on the number of times, the time point corresponding to the preset first time interval, and the preset time point includes:
[0142] If the number is N, a time period is determined based on the time point corresponding to the preset first time interval and N preset time points, and the time period is a time sequence consisting of N consecutive time points, where N is a positive integer greater than or equal to 2;
[0143] The compensation sending time corresponding to each first deduction detail request is determined based on the request dates of the N first deduction detail requests and each time point within the time period.
[0144] Optionally, based on the data processing device shown in the above embodiment of the present invention, the processing unit 403 is specifically configured to:
[0145] When it is determined that the current time reaches the compensation sending time in the processing compensation mechanism, sending a first deduction detail request corresponding to the compensation sending time to the bank transaction system based on the processing compensation mechanism until all the marked first deduction detail requests in the processing compensation mechanism are sent;
[0146] If it is determined that the transaction details data fed back based on the first deduction details request contain reconciliation and transfer data, it is determined that the data processing is completed;
[0147] Optionally, based on the data processing device shown in the above embodiment of the present invention, the processing unit 403 is further configured to:
[0148] If it is determined that at least one of the transaction details received based on the feedback of the first deduction details request does not contain reconciliation and transfer data, the corresponding first deduction details request is recorded and the processing compensation mechanism is updated; the processing compensation mechanism is updated at the time point corresponding to the preset first time interval on the next day.
[0149] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory is used to store data processing program code and data, and the processor is used to call program instructions in the memory to execute the steps shown in the data processing method in the above embodiment.
[0150] An embodiment of the present invention provides a storage medium, and a vehicle includes the electronic device provided by the above-mentioned embodiment of the present application, and the electronic device is used to execute the data processing method disclosed in the embodiment of the present application.
[0151] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0152] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0153] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data processing method, characterized in that: The method comprises: A request for deduction details is sent to a bank transaction system at a preset first time interval; If it is determined that the transaction details data fed back by the bank transaction system based on the deduction details request does not contain reconciliation and transfer data, triggering a corresponding processing compensation mechanism; A deduction detail request is sent based on the processing compensation mechanism until the transaction detail data sent by the bank transaction system contains reconciliation and transfer data.
2. The method according to claim 1, characterized in that Trigger the corresponding processing compensation mechanism, including: Determine the number of times that no reconciliation and transfer data exists in each of the currently received transaction details data; Record the deduction detail request corresponding to the non-existent reconciliation and transfer data, and use it as the first deduction detail request; Based on the preset first time interval, number of times and first deduction detail request, a corresponding processing compensation mechanism is determined and triggered.
3. The method according to claim 2, characterized in that Determining a corresponding processing compensation mechanism based on the preset first time interval, number of times and the first deduction detail request includes: Determine the time point corresponding to the preset first time interval; Determine a compensation sending time corresponding to the first deduction detail request based on the number of times, a time point corresponding to the preset first time interval, and a preset time point, wherein the number of the compensation sending times is the same as the number of times; A correspondence between the compensation sending time and the first deduction detail request is created to construct a compensation processing mechanism.
4. The method according to claim 3, characterized in that Determining the compensation sending time corresponding to the first deduction detail request based on the number of times, the time point corresponding to the preset first time interval, and the preset time point includes: If the number is 1, the sum of the time point corresponding to the preset first time interval and the preset time point is used as the compensation sending time corresponding to the first deduction details request.
5. The method according to claim 3, characterized in that: Determining the compensation sending time corresponding to the first deduction detail request based on the number of times, the time point corresponding to the preset first time interval, and the preset time point includes: If the number is N, the time period is determined based on the time point corresponding to the preset first time interval and N preset time points, and the time period is a time sequence consisting of N consecutive time points, where N is a positive integer greater than or equal to 2; The compensation sending time corresponding to each first deduction detail request is determined based on the request dates of the N first deduction detail requests and each time point within the time period.
6. The method according to claim 1, characterized in that Sending a deduction detail request based on the processing compensation mechanism until receiving reconciliation and transfer data in the transaction detail data sent by the bank transaction system, including: When it is determined that the current time reaches the compensation sending time in the processing compensation mechanism, sending a first deduction detail request corresponding to the compensation sending time to the bank transaction system based on the processing compensation mechanism until all the marked first deduction detail requests in the processing compensation mechanism are sent; If it is determined that the transaction detail data fed back based on the first deduction detail request contains reconciliation and transfer data, it is determined that the data processing is completed.
7. The method according to claim 1, characterized in that Also includes: If it is determined that at least one of the transaction details received based on the feedback of the first deduction details request does not contain reconciliation and transfer data, the corresponding first deduction details request is recorded and the processing compensation mechanism is updated; the processing compensation mechanism is updated at the time point corresponding to the preset first time interval on the next day.
8. A data processing device, characterized in that: The method comprises: A sending unit, configured to send a deduction detail request to a bank transaction system at a preset first time interval; A triggering unit, configured to trigger a corresponding processing compensation mechanism if it is determined that the transaction detail data fed back by the bank transaction system based on the deduction detail request does not contain reconciliation and transfer data; The processing unit is used to send a deduction detail request based on the processing compensation mechanism until the transaction detail data sent by the bank transaction system contains reconciliation and transfer data.
9. An electronic device, characterized in that: The electronic device is used to run a program, wherein the program executes the data processing method according to any one of claims 1 to 7 when running.
10. A storage medium, characterized in that: The storage medium includes a storage program, wherein when the program is running, the device where the storage medium is located is controlled to execute the data processing method according to any one of claims 1 to 7.