CN111667231B - Automatic tax return method, device, system, computer equipment and storage medium - Google Patents

Automatic tax return method, device, system, computer equipment and storage medium Download PDF

Info

Publication number
CN111667231B
CN111667231B CN202010341757.2A CN202010341757A CN111667231B CN 111667231 B CN111667231 B CN 111667231B CN 202010341757 A CN202010341757 A CN 202010341757A CN 111667231 B CN111667231 B CN 111667231B
Authority
CN
China
Prior art keywords
tax return
information
tax
operation flow
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
CN202010341757.2A
Other languages
Chinese (zh)
Other versions
CN111667231A (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.)
Nanjing Suning Yuncai Information Technology Co ltd
Original Assignee
Nanjing Suning Yuncai Information Technology 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 Nanjing Suning Yuncai Information Technology Co ltd filed Critical Nanjing Suning Yuncai Information Technology Co ltd
Priority to CN202010341757.2A priority Critical patent/CN111667231B/en
Publication of CN111667231A publication Critical patent/CN111667231A/en
Application granted granted Critical
Publication of CN111667231B publication Critical patent/CN111667231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • 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/10Tax strategies
    • 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/12Accounting
    • G06Q40/123Tax preparation or submission
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Abstract

The application relates to an automatic tax return method, a device, a system, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring configuration information of a target tax return task; acquiring tax return operation flow information of a target tax return task according to the configuration information, wherein the tax return operation flow information comprises a plurality of tax return operation flows; disassembling a plurality of tax return operation flows according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return operation flow; determining a host language of a tax return platform corresponding to the target tax return task; generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow; and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow. The method can realize automatic tax return and improve the data accuracy of the tax return process.

Description

Automatic tax return method, device, system, computer equipment and storage medium
Technical Field
The application relates to the technical field of financial tax return processing, in particular to an automatic tax return method, an automatic tax return device, an automatic tax return system, computer equipment and a storage medium.
Background
The tax declaration of the national tax administration website, the traditional tax declaration method in the field is as follows: and the financial staff logs in the local national tax website in the appointed tax return period for each month of enterprises to manually fill out the appointed tax item data in the enterprise in the current period one by one, and the tax return is carried out after the data are calibrated. This manual operation causes waste of financial staff's operating time and the burden of enterprise's human cost. And, the mode human factor of manual operation causes the condition such as financial data reporting mistake to take place.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an automated tax return method, apparatus, system, computer device, and storage medium that implement automated tax returns and improve the accuracy of tax return process data.
An automated tax return method, the method comprising: acquiring configuration information of a target tax return task; acquiring tax return operation flow information of a target tax return task according to the configuration information, wherein the tax return operation flow information comprises a plurality of tax return operation flows; disassembling a plurality of tax return operation flows according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return operation flow; determining a host language of a tax return platform corresponding to the target tax return task; generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow; and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow.
In one embodiment, the configuration information includes a tax type of a target tax return task and a tax return corresponding to the tax type, and the obtaining of tax return operation flow information of the target tax return task according to the configuration information includes: determining target tax return flow information of a target tax return task according to tax types; and screening a plurality of tax return operation flows in the tax return operation flow information from the target tax return flow information according to the tax return.
In one embodiment, the tax types are multiple, and the configuration information further comprises scheduling information of the tax types; determining target tax return flow information of a target tax return task according to tax types, and screening a plurality of tax return operation flows in the tax return operation flow information from the target tax return flow information according to a tax return report, wherein the method comprises the following steps: determining target tax return flow information corresponding to each tax type according to each tax, and screening a plurality of tax return operation flows corresponding to each tax from the target tax return flow information corresponding to each tax according to the tax return corresponding to each tax type; reading the execution action information in each tax return operation flow, and generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow, wherein the execution instruction comprises: reading the execution action information in each tax return operation flow in each tax, and generating the execution instruction corresponding to each tax return operation flow in each tax according to the host language and the execution action information in each tax return operation flow in each tax; the automatic tax return of the target tax return task is executed according to the execution instruction corresponding to each tax return operation flow, which comprises the following steps: determining the execution sequence of each tax according to the scheduling information of a plurality of tax types, and executing the automatic tax return of the target tax return task according to the execution sequence and the execution instruction corresponding to each tax return operation flow in each tax type.
In one embodiment, the plurality of tax return operation flows include a login operation flow, a form filling operation flow and an exit operation flow, and the plurality of tax return operation flows are disassembled according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return operation flow, including: disassembling a plurality of tax return operation flows according to a preset grammar rule to obtain a login operation flow, a form filling operation flow and an exit operation flow; extracting first execution action information from a login operation flow according to a preset semantic rule, wherein the first execution action information comprises a plurality of login execution actions; extracting second execution action information from the form filling operation flow according to a preset semantic rule, wherein the second execution action information comprises a plurality of form filling execution actions; extracting third execution action information from the exit operation flow according to a preset semantic rule, wherein the third execution action information comprises a plurality of exit execution actions; generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow, wherein the execution instruction comprises: generating a first execution instruction according to the host language and a plurality of login execution actions in the first execution action information; generating a second execution instruction according to the host language and a plurality of form filling execution actions in the second execution action information; generating a third execution instruction according to the host language and a plurality of exit execution actions in the third execution action information; the automatic tax return of the target tax return task is executed according to the execution instruction corresponding to each tax return operation flow, which comprises the following steps: and executing the login operation in the target tax return task according to the first execution instruction, executing the form filling operation in the target tax return task according to the second execution instruction, and executing the exit operation in the target tax return task according to the third execution instruction so as to complete the automatic tax return of the target tax return task.
In one embodiment, the automated tax return method further comprises: acquiring data information corresponding to each parameter in each tax return operation flow; the automatic tax return of the target tax return task is executed according to the execution instruction corresponding to each tax return operation flow, which comprises the following steps: and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow.
In one embodiment, each parameter in each tax return operation flow comprises a web page element positioning parameter of the tax return platform and a value parameter corresponding to the web page element positioning parameter; the automatic tax return of the target tax return task is executed according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow, and the automatic tax return method comprises the following steps: acquiring first data information corresponding to the webpage element positioning parameters and second data information corresponding to the value parameters; determining the position of a webpage element in the tax return platform according to the first data information, and determining a form filling data value according to the second data information; filling the form filling data value into the web page element position according to the execution instruction corresponding to each tax return operation flow so as to complete the automatic tax return of the target tax return task.
An automated tax return apparatus, the apparatus comprising: the first acquisition module is used for acquiring configuration information of a target tax return task; the second acquisition module is used for acquiring tax return operation flow information of the target tax return task according to the configuration information, wherein the tax return operation flow information comprises a plurality of tax return operation flows; the disassembly module is used for disassembling the tax return operation flows according to the preset semantic rules and the preset grammar rules to obtain execution action information in each tax return operation flow; the determining module is used for determining the host language of the tax return platform corresponding to the target tax return task; the generation module is used for generating execution instructions corresponding to the tax return operation flows according to the host language and the execution action information in the tax return operation flows; and the tax return module is used for executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow.
An automatic tax return system comprises a storage device, a configuration device and a tax return device; the storage device is used for storing tax return operation flow information of the target tax return task, wherein the tax return operation flow information comprises a plurality of tax return operation flows; the configuration equipment is used for generating configuration information of the target tax return task; the tax return equipment acquires configuration information of the target tax return task from the configuration equipment, acquires a plurality of tax return operation flows of tax return operation flow information of the target tax return task from the storage equipment according to the configuration information, disassembles the plurality of tax return operation flows according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return operation flow, determines a host language of a tax return platform corresponding to the target tax return task, generates execution instructions corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow, and executes automation tax return of the target tax return task according to the execution instructions corresponding to each tax return operation flow.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods of the embodiments described above when the computer program is executed by the processor.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the embodiments described above.
According to the automatic tax return method, device, system, computer equipment and storage medium, the tax return operation flow information of the target tax return task is obtained according to the configuration information by obtaining the configuration information of the target tax return task, and the tax return operation flow information comprises a plurality of tax return operation flows. Further, the tax return operation flows are disassembled according to the preset semantic rules and the preset grammar rules, and execution action information in each tax return operation flow is obtained; determining a host language of a tax return platform corresponding to the target tax return task, and generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow. Finally, executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow. Therefore, the execution action information in each tax return operation flow corresponding to the target tax return task is generated into the identifiable execution instruction of the tax return platform through the host language of the tax return platform, so that the tax return platform can identify the execution action information in each tax return operation flow, and the automatic tax return of the target tax return task can be executed according to the execution instruction. In addition, since the tax return operation flow information of the target tax return task is automatically acquired through the configuration information, and the tax return task is automatically executed according to the tax return operation flow information of the target tax return task, the input error caused by tax return in a manual filling mode is avoided, and the data accuracy of the tax return process is improved.
Drawings
FIG. 1 is a diagram of an application environment for an automated tax return method, in one embodiment;
FIG. 2 is a flow chart of an automated tax return method according to one embodiment;
FIG. 3 is a diagram of a visual interface display of configuration information in another embodiment;
FIG. 4 is a schematic diagram of a flow template table corresponding to tax reporting operation flow information in one embodiment;
FIG. 5 is a schematic diagram of a form template table corresponding to tax reporting operation flow information in one embodiment;
FIG. 6 is a schematic diagram of a system architecture for implementing an automated tax return method in one embodiment;
FIG. 7 is a flow chart illustrating an automated tax return method implemented by the system architecture of FIG. 6;
FIG. 8 is a process flow diagram of a template processing engine in the system architecture of FIG. 6;
FIG. 9 is a process flow diagram of a flow processing engine in the system architecture of FIG. 6;
FIG. 10 is a process flow diagram of an action processing engine in the system architecture of FIG. 6;
FIG. 11 is a flow chart of an automated tax return method according to another embodiment;
FIG. 12 is a diagram of a display interface on a tax reporting platform, in one embodiment;
FIG. 13 is a block diagram of an automated tax return apparatus in one embodiment;
fig. 14 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The automatic tax return method provided by the application is applied to an automatic tax return system shown in fig. 1. As shown in fig. 1, the automated tax return system 100 includes a storage device 102, a configuration device 104, and a tax return device 106. The storage device 102 is used for storing tax return operation flow information of a target tax return task. Wherein, the tax return operation flow information comprises a plurality of tax return operation flows. Tax return operational flow information for a target tax return task in storage device 102 may be uploaded by user 302 to server 306 via terminal device 304 for storage in storage device 102 via server 306. The tax return operation flow information of the target tax return task may be tax return operation flow information formed by natural language input to the terminal device 304 by the user 302. The configuration device 104 is configured to generate configuration information for the target tax return task. The configuration information in the configuration device 104 may be configuration information generated by the configuration device 104 according to configuration data uploaded to the configuration device 104 by the user 202 through the terminal device 204. That is, the configuration information in the configuration device 104 may be configured manually. Finally, the tax return apparatus 106 obtains configuration information of the target tax return task from the configuration apparatus 104, obtains a plurality of tax return operation flows of tax return operation flow information of the target tax return task from the storage apparatus 102 according to the configuration information, disassembles the plurality of tax return operation flows according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return operation flow, determines a host language of a tax return platform corresponding to the target tax return task, generates execution instructions corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow, and executes automation of the target tax return task according to the execution instructions corresponding to each tax return operation flow. Wherein, the tax return apparatus 106 may also perform automated tax returns in the tax return platform 500 via the host language analyzer 400. The host language parser 400 may be a Python parser. Therefore, the automatic tax return of the target tax return task can be realized.
The application provides an automatic tax return method which is applied to tax return equipment shown in figure 1. As shown in fig. 2, the automated tax return method includes the steps of:
s102, acquiring configuration information of a target tax return task.
In this embodiment, the tax return apparatus reads configuration information of the target tax return task. The configuration information of the target tax return task defines flow control information for executing the target tax return task, wherein the flow control information comprises preset parameter information of a tax return flow of the target tax return task. The preset parameter information may be key parameter information of the tax return. For example, as shown in fig. 3, the configuration information of the tax return task is displayed through a visual interface, and the configuration information of the target tax return task is determined by manually checking or manually inputting in the visual interface. The configuration information of the target tax return task may include a login user name, a password, a tax return, a region, a financial statement, etc. of the tax return website. As shown in FIG. 3, based on the visual configuration menu interface provided by the RPA graphic designer, key parameter information of the configurable target tax return task, such as the affiliated region, the tax payer identification number, the tax return option menu and the like, can be intuitively seen. Wherein, the user name and the password are: the user logs in the account number and the password of the tax return website. The tax return is as follows: and declaring a tax form corresponding to the tax type. The region is: the tax pays the tax and selects the corresponding area, and all areas provide options at present. The data file is: the tax declaration financial statement filled in the current period or the compressed files of a plurality of declaration statements.
S104, acquiring tax return operation flow information of the target tax return task according to the configuration information, wherein the tax return operation flow information comprises a plurality of tax return operation flows.
In this embodiment, after determining the configuration information of the target tax return task, the tax return device obtains the tax return operation flow information of the target tax return task according to the configuration information. The tax return operation flow information of the target tax return task can be set manually and stored in the storage device in advance, or can be input externally in real time manually. Specifically, tax return operation flow information of the target tax return task can be defined by setting two template tables. The two template tables may include a flow template table and a form filling template table. The two template tables can define a unified typesetting format, but the tax return operation flow information defined by the template tables is different. The flow template table is used for defining operation flow information of 'tax return website login' and 'tax return page skip', and the form filling template table is used for defining operation flow information of core business logics such as 'positioning', 'value taking', 'value filling' and the like in tax type filling webpages.
Specifically, the grammar specifications of the two template forms are set so that a developer fills in the two template forms according to the grammar specifications, and accordingly tax return operation flow information of the corresponding target tax return task can be read from the two template forms by the tax return equipment. As shown with reference to fig. 4 and 5, the syntax specifications of the two template tables may be set as follows:
1) The typesetting format and the limiting rule of the form are preset in the template form.
2) The flow template table file defines the flow of ' tax return website login ' and ' tax return page skip ', and the file name is ' total. The form filling template forms define a tax return form filling flow, and file name users can customize and recommend to be consistent with tax type names. The table name of the two template tables defaults to "Sheet1".
3) The template table definition appears in pairs with the "Step" columns "start" and "end" to define a complete "flow". The value of the flow start line "sub-process" column is defined as the flow name and is a unique identification in the template table file. The Value of the "Value" column of the flow start line can be associated one-to-one with the menu in the configuration information correspondence table for menu selection matching.
4) Each line in the flow of the template form is a step, and the linearly arranged steps form a tax return business flow.
5) The value of the Action column in the step is an Action name, which is an Action supported in tax return equipment, and cannot be null; otherwise an error "action not supported" will be prompted. Actions beginning with "#" are considered to be interpreted as comments.
6) The value of the "Xpath" column in the "step" is a positioning information parameter, and is used for defining the positioning information of the web page element.
7) The Value of the Value column in the step is a Value information parameter, and is used for defining the Value of data.
As shown in fig. 4 and 5, english in the flow template table and the form filling template table means the following:
step, defining the start and end of the flow; the keywords "start" and "end" are defined.
Defining a unique identifier of a flow name; the flow name in the template table identifies forbidden renames.
Description for describing "step" information to help explain the current step.
Action defines an Action name, representing a business operation that can implement a specific function.
Xpath, defining the locating index of the webpage element, is a locating searching identification of the webpage element.
Value is the Value to be taken corresponding to the current action; the Value in the flow "start" line is associated with an external configuration, which may be used for a user to specify a flow to be executed through a menu selection before execution.
The flow template table defines two types of flows, namely 'tax return website login' and 'tax return page skip'. The process flow of returning the first page is additionally defined in the flow of the tax return page skip, and the Value limit in the flow starting line is marked by taking the tax type ending as a key word. The typesetting format defined by the form filling template table is the same as that in the flow template table, and only linear form filling steps are required to be defined.
Therefore, the tax return operation flow information of the target tax return task can be defined through the flow template table and the form filling template table. And a plurality of tax return operation flows of the tax return operation flow information are defined in the flow template table and the form filling template table.
S106, disassembling the tax return operation flows according to the preset semantic rules and the preset grammar rules to obtain execution action information in each tax return operation flow.
In this embodiment, preset semantic rules and preset grammar rules are preset in the tax return apparatus. The preset semantic rules are set according to tax return business processing logic. The preset semantic rules determine the execution actions in each tax return operation flow. The preset grammar rule is used for analyzing the tax return business flow, and the tax return business flow can be analyzed when the tax return operation flow accords with the preset grammar rule. The tax return equipment can disassemble a plurality of tax return flows according to a preset semantic rule and a preset grammar rule to obtain execution action information of specific tax returns.
For example, tax return operation flow information of the target tax return task is stored through a flow template table and a form filling template table, and a plurality of tax return operation flows are stored in the two tables according to preset semantic rules and preset grammar rules provided by tax return equipment. Therefore, the tax return equipment can disassemble the tax return operation flow information according to the preset semantic rules and the preset grammar rules to obtain corresponding execution action information.
S108, determining the host language of the tax return platform corresponding to the target tax return task.
In this embodiment, the tax return apparatus performs the tax return operation on the tax return platform according to the target tax return task. Because of different tax collection policies, tax return platforms in different regions are developed independently. The tax return platforms may also differ in platform development. For example, the host language in which tax returns platforms are developed is different. The host language may be a C programming language or a Python programming language. Therefore, the tax return apparatus needs to determine the host language corresponding to the tax return platform, so as to interpret the execution action information in the tax return operation flow information into the instruction information identifiable by the tax return platform.
S110, generating execution instructions corresponding to the tax return operation flows according to the host language and the execution action information in the tax return operation flows.
In this embodiment, the tax return operation flow information acquired by the tax return apparatus includes a plurality of tax return operation flows. Each tax return operation flow comprises corresponding execution action information so as to complete the corresponding tax return operation flow through the execution action information. The execution action information may include operation information of opening a website, operation information of jumping a page, value-taking operation information, matching operation information, value-taking operation information, value-filling operation information, operation information of exiting a page, and the like.
Further, the tax return equipment generates execution instructions corresponding to the tax return operation flows according to the host language and the execution action information in the tax return operation flows. Specifically, the execution action in the execution action information in each tax return operation flow may be interpreted as an execution instruction corresponding to the host language according to the host language. The execution action information in each tax return operation flow can be text information expressed by natural language, and the tax return equipment interprets the text information expressed by the natural language into execution instruction information which can be identified by a tax return platform according to host language, so that independent programming language development is not required for the text information of the natural language of financial staff by research personnel. The financial staff inputs the text information of the natural language into the tax return equipment, so that automatic tax return can be realized, manual operation is reduced, and the tax return efficiency of the system is improved.
S112, executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow.
In this embodiment, the tax return apparatus executes the automated tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow. Specifically, the corresponding automatic tax return operation can be executed according to the flow mode of the login operation flow, the form filling operation flow and the exit operation flow. Wherein, the tax return apparatus realizes the automatic tax return process, which can be seen in fig. 6.
As shown in fig. 6, a model is created in the tax return apparatus for automated tax return using the model. Wherein both "templates" and "configurations" are considered inputs to the model. The template refers to tax return operation flow information of the target tax return task input by the flow template table and the form filling template table. The "configuration" refers to the configuration information of the target tax return task described above. Both are input as information of the model. In the "template" a series of related "steps" of the business process are defined in units of "flow", and each step can be decomposed into "action" and "parameter". As shown in fig. 4 and 5, the "parameter" may include a location parameter Xpath and a Value parameter Value. Key parameter information in the business process control process is defined in the configuration, for example: belonging to the area, tax payer identification number, tax return option menu, etc.
As shown in fig. 6, the "model" is a language "interpreter" for converting the information input in the "template" and "configuration" into a language. The model is provided with a template analysis engine, a flow processing engine, an action processing engine and a basic dependency library. The template analysis engine is responsible for analyzing the input template to obtain a flow set, and arranging the execution sequence of the flow according to the input configuration. The flow processing engine sends the appointed flow to the corresponding flow processing unit according to the scheduling sequence of the flow execution provided by the upper layer, so that the appointed flow is processed by the corresponding flow processing unit. As shown in fig. 6, the flow processing unit may include a login flow step process, a list-cutting flow step process, a list-filling flow step process, and an exit flow step process. Each flow processing unit decomposes the corresponding flow into a series of steps, and each step comprises actions, positioning parameters, value parameters and the like. The processing of the "flow" is realized based on each "step". The action processing engine is responsible for the interpretation and execution of 'actions', and is an implementation set of action functions. The action processing engine is used for explaining the execution action information of the flow in each flow processing unit in the flow processing engine, and the execution action information is explained as an execution instruction corresponding to the host language. The base dependency library provides the dependency functions required for upper level actions. The base dependency library includes "gadgets", "RPA component library" and "Python third party packages". The small module is a special function expansion module in the model, and the RPA component library and the Python third party package are both a function package for providing a function expansion mode for the upper layer. For functional expansion in the model, 2 ways are now supported:
1) For the existing action function expansion, the designated action in the action analysis engine of the modification model can be expanded, so that the existing action can support more similar business scenes, and the modification mode can write a small module (expansion module) or refer to a Python third party package.
2) For the newly added action, an action analysis engine needs to be newly built, and the newly built action is associated to the flow of the flow processing unit, so that the support of the new action is realized.
After the layer-by-layer decomposition, finally, all execution of the flow is converted into an execution instruction which can be identified by a host language (Python), and then the final functional operation is carried out. For example, after the Python interpreter recognizes the execution instruction, the corresponding operation is executed to realize automatic tax return.
In addition, for the system architecture schematic diagram of the automated tax return method shown in fig. 6, the flow of implementing the automated tax return can also be shown in fig. 7. A process flow diagram of the template processing engine in the system architecture is shown in fig. 8, a process flow diagram of the flow processing engine is shown in fig. 9, and a process flow diagram of the action processing engine is shown in fig. 10.
According to the automatic tax return method, the configuration information of the target tax return task is obtained, and the tax return operation flow information of the target tax return task is obtained according to the configuration information, wherein the tax return operation flow information comprises a plurality of tax return operation flows. Further, the tax return operation flows are disassembled according to the preset semantic rules and the preset grammar rules, and execution action information in each tax return operation flow is obtained; determining a host language of a tax return platform corresponding to the target tax return task, and generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow. Finally, executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow. Therefore, the execution action information in each tax return operation flow corresponding to the target tax return task is generated into the identifiable execution instruction of the tax return platform through the host language of the tax return platform, so that the tax return platform can identify the execution action information in each tax return operation flow, and the automatic tax return of the target tax return task can be executed according to the execution instruction. In addition, since the tax return operation flow information of the target tax return task is automatically acquired through the configuration information, and the tax return task is automatically executed according to the tax return operation flow information of the target tax return task, the input error caused by tax return in a manual filling mode is avoided, and the data accuracy of the tax return process is improved.
In one embodiment, the configuration information includes a tax type of the target tax return task and a tax return corresponding to the tax type, and S104 includes: determining target tax return flow information of a target tax return task according to tax types; and screening a plurality of tax return operation flows in the tax return operation flow information from the target tax return flow information according to the tax return.
In this embodiment, referring to fig. 3, different tax types correspond to different tax return flow information, and target tax return flow information of a corresponding target tax return task may be determined according to the tax types. In addition, the same tax type has a plurality of tax return forms. Different tax return forms correspond to different tax return operation flows. Finally, the tax return equipment screens out a plurality of tax return operation flows in the tax return operation flow information from the target tax return flow information according to the tax return. Therefore, the accuracy of automatic tax return of the tax return apparatus is improved.
In one embodiment, the configuration information further includes scheduling information for a plurality of tax types; determining target tax return flow information of a target tax return task according to tax types, and screening a plurality of tax return operation flows in the tax return operation flow information from the target tax return flow information according to a tax return report, wherein the method comprises the following steps: and determining target tax return flow information corresponding to each tax type according to each tax, and screening a plurality of tax return operation flows corresponding to each tax from the target tax return flow information corresponding to each tax according to the tax return corresponding to each tax type. At this time, S110 includes: and reading the execution action information in each tax return operation flow in each tax, and generating the execution instruction corresponding to each tax return operation flow in each tax according to the host language and the execution action information in each tax return operation flow in each tax. S112 includes: determining the execution sequence of each tax according to the scheduling information of a plurality of tax types, and executing the automatic tax return of the target tax return task according to the execution sequence and the execution instruction corresponding to each tax return operation flow in each tax type.
Specifically, the target tax return task is used to instruct automated tax returns on multiple tax types. The tax return apparatus is required to perform automated tax returns of a plurality of tax types. At this time, the configuration information includes scheduling information of a plurality of tax types. When the tax return equipment executes the automatic tax return of the target tax return task, the tax return equipment dispatches the tax types according to the dispatching information of the tax types so as to orderly complete the automatic tax return of each tax type. For example, the plurality of tax types includes tax type A, tax type B, and tax type C. The plurality of tax return operation flows of tax type a include flow a1, flow a2, flow a3, and flow a4. The plurality of tax return operation flows of tax type B include flow B1, flow B2, flow B3, and flow B4. The plurality of tax return operation flows of tax type C include flow C1, flow C2, flow C3, and flow C4. The tax return apparatus generates execution instructions for executing each flow from execution action information of each flow in the flows a1, a2, a3, a4, B1, B2, B3, B4 and C1, C2, C3 and C4, schedules the tax types A, B and C according to the scheduling information, and performs automatic tax return according to the execution instructions corresponding to the scheduled tax types. Therefore, the automatic tax return of a plurality of tax types can be realized.
In one embodiment, the plurality of tax returns includes a login operation, a form filling operation, and an exit operation, S106, including: disassembling a plurality of tax return operation flows according to a preset grammar rule to obtain a login operation flow, a form filling operation flow and an exit operation flow; extracting first execution action information from a login operation flow according to a preset semantic rule, wherein the first execution action information comprises a plurality of login execution actions; extracting second execution action information from the form filling operation flow according to a preset semantic rule, wherein the second execution action information comprises a plurality of form filling execution actions; and extracting third execution action information from the exit operation flow according to a preset semantic rule, wherein the third execution action information comprises a plurality of exit execution actions. At this time, S110 includes: generating a first execution instruction according to the host language and a plurality of login execution actions in the first execution action information; generating a second execution instruction according to the host language and a plurality of form filling execution actions in the second execution action information; and generating a third execution instruction according to the host language and a plurality of exit execution actions in the third execution action information. S112 includes: and executing the login operation in the target tax return task according to the first execution instruction, executing the form filling operation in the target tax return task according to the second execution instruction, and executing the exit operation in the target tax return task according to the third execution instruction so as to complete the automatic tax return of the target tax return task.
A complete tax return includes a login operation, a form filling operation, and an exit operation. In this embodiment, the plurality of tax returns includes a login operation, a form filling operation, and an exit operation. The tax return equipment generates execution instructions corresponding to the operation flows according to the execution action information in the operation flows, and finally executes automatic tax return according to the execution instructions of the operation flows. Specifically, see fig. 11.
Referring to fig. 6 and the flowchart of fig. 11, when the "model" is started to be executed, control information is acquired from the external "configuration", the flow template table file "total. Xlsx" is determined, and the "login flow" and the "table cutting flow" are analyzed. And the steps in the login process are interpreted and executed, and when an abnormal condition is met, the current process is ended and the process is exited. And (3) explaining and executing the steps in the table cutting process, and ending the current process and exiting when an abnormal condition is met. When the action "form filling" is encountered, the next step "form filling flow" is performed. And acquiring a form filling template form file of tax type N.xlsx, such as tax type 1.xlsx and tax type 2.xlsx, and analyzing the corresponding form filling flow. The steps in the process of filling the table are interpreted and executed, and when an abnormal situation is encountered, the current process is ended and the process is exited. And returning to the 'table cutting flow' to continue to execute until the tax return service is finished, and finally executing the exit operation.
In one embodiment, before S112, further comprising: and acquiring data information corresponding to each parameter in each tax return operation flow. At this time, S112 includes: and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow.
In this embodiment, when the tax return apparatus executes the automated tax return, it is necessary to determine data information corresponding to each parameter in each tax return operation flow corresponding to each execution instruction, and further fill the data information corresponding to each parameter into the tax return platform according to each execution instruction, so as to implement the automated tax return.
In one embodiment, each parameter in each tax return operation flow includes a web page element positioning parameter of the tax return platform and a value parameter corresponding to the web page element positioning parameter. The automatic tax return of the target tax return task is executed according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow, and the automatic tax return method comprises the following steps: acquiring first data information corresponding to the webpage element positioning parameters and second data information corresponding to the value parameters; determining the position of a webpage element in the tax return platform according to the first data information, and determining a form filling data value according to the second data information; filling the form filling data value into the web page element position according to the execution instruction corresponding to each tax return operation flow so as to complete the automatic tax return of the target tax return task.
The core processing logic in the tax return flow is three steps of matching, value taking and value filling. In order to realize the matching operation, the tax return equipment needs to acquire the webpage element positioning parameters and the value parameters corresponding to the webpage element positioning parameters, and perform value taking according to the webpage element positioning parameters and the value parameters corresponding to the webpage element positioning parameters. Finally, filling the value into the position of the webpage element in the tax return platform to realize the value filling operation. Specifically, first data information corresponding to the webpage element positioning parameters and second data information corresponding to the value parameters are obtained, the webpage element position in the tax return platform is determined according to the first data information, the form filling data value is determined according to the second data information, and finally the form filling data value is filled in the webpage element position, so that tax return operation is realized. The "padding" operation can be divided into three cases, namely, static padding, dynamic limited padding and dynamic infinite padding.
(1) Static filling value: there is a "one-to-one" static relationship between the value and the fill.
Matching the web page element positioning parameter 'Xpath', determining the web page element position corresponding to the 'Xpath', taking the value from the index of the cell in the tax return, and directly filling the value into the web page element position.
For example: as shown in table 1 below, the action for performing the action information determination is "fill value", and there is a "one-to-one" static relationship between fill value and value prior to the value.
Table 1:
(2) Dynamic finite padding value: the continuity relation exists between the value and the filling value, and the batch operation can be realized after the continuity relation is defined in the action.
Taking printing tax as an example, the limited and determined corresponding relation is configured in a JSON character string through a JSON format; the intelligent automatic matching of single action in the flow template, value taking and value filling business processing are realized.
For example, as shown in the following table 2, the action of "automatic_filling_tax printing" has a continuity relationship between filling value and value, and one action can realize batch business operation of the whole web page form.
Table 2:
(3) Dynamic infinite fill value: no continuity relation exists between the value and the filling value, and the combination of different standard actions into a group of association operations according to service needs is supported, so that processing logic is realized: "match, take value, fill value".
For example, as shown in the following table 3, the value-added tax deduction details table is combined into a group of association operation by different actions, and the "matching, value-taking and value-filling" business processing of the association context (web page table row) is performed by the "combination action".
Table 3:
/>
therefore, in the embodiment, the tax return equipment realizes automatic tax return through three operations of matching, value taking and value filling in the tax return flow.
The following provides a specific embodiment to describe in detail the specific implementation process of the automated tax return method described in the foregoing embodiments:
assuming that a tax declaration service personnel needs to perform tax declaration operation of an Anhui national tax, the tax declaration service personnel needs to fill in specified information according to the flow template form and the form filling template form, and specifically referring to fig. 4 and 5, both types of form information are used as input information of tax declaration equipment. Specifically, a browser is opened, an Anhui national tax website is logged in, and information of webpage element positioning parameters in a form is collected. The browser debugging function positioning can be used for acquiring the information Xpath of the webpage element positioning parameters. In addition, according to the format information given in the flow template table and the form filling template table, tax return flows are set, and each tax return operation flow and execution action information in each tax return operation flow are determined. Thus, the filling of the flow template form and the form filling template form is completed. In addition, referring to fig. 3, tax return service personnel also needs to set configuration information of the national tax of the Anhui. Wherein, the configuration information is also used as input information of tax return equipment. Finally, the tax return apparatus executes the corresponding automated tax return operation according to the automated tax return method of the above embodiments according to the configuration information shown in fig. 3 and the tax return operation flow information shown in fig. 4 and 5. It performs an automated tax return process, and the display interface on the tax return platform is shown in fig. 12. Therefore, automatic tax return is realized, and manual operation in the tax return process is reduced. Meanwhile, because the tax return platform is automatically used for tax return, manual data filling is not needed, the occurrence of financial data reporting errors and the like caused by manual data filling is avoided, and the data accuracy in the tax return process is improved.
It should be understood that, although the steps in the flowchart are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or other steps.
The application also provides an automatic tax return apparatus, as shown in fig. 13, which comprises a first acquisition module 10, a second acquisition module 20, a disassembly module 30, a determination module 40, a generation module 50 and a tax return module 60. A first obtaining module 10, configured to obtain configuration information of a target tax return task; the second obtaining module 20 is configured to obtain tax return operation flow information of the target tax return task according to the configuration information, where the tax return operation flow information includes a plurality of tax return operation flows; the disassembling module 30 is configured to disassemble the multiple tax return operation flows according to a preset semantic rule and a preset grammar rule, so as to obtain execution action information in each tax return operation flow; a determining module 40, configured to determine a host language of a tax return platform corresponding to the target tax return task; the generating module 50 is configured to read execution action information in each tax return operation flow, and generate an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow; the tax return module 60 is configured to execute the automated tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow.
In one embodiment, the configuration information includes a tax type of a target tax return task that is configured in advance and a tax return corresponding to the tax type, and the second obtaining module 20 is specifically configured to determine target tax return flow information of the target tax return task according to the tax type, and screen a plurality of tax return operation flows in the tax return operation flow information from the target tax return flow information according to the tax return.
In one embodiment, the tax types are multiple, and the configuration information further comprises scheduling information of the tax types; the second obtaining module 20 is specifically configured to determine target tax return flow information corresponding to each tax type according to each tax, and screen a plurality of tax return operation flows corresponding to each tax type from the target tax return flow information corresponding to each tax type according to the tax return corresponding to each tax type; the generating module 50 is specifically configured to read execution action information in each tax return operation flow in each tax, and generate execution instructions corresponding to each tax return operation flow in each tax according to the host language and the execution action information in each tax return operation flow in each tax; the tax return module 60 is specifically configured to determine an execution order of each tax according to the scheduling information of the tax types, and execute an automated tax return of the target tax return task according to the execution order and an execution instruction corresponding to each tax return operation flow in each tax.
In one embodiment, the plurality of tax returns includes a login operation flow, a form filling operation flow and an exit operation flow, the disassembling module 30 is specifically configured to disassemble the plurality of tax returns according to a preset grammar rule to obtain the login operation flow, the form filling operation flow and the exit operation flow, extract first execution action information from the login operation flow according to a preset semantic rule, the first execution action information includes a plurality of login execution actions, extract second execution action information from the form filling operation flow according to the preset semantic rule, the second execution action information includes a plurality of form filling execution actions, extract third execution action information from the exit operation flow according to the preset semantic rule, and the third execution action information includes a plurality of exit execution actions; the generating module 50 is specifically configured to generate a first execution instruction according to a host language and a plurality of login execution actions in the first execution action information, generate a second execution instruction according to a host language and a plurality of form-filling execution actions in the second execution action information, and generate a third execution instruction according to a host language and a plurality of exit execution actions in the third execution action information; the tax return module 60 is specifically configured to perform a login operation in the target tax return task according to the first execution instruction, perform a form filling operation in the target tax return task according to the second execution instruction, and perform an exit operation in the target tax return task according to the third execution instruction, so as to complete an automated tax return of the target tax return task.
In one embodiment, the automated tax return apparatus further comprises a third acquisition module (not shown in fig. 13); the third acquisition module is used for acquiring data information corresponding to each parameter in each tax return operation flow; the tax return module 60 is specifically configured to execute the automated tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow.
In one embodiment, each parameter in each tax return operation flow comprises a web page element positioning parameter of the tax return platform and a value parameter corresponding to the web page element positioning parameter; the tax return module 60 is specifically configured to obtain first data information corresponding to the web page element positioning parameter and second data information corresponding to the value parameter, determine a web page element position in the tax return platform according to the first data information, determine a form filling data value according to the second data information, and fill the form filling data value into the web page element position according to the execution instruction corresponding to each tax return operation flow, so as to complete the automatic tax return of the target tax return task.
For specific limitations of the automated tax return apparatus, reference may be made to the limitations of the automated tax return method hereinabove, and no further description is given herein. The modules in the automatic tax return can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 14. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for being connected with one or more external devices so as to read configuration information and tax return operation flow information of the one or more external devices. The computer program, when executed by a processor, implements an automated tax return method.
It will be appreciated by those skilled in the art that the structure shown in fig. 14 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements are applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program: acquiring configuration information of a target tax return task; acquiring tax return operation flow information of a target tax return task according to the configuration information, wherein the tax return operation flow information comprises a plurality of tax return operation flows; disassembling a plurality of tax return operation flows according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return operation flow; determining a host language of a tax return platform corresponding to the target tax return task; generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow; and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow.
In one embodiment, the configuration information includes a tax type of a target tax return task and a tax return corresponding to the tax type, and when the processor executes the computer program to implement the step of acquiring the tax return operation flow information of the target tax return task according to the configuration information, the following steps are specifically implemented: and determining target tax return flow information of the target tax return task according to the tax types, and screening a plurality of tax return operation flows in the tax return operation flow information from the target tax return flow information according to the tax return report.
In one embodiment, the tax types are multiple, the configuration information further includes scheduling information of the multiple tax types, the processor executes the computer program to realize the above steps of determining target tax return flow information of the target tax return task according to the tax types, and screening multiple tax return operation flows in the tax return operation flow information according to the tax return report, specifically realizing the following steps: determining target tax return flow information corresponding to each tax type according to each tax, and screening a plurality of tax return operation flows corresponding to each tax from the target tax return flow information corresponding to each tax according to the tax return corresponding to each tax type; when the processor executes the computer program to realize the steps of reading the execution action information in each tax return operation flow and generating the execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow, the following steps are specifically realized: reading the execution action information in each tax return operation flow in each tax, and generating the execution instruction corresponding to each tax return operation flow in each tax according to the host language and the execution action information in each tax return operation flow in each tax; when the processor executes the computer program to realize the step of executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow, the following steps are specifically realized: determining the execution sequence of each tax according to the scheduling information of a plurality of tax types, and executing the automatic tax return of the target tax return task according to the execution sequence and the execution instruction corresponding to each tax return operation flow in each tax type.
In one embodiment, the plurality of tax return operation flows include a login operation flow, a form filling operation flow and an exit operation flow, and when the processor executes the computer program to disassemble the plurality of tax return operation flows according to the preset semantic rules and the preset grammar rules to obtain the execution action information in each tax return operation flow, the processor specifically realizes the following steps: disassembling a plurality of tax return operation flows according to a preset grammar rule to obtain a login operation flow, a form filling operation flow and an exit operation flow, extracting first execution action information from the login operation flow according to the preset semantic rule, wherein the first execution action information comprises a plurality of login execution actions, extracting second execution action information from the form filling operation flow according to the preset semantic rule, the second execution action information comprises a plurality of form filling execution actions, extracting third execution action information from the exit operation flow according to the preset semantic rule, and the third execution action information comprises a plurality of exit execution actions; when the processor executes the computer program to realize the step of generating the execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow, the following steps are specifically realized: generating a first execution instruction according to the host language and a plurality of login execution actions in the first execution action information, generating a second execution instruction according to the host language and a plurality of form filling execution actions in the second execution action information, and generating a third execution instruction according to the host language and a plurality of exit execution actions in the third execution action information; when the processor executes the computer program to realize the step of executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow, the following steps are specifically realized: and executing the login operation in the target tax return task according to the first execution instruction, executing the form filling operation in the target tax return task according to the second execution instruction, and executing the exit operation in the target tax return task according to the third execution instruction so as to complete the automatic tax return of the target tax return task.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring data information corresponding to each parameter in each tax return operation flow; when the processor executes the computer program to realize the step of executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow, the following steps are specifically realized: and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow.
In one embodiment, each parameter in each tax return operation flow comprises a web page element positioning parameter of the tax return platform and a value parameter corresponding to the web page element positioning parameter; when the processor executes the computer program to realize the step of executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow, the following steps are specifically realized: acquiring first data information corresponding to the webpage element positioning parameters and second data information corresponding to the value parameters, determining the webpage element position in the tax return platform according to the first data information, determining the form filling data value according to the second data information, and filling the form filling data value into the webpage element position according to the execution instruction corresponding to each tax return operation flow so as to complete automatic tax return of the target tax return task.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring configuration information of a target tax return task; acquiring tax return operation flow information of a target tax return task according to the configuration information, wherein the tax return operation flow information comprises a plurality of tax return operation flows; disassembling a plurality of tax return operation flows according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return operation flow; determining a host language of a tax return platform corresponding to the target tax return task; generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow; and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow.
In one embodiment, the configuration information includes a tax type of a target tax return task and a tax return corresponding to the tax type, and when the computer program is executed by the processor to implement the step of obtaining the tax return operation flow information of the target tax return task according to the configuration information, the following steps are specifically implemented: and determining target tax return flow information of the target tax return task according to the tax types, and screening a plurality of tax return operation flows in the tax return operation flow information from the target tax return flow information according to the tax return report.
In one embodiment, the tax types are multiple, the configuration information further includes scheduling information of the multiple tax types, the computer program is executed by the processor to implement the above-mentioned steps of determining target tax return flow information of the target tax return task according to the tax types, and selecting multiple tax return operation flows in the tax return operation flow information from the target tax return flow information according to the tax return report, and specifically implement the following steps: determining target tax return flow information corresponding to each tax type according to each tax, and screening a plurality of tax return operation flows corresponding to each tax from the target tax return flow information corresponding to each tax according to the tax return corresponding to each tax type; when the computer program is executed by the processor to realize the steps of reading the execution action information in each tax return operation flow and generating the execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow, the following steps are specifically realized: reading the execution action information in each tax return operation flow in each tax, and generating the execution instruction corresponding to each tax return operation flow in each tax according to the host language and the execution action information in each tax return operation flow in each tax; when the computer program is executed by the processor to realize the above steps of automatic tax return of executing the target tax return task according to the execution instructions corresponding to the tax return operation flows, the following steps are specifically realized: determining the execution sequence of each tax according to the scheduling information of a plurality of tax types, and executing the automatic tax return of the target tax return task according to the execution sequence and the execution instruction corresponding to each tax return operation flow in each tax type.
In one embodiment, the plurality of tax return operation flows include a login operation flow, a form filling operation flow and an exit operation flow, and the computer program is executed by the processor to realize the above steps of disassembling the plurality of tax return operation flows according to the preset semantic rules and the preset grammar rules, so as to specifically realize the following steps when the execution action information in each tax return operation flow is obtained: disassembling a plurality of tax return operation flows according to a preset grammar rule to obtain a login operation flow, a form filling operation flow and an exit operation flow, extracting first execution action information from the login operation flow according to the preset semantic rule, wherein the first execution action information comprises a plurality of login execution actions, extracting second execution action information from the form filling operation flow according to the preset semantic rule, the second execution action information comprises a plurality of form filling execution actions, extracting third execution action information from the exit operation flow according to the preset semantic rule, and the third execution action information comprises a plurality of exit execution actions; when the computer program is executed by the processor to realize the step of generating the execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow, the following steps are specifically realized: generating a first execution instruction according to the host language and a plurality of login execution actions in the first execution action information, generating a second execution instruction according to the host language and a plurality of form filling execution actions in the second execution action information, and generating a third execution instruction according to the host language and a plurality of exit execution actions in the third execution action information; when the computer program is executed by the processor to realize the above steps of automatic tax return of executing the target tax return task according to the execution instructions corresponding to the tax return operation flows, the following steps are specifically realized: and executing the login operation in the target tax return task according to the first execution instruction, executing the form filling operation in the target tax return task according to the second execution instruction, and executing the exit operation in the target tax return task according to the third execution instruction so as to complete the automatic tax return of the target tax return task.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring data information corresponding to each parameter in each tax return operation flow; when the computer program is executed by the processor to realize the above steps of automatic tax return of executing the target tax return task according to the execution instructions corresponding to the tax return operation flows, the following steps are specifically realized: and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow.
In one embodiment, each parameter in each tax return operation flow comprises a web page element positioning parameter of the tax return platform and a value parameter corresponding to the web page element positioning parameter; when the computer program is executed by the processor to realize the step of executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow, the following steps are specifically realized: acquiring first data information corresponding to the webpage element positioning parameters and second data information corresponding to the value parameters, determining the webpage element position in the tax return platform according to the first data information, determining the form filling data value according to the second data information, and filling the form filling data value into the webpage element position according to the execution instruction corresponding to each tax return operation flow so as to complete automatic tax return of the target tax return task.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. An automated tax return method, the method comprising:
acquiring configuration information of a target tax return task, wherein flow control information for executing the target tax return task is defined in the configuration information, and the flow control information comprises preset parameter information of a tax return flow of the target tax return task;
acquiring tax return operation flow information of the target tax return task according to the configuration information, wherein the tax return operation flow information comprises a plurality of tax return operation flows;
Disassembling the tax return operation flows according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return operation flow, wherein the preset semantic rule is set according to tax return service processing logic and is used for determining execution actions in each tax return operation flow, the preset grammar rule is used for analyzing the tax return operation flow, and the execution action information can comprise operation information for opening a website, operation information for jumping a page, value operation information, matching operation information, value filling operation information and operation information for exiting a page;
determining a host language of a tax return platform corresponding to the target tax return task;
generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow;
and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow.
2. The method according to claim 1, wherein the configuration information includes a pre-configured tax type of the target tax return task and a tax return corresponding to the tax type, and the acquiring tax return operation flow information of the target tax return task according to the configuration information includes:
Determining target tax return flow information of the target tax return task according to the tax types;
and screening the tax return operation flows in the tax return operation flow information from the target tax return flow information according to the tax return.
3. The method of claim 2, wherein the tax types are a plurality of, the configuration information further comprising scheduling information for the plurality of tax types;
the determining the target tax return flow information of the target tax return task according to the tax types, and screening the tax return operation flows in the tax return operation flow information according to the tax return report form, wherein the tax return operation flows comprise:
determining target tax return flow information corresponding to each tax type according to each tax type, and screening a plurality of tax return operation flows corresponding to each tax type from the target tax return flow information corresponding to each tax type according to the tax return corresponding to each tax type;
the generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow comprises the following steps: reading execution action information in each tax return operation flow in each tax return, and generating an execution instruction corresponding to each tax return operation flow in each tax return according to the host language and the execution action information in each tax return operation flow in each tax return;
The automatic tax return for executing the target tax return task according to the execution instruction corresponding to each tax return operation flow comprises the following steps: determining the execution sequence of each tax type according to the scheduling information of the tax types, and executing the automatic tax return of the target tax return task according to the execution sequence and the execution instruction corresponding to each tax return operation flow in each tax type.
4. The method of claim 1, wherein the plurality of tax returns includes a login operation, a form filling operation, and an exit operation, the disassembling the plurality of tax returns according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return includes:
disassembling a plurality of tax return operation flows according to the preset grammar rules to obtain the login operation flow, the form filling operation flow and the exit operation flow;
extracting first execution action information from the login operation flow according to the preset semantic rule, wherein the first execution action information comprises a plurality of login execution actions;
extracting second execution action information from the form filling operation flow according to the preset semantic rule, wherein the second execution action information comprises a plurality of form filling execution actions;
Extracting third execution action information from the exit operation flow according to the preset semantic rule, wherein the third execution action information comprises a plurality of exit execution actions;
the generating an execution instruction corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow comprises the following steps:
generating a first execution instruction according to the host language and a plurality of login execution actions in the first execution action information;
generating a second execution instruction according to the host language and a plurality of table filling execution actions in the second execution action information;
generating a third execution instruction according to the host language and a plurality of exit execution actions in the third execution action information;
the automatic tax return for executing the target tax return task according to the execution instruction corresponding to each tax return operation flow comprises the following steps: and executing the login operation in the target tax return task according to the first execution instruction, executing the table filling operation in the target tax return task according to the second execution instruction, and executing the exit operation in the target tax return task according to the third execution instruction so as to complete the automatic tax return of the target tax return task.
5. The method according to claim 1, wherein the method further comprises: acquiring data information corresponding to each parameter in each tax return operation flow;
the automatic tax return for executing the target tax return task according to the execution instruction corresponding to each tax return operation flow comprises the following steps:
and executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow.
6. The method according to claim 5, wherein each parameter in each tax return operation flow includes a web page element positioning parameter of the tax return platform and a value parameter corresponding to the web page element positioning parameter;
the automatic tax return of the target tax return task is executed according to the execution instruction corresponding to each tax return operation flow and the data information corresponding to each parameter in each tax return operation flow, and the automatic tax return method comprises the following steps:
acquiring first data information corresponding to the webpage element positioning parameters and second data information corresponding to the value parameters;
determining the position of a webpage element in the tax return platform according to the first data information, and determining a form filling data value according to the second data information;
And filling the form filling data value into the webpage element position according to the execution instruction corresponding to each tax return operation flow so as to complete the automatic tax return of the target tax return task.
7. An automated tax return apparatus, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring configuration information of a target tax return task, flow control information for executing the target tax return task is defined in the configuration information, and the flow control information comprises preset parameter information of a tax return flow of the target tax return task;
the second acquisition module is used for acquiring tax return operation flow information of the target tax return task according to the configuration information, wherein the tax return operation flow information comprises a plurality of tax return operation flows;
the disassembly module is used for disassembling the tax return operation flows according to a preset semantic rule and a preset grammar rule to obtain execution action information in each tax return operation flow, the preset semantic rule is set according to tax return service processing logic and is used for determining execution actions in each tax return operation flow, the preset grammar rule is used for analyzing the tax return operation flow, and the execution action information can comprise operation information of opening a website, operation information of jumping a page, value operation information, matching operation information, value filling operation information and operation information of exiting a page;
The determining module is used for determining the host language of the tax return platform corresponding to the target tax return task;
the generation module is used for generating execution instructions corresponding to the tax return operation flows according to the host language and the execution action information in the tax return operation flows;
and the tax return module is used for executing the automatic tax return of the target tax return task according to the execution instruction corresponding to each tax return operation flow.
8. An automatic tax return system, which is characterized by comprising a storage device, a configuration device and a tax return device;
the storage device is used for storing tax return operation flow information of a target tax return task, and the tax return operation flow information comprises a plurality of tax return operation flows;
the configuration equipment is used for generating configuration information of the target tax return task, flow control information for executing the target tax return task is defined in the configuration information, and the flow control information comprises preset parameter information of a tax return flow of the target tax return task;
the tax return equipment acquires configuration information of the target tax return task from the configuration equipment, acquires a plurality of tax return operation flows of tax return operation flow information of the target tax return task from the storage equipment according to the configuration information, disassembles the tax return operation flows according to a preset semantic rule and a preset grammar rule to obtain execution action information corresponding to each tax return operation flow, determines host language of a tax return platform corresponding to the target tax return task, generates execution instructions corresponding to each tax return operation flow according to the host language and the execution action information in each tax return operation flow, and executes automation of the target tax return task according to the execution instructions corresponding to each tax return operation flow;
The preset semantic rules are set according to tax return business processing logic and are used for determining execution actions in each tax return operation flow, the preset grammar rules are used for analyzing the tax return business flow, and the execution action information can comprise operation information of opening a website, operation information of jumping a page, value operation information, matching operation information, value filling operation information and operation information of exiting the page.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202010341757.2A 2020-04-27 2020-04-27 Automatic tax return method, device, system, computer equipment and storage medium Active CN111667231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010341757.2A CN111667231B (en) 2020-04-27 2020-04-27 Automatic tax return method, device, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010341757.2A CN111667231B (en) 2020-04-27 2020-04-27 Automatic tax return method, device, system, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111667231A CN111667231A (en) 2020-09-15
CN111667231B true CN111667231B (en) 2023-12-08

