CN-122023046-A - Tax system automatic interaction method and system based on interface integration
Abstract
The invention provides an interface integration-based tax system automatic interaction method and system, which are used for interfacing open interfaces of related systems such as an enterprise financial system, an enterprise business management system and the like and collecting original business data such as accounting record data, invoice issuing data, business contract data and the like. And then, calling an interface adaptation module to perform interface protocol conversion and data structure adaptation on the original service data, and generating standardized service data. And then carrying out service scene matching and interaction demand recognition through an artificial intelligent interaction analysis module to generate an automatic interaction instruction set. And executing data interaction operation according to the instruction set control tax system and the enterprise association system, and generating an interaction process log. And finally, based on log analysis execution conditions, outputting an interaction completion report and pushing the interaction completion report to a management end. The invention realizes the efficient and automatic interaction of the tax system and the enterprise association system, and improves the tax processing efficiency and accuracy.
Inventors
- LUO YETENG
- YANG LEI
- LIU BAOWEI
- LI BINGWEI
- XU YONGKE
- WANG LIJIN
Assignees
- 广东省广播电视网络股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260203
Claims (10)
- 1. An interface integration-based tax system automation interaction method is characterized by comprising the following steps: the method comprises the steps of interfacing an open interface of an enterprise association system, and collecting original business data related to tax processing in the enterprise association system, wherein the enterprise association system comprises an enterprise financial system and an enterprise business management system, and the original business data comprises accounting record data, invoice issuing data and business contract data; Calling an interface adaptation module to perform interface protocol conversion and data structure adaptation processing on the original service data to generate standardized service data conforming to tax system data specifications, wherein the interface adaptation module is internally provided with a tax system interface protocol template and a data structure mapping rule; carrying out service scene matching and interaction demand recognition on the standardized service data through an artificial intelligent interaction analysis module to generate an automatic interaction instruction set of a tax system and an enterprise association system, wherein the automatic interaction instruction set comprises a data transmission instruction, a flow triggering instruction and a feedback response instruction; executing data interaction operation through an integrated interface according to the automatic interaction instruction set control tax system and the enterprise association system, and synchronously generating an interaction process log, wherein the interaction process log comprises an instruction execution state, data transmission content and time node information; And analyzing the execution condition of automatic interaction operation based on the interaction process log, outputting an interaction completion report containing an analysis result, and respectively pushing the interaction completion report to the tax system management end and the enterprise association system management end.
- 2. The automated tax system interaction method based on interface integration of claim 1, wherein the interfacing with the open interface of the enterprise association system collects raw business data related to tax processing in the enterprise association system, the enterprise association system including an enterprise financial system and an enterprise business management system, the raw business data including accounting record data, invoice issue data, and business contract data, comprises: the method comprises the steps of scanning available system interfaces in an enterprise internal network environment through an interface detection unit, and identifying system identifiers and interface types corresponding to the interfaces, wherein the interface types comprise a data transmission interface and an instruction interaction interface; an interface authorization request is sent to a management terminal of an enterprise association system, an authorization credential containing an interface access key and data reading authority is obtained, and the authorization credential carries preset effective duration information; accessing an open interface of an enterprise financial system by using an authorization certificate, and extracting accounting record data in the financial system according to a preset data acquisition period, wherein the accounting record data comprises subject codes, occurrence amount and business abstract information; Collecting invoice issuing data and business contract data through an open interface of an enterprise business management system, wherein the invoice issuing data comprises invoice codes, purchaser information and tax payment item details, and the business contract data comprises contract numbers, transaction amounts and tax obligation occurrence time; And classifying and summarizing the acquired accounting record data, invoice issuing data and business contract data to generate an original business data set with a system source identifier, wherein the source of the system source identifier marking data is an enterprise financial system or an enterprise business management system.
- 3. The automated tax system interaction method based on interface integration according to claim 1, wherein the calling interface adaptation module performs interface protocol conversion and data structure adaptation processing on the original service data to generate standardized service data conforming to the tax system data specification, and the interface adaptation module has built-in tax system interface protocol templates and data structure mapping rules, and comprises: inputting the original business data into a protocol analysis unit of an interface adaptation module, and identifying an interface protocol type carried by the original business data, wherein the interface protocol type and an interface type of an enterprise association system form a corresponding relation; calling a tax system interface protocol template built in the interface adaptation module, performing protocol field conversion on the original service data, and mapping fields of different protocol types into standard protocol fields supported by the tax system interface; Starting a data structure adapting unit, carrying out data format adjustment on service data after protocol conversion according to a built-in data structure mapping rule, converting unstructured service abstract information into a structured text, and unifying date data in different formats into a standard date format required by a tax system; Performing field supplementing operation on the business data with the data format adjusted, and supplementing missing necessary tax fields, wherein the necessary tax fields comprise tax payer category codes and item codes obtained by tax application; And eliminating repeated records and invalid data in the service data through the data cleaning unit to generate standardized service data conforming to the tax system data specification.
- 4. The automated interaction method of tax system based on interface integration according to claim 1, wherein the performing, by the artificial intelligent interaction analysis module, service scene matching and interaction requirement recognition on the standardized service data generates an automated interaction instruction set of the tax system and the enterprise association system, the automated interaction instruction set including a data transmission instruction, a flow triggering instruction, and a feedback response instruction, and the method comprises: Inputting standardized service data into a scene recognition sub-module of the artificial intelligent interaction analysis module, and extracting service feature keywords in the data, wherein the service feature keywords comprise invoice types, transaction types and accounting processing modes; Based on the correlation comparison of the business feature keywords and the built-in tax business scene feature set, determining a corresponding target tax business scene, wherein the tax business scene feature set covers the feature information of a value-added tax declaration scene, a tax pre-payment scene obtained by enterprises and an invoice authentication scene; invoking a demand analysis sub-module to carry out process disassembly on the target tax service scene, identifying interaction nodes between the tax system and the enterprise association system, and refining the data demand content and the operation demand content of each interaction node; Generating a data transmission instruction according to the data demand content, wherein the data transmission instruction marks the direction, the content and the priority of data transmission, and generating a flow triggering instruction according to the operation demand content, wherein the flow triggering instruction is used for starting a reporting flow of a tax system or a voucher generating flow of an enterprise association system; And designing a feedback response instruction, wherein the feedback response instruction is used for receiving and transmitting operation result information between the tax system and the enterprise association system, and sequencing the data transmission instruction, the flow triggering instruction and the feedback response instruction according to the interaction time sequence to generate an automatic interaction instruction set.
- 5. The automated tax system interaction method based on interface integration according to claim 1, wherein the controlling tax system according to the automated interaction instruction set and the enterprise association system perform data interaction operation through the integrated interface, and synchronously generate an interaction process log, wherein the interaction process log includes an instruction execution state, data transmission content and time node information, and the method comprises the steps of: analyzing an automatic interaction instruction set, extracting a first automatic interaction instruction to be executed according to an instruction time sequence, and determining an execution subject system and a target receiving system corresponding to the extracted first automatic interaction instruction to be executed, wherein the execution subject system is a tax system or an enterprise association system; Controlling an execution main body system corresponding to the extracted first automatic interaction instruction to be executed to transmit service data corresponding to the extracted first automatic interaction instruction to be executed to a target receiving system through an integrated interface, and simultaneously recording a starting time node of data transmission and complete content of transmission data; Receiving an execution result of the extracted first to-be-executed automatic interaction instruction returned by the target receiving system, wherein the execution result of the extracted first to-be-executed automatic interaction instruction comprises an execution success mark or an execution failure reason, and recording a time node and execution state information of the completion of the execution of the extracted first to-be-executed automatic interaction instruction; according to the operation modes of controlling the execution main body system corresponding to the first to-be-executed automatic interaction instruction to transmit data, receiving response and recording information, sequentially executing all instructions in the automatic interaction instruction set, and recording the execution main body system, the target receiving system, the starting time node, the finishing time node, the execution state and the transmission data content of each instruction one by one; and carrying out structural arrangement on the recorded information to generate an interaction process log with an instruction number and an interaction batch identifier, wherein the interaction batch identifier is used for uniquely identifying the automatic interaction flow.
- 6. The automated interaction method of tax system based on interface integration according to claim 1, wherein analyzing the execution of the automated interaction operation based on the interaction process log, outputting an interaction completion report including the analysis result, and pushing the interaction completion report to the tax system management side and the enterprise associated system management side, respectively, comprises: Extracting the total number of instructions and expected execution results of the instructions in the automatic interaction instruction set, and taking the extracted information as baseline reference information for analyzing the execution condition of the automatic interaction operation; counting the number of executed instructions recorded in an interaction process log, comparing the numerical relation between the number of executed instructions and the total number of instructions, and positioning the non-executed automatic interaction instructions; Checking the execution state of each executed instruction, screening out instructions with execution failure, sorting out instruction numbers with the execution failure and corresponding failure reasons, and performing association analysis on association relation between the failure reasons of the instructions with the execution failure and interface connection or data formats; Comparing the transmission data content of the instruction which is successfully executed with the corresponding content in the standardized service data, and verifying the integrity and consistency of the data in the interaction process; And generating an interaction completion report by integrating the contents of instruction execution integrity analysis, failure instruction arrangement and data consistency verification, wherein the interaction completion report comprises instruction execution integrity conclusion, failure instruction details and data consistency analysis results, respectively pushing the interaction completion report to a tax system management end and an enterprise associated system management end through an encryption channel, and simultaneously storing the interaction completion report in an interaction log module of the two systems.
- 7. The automated tax system interaction method based on interface integration of claim 2, wherein the collecting of invoice issuing data and business contract data through the open interface of the business management system, the invoice issuing data including invoice codes, buyer information and tax payment item details, the business contract data including contract numbers, transaction amounts and tax obligations occurrence times, comprises: Establishing long connection with an invoice management module interface of an enterprise business management system, sending an invoice data query request, wherein the query request carries an authorization credential and a preset query time range; Receiving an invoice issuing data list returned by the enterprise business management system, analyzing invoice records in the list one by one, and extracting an invoice code, an invoice number, a buyer name, a buyer tax payer identification number and a tax-chargeable item detail, wherein the tax-chargeable item detail comprises an item name, a tax rate and a tax amount; disconnecting the interface with the invoice management module, accessing the interface of the contract management module of the enterprise business management system, submitting a contract data acquisition request, and noting that business contract data containing tax liability related information needs to be returned in the acquisition request; Analyzing the collected business contract data, and extracting contract number, contract name, transaction side information, transaction amount, transaction content and tax liability occurrence time, wherein the transaction side information comprises seller name and purchaser name; And performing association matching on the extracted invoice issuing data and the service contract data according to the invoice code and the contract number to generate an association data mark, wherein the generated association data mark enables the invoice issuing data and the service contract data corresponding to the same service to be mutually traced, so that complete service chain data is formed.
- 8. The automated interaction method of tax system based on interface integration according to claim 3, wherein the starting data structure adapting unit adjusts a data format of the service data after protocol conversion according to a built-in data structure mapping rule, converts unstructured service abstract information into a structured text, and unifies date data with different formats into a standard date format required by the tax system, and comprises: reading a data structure mapping rule built in the interface adaptation module, wherein the read data structure mapping rule built in the interface adaptation module prescribes the corresponding relation between the enterprise association system data field and the tax system data field and the data format requirement of each field; Identifying unstructured business abstract information in business data after protocol conversion, extracting keywords and carrying out semantic analysis on the unstructured business abstract information by adopting a natural language processing technology, and extracting core information related to tax processing, wherein the core information comprises business properties, transaction objects and amount description; according to a business abstract format specified by a tax system, organizing the extracted core information into a structured text, wherein the structured text can reflect tax association attributes of business; Traversing all date fields in the business data, and identifying different date formats, wherein the date formats comprise a year-month-day format, a month/day/year format and a Chinese date format; And calling a date format conversion tool to uniformly convert all date data in different formats into a standard date format required by the tax system, checking the validity of the date, and removing invalid date data which do not accord with logic, so that the adjusted data format accords with the data structure specification of the tax system.
- 9. The automated tax system interaction method based on interface integration of claim 4, wherein the call demand analysis sub-module performs process disassembly on the target tax service scene, identifies interaction nodes between the tax system and the enterprise association system, refines data demand content and operation demand content of each interaction node, and comprises: inputting the determined target tax service scene into a demand analysis submodule, wherein the demand analysis submodule for inputting the target tax service scene embeds a standard flow template of each tax service scene, and the standard flow template comprises flow steps, a participation system and operation specifications; Step disassembly is carried out on the target tax business scene according to the standard flow template, a plurality of continuous business processing links are divided, and each business processing link corresponds to one system interaction node; Aiming at each interactive node, analyzing the core task which needs to be completed by each interactive node, determining the data type and the data source which are needed by the execution of the core task which needs to be completed by each interactive node, extracting the specific content composition of the data requirement, wherein the data requirement comprises basic data and derivative data; Determining a system operation type required by executing the core task to be completed of each interaction node by combining the core task to be completed of each interaction node and the data requirement, wherein the system operation type comprises data inquiry, data submission, data verification and result feedback, and marking an execution main body and an operation time sequence of each operation; And carrying out association record on the node number, the data demand details and the operation demand details of each interaction node to form an interaction node demand list.
- 10. An interface integration-based tax system automation interaction system, comprising a processor and a memory, wherein the memory is connected with the processor, the memory is used for storing programs, instructions or codes, and the processor is used for executing the programs, instructions or codes in the memory so as to realize the interface integration-based tax system automation interaction method according to any one of claims 1-9.
Description
Tax system automatic interaction method and system based on interface integration Technical Field The invention relates to the field of artificial intelligence, in particular to an interface integration-based tax system automation interaction method and system. Background In the field of enterprise tax management, along with diversification and complicating of enterprise business, the data volume involved in tax processing is increasingly huge, and the sources are wide. Enterprises often have multiple associated systems, such as enterprise financial systems and enterprise business management systems, which each operate independently, storing various types of raw business data, such as accounting record data, invoice issue data, business contract data, etc., that are closely related to tax processes. However, the existing tax handling methods have a plurality of problems. On the one hand, the data formats and interface protocols of different associated systems are different, so that the data are difficult to integrate and interact directly, a large amount of data conversion and input work is needed manually, the efficiency is low, and data errors are easy to occur. On the other hand, the tax treatment flow is complicated, and involves interaction between a plurality of links and systems, and an automatic interaction mechanism is lacked, so that timeliness and accuracy of tax treatment are difficult to guarantee. In addition, in the data interaction process, effective logging and analysis means are lacked, the interaction operation is difficult to comprehensively monitor and evaluate, and once problems occur, quick positioning and solving are difficult. Thus, there is a need for a method that enables efficient, accurate, and automated interaction of tax systems with enterprise-related systems. Disclosure of Invention In view of the above-mentioned problems, in combination with the first aspect of the present invention, an embodiment of the present invention provides an interface integration-based tax system automation interaction method, where the method includes: the method comprises the steps of interfacing an open interface of an enterprise association system, and collecting original business data related to tax processing in the enterprise association system, wherein the enterprise association system comprises an enterprise financial system and an enterprise business management system, and the original business data comprises accounting record data, invoice issuing data and business contract data; Calling an interface adaptation module to perform interface protocol conversion and data structure adaptation processing on the original service data to generate standardized service data conforming to tax system data specifications, wherein the interface adaptation module is internally provided with a tax system interface protocol template and a data structure mapping rule; carrying out service scene matching and interaction demand recognition on the standardized service data through an artificial intelligent interaction analysis module to generate an automatic interaction instruction set of a tax system and an enterprise association system, wherein the automatic interaction instruction set comprises a data transmission instruction, a flow triggering instruction and a feedback response instruction; executing data interaction operation through an integrated interface according to the automatic interaction instruction set control tax system and the enterprise association system, and synchronously generating an interaction process log, wherein the interaction process log comprises an instruction execution state, data transmission content and time node information; And analyzing the execution condition of automatic interaction operation based on the interaction process log, outputting an interaction completion report containing an analysis result, and respectively pushing the interaction completion report to the tax system management end and the enterprise association system management end. In yet another aspect, an embodiment of the present invention further provides an interface integration-based tax system automation interaction system, including a processor, and a machine-readable storage medium, where the machine-readable storage medium is connected to the processor, and the machine-readable storage medium is used to store a program, an instruction, or a code, and the processor is used to execute the program, the instruction, or the code in the machine-readable storage medium, so as to implement the method described above. Based on the above aspects, the embodiment of the invention can widely collect various original business data in an enterprise financial system and an enterprise business management system by interfacing with the open interface of the enterprise association system, call the interface adaptation module to perform interface protocol conversion and data structure adaptation processing on the or