Customs data distribution method, device and electronic device based on data ownership

Through the customs data distribution method based on data ownership, the problem of low distribution efficiency caused by complex customs data ownership is solved, the rapid distribution of customs business data is achieved, the data distribution efficiency is improved and server resources are saved.

CN117640772BActive Publication Date: 2024-10-01BEIJING ZHONGHAITONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311585620.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2024-10-01
Estimated Expiration
2043-11-24

AI Technical Summary

Technical Problem

The ownership of customs data is complex, resulting in low efficiency of data distribution among different customs, making it difficult to meet the data usage needs of direct and subordinate customs.

Method used

The customs data distribution method based on data ownership determines the customs office by obtaining the data to be distributed, querying the business subscription table, and sends the data according to the customs network address. It uses hypertext transfer protocol or message queue transmission method to ensure that the data arrives accurately and quickly.

Benefits of technology

It achieves rapid distribution of customs business data across multiple customs districts, improves data distribution efficiency, saves server resources, and opens up new ideas for customs data distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117640772B_ABST
    Figure CN117640772B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device and electronic device for distributing customs data based on data ownership, including obtaining data to be distributed, querying a service subscription table according to the data to be distributed, obtaining the designated customs to which the data to be distributed belongs, and sending the data to be distributed to the network address registered by the designated customs in the service subscription table. This method can utilize the characteristics of the customs area code to effectively and quickly distribute the ownership of customs business data in multiple customs areas, improve data distribution efficiency, save server resources, and open up a new idea for customs data distribution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of customs data management, and in particular to a customs data distribution method, device and electronic device based on data ownership. Background Art

[0002] As a department directly under the State Council, the Customs adopts vertical management, and is divided into the General Administration, directly affiliated customs, and subordinate customs from top to bottom. The General Administration of Customs manages all customs in the country. Directly affiliated customs refer to customs directly led by the General Administration of Customs and responsible for managing customs business within a certain area. Subordinate customs refer to customs directly led by directly affiliated customs and responsible for handling specific customs business.

[0003] In the customs system, business data is centralized in the General Administration of Customs, but each directly affiliated customs and subordinate customs have the need to use the data within their jurisdiction, such as statistical analysis, personalized services, etc. However, the ownership of customs data is relatively complex. For example, a piece of customs declaration data may belong to different customs because the declaration port and the import and export port belong to different customs. Therefore, when the data is issued, it needs to be sent to two or even more directly affiliated customs; for another example, a directly affiliated customs needs to receive data from all subordinate customs under the jurisdiction of the directly affiliated customs. Summary of the invention

[0004] In view of this, the present application proposes a customs data distribution method based on data ownership to solve the problems reflected in the background technology.

[0005] In one aspect, the present application provides a method for distributing customs data based on data ownership, the method comprising the following steps:

[0006] Get the data to be distributed;

[0007] According to the data to be distributed, query the service subscription table to obtain the designated customs to which the data to be distributed belongs;

[0008] According to the network address registered by the designated customs in the service subscription table, the data to be distributed is sent to the network address.

[0009] As an optional implementation scheme of the present application, optionally, the obtaining of the data to be distributed includes:

[0010] Get business data;

[0011] According to the data type of the business data in the business subscription table and the customs to which it belongs, encapsulating the business data in a prescribed format to obtain data to be distributed;

[0012] The data to be distributed is sent to the data distribution end through the interface.

[0013] As an optional implementation scheme of the present application, optionally, the data to be distributed is transmitted to the data distribution end through an interface, further comprising:

[0014] After receiving the data to be distributed, the data distribution end returns a successful reception response to the interface.

[0015] As an optional implementation scheme of the present application, optionally, the service subscription table includes:

[0016] Each customs subscribes to the required services;

[0017] According to the business, each customs registers a network address for receiving the business;

[0018] The services and the network addresses are sorted to obtain a service subscription table.

[0019] As an optional implementation scheme of the present application, optionally, sending the data to be distributed to the network address further includes:

[0020] The data to be distributed is sent using a transmission method based on the hypertext transfer protocol.

[0021] As an optional implementation scheme of the present application, optionally, sending the data to be distributed to the network address further includes:

[0022] The data to be distributed is sent in a message queue transmission manner.

[0023] As an optional implementation scheme of the present application, optionally, sending the data to be distributed to the network address further includes:

