CN109583826B - Declaration file generation method, declaration file generation device, server and readable storage medium - Google Patents

Declaration file generation method, declaration file generation device, server and readable storage medium Download PDF

Info

Publication number
CN109583826B
CN109583826B CN201811141611.2A CN201811141611A CN109583826B CN 109583826 B CN109583826 B CN 109583826B CN 201811141611 A CN201811141611 A CN 201811141611A CN 109583826 B CN109583826 B CN 109583826B
Authority
CN
China
Prior art keywords
declaration
transaction
type
amount
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811141611.2A
Other languages
Chinese (zh)
Other versions
CN109583826A (en
Inventor
唐强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201811141611.2A priority Critical patent/CN109583826B/en
Publication of CN109583826A publication Critical patent/CN109583826A/en
Application granted granted Critical
Publication of CN109583826B publication Critical patent/CN109583826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention discloses a method, a device, a server and a readable storage medium for generating a declaration file, wherein in the method for generating the declaration file, when cross-border foreign exchange payment business is carried out through a target payment mechanism, a corresponding declaration element table is generated, and declaration information corresponding to the target declaration type is determined in N declaration element tables of the previous working day according to the target declaration type, wherein the declaration information comprises declaration amount; and generating a target declaration file according to the declaration information and a preset file format corresponding to the target declaration type. According to the scheme, manual participation is not needed, the labor cost is reduced, and the reporting efficiency is improved.

Description

Declaration file generation method, declaration file generation device, server and readable storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a file declaring method, a file declaring device, a server and a readable storage medium.
Background
When the third-party payment organization develops the cross-border foreign exchange payment service, the third-party payment organization needs to receive supervision and management of the national foreign exchange administration and timely report related service data through a bank according to regulations. At present, when international reimbursement is submitted, manual submission is realized, but the manual submission faces a lot of data and is inefficient.
Disclosure of Invention
The embodiment of the specification provides a declaration file generation method, a declaration file generation device, a server and a computer readable storage medium.
In a first aspect, an embodiment of the present specification provides a method for generating a declaration document, including:
acquiring N declaration element tables corresponding to N transactions of cross-border foreign exchange payment business performed by a target payment mechanism on the previous working day, wherein N is a positive integer;
determining declaration information corresponding to the target declaration type in the N declaration element tables according to the target declaration type, wherein the declaration information comprises declaration amount;
and generating a target declaration file according to the declaration information and a preset file format corresponding to the target declaration type.
In a second aspect, an embodiment of the present specification provides a declaration document generating apparatus, including:
the system comprises an acquisition module, a transaction module and a processing module, wherein the acquisition module is used for acquiring N declaration element tables corresponding to N transactions of cross-border foreign exchange payment business performed by a target payment mechanism on the previous working day, and N is a positive integer;
the processing module is used for determining declaration information corresponding to the target declaration type in the N declaration element tables according to the target declaration type, wherein the declaration information comprises declaration amount;
and the declaration file generating module is used for generating a target declaration file according to the declaration information and a preset file format corresponding to the target declaration type.
In a third aspect, embodiments of the present specification provide a server, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor performs the steps of any one of the methods described above.
In a fourth aspect, the present specification provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any of the above methods.
The embodiment of the specification has the following beneficial effects:
in the application file generation method provided in the embodiment of the present specification, by acquiring N declaration element tables corresponding to N transactions of a cross-border foreign exchange payment service performed by a target payment mechanism on a previous working day, declaration information corresponding to a target declaration type is determined in the N declaration element tables according to the target declaration type, where the declaration information includes a declaration amount; and generating a target declaration file according to the declaration information and a preset file format corresponding to the target declaration type. In the above scheme, the declaration information required by the target declaration file is determined through the declaration element table corresponding to the cross-border foreign exchange payment service, for example, when the centralized declaration is performed, the declaration information of the centralized declaration is determined in the declaration element table, and the declaration information is generated into the centralized declaration file according to the preset file format of the centralized declaration.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for generating a declaration document according to a first aspect of the embodiments of the present disclosure;
fig. 2 is a schematic diagram of a declaration document generating apparatus provided in a second aspect of the embodiment of the present disclosure;
fig. 3 is a schematic diagram of a server provided in the third aspect of the embodiments of the present specification.
Detailed Description
In order to better understand the technical solutions, the technical solutions of the embodiments of the present specification are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features of the embodiments and embodiments of the present specification are detailed descriptions of the technical solutions of the embodiments of the present specification, and are not limitations of the technical solutions of the present specification, and the technical features of the embodiments and embodiments of the present specification may be combined with each other without conflict.
In a first aspect, an embodiment of the present specification provides a method for generating a declaration file, as shown in fig. 1, which is a flowchart of a graph model evaluation method provided in the embodiment of the present specification, and the method includes the following steps:
step S11: acquiring N declaration element tables corresponding to N transactions of cross-border foreign exchange payment business performed by a target payment mechanism on the previous working day, wherein N is a positive integer;
in the embodiment of the present specification, the target payment mechanism may be a third party payment mechanism, such as a payment mechanism for paying treasures and financial payment. The user may conduct a cross-border foreign exchange payment transaction through a payment application of a third party payment authority installed in the client. It should be understood that when the user conducts a foreign exchange payment transaction through the target payment mechanism, the transaction system of the target payment mechanism can obtain the detailed information of the transaction, and the detailed information of the transaction can be obtained automatically through the transaction system or can be obtained through detecting the input operation of the user. For example, when the user is a registered user of the target payment institution, when the user performs a foreign exchange transaction through the target payment institution, the basic registration information of the user is acquired as the payer information in the foreign exchange transaction detail, and the content such as the payee name input by the user is detected as the payee information in the foreign exchange transaction detail.
In the embodiment of the present specification, for each transaction, a declaration element table corresponding to the transaction may be generated. The contents included in the declaration element table may be set according to actual needs, and the declaration element table may include information necessary for generating the declaration document, and for example, the declaration element table may include contents such as a transaction amount, remitter information, payee information, and a transaction code.
It should be understood that the target payment institution needs to complete the submission work for the actual outward receipt payment day on the first working day after the actual outward receipt payment day. That is, since N transactions for which the target payment mechanism performs the cross-border foreign exchange payment service on the previous working day need to be submitted, N declaration element tables corresponding to the N transactions need to be acquired, where N is a positive integer.
Step S12: determining declaration information corresponding to the target declaration type in the N declaration element tables according to the target declaration type, wherein the declaration information comprises declaration amount;
in the embodiment of the present specification, the target declaration type may include centralized declaration, restoration declaration, forward service declaration, and reverse service declaration. Different declaration types and declaration information required by declaration files can also have differences, and each declaration information contains declaration amount. The declaration information can be directly or indirectly acquired in the declaration element table, if the declaration information contains payee information, the payee information can be directly extracted from the declaration element table, and if the declaration information contains summary amount, the transaction amount of multiple transactions can be determined in a plurality of declaration element tables and accumulated to obtain the summary amount.
Step S13: and generating a target declaration file according to the declaration information and a preset file format corresponding to the target declaration type.
In the embodiment of the present specification, each declaration file may correspond to a preset file format, and the preset file format may include the number of rows and columns, the position of declaration information, and the like included in the declaration file. The preset file format can be a preset file template, and the obtained declaration information is correspondingly filled in the template, so that the target declaration file can be obtained.
Optionally, the method further comprises: and generating a declaration element table corresponding to each transaction according to the transaction details of each transaction in the N transactions and a preset declaration element table format, and generating N declaration element tables in total.
In the embodiment of the present specification, the format of the preset declaration element table may be set according to actual requirements, and in one embodiment, the preset declaration element table is as shown in table 1, and when each transaction is performed by the target transaction institution, according to the structure of the declaration element table, the required content is determined in the transaction specification, and the determined content is filled in the declaration element table, so as to complete the content of the declaration element table. In the embodiment of the specification, each transaction corresponds to one declaration element table. Of course, the structure of the declaration element table may be in other forms, and is not limited herein.
TABLE 1
Column names Type (B) Length of Accuracy of measurement Scale Whether or not it is empty Default value Description of the invention
is_refund varchar(1) 1 N Refund or not
trade_code varchar(256) 256 Y Transaction coding
remitter_account varchar(256) 256 Y Account number of sender
remittee_name varchar(256) 256 Y Name of payee
... ... ... ... ... ... ...
Optionally, when the target declaration type is centralized declaration, the determining, according to the target declaration type, declaration information corresponding to the target declaration type in the N declaration element tables includes: determining a transaction amount in each of the N declaration element tables; and (4) rolling and summarizing the transaction amount in each declaration element table to obtain a rolling result as a centralized declaration amount.
It should be understood that the centralized declaration is a summary declaration of all transaction amounts of the previous working day, and therefore, the transaction amount of each of the N transactions is determined from the N declaration element tables. In one embodiment, the determination of the transaction amount may be obtained by looking up a transaction amount field in the declaration element table, and additionally, depending on the nature of the transaction, the transaction nature field may be looked up in the declaration element table to determine whether the transaction is a payment transaction or a refund transaction. Taking the above table 1 as an example, whether the transaction is a payment transaction or a refund transaction can be determined by querying the is _ refund field, which indicates a refund transaction if the is _ refund field is Y, and indicates a payment transaction if the is _ refund field is N. And carrying out rolling summary on the inquired N transaction amounts according to transaction properties to obtain a summary amount which is used as a centralized declaration amount.
In one embodiment, 3 transactions occur in the previous working day, that is, N is 3, and according to the 3 declaration element tables corresponding to the 3 transactions, it is determined that the 3 transactions are respectively 100 yuan for payment, 50 yuan for payment, and 15 yuan for refund, the total amount obtained after padding is 135 yuan, and 135 yuan is used as the centralized declaration amount.
In addition, besides the declared amount, the declaration information may also include other information, such as transaction codes, currency, types of remittance business objects, and the like, and the declaration information may be determined according to a preset file format corresponding to the declaration document, that is, which information is required by the declaration document is searched in the declaration element table according to fields corresponding to the information.
Optionally, when the target declaration type is a reduction declaration, the determining, according to the target declaration type, declaration information corresponding to the target declaration type in the N declaration element tables includes: determining a transaction amount in each of the N declaration element tables; according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and the transaction amounts smaller than a first threshold value to obtain more than one rolling result, and taking the rolling result as a first type of reduction declaration amount of the reduction declaration; and taking more than one transaction amount of which the transaction amount is greater than or equal to the first threshold value as a second type reduction declaration amount of the reduction declaration.
It should be understood that the return declaration corresponds to the centralized declaration, and the return declaration can be understood as returning the detail transaction corresponding to the centralized declaration amount. Because the cross-border foreign exchange payment service performed by the target payment mechanism is characterized by small amount and high frequency, if each transaction detail is reported to the monitoring mechanism, the system of the monitoring mechanism faces huge performance challenges, and therefore, the transactions with the amount smaller than the threshold value can be summarized and combined into one transaction for reporting.
In this embodiment of the present specification, the transaction amount field in each declaration element table in the N declaration element tables may be queried to determine the transaction amount of each transaction. For small transactions with transaction amounts less than the first threshold, transaction codes of the small transactions are further determined, and the transaction codes can also be determined by inquiring transaction code fields in the declaration element table. The small transactions can be classified through transaction codes, namely, the transactions with the same transaction codes are used as one type of transaction, and for each type of transaction, transaction amount information is summarized according to the payment or refund of the transaction property. Thus, each type of transaction is aggregated into a summary amount that serves as a first type of restitution amount that needs to be declared on behalf of the target structure. It should be understood that the transaction code may be used to distinguish payment purposes, such as transaction code 122030 representing a trade in goods, transaction code 223022 representing an individual's outstanding disbursement, and the like. The first threshold may be set according to actual needs, and is not limited herein.
In one embodiment, the target payment mechanism performs 4 transactions in the previous working day, N is 4, and the transaction amounts of the 4 transactions are determined to be 5001USD, 5002USD, 50USD and 45USD respectively according to 4 declaration element tables of the 4 transactions. If the first threshold value is 5000USD, the sum of money smaller than the first threshold value is 50USD and 45USD, the transaction code in the declaration element table corresponding to 50USD and the transaction code in the declaration element table corresponding to 45USD are further determined, if the transaction codes are A, the two transactions are summarized into one transaction, if the transaction properties of the two transactions are payment transactions, the summarized result is 95USD, the summarized transaction code is A, and the declaration is carried out on the name of the target institution.
In addition, the transaction amount larger than or equal to the first threshold value is used as a second type recovery declaration amount, and the second type recovery declaration amount needs to be declared on the behalf of an individual.
Optionally, the generating a target declaration file according to the declaration information and a preset file format corresponding to the target declaration type includes: generating first-class restoration declaration information according to the first-class restoration declaration amount and a first preset file format for restoration declaration on the name of the target payment mechanism; generating second type reduction declaration information according to the second type reduction declaration amount and a second preset file format for carrying out reduction declaration on the user name; the first type of recovery declaration information and the second type of recovery declaration information form a recovery declaration file.
In the embodiment of the present specification, since the detailed information of each transaction cannot be represented after the multiple transactions are aggregated, for the first-type restitution amount, the aggregated information needs to be declared on behalf of the target payment mechanism. And the information contained in the first preset file format which is subjected to restoration declaration on the name of the target payment mechanism is the information of the target payment mechanism. In one embodiment, the target payment authority is a paymate, the account number included in the first predetermined file is filled as the account number of the paymate, and the sender information is filled as the paymate. And for the second type of reduction declaration amount, declaring the amount in a personal name, wherein the account number contained in the second preset file is the account number of the user, and the remitter information is the name of the user. It should be understood that the first predetermined file format may be a format in which information of a target payment institution is filled, and the second predetermined file format may be a format in which content is not filled, and filling is performed after acquiring corresponding content by declaring an element table.
The above examples that the transaction amounts are respectively 5001USD, 5002USD, 50USD and 45USD are adopted, the first preset file format and the second preset file format both include payers, amounts and transaction codes, the reduction declaration file includes two types of information, one type is summary information declared by the target payment mechanism, the other type is detail information declared by the individual payment mechanism, the target payment mechanism is a payment treasure, and the transaction codes of four transactions are all a, and the generated reduction declaration file is as follows:
zhang III, 5001USD, transaction code A;
lee, 5002USD, transaction code a;
pay for, 955002USD, transaction code a.
The information corresponding to Zhang III and Li IV is reported as a personal name, and the information corresponding to the Payment treasured is reported as a target payment organization name.
Optionally, when the target declaration type is a forward service declaration, determining, according to the target declaration type, declaration information corresponding to the target declaration type in the N declaration element tables, including: k reporting element tables corresponding to forward transactions are determined in the N reporting element tables, wherein the forward transactions are payment transactions, and K is a positive integer; determining a transaction amount in each declaration element table of the K declaration element tables; according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a second threshold value to obtain more than one rolling result, wherein the rolling result is used as a first type of forward service declaration amount for the forward service declaration; and taking more than one transaction amount of which the transaction amount is greater than or equal to the second threshold value as a second type forward service declaration amount of the forward service declaration.
In the embodiment of the specification, whether the transaction is a forward transaction can be determined by declaring a transaction property field in the element table. Taking table 1 as an example, the forward transaction can be identified by the is _ reply field, and when the is _ reply field is N, the transaction is represented as a payment transaction, i.e. a forward transaction. The declaration process of the forward business is similar to the restoration declaration process, namely, the transaction with the transaction amount smaller than the second threshold value is fished in the forward transaction, the transaction is assembled into one batch according to the transaction code, the declaration is carried out under the name of the target payment mechanism, and the transaction with the transaction amount larger than or equal to the second threshold value is declared under the name of an individual. In addition, in addition to the aggregation according to the transaction code, the aggregation may be performed according to other parameters, and in one embodiment, the aggregation may be performed according to the transaction code and the currency, that is, the aggregation may be performed according to the transaction amount with the same transaction code and the same currency.
In one embodiment, the preset file format of the forward declaration file may include the following contents: number of lines of business, number of business batches, number of transaction lines, remittance bank, date of payment/collection, type of remittance business object (C: for public user; D: for private Chinese resident; F: for private Chinese non-resident), organization code (personal, can be blank), personal identification document number (institutional, can be blank), personal document type (institutional, can be blank), payee name, currency, amount, settlement method (wire: DH; ticket: PH; letter: XH), remittance account number, payer name, payer country code, transaction epilogue, claimant, contact phone, date of declaration.
Optionally, when the target declaration type is a reverse service declaration, determining declaration information corresponding to the target declaration type in the N declaration element tables according to the target declaration type, where the method includes: s declaration element tables corresponding to reverse transactions are determined in the N declaration element tables, wherein the reverse transactions are refund transactions, and S is a positive integer; determining a transaction amount in each declaration element table of the S declaration element tables; according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a third threshold value to obtain more than one rolling result, wherein the rolling result is used as a first type of reverse service declaration amount of the reverse service declaration; and taking more than one transaction amount of which the transaction amount is greater than or equal to the third threshold value as a second type of reverse business declaration amount of the reverse business declaration.
In the embodiment of the specification, whether the transaction is a reverse transaction can be determined by declaring the transaction property field in the element table. Taking table 1 as an example, the reverse transaction can be identified by the is _ reply field, and when the is _ reply field is Y, the transaction is represented as a refund transaction, i.e. a reverse transaction. The procedure of reporting the reverse business is similar to the procedure of reporting the forward business, and is not described herein again.
In a second aspect, based on the same inventive concept, an embodiment of the present specification provides a declaration document generating apparatus, please refer to fig. 2, including:
the acquisition module 21 is configured to acquire N declaration element tables corresponding to N transactions of a cross-border foreign exchange payment service performed by a target payment mechanism on a previous working day, where N is a positive integer;
the processing module 22 is configured to determine, according to a target declaration type, declaration information corresponding to the target declaration type in the N declaration element tables, where the declaration information includes a declaration amount;
and the declaration file generating module 23 is configured to generate a target declaration file according to the declaration information and a preset file format corresponding to the target declaration type.
In an alternative implementation, the apparatus further includes:
and the declaration element table generating module 24 is configured to generate a declaration element table corresponding to each transaction according to the transaction details of each transaction in the N transactions and a preset declaration element table format, and generate N declaration element tables in total.
In an alternative implementation, when the target declaration type is a centralized declaration, the processing module 22 is configured to:
determining a transaction amount in each of the N declaration element tables;
and carrying out rolling summary on the transaction amount in each reporting element table to obtain a rolling result as a centralized reporting amount.
In an alternative implementation, when the target declaration type is a restore declaration, the processing module 22 is configured to:
determining a transaction amount in each of the N declaration element tables;
according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a first threshold value to obtain more than one rolling result, and using the rolling results as first type reduction declaration amounts of the reduction declaration;
and taking more than one transaction amount of which the transaction amount is greater than or equal to the first threshold value as a second type of reduction declaration amount of the reduction declaration.
In an alternative implementation, when the target declaration type is forward service declaration, the processing module 22 is configured to:
k reporting element tables corresponding to forward transactions are determined in the N reporting element tables, wherein the forward transactions are payment transactions, and K is a positive integer;
determining a transaction amount in each declaration element table of the K declaration element tables;
according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a second threshold value to obtain more than one rolling result, wherein the rolling result is used as a first type of forward service declaration amount for the forward service declaration;
and the forward business declaration amount is more than one transaction amount which is larger than or equal to the second threshold value and is used as a second type of forward business declaration amount of the forward business declaration.
In an alternative implementation, when the target declaration type is a reverse business declaration, the processing module 22 is configured to:
s declaration element tables corresponding to reverse transactions are determined in the N declaration element tables, wherein the reverse transactions are refund transactions, and S is a positive integer;
determining a transaction amount in each declaration element table of the S declaration element tables;
according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a third threshold value to obtain more than one rolling result, wherein the rolling result is used as a first type of reverse service declaration amount of the reverse service declaration;
and taking more than one transaction amount of which the transaction amount is greater than or equal to the third threshold value as a second type of reverse business declaration amount of the reverse business declaration.
In an optional implementation manner, the declaration file generating module 23 is configured to:
generating first type reduction declaration information according to the first type reduction declaration amount and a first preset file format for reduction declaration on the mechanism name;
generating second type reduction declaration information according to the second type reduction declaration amount and a second preset file format for carrying out reduction declaration on the user name;
the first type of recovery declaration information and the second type of recovery declaration information form a recovery declaration file.
With regard to the above-mentioned apparatus, the specific functions of the respective modules have been described in detail in the embodiment of the declaration document generation method provided by the embodiment of the present invention, and will not be elaborated herein.
In a third aspect, based on the same inventive concept as the report file generation method in the foregoing embodiment, the present invention further provides a server, as shown in fig. 3, including a memory 404, a processor 402, and a computer program stored in the memory 404 and executable on the processor 402, wherein the processor 402 implements the steps of any one of the report file generation methods described above when executing the program.
Where in fig. 3 a bus architecture (represented by bus 400), bus 400 may include any number of interconnected buses and bridges, bus 400 linking together various circuits including one or more processors, represented by processor 402, and memory, represented by memory 404. The bus 400 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 406 provides an interface between the bus 400 and the receiver 401 and transmitter 403. The receiver 401 and the transmitter 403 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 402 is responsible for managing the bus 400 and general processing, while the memory 404 may be used for storing data used by the processor 402 in performing operations.
In a fourth aspect, based on the inventive concept based on the declared-document generating method in the foregoing embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of any one of the methods based on the declared-document generating method described above.
The description has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (16)

1. A method of generating a declared document, the method comprising:
acquiring N declaration element tables corresponding to N transactions of cross-border foreign exchange payment business performed by a target payment mechanism on the previous working day, wherein N is a positive integer;
determining declaration information corresponding to the target declaration type in the N declaration element tables according to the target declaration type, wherein the declaration information comprises declaration amount;
and generating a target declaration file according to the declaration information and a preset file format corresponding to the target declaration type.
2. The declaration file generation method of claim 1, the method further comprising:
and generating a declaration element table corresponding to each transaction according to the transaction details of each transaction in the N transactions and a preset declaration element table format, and generating N declaration element tables in total.
3. The declaration document generation method of claim 1, wherein when the target declaration type is a centralized declaration, the determining declaration information corresponding to the target declaration type in the N declaration element tables according to the target declaration type includes:
determining a transaction amount in each of the N declaration element tables;
and (4) rolling and summarizing the transaction amount in each declaration element table to obtain a rolling result as a centralized declaration amount.
4. The declaration document generation method of claim 1, wherein when the target declaration type is a restoration declaration, the determining, in the N declaration element tables, declaration information corresponding to the target declaration type according to the target declaration type includes:
determining a transaction amount in each of the N declaration element tables;
according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a first threshold value to obtain more than one rolling result, and using the rolling results as first type reduction declaration amounts of the reduction declaration;
and taking more than one transaction amount of which the transaction amount is greater than or equal to the first threshold value as a second type of reduction declaration amount of the reduction declaration.
5. The declaration document generation method of claim 1, wherein when the target declaration type is a forward service declaration, the determining, according to the target declaration type, declaration information corresponding to the target declaration type in the N declaration element tables includes:
k reporting element tables corresponding to forward transactions are determined in the N reporting element tables, wherein the forward transactions are payment transactions, and K is a positive integer;
determining a transaction amount in each of the K declaration element tables;
according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a second threshold value to obtain more than one rolling result, wherein the rolling result is used as a first type of forward service declaration amount for the forward service declaration;
and taking more than one transaction amount of which the transaction amount is greater than or equal to the second threshold value as a second type forward service declaration amount of the forward service declaration.
6. The declaration document generation method of claim 1, wherein when the target declaration type is a reverse service declaration, determining declaration information corresponding to the target declaration type in the N declaration element tables according to the target declaration type, includes:
s declaration element tables corresponding to reverse transactions are determined in the N declaration element tables, wherein the reverse transactions are refund transactions, and S is a positive integer;
determining a transaction amount in each declaration element table of the S declaration element tables;
according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a third threshold value to obtain more than one rolling result, wherein the rolling result is used as a first type of reverse service declaration amount of the reverse service declaration;
and taking more than one transaction amount of which the transaction amount is greater than or equal to the third threshold value as a second type of reverse business declaration amount of the reverse business declaration.
7. The declaration file generating method of claim 4, wherein generating the target declaration file according to the declaration information and a preset file format corresponding to the target declaration type includes:
generating first-class restoration declaration information according to the first-class restoration declaration amount and a first preset file format for restoration declaration on the name of the target payment mechanism;
generating second type reduction declaration information according to the second type reduction declaration amount and a second preset file format for reduction declaration under the name of the user;
the first type of recovery declaration information and the second type of recovery declaration information form a recovery declaration file.
8. An apparatus for generating a declaration document, the apparatus comprising:
the system comprises an acquisition module, a transaction module and a processing module, wherein the acquisition module is used for acquiring N declaration element tables corresponding to N transactions of cross-border foreign exchange payment business performed by a target payment mechanism on the previous working day, and N is a positive integer;
the processing module is used for determining declaration information corresponding to the target declaration type in the N declaration element tables according to the target declaration type, wherein the declaration information comprises declaration amount;
and the declaration file generating module is used for generating a target declaration file according to the declaration information and a preset file format corresponding to the target declaration type.
9. The claim file generating apparatus of claim 8, the apparatus further comprising:
and the declaration element table generating module is used for generating a declaration element table corresponding to each transaction according to the transaction details of each transaction in the N transactions and a preset declaration element table format, and generating N declaration element tables in total.
10. The declaration file generating apparatus of claim 8, wherein when the target declaration type is centralized declaration, the processing module is configured to:
determining a transaction amount in each of the N declaration element tables;
and (4) rolling and summarizing the transaction amount in each declaration element table to obtain a rolling result as a centralized declaration amount.
11. The declaration file generating apparatus of claim 8, wherein when the target declaration type is a restoration declaration, the processing module is configured to:
determining a transaction amount in each of the N declaration element tables;
according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and the transaction amounts smaller than a first threshold value to obtain more than one rolling result, and taking the rolling result as a first type of reduction declaration amount of the reduction declaration;
and taking more than one transaction amount of which the transaction amount is greater than or equal to the first threshold value as a second type of reduction declaration amount of the reduction declaration.
12. The declaration file generating apparatus of claim 8, wherein when the target declaration type is a forward service declaration, the processing module is configured to:
k reporting element tables corresponding to forward transactions are determined in the N reporting element tables, wherein the forward transactions are payment transactions, and K is a positive integer;
determining a transaction amount in each declaration element table of the K declaration element tables;
according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a second threshold value to obtain more than one rolling result, wherein the rolling result is used as a first type of forward service declaration amount for the forward service declaration;
and the forward business declaration amount is more than one transaction amount which is larger than or equal to the second threshold value and is used as a second type of forward business declaration amount of the forward business declaration.
13. The declaration file generating apparatus of claim 8, wherein when the target declaration type is a reverse business declaration, the processing module is configured to:
s declaration element tables corresponding to reverse transactions are determined in the N declaration element tables, wherein the reverse transactions are refund transactions, and S is a positive integer;
determining a transaction amount in each declaration element table of the S declaration element tables;
according to the transaction codes in each declaration element table, carrying out rolling summary on the transaction amounts with the same transaction codes and smaller than a third threshold value to obtain more than one rolling result, wherein the rolling result is used as a first type of reverse service declaration amount of the reverse service declaration;
and taking more than one transaction amount of which the transaction amount is greater than or equal to the third threshold value as a second type of reverse business declaration amount of the reverse business declaration.
14. The declaration document generation apparatus of claim 11, wherein the declaration document generation module is configured to:
generating first-class restoration declaration information according to the first-class restoration declaration amount and a first preset file format for restoration declaration on the name of the target payment mechanism;
generating second type reduction declaration information according to the second type reduction declaration amount and a second preset file format for reduction declaration under the name of the user;
the first type of recovery declaration information and the second type of recovery declaration information form a recovery declaration file.
15. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 7 when the program is executed.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201811141611.2A 2018-09-28 2018-09-28 Declaration file generation method, declaration file generation device, server and readable storage medium Active CN109583826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811141611.2A CN109583826B (en) 2018-09-28 2018-09-28 Declaration file generation method, declaration file generation device, server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811141611.2A CN109583826B (en) 2018-09-28 2018-09-28 Declaration file generation method, declaration file generation device, server and readable storage medium

Publications (2)

Publication Number Publication Date
CN109583826A CN109583826A (en) 2019-04-05
CN109583826B true CN109583826B (en) 2022-09-13

Family

ID=65919944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811141611.2A Active CN109583826B (en) 2018-09-28 2018-09-28 Declaration file generation method, declaration file generation device, server and readable storage medium

Country Status (1)

Country Link
CN (1) CN109583826B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062689B (en) * 2019-12-16 2024-01-09 中国建设银行股份有限公司 Method and device for processing cross-border service of RMB
CN111292051B (en) * 2020-01-13 2023-09-29 中国建设银行股份有限公司 Foreign exchange business processing method, device, equipment and medium
CN111369253A (en) * 2020-03-18 2020-07-03 中国建设银行股份有限公司 Foreign exchange service declaration method, device, equipment and storage medium

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1229492A (en) * 1996-05-15 1999-09-22 克劳斯麻尔股份有限公司 Method and system for performing automated financial transaetions involving foreign currencies
JP2001338144A (en) * 2000-05-26 2001-12-07 Masao Ishida Basic data tabulation system for declaration of stock transfer profit by utilizing web
CN1534526A (en) * 2003-03-29 2004-10-06 鸿富锦精密工业(深圳)有限公司 EDI apply custom management declare system and method
CN1797463A (en) * 2004-12-30 2006-07-05 干学平 Marketing method and system for generating multiple transaction values
CN101404104A (en) * 2008-11-03 2009-04-08 田小平 Electronic invoice and taxation expropriation and management system and method
KR20090124457A (en) * 2008-05-30 2009-12-03 김용일 A network system for acting declaration service of foreign exchange by edi
CN101699506A (en) * 2008-11-03 2010-04-28 田小平 Electronic invoice and generating device thereof, tax expropriation and management system and method thereof
TW201329881A (en) * 2012-01-09 2013-07-16 E Sun Commercial Bank Ltd Cross boarder network transaction system and method
CN103208066A (en) * 2012-01-17 2013-07-17 玉山商业银行股份有限公司 Border-crossed type network transaction system and transaction method thereof
CN105225148A (en) * 2015-11-11 2016-01-06 中国建设银行股份有限公司 A kind of foreign exchange funds management system
CN105512939A (en) * 2015-12-04 2016-04-20 中国建设银行股份有限公司 Foreign exchange transaction-related data storage and query method, declaration method and system
WO2016070803A1 (en) * 2014-11-06 2016-05-12 朱锐泷 Cross-border payment and clearing system and cross-border payment method based on digital currency
CN106447484A (en) * 2016-09-29 2017-02-22 山东浪潮商用系统有限公司 Self-help tax payment system and self-help tax payment method
CN106910065A (en) * 2016-06-16 2017-06-30 阿里巴巴集团控股有限公司 Data processing method, the apparatus and system of the settlement of exchange amount of money are calculated based on many transactions
TWM553028U (en) * 2017-05-25 2017-12-11 國泰人壽保險股份有限公司 Investment transaction reporting system
CN107464194A (en) * 2017-09-21 2017-12-12 合肥集知网知识产权运营有限公司 A kind of big data patent management system based on Apriori data mining algorithms
CN107886428A (en) * 2017-11-08 2018-04-06 中国银行股份有限公司 A kind of method and payment clearance system for determining to pay clearing rate
CN108090753A (en) * 2016-11-22 2018-05-29 银联国际有限公司 A kind of finance data processing system and whole world speed remittance system and method
CN108492177A (en) * 2018-02-07 2018-09-04 深圳前海金融资产交易所有限公司 Domestic assets cross-border transaction method, server and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004094932A (en) * 2002-08-09 2004-03-25 Matsushita Electric Ind Co Ltd Communication terminal device and information processor of pay-back system
EP1656637A4 (en) * 2003-06-27 2006-10-18 Bear Stearns & Co Inc Method and system for initiating pairs trading across multiple markets having automatic foreign exchange price hedge

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1229492A (en) * 1996-05-15 1999-09-22 克劳斯麻尔股份有限公司 Method and system for performing automated financial transaetions involving foreign currencies
JP2001338144A (en) * 2000-05-26 2001-12-07 Masao Ishida Basic data tabulation system for declaration of stock transfer profit by utilizing web
CN1534526A (en) * 2003-03-29 2004-10-06 鸿富锦精密工业(深圳)有限公司 EDI apply custom management declare system and method
CN1797463A (en) * 2004-12-30 2006-07-05 干学平 Marketing method and system for generating multiple transaction values
KR20090124457A (en) * 2008-05-30 2009-12-03 김용일 A network system for acting declaration service of foreign exchange by edi
CN101404104A (en) * 2008-11-03 2009-04-08 田小平 Electronic invoice and taxation expropriation and management system and method
CN101699506A (en) * 2008-11-03 2010-04-28 田小平 Electronic invoice and generating device thereof, tax expropriation and management system and method thereof
TW201329881A (en) * 2012-01-09 2013-07-16 E Sun Commercial Bank Ltd Cross boarder network transaction system and method
CN103208066A (en) * 2012-01-17 2013-07-17 玉山商业银行股份有限公司 Border-crossed type network transaction system and transaction method thereof
WO2016070803A1 (en) * 2014-11-06 2016-05-12 朱锐泷 Cross-border payment and clearing system and cross-border payment method based on digital currency
CN105225148A (en) * 2015-11-11 2016-01-06 中国建设银行股份有限公司 A kind of foreign exchange funds management system
CN105512939A (en) * 2015-12-04 2016-04-20 中国建设银行股份有限公司 Foreign exchange transaction-related data storage and query method, declaration method and system
CN106910065A (en) * 2016-06-16 2017-06-30 阿里巴巴集团控股有限公司 Data processing method, the apparatus and system of the settlement of exchange amount of money are calculated based on many transactions
CN106447484A (en) * 2016-09-29 2017-02-22 山东浪潮商用系统有限公司 Self-help tax payment system and self-help tax payment method
CN108090753A (en) * 2016-11-22 2018-05-29 银联国际有限公司 A kind of finance data processing system and whole world speed remittance system and method
TWM553028U (en) * 2017-05-25 2017-12-11 國泰人壽保險股份有限公司 Investment transaction reporting system
CN107464194A (en) * 2017-09-21 2017-12-12 合肥集知网知识产权运营有限公司 A kind of big data patent management system based on Apriori data mining algorithms
CN107886428A (en) * 2017-11-08 2018-04-06 中国银行股份有限公司 A kind of method and payment clearance system for determining to pay clearing rate
CN108492177A (en) * 2018-02-07 2018-09-04 深圳前海金融资产交易所有限公司 Domestic assets cross-border transaction method, server and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
外汇收支交易编码标准及国际收支申报业务相关标准;国家外汇管理局;《中国金融电脑》;20040615(第06期);第27页 *
网上跨境支付外汇管理问题研究;王大贤 等;《南方金融》;20090820(第08期);第47-49页 *

Also Published As

Publication number Publication date
CN109583826A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109242261B (en) Method for evaluating security risk based on big data and terminal equipment
CN109583826B (en) Declaration file generation method, declaration file generation device, server and readable storage medium
US20230071328A1 (en) Mapping consumer ownership of financial assets to geographic localities and computer-implemented methods and computer systems thereof
CN107798592B (en) Method and apparatus for calculating commission
CN114365169A (en) Method and device for analyzing encrypted currency transaction
CN110428244B (en) Package recommendation method and device
US20230419323A1 (en) Systems and methods for routing electronic transactions using network simulation and forecasting
CN112465601A (en) Electronic order generation method and device and storage medium
CN106056418A (en) Invoice submission method, device and system
CN109165947B (en) Account information determination method and device and server
CN111367904A (en) Service processing method and device and server
CN117057795A (en) Account number-based account transfer method, device and equipment
CN115544991A (en) Report generation method, device, equipment, medium and program product
CN110348983A (en) Transaction Information management method and device, electronic equipment and non-transient storage media
CN106815290B (en) Method and device for determining attribution of bank card based on graph mining
CN106156185A (en) A kind of service request performs the querying method of state, Apparatus and system
CN115170017A (en) Waybill processing method and device and storage medium
CN114971637A (en) Risk early warning method, device, equipment and medium
CN112651632A (en) Information analysis processing method and device based on marketing data
Castro et al. Fixed export costs and firm-level export behavior
CN111105154A (en) Stock market operation risk assessment method and device, electronic equipment and storage medium
US20150149334A1 (en) Transfer Pricing Systems and Methods
CN114511318A (en) Account accounting method and device and electronic equipment
CN108256719B (en) Resource processing system and method
CN114387045A (en) Bill generation method and device, computer equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201010

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201010

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant