CN113780969A - Customs declaration method and system - Google Patents

Customs declaration method and system Download PDF

Info

Publication number
CN113780969A
CN113780969A CN202110251341.6A CN202110251341A CN113780969A CN 113780969 A CN113780969 A CN 113780969A CN 202110251341 A CN202110251341 A CN 202110251341A CN 113780969 A CN113780969 A CN 113780969A
Authority
CN
China
Prior art keywords
node
declaration
receipt
information
logic
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.)
Granted
Application number
CN202110251341.6A
Other languages
Chinese (zh)
Other versions
CN113780969B (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.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi 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 Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202110251341.6A priority Critical patent/CN113780969B/en
Publication of CN113780969A publication Critical patent/CN113780969A/en
Application granted granted Critical
Publication of CN113780969B publication Critical patent/CN113780969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a customs declaration method and system, and relates to the technical field of computers. One embodiment of the method comprises: receiving declaration request information, and acquiring corresponding process node information according to bonded area identification carried in the declaration request information; the flow node information is generated according to the declaration flow of the bonded area and comprises node identifications and node sequences corresponding to the sub-flows of the declaration flow; selecting a current node from the process node information according to the node sequence, and executing the following steps on the current node until the current node is the last node of the process node information: and calling a service logic matched with the node action from the adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identification, and executing the service logic. The embodiment realizes one-time development and butt joint of a plurality of bonded areas based on the adapter mode, improves the development efficiency, reduces the code amount and is convenient to maintain.

Description

Customs declaration method and system
Technical Field
The invention relates to the technical field of computers, in particular to a customs declaration method and system.
Background
When the import and export business is butted with a customs system, a plurality of bonded areas are usually butted, and the current butt joint mode is to independently develop a declaration program for an electronic port corresponding to each bonded area and realize the customs declaration of import and export goods based on the declaration program.
In the process of implementing the invention, the prior art at least has the following problems:
because the declaration program needs to be developed independently for each electronic port, the development efficiency is low, the code amount is large, and the later maintenance is difficult.
Disclosure of Invention
In view of this, embodiments of the present invention provide a customs declaration method and system, where the method obtains flow node information corresponding to a bonded area, and further selects a corresponding adapter according to the flow node information, and invokes a service logic therein to complete a customs declaration service. Based on the adapter mode, the multiple bonded areas are developed and butted at one time, the development efficiency is improved, the code amount is reduced, and the maintenance is convenient.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a customs declaration method.
The customs declaration method of the embodiment of the invention comprises the following steps: receiving declaration request information, and acquiring corresponding process node information according to bonded area identification carried in the declaration request information; the flow node information is generated according to a reporting flow of a bonded area and comprises a node identifier and a node sequence which correspond to a sub-flow of the reporting flow, and the node identifier is used for indicating the bill type and the node action of a bill processed by the sub-flow; according to the node sequence, selecting a current node from the process node information, and executing the following steps on the current node until the current node is the last node of the process node information: and calling a service logic matched with the node action from an adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identification, and executing the service logic.
Optionally, the node action includes message creation and document declaration, and the service logic includes message creation logic and document declaration logic; the message creating logic is used for processing the document information carried in the declaration request information according to a specified message format corresponding to the document type to generate a message; the bill type of the bill information is the same as the bill type indicated by the current node identifier; and the bill declaration logic is used for calling a declaration interface corresponding to the bill type and sending the message.
Optionally, the node action includes a flow suspension, and the service logic includes a receipt check logic; before the step of calling the business logic matched with the node action from the adapter corresponding to the bill type, the method further includes: determining that the node action indicated by the current node identification is process pause, and acquiring receipt information; calling the receipt verification logic from a corresponding adapter according to the receipt type carried by the receipt information, executing the receipt verification logic, and confirming that the receipt verification is successful; the calling of the business logic matched with the node action from the adapter corresponding to the bill type comprises the following steps: and determining whether the node action indicated by the current node identification is flow pause or not, and calling a service logic matched with the node action from an adapter corresponding to the bill type.
Optionally, before the step of obtaining the corresponding process node information, the method further includes: determining a declaration process meeting the service range according to the service range of the bonded area; abstracting sub-processes in the declaration process into corresponding nodes, and adding the node identification for the nodes; and taking the execution sequence of the sub-processes as the node sequence, and generating the process node information according to the node identification and the node sequence.
Optionally, the method further comprises: taking customs declaration as a concept, and dividing the concept into sub-concepts according to the receipt type; wherein the sub-concept is a document declaration of a specified document type; establishing a relation between the concept and the sub-concept, and adding attributes to the concept and the sub-concept to obtain a concept model; wherein the attribute is an action abstracted from the declaration flow; constructing the adapters of different bill types according to the conceptual model; wherein the business logic of the adapter is program logic that implements the action.
Optionally, the receipt checking logic is configured to analyze the receipt information to obtain a receipt status, and determine that the receipt checking is successful or failed according to the receipt status.
Optionally, the node action comprises a response to receipt, and the business logic comprises response to receipt logic; after the step of obtaining the receipt information, the method further comprises: and calling the receipt response logic from the adapter corresponding to the bill type, and executing the receipt response logic.
To achieve the above object, according to another aspect of the embodiments of the present invention, a customs declaration system is provided.
The customs declaration system of the embodiment of the invention comprises: the acquiring module is used for receiving the declaration request information and acquiring corresponding process node information according to the bonded area identification carried in the declaration request information; the flow node information is generated according to a reporting flow of a bonded area and comprises a node identifier and a node sequence which correspond to a sub-flow of the reporting flow, and the node identifier is used for indicating the bill type and the node action of a bill processed by the sub-flow; a reporting module, configured to select a current node from the process node information according to the node sequence, and execute the following steps on the current node until the current node is a last node of the process node information: and calling a service logic matched with the node action from an adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identification, and executing the service logic.
Optionally, the node action includes message creation and document declaration, and the service logic includes message creation logic and document declaration logic; the message creating logic is used for processing the document information carried in the declaration request information according to a specified message format corresponding to the document type to generate a message; the bill type of the bill information is the same as the bill type indicated by the current node identifier; and the bill declaration logic is used for calling a declaration interface corresponding to the bill type and sending the message.
Optionally, the node action includes a flow suspension, and the service logic includes a receipt check logic; the device further comprises: the receipt processing module is used for determining that the node action indicated by the current node identifier is flow pause and acquiring receipt information; calling the receipt verification logic from a corresponding adapter according to the receipt type carried by the receipt information, executing the receipt verification logic, and confirming that the receipt verification is successful; and the declaration module is also used for determining that the node action indicated by the current node identification is not flow suspension, and calling the service logic matched with the node action from the adapter corresponding to the bill type.
Optionally, the apparatus further comprises: the node configuration module is used for determining a declaration process meeting the service range according to the service range of the bonded area; abstracting sub-processes in the declaration process into corresponding nodes, and adding the node identification for the nodes; and taking the execution sequence of the sub-processes as the node sequence, and generating the process node information according to the node identification and the node sequence.
Optionally, the apparatus further comprises: the adapter construction module is used for dividing the concept into sub-concepts according to the receipt type by taking customs declaration as the concept; wherein the sub-concept is a document declaration of a specified document type; establishing a relation between the concept and the sub-concept, and adding attributes to the concept and the sub-concept to obtain a concept model; wherein the attribute is an action abstracted from the declaration flow; constructing the adapters of different bill types according to the conceptual model; wherein the business logic of the adapter is program logic that implements the action.
Optionally, the receipt checking logic is configured to analyze the receipt information to obtain a receipt status, and determine that the receipt checking is successful or failed according to the receipt status.
Optionally, the node action comprises a response to receipt, and the business logic comprises response to receipt logic; the device further comprises: and the receipt response module is used for calling the receipt response logic from the adapter corresponding to the bill type and executing the receipt response logic.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a customs declaration method of an embodiment of the present invention.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention has stored thereon a computer program that, when executed by a processor, implements a customs declaration method of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: by acquiring the flow node information corresponding to the bonded areas, selecting the corresponding adapters according to the flow node information, calling the business logic therein, completing the customs declaration business, realizing one-time development and butt joint of a plurality of bonded areas based on the adapter mode, improving the development efficiency, reducing the code amount and facilitating maintenance. And determining the business logic corresponding to the declaration flow based on the declaration flows of different types of documents, and maintaining the business logic in the adapters of corresponding types to realize customs declaration of various types of documents.
By adding flow pause in the node action and adding the receipt verification logic in the adapter, when the node with the flow pause is selected, the receipt information can be obtained, the corresponding adapter is selected based on the receipt type of the receipt information, and the receipt verification logic is executed to confirm whether the receipt requested to be declared passes the audit, so that the follow-up further processing is facilitated. When the bonded area is newly added, corresponding process node information is configured only based on the declaration process of the bonded area, and the butt joint with the customs system can be realized without secondary development.
A customs declaration flow in the real world is abstracted based on a conceptual model, and business logic which should be contained by the adapter is determined for different types of documents. By determining the receipt verification logic and maintaining the receipt verification logic to the adapter, whether the current type of document requested to be declared passes the audit is facilitated to be confirmed. By executing the receipt response logic, the system sends a notice of successfully receiving the receipt message to the Hai relational system, thereby perfecting the declaration process.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a customs declaration method according to an embodiment of the present invention;
FIG. 2 is a schematic main flow diagram of a customs declaration method according to yet another embodiment of the present invention;
FIG. 3 is a schematic diagram of a declaration process corresponding to a bonded area according to an embodiment of the present invention;
FIG. 4 is a conceptual model diagram designed for the customs declaration method of the embodiment of the present invention;
FIG. 5 is a schematic diagram of a system architecture for implementing the customs declaration method of the embodiments of the present invention;
FIG. 6 is a schematic flow chart diagram illustrating a customs declaration method according to another embodiment of the present invention;
FIG. 7 is a schematic flow chart diagram illustrating a customs declaration method according to yet another embodiment of the present invention;
FIG. 8 is a schematic diagram of the major modules of a customs declaration system, in accordance with an embodiment of the present invention;
FIG. 9 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 10 is a schematic diagram of a computer apparatus suitable for use in an electronic device to implement an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Terms related to the present embodiment are explained below.
Customs: the national administrative organ for exercising the import and export supervision and management authority according to the law and the administrative rule of the country (or region).
Customs administration: and a national customs management organization.
Bonded area: is an area set by customs of a country or approved for registration, supervised and managed by customs and capable of storing commodities for a long time.
Electronic port: is short for electronic port law enforcement system. The system applies modern information technology, and with the help of the national telecommunication public network, electronic account data of various import and export services are centrally stored in a public data center, a national function management department can perform cross-department and cross-industry networking data check, and enterprises can handle various import and export services on the network.
The goods needing cross-border transaction need to be declared to customs through the electronic port corresponding to the bonded area when being imported and exported, and various documents required by the bonded area are submitted in the declaration process. The documents are various types of documents required for realizing the declaration business, such as 301 type documents (namely orders) for cross-border import, 501 type documents (namely shipping notes), 601 type documents (namely lists) and the like; type 303 documents (i.e., orders), type 403 documents (i.e., receipts), etc. for cross-border export. The type numbers of the bills are self-defined, and one type number corresponds to one type of bill.
The order records the transaction information of the article, including order number, article information, price information and the like; the freight note records logistics information of the goods, including a logistics note number, an order number, goods information, consignee information and the like; the receipt records payment information of the article, including a payment order number, an order number, payer information, a collection amount and the like; the list includes the information of the order, the freight note and the receipt.
Due to the fact that the service ranges of the bonded areas are different, the customs declaration of the bonded areas is different. As described in the background art, in the prior art, a declaration program needs to be separately developed for each bonded area, so that the development efficiency is low, the code amount is large, and the maintenance is difficult. In order to solve the above problems, the present embodiment provides a customs declaration method, which implements one-time development and docking of multiple bonded areas based on an adapter mode, improves development efficiency, reduces code amount, and is convenient for maintenance. In which adapter mode converts the interface of one class to another desired by the user so that classes with incompatible interfaces can work in conjunction. The embodiments are described in detail below with reference to the accompanying drawings.
Example one
Fig. 1 is a schematic diagram of the main steps of a customs declaration method according to an embodiment of the present invention. As shown in fig. 1, the customs declaration method of the embodiment of the present invention mainly includes the following steps:
step S101: receiving the declaration request information, and acquiring corresponding process node information according to the bonded area identification carried in the declaration request information. When a bonded area needs to be butted, a declaration flow meeting the service range can be determined according to the service range of the bonded area, and then flow node information of the bonded area is configured based on the declaration flow. In the embodiment, in order to realize the customs declaration service, the declaration flow needs to include a processing flow of message creation and document declaration on the document.
When the process node information of the bonded area is configured, the declaration process needs to be decomposed to obtain a minimum process unit; then constructing a sub-process based on the minimum process unit, abstracting the sub-process into corresponding nodes, and adding node identifiers for the nodes; then determining the execution sequence of the sub-processes, and taking the execution sequence as the node sequence; and generating the process node information according to the node identification and the node sequence.
The minimum flow unit is used for processing one type of document and is an unreleasable part in the declaration flow. For example, the minimum flow unit may be a processing flow for creating a message for an order, a processing flow for declaring an order, a processing flow for creating a message for a receipt, or the like. A sub-process may be a minimum process element or a combination of adjacent minimum process elements for processing the same type of document. In an embodiment, the flow node information includes a node identification and a node order.
Since one node identifier corresponds to a sub-process, and the sub-process can implement a certain function for one type of document, such as order message creation, order declaration, and the like, one node identifier can indicate the type of document and the node action (function corresponding to the sub-process). For example, the node identifier is 000, the indicated document type is an order, and the node action is the creation of an order message; for another example, the node identifier is 004, the indicated bill type is a receipt, and the node action is a receipt declaration.
And when receiving the declaration request information, analyzing the declaration request information to obtain the bonded area identification and the receipt information. And then, acquiring the flow node information configured for the bonded area according to the bonded area identifier. In an embodiment, the request for declaration information includes bonded area identification and document information.
Step S102: and selecting the current node from the process node information according to the node sequence of the process node information. The initial value of the current node is the first node of the process node information. For example, the node identifier included in the flow node information is node 001, node 002, and node 003, and the node order is a numerical order, then node 001, node 002, and node 003 are sequentially selected, and after each selection, step S103 and step S104 are executed until the last node.
Step S103: and calling a service logic matched with the node action from the adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identification, and executing the service logic. And setting an adapter corresponding to the bill type according to the bill type processed in each bonded area. Such as a setup order adapter, a checklist adapter, etc. The adapter stores business logic for processing the corresponding type of document. Wherein, the business logic is a software logic code obtained by converting the sub-process. The matching of the node action and the service logic means that the sub-process corresponding to the node action is the same as the sub-process corresponding to the service logic.
In an embodiment, the sub-process is a minimum process unit, and at this time, the business logic may include a message creation logic and a document declaration logic. It will be appreciated that if the sub-process is a combination of adjacent minimum process elements for processing the same type of document, such as a sub-process comprising a process of message creation and declaration for an order, the business logic converts the resulting software logic code for the process.
And the message creating logic is used for processing the document information carried in the declaration request information according to a specified message format corresponding to the document type to generate a message. Wherein the message format is specified by customs. The bill type of the bill information is the same as the bill type indicated by the current node identification. And if the document type indicated by the current node identifier is an order and the node action is order message creation, calling a message creation logic from the order adapter, executing the message creation logic, and submitting order information in the request information to obtain an order message meeting the order message format.
The document declaration logic is used for calling a declaration interface corresponding to the document type and sending the message. And if the type of the document indicated by the current node identifier is an order and the node action is order declaration, calling message creation logic from the order adapter, and executing the message creation logic to send an order message to an electronic port corresponding to the bonded area.
In a preferred embodiment, in order to avoid frequently calling the declaration interface of the electronic port and reduce resource consumption, the generated message may be stored (for example, stored in a queue, a database, or the like) and then sent by periodically calling the declaration interface through a timed task. Accordingly, the message creation logic is further operable to store the generated message to a queue. The document declaration logic is also used for calling declaration interfaces corresponding to the document types at regular time and sending the messages in the queues.
Step S104: judging whether the current node is the last node of the process node information, if not, executing the step S102; if the current node is the last node, the flow is ended. Judging whether the current node is the last node of the process node information, if not, repeatedly executing the step S102-the step S104; if the current node is the last node, the customs declaration is completed.
In the embodiment, the bonded area butt joint is realized through the configured flow node information and the adapter, so that the development of the customs declaration program does not depend on a specific bonded area (or an electronic port), the development efficiency is improved, the code amount is reduced, and the maintenance is convenient. For the situation of newly opening a bonded area (namely, a new electronic port needs to be docked), the fast access can be realized by configuring the flow node information of the bonded area and selecting from the existing adapters, and further, the import and export declaration service is realized.
And after receiving the message, the electronic port feeds back receipt information. In the first embodiment, only the basic customs declaration service is realized, and the receipt information is not analyzed and processed, so that the invention provides another customs declaration method for further improving the customs declaration process (see fig. 3), which is specifically shown in the second embodiment. It should be noted that, in the second embodiment, only the part related to the analysis processing of the receipt information is described in detail, and other implementation processes refer to the first embodiment and are not described herein again.
Example two
Fig. 2 is a main flow diagram of a customs declaration method according to another embodiment of the present invention. As shown in fig. 2, the customs declaration method of the embodiment of the present invention mainly includes the following steps:
step S201: receiving the declaration request information, and acquiring corresponding process node information according to the bonded area identification carried in the declaration request information. Because the processing flow of the receipt information is added in the declaration flow, the node identification needs to be correspondingly added in the flow node information, and the node action indicated by the node identification is flow suspension. The node action, such as indicated by node identification 002, is a flow pause. In addition, for a node whose node action is flow suspension, its node identifier may not indicate any document type, i.e., the indicated document type is empty.
Step S202: and selecting the current node from the process node information according to the node sequence of the process node information. The specific implementation of this step is shown in step S102, which is not described herein again.
Step S203: judging whether the node action indicated by the current node identification is flow pause or not, and if the node action indicated by the current node identification is not flow pause, executing the step S204; if the node action indicated by the current node identifier is flow suspension, step S205 is executed.
Step S204: and calling the service logic matched with the node action from the adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identifier, executing the service logic, and executing the step S206. The specific implementation of this step is shown in step S103, which is not described herein again.
Step S205: and acquiring the receipt information, calling a receipt verification logic from the corresponding adapter according to the receipt type carried by the receipt information, executing the receipt verification logic and confirming that the receipt verification is successful. Because the processing flow of the receipt information is added in the declaration flow, the receipt checking logic needs to be added in the service logic of the adapter correspondingly. The receipt checking logic is used for analyzing the receipt information to obtain a receipt state, and confirming whether the receipt checking is successful or failed according to the receipt state.
If the node action indicated by the current node identification is process suspension, the return receipt information can be acquired by using the timing task. The receipt information includes the document type and the receipt status. And analyzing the receipt information to obtain the type of the receipt, calling a receipt verification logic from the adapter of the corresponding type, executing the receipt verification logic, and executing the step S206 after confirming that the receipt verification is successful.
If the receipt type carried by the receipt information is an order, calling a receipt verification logic from the order adapter, executing the receipt verification logic to obtain a receipt state, and if the receipt state is that the order declaration is successful, indicating that the receipt verification is successful; if the receipt status is that the order declaration fails, the receipt verification fails. If the receipt verification fails, the document can be processed based on the declaration failure reason in the receipt information. For example, if the reporting failure reason is that the reporting amount is out of limit, the process is stopped and the reporting is abandoned. And for example, if the reporting failure reason is the missing of the document information, the process is suspended, and the report is repeated after the adjustment until the receipt verification is successful.
Step S206: judging whether the current node is the last node or not, and if not, executing the step S202; if the current node is the last node, the flow is ended.
In a preferred embodiment, after the receipt information is obtained, a notification of successful receipt information receipt may also be sent to the electronic port. Correspondingly, a receipt response logic is added in the business logic of the adapter, and the receipt response logic is used for calling a receipt notification interface corresponding to the bill type and sending a notification of successful receipt information receiving.
Specifically, after the receipt information is acquired in step S205, the receipt response logic may be called from the adapter corresponding to the document type, and a notification of successful receipt of the receipt information may be sent to the electronic port by executing the receipt response logic.
Fig. 3 is a schematic diagram of a declaration process corresponding to a bonded area according to an embodiment of the present invention. As shown in fig. 3, the types of documents that can be received by the electronic port corresponding to the bonded area are order, receipt and waybill, and the declaration flow is realized by the customs declaration system and the electronic port. In an embodiment, the process of declaring a type of document includes: receiving request information for declaration → creating a message → batch processing of message → document declaration → receiving receipt information → pulling receipt information → generating receipt notification → sending receipt notification → receiving receipt notification. Where "→" indicates a data flow direction.
As shown in fig. 3, the customs declaration system includes two parts, a receipt service and a declaration service. In the declaration flow, the part realized by the order receiving service comprises the following steps: receiving declaration request information, creating a message, carrying out batch processing on the message, pulling receipt information and generating a receipt notification; the components implemented by the declaration service include: document declaration, receipt information pulling and receipt notification sending; the declaration section implemented by the electronic port includes: document declaration, receipt information reception, and receipt notification reception. After receiving the message, the electronic port forwards the message to the customs administration, and the customs administration processes the message and feeds back receipt information to the electronic port.
Different types of bills have the same declaration flow. It is understood that fig. 3 illustrates the entire declaration process (i.e., declaring the order, then declaring the receipt, and finally declaring the invoice) by taking the order, receipt, and invoice corresponding to the goods requiring import and export as an example. In practical application, the types of documents which can be processed by the electronic port can be determined based on the business range of the electronic port, and then the complete declaration flow corresponding to the types of the documents is obtained.
In addition, the above declaration flow is only an example, and preferably, after the receipt information is pulled, the declaration flow may further include receipt verification.
In the first and second embodiments, the business logic included in the adapter is determined according to the declaration flow. In a preferred embodiment, the business logic of the adapter can be determined using a conceptual model. The conceptual model is a description of things in the problem domain in the real world, and here, a description of a declaration flow of customs declaration is given. The specific implementation is as follows.
Firstly, taking a customs declaration as a concept, and dividing the concept into sub-concepts according to the type of a document; then establishing a relation between the concept and the sub-concept, and adding attributes to the concept and the sub-concept to obtain a concept model; according to the conceptual model, adapters of different document types can be constructed. The sub-concepts are document declaration of a specified document type, the attributes are actions abstracted from a declaration flow, one sub-concept corresponds to an adapter of a document type, and the service logic of the adapter is program logic (namely software logic codes) for realizing the actions.
Fig. 4 is a conceptual model diagram designed for the customs declaration method according to the embodiment of the present invention. As shown in fig. 4, the concept of customs declaration is divided into two sub-concepts of order declaration and collection statement declaration according to the type of the document, and the declaration flow of customs declaration is abstracted into four actions of message creation, document declaration, receipt verification and receipt response; and then establishing a relation between the sub-concepts (namely order declaration and collection statement) and customs declaration, adding attributes to the customs declaration and each sub-concept, and finishing the construction of the concept model. The attributes here are the four actions described above.
Based on the concept model, one sub-concept corresponds to an adapter of a document type, and business logic of each action in the sub-concept, namely business logic contained in the adapter, is realized. Thus, adapters of different document types can be determined. The embodiment abstracts the customs declaration flow in the real world based on the conceptual model, and determines the business logic which the adapter should contain for different types of documents.
It is to be understood that FIG. 4 illustrates the conceptual model for two document types, an order and a collection slip. In an actual scenario, other document types, such as waybills, manifests, etc., may be included in the conceptual model.
Fig. 5 is a schematic system structure diagram of a customs declaration method according to an embodiment of the present invention. As shown in fig. 5, the customs declaration method of the embodiment of the present invention is implemented by a customs declaration system. The customhouse declaration system can perform information interaction with the receipt receiving system and the electronic port, and comprises a node configuration module, an acquisition module and a declaration module, wherein the declaration module comprises adapters corresponding to different document types. And the electronic port performs information interaction with the customs service. The information interaction among the systems and modules is as follows.
The order receiving system is used for collecting document information such as orders and cash receipts generated by the user in article transaction, generating declaration request information according to the document information and the bonded area identification, and sending the declaration request information to the acquisition module of the customs declaration system. The bonded area mark is the unique mark of bonded areas needing to be jointed, such as the mark of a Qingdao bonded area, a Guangzhou bonded area, a Tianjin bonded area and the like.
And the acquisition module is used for receiving the declaration request information, analyzing the declaration request information to obtain the bonded area identification, acquiring the process node information corresponding to the bonded area identification from the node configuration module, and sending the process node information to the declaration module.
And the node configuration module is used for configuring the flow node information corresponding to the bonded area according to the service range of the bonded area. In the embodiment, the bonded area and the corresponding process node information are stored in a key-value pair mode, wherein the key name is a bonded area identifier, and the corresponding key value is the process node information. Such as the Qingdao bonded area, the key name is: qingdao, the key value is: 000-order message creation, 001-order declaration, 002-process suspension, 003-receipt message creation, 004-receipt declaration, 005-process suspension and 006-process termination. Wherein, the front of the "-" is node identification, and the back of the "-" is meaning represented by the node identification.
The declaration module is used for selecting the current node from the process node information according to the node sequence, and executing the following steps on the current node until the current node is the last node of the process node information: and calling a service logic matched with the node action from the adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identification, and executing the service logic.
In the process of executing the business logic, the declaration module performs information interaction with the electronic port corresponding to the bonded area identifier in the declaration request information, for example, sends an order message to the electronic port, acquires receipt information from the electronic port, and sends a notification of successfully receiving the receipt information to the electronic port. The specific process of information interaction between the electronic port and the customs service is not related to the implementation of the embodiment, and is not further described herein.
For more clear description of the present invention, in the third embodiment, the flow node information corresponding to the Qingdao bonded area is: the customs declaration method is further explained by taking 000-order message creation, 001-order declaration, 003-receipt message creation and 004-receipt declaration as examples. The details are as follows.
EXAMPLE III
Fig. 6 is a main flow chart of a customs declaration method according to another embodiment of the present invention. As shown in fig. 6, the customs declaration method of the embodiment of the present invention mainly includes the following steps:
step S601: receiving the declaration request information, and acquiring corresponding process node information according to the bonded area identification carried in the declaration request information. Assuming that the bonded area identifier carried in the declaration request information is qingdao, the corresponding key value can be searched from the node configuration module through the key name of qingdao, and the flow node information is obtained as follows: 000-order message creation, 001-order declaration, 003-receipt message creation and 004-receipt declaration.
Step S602: and selecting an initial node from the flow node information, calling a service logic matched with the node action from an adapter corresponding to the bill type according to the bill type and the node action indicated by the node identifier of the initial node, and executing the service logic.
The node identifier selected in the step is 000, and since the document type indicated by 000 is an order and the node action is order message creation, a service logic matched with the order message creation is called from the order adapter, namely a message creation service logic is called, and the order message is generated by executing the message creation service logic.
Step S603: taking the selected node as the current node, judging whether the current node is the last node, if not, executing the step S604; if the current node is the last node, the flow is ended. Since the node 000 is not the last node, the process proceeds to step S604.
Step S604: selecting the next node from the process node information, calling a service logic matched with the node action from the adapter corresponding to the document type according to the document type and the node action indicated by the node identifier of the next node, executing the service logic, and executing the step S603.
The node identifier selected in the step is 001, and since the document type indicated by 001 is an order and the node action is order declaration, a business logic matched with the order declaration is called from an order adapter, namely the document declaration business logic is called, and an order message is sent to an electronic port of a Qingdao bonded area by executing the document declaration business logic.
After the bill declaration service logic of the order adapter is executed, step S603 is executed again, and since the node 001 is not the last node, step S604 is executed again. The selected node is marked as 003, because the document type indicated by 003 is a receipt, the node action is the creation of a receipt message, a service logic matched with the creation of the receipt message is called from a receipt adapter, namely the message creation service logic is called, and the receipt message is generated by executing the message creation service logic.
After the execution of the message creation service logic of the receipt adapter is completed, step S603 is executed again, and since the node 003 is not the last node, step S604 is executed again. The selected node is identified as 004, the type of the document indicated by the 004 is a receipt, the node action is receipt declaration, business logic matched with the receipt declaration is called from a receipt adapter, namely the receipt declaration business logic is called, and the receipt message is sent to an electronic port of the Qingdao bonded area by executing the receipt declaration business logic.
And after the receipt declaration business logic of the receipt adapter is executed, executing the step S603 again, wherein the customs declaration process is finished because the node 004 is the last node.
In order to further improve the customs declaration process and analyze and process the receipt information, in the fourth embodiment, the process node information corresponding to the Qingdao bonded area is: the customs declaration method is further explained by taking the examples of 000-order message creation, 001-order declaration, 002-process suspension, 003-receipt message creation, 004-receipt declaration, 005-process suspension and 006-process end. The details are as follows.
Example four
Fig. 7 is a main flow chart of a customs declaration method according to still another embodiment of the present invention. As shown in fig. 7, the customs declaration method of the embodiment of the present invention mainly includes the following steps:
step S701: receiving the declaration request information, and acquiring corresponding process node information according to the bonded area identification carried in the declaration request information. Assuming that the bonded area identifier carried in the declaration request information is qingdao, the corresponding key value can be searched from the node configuration module through the key name of qingdao, and the flow node information is obtained as follows: 000-order message creation, 001-order declaration, 002-process suspension, 003-receipt message creation, 004-receipt declaration, 005-process suspension and 006-process termination.
Step S702: and selecting the current node from the process node information according to the node sequence in the process node information. The current node selected for the first time is the initial node, and the node identification is 000.
Step S703: judging whether the node action indicated by the current node identifier is a process pause or not, and if the node action indicated by the current node identifier is not the process pause, executing the step S704; if the node action indicated by the current node identifier is flow suspension, step S705 is executed. The node selected for the first time is identified as 000, and since the node action indicated by 000 is order message creation, the process is not suspended, and the step S704 is continued.
If the node action indicated by the current node identifier is flow suspension, it indicates that the receipt information fed back by the customs system needs to be waited, and since the receipt information can be obtained through the timing task, the flow needs to wait for the timing task to trigger the processing of the next node after suspension.
Step S704: and calling a service logic matched with the node action from the adapter corresponding to the bill type according to the bill type and the node action indicated by the node identifier of the current node, executing the service logic, and executing the step S708.
The node identifier selected for the first time is 000, since the document type indicated by 000 is an order and the node action is order message creation, a service logic matched with the order message creation is called from the order adapter, namely a message creation service logic is called, and the order message is generated by executing the message creation service logic.
Step S705: and acquiring the receipt information, calling a receipt verification logic from the corresponding adapter according to the receipt type carried by the receipt information, and executing the receipt verification logic. If the node action indicated by the current node identification is flow suspension, the receipt information can be obtained through the timing task, the receipt information is analyzed to obtain the bill type, the adapter of the corresponding type is obtained, and the receipt information is verified by the adapter.
Step S706: judging whether the receipt verification is successful, if the receipt verification is failed, executing step S707; if the receipt verification is successful, step S708 is performed.
Step S707: recording the declaration track, suspending the process, waiting for receiving the result of successful receipt verification, and executing step S708. By recording the declaration track, the node information (including the declaration failure reason) of the receipt verification failure is stored, so that the follow-up check is facilitated. In the embodiment, the documents with the failure in the receipt verification can be regulated and then re-declared based on the reason of failure in declaration in the declaration track until the result of the success in the receipt verification is obtained.
Step S708: judging whether the current node is the last node or not, and if not, executing the step S702; if the current node is the last node, the flow is ended. In an embodiment, a declaration trajectory may be recorded upon determining that the current node is the last node.
Since the node 000 is not the last node, step S702 is executed again to select the next node of the node 000. And at the moment, the selected node identifier is 001, the bill type indicated by 001 is an order, the node action is order declaration, the process is not suspended, a business logic matched with the order declaration is called from an order adapter, namely, the bill declaration business logic is called, and an order message is sent to an electronic port of the Qingdao bonded area by executing the bill declaration business logic.
After the bill declaration service logic of the order adapter is executed, step S708 is executed again, and since the node 001 is not the last node, step S702 is executed again. The node selected this time is identified as 002, and since the node action indicated by 002 is the process suspension, step S705 is executed to acquire the response piece information. And if the receipt type of the receipt information is an order, calling the receipt verification logic of the order adapter, and determining whether the receipt verification is successful or failed by executing the receipt verification logic.
If the receipt verification for the order is successful, step S708 is performed directly. If the receipt verification for the order fails, the declaration trajectory is recorded, and after a result that the receipt verification succeeds is received, step S708 is executed again. Since the node identification is 002 and not the last node, step S702 is executed again. The selected node is marked as 003, the bill type indicated by 003 is a receipt, the node action is the creation of a receipt message, and if the process is not suspended, the service logic matched with the creation of the receipt message is called from the receipt adapter, namely the message creation service logic is called, and the receipt message is generated by executing the message creation service logic.
After the execution of the message creation service logic of the receipt adapter is completed, step S708 is executed again, and since the node 003 is not the last node, step S702 is executed again. The selected node is identified as 004, the type of the document indicated by the 004 is a receipt, the node action is the receipt declaration, the process is not suspended, the business logic matched with the receipt declaration is called from the receipt adapter, namely the receipt declaration business logic is called, and the receipt message is sent to the electronic port of the Qingdao bonded area by executing the receipt declaration business logic.
After the receipt declaration service logic of the receipt adapter is executed, step S708 is executed again, and since the node 004 is not the last node, step S702 is executed again. The node selected this time is identified as 005, and since the node action indicated by 005 is the process suspension, step S705 is executed to acquire the response piece information. And if the receipt type of the receipt information is the receipt, calling the receipt verification logic of the receipt adapter, and determining whether the receipt verification is successful or failed by executing the receipt verification logic.
If the receipt verification for the receipt is successful, step S708 is directly performed. If the receipt verification of the receipt fails, the declaration track is recorded, and after a result that the receipt verification succeeds is received, step S708 is executed again. Since the node identification is 005 and not the last node, step S702 is executed again. The node identifier selected this time is 006, and since the node action indicated by 006 is process end, it indicates that the node is the end node of the declaration process, and the customs declaration process is ended.
As can be seen from the fourth embodiment, the configured flow node information is acquired through the bonded area identifier, and then the node identifier indication node action is sequentially executed according to the node sequence contained in the flow node information by using the adapter corresponding to the document type, so that the document information in the declaration request information can be pushed to the customs system. The customs system feeds back receipt information, pulls the receipt information through a timing task, acquires an adapter of a corresponding type based on the receipt type carried by the receipt information, and executes subsequent node actions.
Fig. 8 is a schematic diagram of the main modules of a customs declaration system according to an embodiment of the present invention. As shown in fig. 8, a customs declaration system 800 according to an embodiment of the present invention mainly includes:
an obtaining module 801, configured to receive the declaration request information, and obtain corresponding process node information according to the bonded area identifier carried in the declaration request information. When a bonded area needs to be butted, a declaration flow meeting the service range can be determined according to the service range of the bonded area, and then flow node information of the bonded area is configured based on the declaration flow. In the embodiment, in order to realize the customs declaration service, the declaration flow needs to include a processing flow of message creation and document declaration on the document.
And when receiving the declaration request information, analyzing the declaration request information to obtain the bonded area identification and the receipt information. And then, acquiring the flow node information configured for the bonded area according to the bonded area identifier. In an embodiment, the request for declaration information includes bonded area identification and document information.
A reporting module 802, configured to select a current node from the process node information according to the node sequence, and perform the following steps on the current node until the current node is a last node of the process node information: and calling a service logic matched with the node action from an adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identification, and executing the service logic. The initial value of the current node is the first node of the process node information.
And setting an adapter corresponding to the bill type according to the bill type processed in each bonded area. The adapter stores business logic for processing the corresponding type of document. Wherein, the business logic is to convert the sub-processes of the application process to obtain the software logic code. In an embodiment, the sub-process is a minimum process unit, and at this time, the business logic may include a message creation logic and a document declaration logic.
And the message creating logic is used for processing the document information carried in the declaration request information according to a specified message format corresponding to the document type to generate a message. And if the document type indicated by the current node identifier is an order and the node action is order message creation, calling a message creation logic from the order adapter, executing the message creation logic, and submitting order information in the request information to obtain an order message meeting the order message format.
The document declaration logic is used for calling a declaration interface corresponding to the document type and sending the message. And if the type of the document indicated by the current node identifier is an order and the node action is order declaration, calling message creation logic from the order adapter, and executing the message creation logic to send an order message to an electronic port corresponding to the bonded area.
After the business logic is executed, judging whether the current node is the last node of the process node information, if not, repeatedly executing the processing process of the declaration module 802; if the current node is the last node, the customs declaration is completed.
In addition, the customs declaration system 800 of the embodiment of the present invention may further include: a receipt processing module, a node configuration module, an adapter build module, and a receipt response module (not shown in FIG. 8). And the receipt response module is used for calling the receipt response logic from the adapter corresponding to the bill type and executing the receipt response logic.
The receipt processing module is used for determining that the node action indicated by the current node identifier is flow pause and acquiring receipt information; and calling the receipt verification logic from the corresponding adapter according to the receipt type carried by the receipt information, executing the receipt verification logic and confirming that the receipt verification is successful.
The node configuration module is used for determining a declaration process meeting the service range according to the service range of the bonded area; abstracting sub-processes in the declaration process into corresponding nodes, and adding the node identification for the nodes; and taking the execution sequence of the sub-processes as the node sequence, and generating the process node information according to the node identification and the node sequence.
The adapter construction module is used for dividing the concept into sub-concepts according to the receipt type by taking customs declaration as the concept; wherein the sub-concept is a document declaration of a specified document type; establishing a relation between the concept and the sub-concept, and adding attributes to the concept and the sub-concept to obtain a concept model; wherein the attribute is an action abstracted from the declaration flow; constructing the adapters of different bill types according to the conceptual model; wherein the business logic of the adapter is program logic that implements the action.
As can be seen from the above description, by obtaining the process node information corresponding to the bonded areas, and then selecting the corresponding adapter according to the process node information, and calling the service logic therein, the customs declaration service is completed, and a plurality of bonded areas are developed and docked at one time based on the adapter mode, so that the development efficiency is improved, the code amount is reduced, and the maintenance is facilitated.
Fig. 9 illustrates an exemplary system architecture 900 of a customs declaration method or system to which embodiments of the present invention may be applied.
As shown in fig. 9, the system architecture 900 may include end devices 901, 902, 903, networks 904, 906, 908, 910, and servers 905, 907, 909, 911. Network 904 is the medium used to provide communication links between terminal devices 901, 902, 903 and server 905. Networks 906, 908, 910 serve to provide a medium for communication links between servers 905, 907, 909, 911. The networks 904, 906, 908, 910 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may use the terminal devices 901, 902, 903 to interact with a server 905 over a network 904 to receive or send messages and the like. The terminal devices 901, 902, 903 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 901, 902, 903 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The servers 905, 907, 909, and 911 may be servers that provide various services, and for example, the server 905 may be a backend management server that processes orders sent by users using the terminal apparatuses 901, 902, and 903. The server 907 may be a background management server that processes the declaration request information transmitted by the server 905. The server 909 is used to set up the electronic port system. The server 911 is used to set up a customs service system.
It should be noted that the customs declaration method provided in the embodiment of the present application is generally executed by the server 907, and accordingly, the customs declaration system is generally disposed in the server 907.
It should be understood that the number of terminal devices, networks, and servers in fig. 9 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The invention also provides an electronic device and a computer readable medium according to the embodiment of the invention.
The electronic device of the present invention includes: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a customs declaration method of an embodiment of the present invention.
The computer-readable medium of the present invention has stored thereon a computer program which, when executed by a processor, implements a customs declaration method of an embodiment of the present invention.
Referring now to FIG. 10, shown is a block diagram of a computer system 1000 suitable for use in implementing an electronic device of an embodiment of the present invention. The electronic device shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 10, the computer system 1000 includes a Central Processing Unit (CPU)1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for the operation of the computer system 1000 are also stored. The CPU 1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, the processes described above with respect to the main step diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program containing program code for performing the method illustrated in the main step diagram. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 1001.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes an acquisition module and a declaration module. For example, the obtaining module may be further described as a module that receives the declaration request information and obtains corresponding process node information according to the bonded area identifier carried in the declaration request information.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: receiving declaration request information, and acquiring corresponding process node information according to bonded area identification carried in the declaration request information; the flow node information is generated according to a reporting flow of a bonded area and comprises a node identifier and a node sequence which correspond to a sub-flow of the reporting flow, and the node identifier is used for indicating the bill type and the node action of a bill processed by the sub-flow; according to the node sequence, selecting a current node from the process node information, and executing the following steps on the current node until the current node is the last node of the process node information: and calling a service logic matched with the node action from an adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identification, and executing the service logic.
According to the technical scheme of the embodiment of the invention, the corresponding adapter is selected according to the flow node information corresponding to the bonded area and the business logic in the adapter is called to complete the customs declaration business, and the multiple bonded areas are developed and butted at one time based on the adapter mode, so that the development efficiency is improved, the code amount is reduced, and the maintenance is convenient.
The product can execute the method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A customs declaration method, comprising:
receiving declaration request information, and acquiring corresponding process node information according to bonded area identification carried in the declaration request information; the flow node information is generated according to a reporting flow of a bonded area and comprises a node identifier and a node sequence which correspond to a sub-flow of the reporting flow, and the node identifier is used for indicating the bill type and the node action of a bill processed by the sub-flow;
according to the node sequence, selecting a current node from the process node information, and executing the following steps on the current node until the current node is the last node of the process node information:
and calling a service logic matched with the node action from an adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identification, and executing the service logic.
2. The method of claim 1, wherein the node actions include message creation and document declaration, and wherein the business logic includes message creation logic and document declaration logic; wherein,
the message creating logic is used for processing the document information carried in the declaration request information according to a specified message format corresponding to the document type to generate a message; the bill type of the bill information is the same as the bill type indicated by the current node identifier;
and the bill declaration logic is used for calling a declaration interface corresponding to the bill type and sending the message.
3. The method of claim 1, wherein the node action comprises a flow pause, and wherein the business logic comprises receipt checking logic;
before the step of calling the business logic matched with the node action from the adapter corresponding to the bill type, the method further includes:
determining that the node action indicated by the current node identification is process pause, and acquiring receipt information;
calling the receipt verification logic from a corresponding adapter according to the receipt type carried by the receipt information, executing the receipt verification logic, and confirming that the receipt verification is successful;
the calling of the business logic matched with the node action from the adapter corresponding to the bill type comprises the following steps:
and determining whether the node action indicated by the current node identification is flow pause or not, and calling a service logic matched with the node action from an adapter corresponding to the bill type.
4. The method of claim 1, wherein before the step of obtaining the corresponding process node information, the method further comprises:
determining a declaration process meeting the service range according to the service range of the bonded area;
abstracting sub-processes in the declaration process into corresponding nodes, and adding the node identification for the nodes;
and taking the execution sequence of the sub-processes as the node sequence, and generating the process node information according to the node identification and the node sequence.
5. The method according to any one of claims 1-4, further comprising:
taking customs declaration as a concept, and dividing the concept into sub-concepts according to the receipt type; wherein the sub-concept is a document declaration of a specified document type;
establishing a relation between the concept and the sub-concept, and adding attributes to the concept and the sub-concept to obtain a concept model; wherein the attribute is an action abstracted from the declaration flow;
constructing the adapters of different bill types according to the conceptual model; wherein the business logic of the adapter is program logic that implements the action.
6. The method of claim 3, wherein the receipt checking logic is configured to parse the receipt information to obtain a receipt status, and to confirm success or failure of the receipt checking according to the receipt status.
7. The method of claim 3, wherein the node action comprises a response receipt response, and wherein the business logic comprises response receipt response logic;
after the step of obtaining the receipt information, the method further comprises:
and calling the receipt response logic from the adapter corresponding to the bill type, and executing the receipt response logic.
8. A customs declaration system, comprising:
the acquiring module is used for receiving the declaration request information and acquiring corresponding process node information according to the bonded area identification carried in the declaration request information; the flow node information is generated according to a reporting flow of a bonded area and comprises a node identifier and a node sequence which correspond to a sub-flow of the reporting flow, and the node identifier is used for indicating the bill type and the node action of a bill processed by the sub-flow;
a reporting module, configured to select a current node from the process node information according to the node sequence, and execute the following steps on the current node until the current node is a last node of the process node information:
and calling a service logic matched with the node action from an adapter corresponding to the bill type according to the bill type and the node action indicated by the current node identification, and executing the service logic.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202110251341.6A 2021-03-08 2021-03-08 Customs declaration method and system Active CN113780969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110251341.6A CN113780969B (en) 2021-03-08 2021-03-08 Customs declaration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110251341.6A CN113780969B (en) 2021-03-08 2021-03-08 Customs declaration method and system

Publications (2)

Publication Number Publication Date
CN113780969A true CN113780969A (en) 2021-12-10
CN113780969B CN113780969B (en) 2023-11-07

Family

ID=78835546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110251341.6A Active CN113780969B (en) 2021-03-08 2021-03-08 Customs declaration method and system

Country Status (1)

Country Link
CN (1) CN113780969B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114254978A (en) * 2021-12-22 2022-03-29 华中科技大学同济医学院附属协和医院 Aging tracking method of fresh preparation, electronic equipment and storage medium
CN114579215A (en) * 2022-03-07 2022-06-03 首约科技(北京)有限公司 Automatic control method for program execution logic and sequence

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177820A1 (en) * 2003-12-19 2005-08-11 International Business Machines Corporation Method and system for debugging business process flow
US8347203B1 (en) * 2004-07-23 2013-01-01 Verizon Data Services Llc Methods and systems for defining a form navigational structure
CN110097331A (en) * 2019-03-28 2019-08-06 东软集团股份有限公司 Method of calibration, device, storage medium and the electronic equipment of business form
CN111815292A (en) * 2020-07-21 2020-10-23 腾讯科技(深圳)有限公司 Business approval method and device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177820A1 (en) * 2003-12-19 2005-08-11 International Business Machines Corporation Method and system for debugging business process flow
US8347203B1 (en) * 2004-07-23 2013-01-01 Verizon Data Services Llc Methods and systems for defining a form navigational structure
CN110097331A (en) * 2019-03-28 2019-08-06 东软集团股份有限公司 Method of calibration, device, storage medium and the electronic equipment of business form
CN111815292A (en) * 2020-07-21 2020-10-23 腾讯科技(深圳)有限公司 Business approval method and device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周宁;张建辉;胡宇翔;刘媛妮;汪斌强;: "基于群集运动智能的SDN业务传输优化技术", 重庆邮电大学学报(自然科学版), no. 03 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114254978A (en) * 2021-12-22 2022-03-29 华中科技大学同济医学院附属协和医院 Aging tracking method of fresh preparation, electronic equipment and storage medium
CN114579215A (en) * 2022-03-07 2022-06-03 首约科技(北京)有限公司 Automatic control method for program execution logic and sequence

Also Published As

Publication number Publication date
CN113780969B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
CN104378341A (en) Template obtaining method, template providing method, device and system
CN110619555A (en) Unified management method and device for order information, terminal equipment and medium
CN113780969B (en) Customs declaration method and system
CN111444077A (en) Method and device for generating flow node test data
CN112434982A (en) Task processing method, device and system, storage medium and electronic equipment
CN113112348A (en) Processing method and device of social security data, electronic equipment and storage medium
CN113205402A (en) Account checking method and device, electronic equipment and computer readable medium
CN113806400A (en) Financial data processing method and device, storage medium and electronic equipment
CN112348326A (en) Bank business processing method and system
CN113392093A (en) Service processing method and device, electronic equipment and computer readable medium
CN112348460A (en) Resource limit adjusting method and device of cooperative task and electronic equipment
CN111984234A (en) Method and device for processing work order
CN113535101B (en) Print file generation method and device, storage medium and electronic equipment
CN115801873A (en) Service distribution method, system, electronic device and storage medium
CN113592571A (en) Bill issuing early warning method, device, equipment and computer readable medium
CN113448960A (en) Method and device for importing form file
CN113361733A (en) Processing method and device for reserved service
CN111857876A (en) Service processing method and device, electronic equipment and computer readable medium
CN111126937B (en) House selection transaction processing method and device
CN113268417B (en) Task execution method and device
CN107180091B (en) Method and device for outputting information page
CN112215531B (en) Method and device for solving logistics distribution problem
CN116883109A (en) Service processing method, device, electronic equipment and computer readable medium
CN115619337A (en) Method and device for processing signed report data, electronic equipment and storage medium
CN115526587A (en) Method and device for generating customs message

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