[0024] If no successful receipt response is received from the designated customs within the preset period, it is determined that an error occurred during the sending process;

[0025] If an error occurs during the sending process, the data to be distributed is resent after a preset time period. When a successful reception response returned by the designated customs is received, the designated customs successfully receives the data to be distributed.

[0026] In a second aspect, the present application proposes a customs data distribution device based on data ownership, comprising:

[0027] A data acquisition module is used to acquire data to be distributed;

[0028] A query module, used for querying the service subscription table according to the data to be distributed, and obtaining the designated customs to which the data to be distributed belongs;

[0029] The sending module is used to send the data to be distributed to the network address registered by the designated customs in the service subscription table.

[0030] As an optional implementation scheme of the present application, optionally, the sending module includes:

[0031] A receiving success response module, used to determine that an error occurs during the sending process if no receiving success response is received from the designated customs within a preset period of time;

[0032] The resending module is used to resend the data to be distributed after a preset time period if an error occurs during the sending process. When a successful reception response returned by the designated customs is received, the designated customs successfully receives the data to be distributed.

[0033] In the third aspect of the present application, an electronic device is proposed, comprising:

[0034] processor;

[0035] a memory for storing processor-executable instructions;

[0036] Wherein, the processor is configured to implement the above-mentioned customs data distribution method based on data ownership when executing the executable instructions.

[0037] Beneficial effects of this application:

[0038] Through the present invention, for a directly affiliated customs, the business data of multiple subordinate customs under its jurisdiction can be subscribed through the customs area code of the customs. The same business data can contain multiple subordinate customs area codes, so that one piece of data can be received by multiple customs. By utilizing the characteristics of the customs area code, the ownership of customs business data in multiple customs areas is effectively and quickly distributed, the data distribution efficiency is improved, the server resources are saved, and a new idea for customs data distribution is opened up.

[0039] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.

[0041] Figure 1 A flow chart showing a method for distributing customs data based on data ownership according to an embodiment of the present application;

[0042] Figure 2 A data distribution system framework diagram based on data ownership according to an embodiment of the present application is shown;

[0043] Figure 3A block diagram of a customs data distribution device based on data ownership according to an embodiment of the present application is shown; DETAILED DESCRIPTION

[0044] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0045] Among them, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application or simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0046] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0047] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0048] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.

[0049] Figure 1 FIG. 1 is a flow chart showing a method for distributing customs data based on data ownership according to an embodiment of the present application. Figure 1 As shown in the figure, through this process, the data of the General Administration of Customs is distributed to each directly affiliated customs and subordinate customs according to the data ownership, which can meet the needs of each customs to use the data within its jurisdiction. The method includes:

[0050] S100, obtaining data to be distributed;

[0051] The data to be distributed includes business data and customs area codes. The business data refers to the business data that the direct customs or subordinate customs book with the enterprise according to the data demand. The enterprise provides the scheduled business data to the customs. This process is the customs subscription of business data. The data to be distributed includes one or more customs area codes. For the same business data, different customs may use it in different situations. For example, for business data a, customs A and customs B are within their jurisdiction. Customs A uses business data a for statistical analysis of customs business, and customs B uses business data a for personalized service design according to the characteristics within its jurisdiction.

[0052] S200, querying a service subscription table according to the data to be distributed, and obtaining a designated customs to which the data to be distributed belongs;

[0053] The business subscription table contains the business corresponding to the business data subscribed by each directly affiliated customs and subordinate customs, and the network address and customs district code of each directly affiliated customs and subordinate customs for receiving the subscribed business data. Because the names of customs districts are numerous and complex, it is difficult to determine the affiliation between customs in the literal sense. Therefore, the customs district code is used, which not only concisely refers to specific customs but also reflects the affiliation between customs. For example, the customs district code of the Beijing customs district in the directly affiliated customs is 100; the customs district code of the Tianjin customs in the subordinate customs is 201, and the customs district code of the directly affiliated customs Tianjin customs district that manages it is 200.

[0054] S300: Send the data to be distributed to the network address registered by the designated customs in the service subscription table.

[0055] After determining to which customs the data to be distributed will be sent according to the customs area code in the data to be distributed, the data to be distributed is sent to the network address registered in the business subscription table by the corresponding customs.

[0056] As an optional implementation scheme of the present application, optionally, in step S100, the obtaining of the data to be distributed includes:

[0057] S101, obtaining business data;

[0058] After each customs has subscribed to a service based on demand, the business party will provide the customs with the business data it needs. For example, Tianjin Customs, one of the affiliated customs, has subscribed to service a from a certain enterprise. The enterprise will provide the business data of service a required by Tianjin Customs. The General Administration of Customs manages all customs, so the General Administration of Customs will first receive the business data containing service a of a certain enterprise.

[0059] S102, encapsulating the business data in a prescribed format according to the data type of the business data in the business subscription table and the customs to which it belongs, to obtain data to be distributed;

[0060] In this embodiment, after receiving the business data, the General Administration of Customs encapsulates the business data in accordance with the prescribed format according to the data types corresponding to the different business data and the customs corresponding to the business data. Taking the case where the General Administration of Customs receives business data containing business a of a certain enterprise as an example, after receiving the business data, the General Administration of Customs consults the business subscription table to determine the customs district code of the subscribed business a, and determines that this business data needs to be sent to Tianjin Customs through the customs district name corresponding to the customs district code. According to the specific data type required by Tianjin Customs in the business subscription table, the General Administration of Customs performs type conversion on the business data, and then encapsulates the business data with the completed type conversion according to the customs district code 201 of Tianjin Customs, and obtains the data to be distributed to Tianjin Customs. Since the Tianjin Customs' direct customs, Tianjin Customs, directly manages Tianjin Customs, it is also necessary to encapsulate a copy of the data to be distributed to the Tianjin Customs District according to the data type and prescribed format required by the Tianjin Customs District, combined with the code 200 of the Tianjin Customs District, so as to achieve the purpose of receiving the data of all subordinate customs under the jurisdiction of the direct customs for the direct customs. It should be noted here that the prescribed format is determined according to user needs and is not limited here.

[0061] S103: The data to be distributed is sent to the data distribution end through an interface.

[0062] The data distribution end is responsible for receiving the encapsulated business data and sending it to the customs that needs its business data.

[0063] As an optional implementation scheme of the present application, optionally, in step S103, it further includes:

[0064] After receiving the data to be distributed, the data distribution end returns a successful reception response to the interface.

[0065] After receiving the data to be distributed, the data distribution end will store it in the database of the data distribution end to ensure that the data is not lost and avoid the situation where the source of data loss cannot be found. For example, when the customs does not receive the data to be distributed and confirms that the data distribution end has not sent it, the customs cannot determine whether the data is lost in the step of the General Administration of Customs encapsulating the data or in the step of the General Administration of Customs sending it to the data distribution end through the interface. Therefore, after the data distribution end successfully stores the data to be distributed, it will return a successful reception response to the interface.

[0066] As an optional implementation scheme of the present application, optionally, in step S200, the service subscription table includes:

[0067] S201. Each customs subscribes to the required services;

[0068] Affiliated customs is responsible for handling specific customs business. Affiliated customs subscribes to specific business related to it. Direct customs manages subordinate customs. One direct customs may manage multiple subordinate customs. When each customs subscribes to the required business, it needs to record the subscribed business and the network address, customs district name and customs district code for receiving the business data during registration. For example, if a direct customs subscribes to the Beijing customs district, the registration for the customs district code is 100.

[0069] When the subordinate customs subscribes to the Beijing Customs Exhibition, the registration of the customs area code is 103, among which the subordinate customs Beijing Customs Exhibition is directly led by the Beijing Customs District of the direct customs. In particular, in the case where the direct customs manages multiple subordinate customs, the direct customs can directly subscribe to the customs area code of the subordinate customs it manages. At this time, the customs area code of the subordinate customs is the business subscribed by the direct customs. The business data that needs to be sent to the subordinate customs will also be sent to the direct customs that manages it, so that the direct customs can timely understand the situation of the subordinate customs.

[0070] S202. According to the service, each customs registers a network address for receiving the service;

[0071] Taking the subordinate customs as an example, when a subordinate customs subscribes to multiple services as needed, it is necessary to specify the network address corresponding to each subscribed service. The corresponding network address can be one or more. When the network address is multiple, for example, service 1 registers network address 1, and service 2 registers network address 2. The number of network addresses is not limited.

[0072] Similarly, the direct customs corresponding to the subordinate customs that subscribes to Business 1 and Business 2 will also receive business data about Business 1 and Business 2; therefore, the direct customs needs to register its network address for receiving business data about Business 1 and Business 2.