Family

ID=72382902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010341757.2A Active CN111667231B (en) 2020-04-27 2020-04-27 Automatic tax return method, device, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111667231B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112561488A (en) * 2020-12-21 2021-03-26 北京来也网络科技有限公司 Tax payment robot declaration method and device combining RPA and AI
CN112633839A (en) * 2020-12-25 2021-04-09 山东浪潮通软信息科技有限公司 Automatic tax declaration method and device based on NoSql and storage medium
CN115237536A (en) * 2022-05-31 2022-10-25 广州仕邦人力资源有限公司 RPA robot

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110648054A (en) * 2019-09-04 2020-01-03 中国建设银行股份有限公司 Task parallel processing method and device for robot process automation
CN110764872A (en) * 2019-10-21 2020-02-07 深圳金蝶账无忧网络科技有限公司 Automatic tax declaring method and system based on cloud service architecture and related equipment
CN110991191A (en) * 2019-12-05 2020-04-10 南京品微智能科技有限公司 Method for realizing flow self-definition based on natural semantic conversion

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110648054A (en) * 2019-09-04 2020-01-03 中国建设银行股份有限公司 Task parallel processing method and device for robot process automation
CN110764872A (en) * 2019-10-21 2020-02-07 深圳金蝶账无忧网络科技有限公司 Automatic tax declaring method and system based on cloud service architecture and related equipment
CN110991191A (en) * 2019-12-05 2020-04-10 南京品微智能科技有限公司 Method for realizing flow self-definition based on natural semantic conversion