[0073] Taking the affiliated customs Tianjin Customs as an example, after determining the subscription business 1 and business 2, the registered network address 1 is used to receive the business data of business 1, and the network address 2 is used to receive the business data of business 2. The Tianjin Customs District, its directly affiliated customs, directly manages Tianjin Customs. The Tianjin Customs District also needs to receive the business data of business 1 and business 2. The Tianjin Customs District can set a network address to receive the business data of business 1 and business 2. One or more network addresses can be used, and there is no limitation here.

[0074] S203: Arrange the services and the network addresses to obtain a service subscription table.

[0075] Each customs subscription business and registered network address is not in order of region or time, so it is necessary to organize each customs subscription business and registered network address, which can be organized through the customs area code table that reflects the affiliation of each customs.

[0076] The customs area code consists of four digits. The first two digits are the customs code of the directly affiliated customs in customs statistics, and the last two digits are the code of the affiliated customs. The name of the customs area is the Chinese name of the customs at each port. The following two examples will help you understand the customs area code.

[0077] If the code table only contains the customs type and code of the directly affiliated customs, you can fill in the name and code of the directly affiliated customs. For example, if you go through the import and export declaration formalities at Taiyuan Customs, you need to fill in "Taiyuan Customs" and the code "0500".

[0078] If there is a customs type and code, you must fill in the customs type and code. For example, if you go through import and export declaration formalities at Shanghai Pujiang Customs, you must not fill in "Shanghai Customs" and code "2200" in this column, but must fill in "Shanghai Pujiang Customs" and code "2201".

[0079] Because it is difficult to distinguish between directly affiliated customs and subordinate customs due to the use of customs district names for sequential sorting, and the text of the names is relatively complex compared to the numeric codes, therefore, the businesses subscribed by each directly affiliated customs and the customs district codes and registered network addresses of the subordinate customs they subscribe to can be sorted out according to the order of customs district codes; and then, according to the customs district codes of the subordinate customs under each directly affiliated customs, the businesses and network addresses subscribed by each subordinate customs can be sorted out one by one.

[0080] In addition, in addition to the business subscribed by each customs and the network address, customs name and customs code for receiving the business data, other records can be added according to needs. For example, if the data type of business data required by a customs is special, then the corresponding records are added to the business subscription table according to the customs regulations. Adding records and sorting rules are determined by user needs and are not limited here.

[0081] The sorted business subscription table can be synchronously saved to each work end that needs to consult the business subscription table, such as the General Administration of Customs, data distribution end, etc. When encapsulating business data, the General Administration of Customs performs corresponding encapsulation according to the customs area code in the business subscription table; in a specific embodiment, the same business data is subscribed by multiple customs, but when consulting the business subscription table, it is found that multiple customs have different requirements for the encapsulation of the business data, then the General Administration of Customs needs to encapsulate the business data according to the requirements. The data distribution end distributes data according to the network address in the business subscription table.

[0082] As an optional implementation scheme of the present application, optionally, sending the data to be distributed to the network address further includes:

[0083] The data to be distributed is sent using a transmission method based on the hypertext transfer protocol.

[0084] In this embodiment, the data distribution end sends the data to be distributed to each website. For the data distribution end, there is a large amount of data to be distributed. When a large amount of data to be distributed needs to be sent, according to the simplicity of the hypertext transfer protocol, a transmission method based on the hypertext transfer protocol can be selected to send the data. For a large number of files, it can be processed quickly to improve the sending efficiency.

[0085] As an optional implementation scheme of the present application, optionally, sending the data to be distributed to the network address further includes:

[0086] The data to be distributed is sent in a message queue transmission manner.

[0087] The data distribution end and the customs data receiving end do not need to be very tightly coupled. For multiple copies of data to be distributed, a fixed number of data to be distributed can be grouped together. Using the message queue method, a group of multiple data to be distributed can be sent to the message queue. After responding to the customs data receiving end, the data to be distributed in the message queue are sent to the specified network address in sequence. The customs data receiving end can receive the data to be distributed after a fixed time. When the current group of data to be distributed is in the message queue, the data distribution end can prepare the next group of data to be distributed. Since very tight coupling is not required, the response speed and stability are improved.

[0088] As an optional implementation scheme of the present application, optionally, sending the data to be distributed to the network address further includes:

[0089] If no successful receipt response is received from the designated customs within the preset period, it is determined that an error occurred during the sending process;

[0090] Establishing a judgment process can ensure whether the designated customs has received the data to be distributed. The preset time period is defined by the user and is not limited here.

[0091] If an error occurs during the sending process, the data to be distributed is resent after a preset time period. When a successful reception response returned by the designated customs is received, the designated customs successfully receives the data to be distributed.

[0092] During the sending process, the receiving port of the designated customs may fail. In order not to affect the sending of other data to be distributed, the data to be distributed that has not been sent successfully can be resent after a period of time. The preset time period is determined by the user and is not limited here.

[0093] Through the above method, the characteristics of customs area codes that reflect the affiliation between customs are utilized to effectively and quickly distribute the ownership of customs business data in multiple customs areas, thereby improving data distribution efficiency, saving server resources, and opening up new ideas for customs data distribution.

[0094] Example 2

[0095] Figure 2 FIG. 2 shows a data distribution system framework diagram based on data ownership according to an embodiment of the present application. Figure 2 As shown in FIG. 1 , the system involves the following modules: application system end, data sending interface, data distribution module and data receiving module. Figure 2 The modules included in the document explain the implementation of the customs data distribution method based on data ownership.

[0096] Step 1: Each directly affiliated customs and subordinate customs subscribes to the required business data, and registers the network address for receiving business data. The subscribed business data is sorted according to the customs area code of each directly affiliated customs and subordinate customs to obtain a business subscription table, which is saved on the application system side. Because the customs area code uses numbers to represent the customs area name, saving the subscription table in the form of the subscribed business data corresponding to the customs area code is not only concise and clear, but also improves the performance of system operation.

[0097] Step 2. When receiving external business data, the General Administration application system in the application system end provides the directly affiliated customs and / or subordinate customs and their customs district code, business data type to which the business data belongs according to the requirements of data distribution and the business subscription table in the application system end, and packages it according to the agreed format to obtain the data to be distributed. After the General Administration application system assembles the data to be distributed, it calls the data sending interface to send it to the data distribution module.

[0098] Step 3: After receiving the data to be distributed, the data distribution module stores the data in the database to ensure that the data is not lost. After the data is successfully stored in the database, a successful data distribution response is returned through the data delivery interface, and the data distribution process begins at this time.

[0099] Step 4: The data distribution module distributes data according to the data to be distributed and the data in the business subscription table. Through the customs area code in the data to be distributed, it is known that a customs has subscribed to the business data in the data to be distributed. Then, according to the network address corresponding to the customs area code registered in the business subscription table, the data to be distributed is sent. If an error occurs during the receiving process, the sending is retried after a period of time until the sending is successful.

[0100] Step 5: Each directly affiliated customs and subordinate customs receives the business data packaged in the agreed format through the data receiving terminal in the data receiving module and completes the data storage.

[0101] Through the customs data distribution method based on data ownership used in the system, for directly affiliated customs, it is possible to subscribe to the business data of multiple subordinate customs under its jurisdiction by subscribing to the customs district code of the customs; similarly, the same business data can contain multiple customs district codes of subordinate customs, thereby achieving the effect that one piece of data can be received by multiple customs.

[0102] Example 3

[0103] Based on the same principle as the above method, a customs data distribution device based on data ownership is also proposed, see Figure 3 A customs data distribution device 100 based on data ownership according to an embodiment of the present disclosure includes:

[0104] A data acquisition module 110 is used to acquire data to be distributed;

[0105] A query module 120, configured to query a service subscription table according to the data to be distributed, and obtain a designated customs to which the data to be distributed belongs;

[0106] The sending module 130 is used to send the data to be distributed to the network address registered by the designated customs in the service subscription table.

[0107] As an optional implementation scheme of the present application, optionally, the sending module includes:

[0108] A receiving success response module 131 is used to determine that an error occurs during the sending process if no receiving success response is received from the designated customs within a preset period of time;

[0109] The resending module 132 is used to resend the data to be distributed after a preset time period if an error occurs during the sending process. When a successful reception response returned by the designated customs is received, the designated customs successfully receives the data to be distributed.

[0110] Obviously, those skilled in the art should understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. The modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by computing devices, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.

[0111] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0112] Example 4

[0113] Furthermore, an electronic device is proposed, comprising:

[0114] processor;

[0115] a memory for storing processor-executable instructions;