Also Published As

Publication number Publication date
CN111667231A (en) 2020-09-15

Similar Documents

Publication Publication Date Title
US11379348B2 (en) System and method for performing automated API tests
CN111667231B (en) Automatic tax return method, device, system, computer equipment and storage medium
WO2020233330A1 (en) Batch testing method, apparatus, and computer-readable storage medium
US9037549B2 (en) System and method for testing data at a data warehouse
CN108628748B (en) Automatic test management method and automatic test management system
CN108388515A (en) Test data generating method, device, equipment and computer readable storage medium
CN106227654B (en) A kind of test platform
CN110941467A (en) Data processing method, device and system
CN104035873A (en) Method and device for generating testing codes
CN114328276B (en) Test case generation method and device, and test case display method and device
CN111061475A (en) Software code generation method and device, computer equipment and storage medium
CN112558940A (en) Website page development method, device, equipment and storage medium based on table
CN114816404A (en) Method and device for dynamically rendering view page, computer equipment and storage medium
CN115114146A (en) Interface test method, device, equipment and storage medium
CN113434395B (en) Automatic generation method, device, equipment and medium for test cases
CN110688315A (en) Interface code detection report generation method, electronic device, and storage medium
CN111367982B (en) Method, device, computer equipment and storage medium for importing TRRIGA basic data
CN117370203A (en) Automatic test method, system, electronic equipment and storage medium
CN112699027A (en) Interface testing method, device, equipment and readable storage medium
CN110308904B (en) Aggregation method and device for multi-type front-end frames and computer equipment
Rocha Silva et al. Ensuring the consistency between user requirements and graphical user interfaces: a behavior-based automated approach
CN115796140A (en) Report automatic generation method and device and report template configuration method and device
CN115454382A (en) Demand processing method and device, electronic equipment and storage medium
CN111221610B (en) Page element acquisition method and device
CN105204383B (en) Using the generation method and device of servo-drive system

Legal Events

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