[0116] Wherein, the processor is configured to implement a customs data distribution method based on data ownership as described in Example 1 when executing the executable instructions.

[0117] The electronic device of the embodiment of the present disclosure includes a processor and a memory for storing processor executable instructions, wherein the processor is configured to implement any of the above-mentioned customs data distribution methods based on data ownership when executing the executable instructions.

[0118] It should be noted that the number of processors may be one or more. At the same time, the electronic device of the embodiment of the present disclosure may also include an input device and an output device. The processor, memory, input device, and output device may be connected via a bus or in other ways, which are not specifically limited here.

[0119] The memory, as a computer-readable storage medium of the customs data distribution method based on data ownership, can be used to store software programs, computer executable programs and various modules, such as: the program or module corresponding to the customs data distribution method based on data ownership in the embodiment of the present disclosure. The processor executes various functional applications and data processing of the electronic device by running the software programs or modules stored in the memory.

[0120] The input device can be used to receive input numbers or signals. The signal can be a key signal related to user settings and function control of the device / terminal / server. The output device can include a display device such as a display screen.

[0121] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A customs data distribution method based on data ownership, It is characterized in that The method comprises: Get the data to be distributed; The step of obtaining the data to be distributed includes: Get business data; According to the data type of the business data in the business subscription table and the customs to which it belongs, encapsulating the business data in a prescribed format to obtain data to be distributed; The service subscription table includes the services corresponding to the service data required by the direct-affiliated customs and the subordinate customs, the network addresses of the direct-affiliated customs and the subordinate customs for receiving the service data, and the customs district codes corresponding to the direct-affiliated customs and the subordinate customs; wherein the services also include the customs district codes; The data to be distributed is sent to the data distribution end through the interface; According to the data to be distributed, query the customs code in the service subscription table to obtain the designated customs to which the data to be distributed belongs; According to the network address registered by the designated customs in the service subscription table, sending the data to be distributed to the network address; Sending the data to be distributed to the network address also includes: Grouping the data to be distributed into groups by quantity; The data to be distributed is sent in groups according to the quantity using a message queue transmission method.

2. The method for distributing customs data based on data ownership as claimed in claim 1, It is characterized in that The data to be distributed is transmitted through the interface to the data distribution end, and further includes: After receiving the data to be distributed, the data distribution end returns a successful reception response to the interface.

3. The method for distributing customs data based on data ownership as claimed in claim 1, It is characterized in that Sending the data to be distributed to the network address also includes: The data to be distributed is sent using a transmission method based on the hypertext transfer protocol.

4. The method for distributing customs data based on data ownership according to any one of claims 1 to 3, It is characterized in that Sending the data to be distributed to the network address also includes: If no successful receipt response is received from the designated customs within the preset period, it is determined that an error occurred during the sending process; If an error occurs during the sending process, the data to be distributed is resent after a preset time period. When a successful reception response returned by the designated customs is received, the designated customs successfully receives the data to be distributed.

5. A customs data distribution device based on data ownership, It is characterized in that Includes the following modules: The data acquisition module acquires the data to be distributed, including: acquiring business data; encapsulating the business data in a prescribed format according to the data type of the business data in the business subscription table and the customs to which it belongs, to obtain the data to be distributed, wherein the business subscription table includes the business corresponding to the business data required by the direct customs and the subordinate customs, the network address of the direct customs and the subordinate customs for receiving the business data, and the customs area code corresponding to the direct customs and the subordinate customs, wherein the business also includes the customs area code, and the data to be distributed is sent to the data distribution terminal through the interface; A query module, used for querying the customs code in the service subscription table according to the data to be distributed, to obtain the designated customs to which the data to be distributed belongs; The sending module is used to send the data to be distributed to the network address registered by the designated customs in the business subscription table, and the sending module also includes: grouping the data to be distributed by quantity, and sending the data to be distributed by using a message queue transmission method according to the quantity grouping.

6. A customs data distribution device based on data ownership as claimed in claim 5, It is characterized in that The sending module comprises: A receiving success response module, used to determine that an error occurs during the sending process if no receiving success response is received from the designated customs within a preset period of time; The resending module is used to resend the data to be distributed after a preset time period if an error occurs during the sending process. When a successful reception response returned by the designated customs is received, the designated customs successfully receives the data to be distributed.

7. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the customs data distribution method based on data ownership as described in any one of claims 1 to 4 when executing the executable instructions.