CN106874361B - Data processing method and device applied to customs declaration - Google Patents
Data processing method and device applied to customs declaration Download PDFInfo
- Publication number
- CN106874361B CN106874361B CN201611249933.XA CN201611249933A CN106874361B CN 106874361 B CN106874361 B CN 106874361B CN 201611249933 A CN201611249933 A CN 201611249933A CN 106874361 B CN106874361 B CN 106874361B
- Authority
- CN
- China
- Prior art keywords
- request
- declaring
- database
- workspace server
- declare
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
- G06Q10/0831—Overseas transactions
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- General Business, Economics & Management (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of data processing method and device applied to customs declaration.Wherein, this method comprises: receiving the multiple of the first account transmission declares request, multiple declare in request carries declaration information;By it is multiple declare request store into first database and to the first account send response signal;The destination number of workspace server is determined according to the quantity for declaring request stored in current first database;The request of declaring of the preset quantity stored in current first database is packaged by the workspace server of destination number, declares request after being encapsulated;The request of declaring after encapsulating in first database is sent to declaration information processing system every preset time;Receive that declaration information processing system sends declares as a result, and will declare result and be stored in the second database.The present invention, which solves to declare as synchronization call in the related technology, requests the technical issues of declaring low efficiency caused by being influenced by system stability.
Description
Technical field
The present invention relates to data fields, in particular to a kind of data processing method and dress applied to customs declaration
It sets.
Background technique
Traditional cross-border electric business import has the following problems: commodity are entered a country in a manner of grey, commodity it is fuzzy declare be retired,
Low, supervision shortage of manpower of customs clearance efficiency etc..There is a following city in current cross-border trading electronic commerce import experimental city: Guangzhou,
Hangzhou, Ningbo, Shanghai, Zhengzhou, Chongqing, Shenzhen, Tianjin etc., city numbers are numerous, and the commodity for the cross-border electric business being related to also count
It measures huge.Therefore General Administration of Customs proposes sunlight clearance requirement in July, 2014, needs cross-border electric business, logistics company, third party's branch
Platform is paid to dock with Custom system respectively, respectively by order, logistics list, paying bill is reported to customs's IT system, customs receive across
Border electric business company, logistics company, payment company carry out verification comparison after you can well imagine the document information supplied, to carry out three digital ratio pair,
The clearance of the errorless laggard product of doing business of customs's cross-check information, the target for the supervision that speeded passage through customs, reinforced with reaching cross-border import.
Realizing order in the prior art, logistics list, when the information butt joint of paying bill, be by way of synchronization call into
Capable.Fig. 1 is a kind of schematic diagram of synchronization call customs interface according to prior art, as shown in Figure 1, trade company passes through some sea
Pass declares general-purpose interface transmission and declares request to customs's reception paying bill interface, and customs carries out core according to the information declared in request
Right, checked result is returned to trade company again by customs declaration general-purpose interface.Synchronization call returns to the mode of declaration result for customs
For declaration system, time-consuming uncertainty is big, and stability is not guaranteed, once the interface server of customs goes wrong,
Trade company can be made customs declaration can not to be submitted to request, lead to entire customs declaration systemic breakdown.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of data processing method and device applied to customs declaration, at least to solve phase
It is declared in the technology of pass as synchronization call and requests the technical issues of declaring low efficiency caused by being influenced by system stability.
According to an aspect of an embodiment of the present invention, a kind of data processing method applied to customs declaration is provided, is wrapped
It includes: receiving the multiple of the first account transmission and declare request, wherein the multiple declare in request carries declaration information;By institute
State it is multiple declare request store into first database and to first account send response signal;According to presently described first
The quantity for declaring request stored in database determines the destination number of workspace server, wherein the workspace server
For being packaged to the request of declaring stored in presently described first database;Pass through the work clothes of the destination number
Business device is packaged the request of declaring of the preset quantity stored in the presently described first database, the Shen after being encapsulated
It submits a report asking for and asks;The request of declaring after encapsulating described in the first database is sent to declaration information processing system every preset time
System, wherein the declaration information processing system handles the request of declaring after the encapsulation, obtains declaring result;It receives
What the declaration information processing system was sent declares as a result, and the result of declaring is stored in the second database.
According to another aspect of an embodiment of the present invention, a kind of data processing equipment applied to customs declaration is additionally provided,
Include: the first receiving unit, declares request for receiving the multiple of the first account transmission, wherein the multiple to declare in request
Carry declaration information;First storage unit, for declaring request by the multiple and storing into first database and to described
First account sends response signal;Determination unit, for declaring request according to storing in presently described first database
Quantity determine the destination number of workspace server, wherein the workspace server is used for in presently described first database
The request of declaring of storage is packaged;Encapsulation unit, for being worked as by the workspace server of the destination number to described
The request of declaring of the preset quantity stored in the preceding first database is packaged, and declares request after being encapsulated;First
Transmission unit, for the request of declaring after encapsulating described in the first database to be sent to declaration information every preset time
Processing system, wherein the declaration information processing system handles the request of declaring after the encapsulation, obtains declaring knot
Fruit;Second receiving unit, for receive it is described declaration information processing system send declare as a result, and depositing the result of declaring
Storage is in the second database.
In embodiments of the present invention, request is declared using the multiple of reception the first account transmission, wherein multiple to declare request
In carry declaration information;By it is multiple declare request store into first database and to the first account send response signal;Root
The destination number of workspace server is determined according to the quantity for declaring request stored in current first database, workspace server is used for
The request of declaring stored in current first database is packaged;By the workspace server of destination number to current first number
It is packaged according to the request of declaring of the preset quantity stored in library, declares request after being encapsulated;Every preset time by
Request of declaring after encapsulating in one database is sent to declaration information processing system, declares at customs information processing system to the Shen after encapsulation
It submits a report asking for ask and be handled, obtain declaring result;Receive that declaration information processing system sends declares as a result, and will declare result and deposit
Request of declaring after encapsulating in first database is sent to report every preset time in the second database, due to using by storage
The asynchronous process for closing information processing system declares at customs request program, and combines load balancing, can be improved for declaring request
Declare efficiency, declare the technical effect of efficiency to realize asynchronous process and declare request and improve, and then solve related skill
It is declared in art as synchronization call and requests the technical issues of declaring low efficiency caused by being influenced by system stability.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of synchronization call customs interface according to prior art;
Fig. 2 is the signal of the hardware environment of the data processing method according to an embodiment of the present invention applied to customs declaration
Figure;
Fig. 3 is a kind of optionally process applied to the data processing method of customs declaration according to an embodiment of the present invention
Figure;
Fig. 4 is the schematic diagram of declaration system framework according to an embodiment of the present invention;
Fig. 5 is a kind of optionally signal applied to the data processing equipment of customs declaration according to an embodiment of the present invention
Figure;And
Fig. 6 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method for data processing applied to customs declaration is provided.
Optionally, in the present embodiment, the above-mentioned data processing method applied to customs declaration can be applied to such as Fig. 2 institute
In the hardware environment being made of server 102 and terminal 104 shown.As shown in Fig. 2, server 102 passes through network and terminal
104 are attached, and above-mentioned network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, terminal 104 are not limited to PC, hand
Machine, tablet computer etc..The data processing method applied to customs declaration of the embodiment of the present invention can be held by server 102
Row, can also be executed by terminal 104, be can also be and executed jointly by server 102 and terminal 104.Wherein, terminal 104 is held
The data processing method applied to customs declaration of the row embodiment of the present invention is also possible to be held by client mounted thereto
Row.
In a kind of optional application scenarios, the data processing method that should be applied to customs declaration can be by data declaration system
System executes, and what data reporting system received the transmission of some trade company's account declares request, carries in request and declares at customs information and target
All are declared request storage in the database by the identification information of customs, data reporting system, and declaration information processing system exists
The rear of request of declaring for receiving trade company sends response signal to trade company, then determines needs according to current number of requests of declaring
The quantity of the server of work seals the request of declaring stored in first database by the workspace server of destination number
Dress after packaged, declares request, mesh after preset time sends encapsulation to the declaration information processing system of target customs
The declaration information processing system of mark customs has handled to declare and has requested to be declared later as a result, knot is declared in data reporting system reception
Fruit simultaneously stores, in this way, can be inquired from the database that result is declared in storage when trade company's account is wanted to check and declares result,
Without etc. it is to be synchronized return the result, therefore achieved the purpose that processing declare request not by systematic influence, to realize different
Step processing declares request and improves the technical effect for declaring efficiency, improves the efficiency declared.Since data reporting system stores Shen
Report is as a result, trade company can check that declaring declaring as a result, also facilitating trade company for request inquires in authentication at any time after.
Also, due to the quantity for determining workspace server according to the quantity for declaring request, number of servers can be adjusted in time, prevents Shen
The accumulation asked is submitted a report asking for, request is declared in processing in time, also improves the treatment effeciency of customs declaration.
Fig. 3 is a kind of optionally process applied to the data processing method of customs declaration according to an embodiment of the present invention
Figure, as shown in figure 3, this method may comprise steps of:
Step S302 receives the multiple of the first account transmission and declares request, wherein multiple declare in request carries report
Close information.
Step S304, by it is multiple declare request store into first database and to the first account send response signal.
Step S306 determines the mesh of workspace server according to the quantity for declaring request stored in current first database
Mark quantity, wherein workspace server is for being packaged the request of declaring stored in current first database.
Step S308, by the workspace server of destination number to the preset quantity stored in current first database
It declares request to be packaged, declares request after being encapsulated.
Step S310, the request of declaring after preset time will encapsulate in first database are sent at declaration information
Reason system, wherein declaration information processing system handles the request of declaring after encapsulation, obtains declaring result.
Step S312, receive declaration information processing system send declare as a result, and will declare result be stored in second number
According in library.
S302 to step S312 through the above steps, by receive it is multiple declare request when be stored in the first data
In library, request is declared to the target that declaration information processing system sends preset quantity every preset time, then declares target
As a result it stores, also, the quantity due to determining workspace server according to the quantity for declaring request, server count can be adjusted in time
Amount, prevents the accumulation for declaring request, and request is declared in processing in time, also improves the treatment effeciency of customs declaration.Solves correlation
It is declared in technology as synchronization call and requests the technical issues of declaring low efficiency caused by being influenced by system stability, Jin Erda
To the technical effect for declaring efficiency for improving data declaration request.
In the technical solution that step S302 is provided, the first account can be the account of trade company, and the account of trade company can be
The account of overseas businessman, account can be used to identify the identity information of businessman, and therefore, in general, different accounts is corresponding not
Same businessman, overseas businessman send to customs and declare request, declare request for declaring the article to clearance, declare in request also
The information of target customs can be carried, the information of target customs can be the code that can be identified for that target customs identity, such as
The code of Beijing Customs is 010, and the code of Shanghai customs is 021 etc., and the code of target customs is also possible to more complicated number
With alphabetical combination etc..First account by asynchronous mode send it is multiple declare request, by parse target declare in request
The information of the target customs of carrying, available target declare the target customs that request needs to report and submit, and are then forwarded to target sea
The declaration information processing system of pass.Usually, declaring request has multiple, and multiple requests can come from the same businessman, can also
To carry declaration information in request in each declare, declaration information may include a plurality of types of from different businessmans
Information may include order, logistics list, any one or more information in paying bill, can be flat from Third-party payment
The payment information of platform, for example, declaration information can be payment forms data, such as Third-party payment platform title, payment amount, payment
Time etc., declaration information also may include order information, for example, the product name of purchase, quantity, price, the currency type of payment, purchase
Buy the time, addressee's real-name authentication information (for example, name, identity card number, address of the addressee, credit card signature information etc.),
A plurality of types of information such as logistics information, address, in addition to the above-mentioned information classification being enumerated to, declaration information can also include
The other information that may relate in all payment process.Third-party payment platform, which can be wealth and pay, leads to, and is also possible to other branch
Pay platform.The data processing method applied to customs declaration of the embodiment of the present invention can be by declaration system execution, by Shen
Reporting system receives the multiple of the first account transmission and declares request, and declaring request can be through network transmission.
In the technical solution that step S304 is provided, receive it is multiple declare request after, declare request by multiple and deposit
Storage sends response signal into first database and to the first account, reports and submits request to inform that businessman has received this, can be
Each declares the corresponding response signal of request, is also possible to multiple declare from same businessman and requests a corresponding response
Which signal, declare the response of request to when can identify in the response signal, first database can be in server
Database is also possible to cloud database.
It is multiple to declare request and be stored in first database in the technical solution that step S306 is provided, when default
Between send preset quantity declare request to declaration information processing system, since what is stored in first database declares number of requests
It is dynamic change, declaring request and can handle in time for trade company is unlikely to overstock too long, need according to first database
The quantity for declaring request of middle storage determines the destination number of workspace server, and what is stored in current first database declares request
Quantity it is more, the destination number of determining workspace server is bigger.
In the technical solution that step S308 is provided, after the destination number for determining workspace server, pass through number of targets
The workspace server of amount is packaged the request of declaring stored in current first database, obtain it is packaged declare request,
The packaged request of declaring of preset quantity is sent to declaration information processing system every preset time, wherein preset number
Amount can be thick-and-thin quantity, be also possible to according to the Number dynamics adjustment for declaring request stored in first database
's.
In the technical solution that step S310 is provided, declaring after preset time will encapsulate in first database is asked
It asks and is sent to declaration information processing system, the request of declaring after encapsulation is handled by declaration information processing system, obtains Shen
Report declares request for handling as a result, declaration information processing system can be the declaration information processing system of customs, according to declaring
The information such as the declaration information carried in request are declared request to this and are handled, for example, carrying out three digital ratio pair.Preset time can be with
It is the times such as 3 seconds or 5 seconds, preset time and preset quantity can be according to the requests of declaring stored in current first database
Quantity adjustment, can also be adjusted according to the processing capacity of the declaration information processing system at customs.Trade company can call Shen
The interface of reporting system, such as api interface are declared by calling the interface to carry out paying bill to the commodity that needs are declared at customs, and wealth is paid logical
Information reporting can will be declared at customs to the declaration information processing system of the customs of various regions as payment platform.
In the technical solution that step S312 is provided, declaration information is sent to the target of preset quantity is declared request
After processing system, declaration information processing system is declared request according to target and is verified to the declaration information to be declared, obtains
Declare that request is corresponding to be declared as a result, the communication module in the declaration information processing system of customs can will declare result sends back
Declaration system, declaration system reception are declared and are stored in the second database as a result, result will be declared, wherein the second database and
First database can be the same database, be also possible to two different databases.
It is stored in the second database, can permanently store, Huo Zheshe since the embodiment of the present invention will declare result
Determine storage time, trade company's account, which can be inquired repeatedly, in storage time declares as a result, rather than in the prior art will declare
As a result it synchronizes and issues trade company, voluntarily saved by trade company, compared with the existing technology, the data processing method of the embodiment of the present invention can
Realize asynchronous process request, no longer influenced by system stability, improve and declare efficiency, trade company declare without waiting as a result,
But can be inquired at any time when needing to inquire, the declaration of commodity and the request behavior that trade company submits are decoupled, make to declare at customs interface
Return independent of third party's interface, ensure that trade company provide service stability and response speed.
The declaration system of the embodiment of the present invention can provide standards service, the different customs of reduction to cross-border electric business as far as possible
Difference between interface makes cross-border electric business submit paying bill declaration request interface easy to use, while accomplishing the high availability of system
With quick processing.
As a kind of optional embodiment, the request of declaring after it will encapsulate in first database every preset time is sent
To before declaration information processing system, the configuration information of target declaration information processing system is obtained, wherein target is declared at customs at information
Reason system is to declare the declaration information processing system for requesting corresponding customs, and configuration information is used to indicate target declaration information processing
The Format Type for the data that system allows to handle;Store the configuration information of target declaration information processing system.Target declares at customs information
Processing system can be the declaration information processing system declared and request corresponding target customs, take in request for example, some is declared
It is Beijing that the identification information of band, which identifies this and declares the corresponding target customs of request, then obtains Pekinese's declaration information processing system
Configuration information, it is Guangzhou that some, which is declared the identification information carried in request and identifies this to declare the corresponding target customs of request, then obtains
The configuration information for taking the declaration information processing system in Guangzhou, since the declaration information processing system of the customs of different regions is carrying out
When declaring at customs information processing, the configuration information needed is different, for example, some declaration information processing systems are it is desirable that with document form
What is sent declares request, wherein carry the declaration information of certain classifications, then therefrom parse needs information or directly into
Three digital ratio pair of row, and some declarations information processing system does not receive the request of declaring of document form, but will be by installing in advance
Client call declaration system interface input need data, since different declaration information processing systems is being declared
The Format Type of the data needed when the processing of request is different, therefore, before request is declared in transmission, obtains target and declares at customs information
The configuration information of processing system, then stores, calling when in case of subsequent being used for multiple times, it is generally the case that declares at customs information in target
In the case that processing system does not change every time, it is not necessary to obtain, but be stored for future use after obtaining once.By obtaining target
The configuration information for declaring at customs information processing system then stores in case subsequent use, makes to declare and request more to adapt to different customs declarations
The efficiency for declaring request processing can be improved in information processing system.
By the workspace server of destination number to the preset quantity stored in current first database declare request into
Row encapsulation includes: that preset quantity in first database is declared request according to the configuration information that target declares at customs information processing system
Data configuration is carried out, obtains declaring request with what is postponed, wherein Format Type and target with the data for declaring request postponed
The Format Type for the data that declaration information processing system allows to handle is identical;By the workspace server of destination number to current
The preset quantity stored in one database is packaged with the request of declaring postponed;Request of declaring after encapsulation is sent to report
Close information processing system.
It, will be in first database according to configuration information after the configuration information for getting target declaration information processing system
The request of declaring of preset quantity carries out data configuration, obtains declaring request with what is postponed, the data for declaring request after configuring
Format Type and target declaration the information processing system Format Type of data that allows to handle it is identical, if target declares at customs information
Processing system can handle a plurality of types of data, then can be any of which type with the request of declaring postponed, then
It is packaged by the workspace server of destination number to the request of declaring postponed, is sent to declaration information processing system.
As a kind of optional embodiment, in declaring of receiving that the declaration information processing system sends as a result, and by institute
It states and declares after result is stored in the second database, receive the first account to the inquiry request for declaring result;It is asked according to inquiry
The second database of inquiry is sought, obtains declaring result;Result will be declared and be sent to the first account.
Declaration system is declared receive that declaration information processing system sends as a result, and will declare result and be stored in second
After in database, trade company can receive by the first account to the inquiry request for declaring result, inquiry request can request to look into
Inquiry declares that request is corresponding to be declared as a result, can carry the payment odd numbers for declaring request to be checked in inquiry request, or
Other can be identified for that this declares the information of request, can be looked into the second database according to the payment odd numbers carried in inquiry request
Asking this and declaring corresponding declare of request can be through preset mail or i.e. as a result, will declare result and be sent to the first account
When the modes such as communication applications be sent to trade company, be also possible to show on the display interface of preset inquiry system.
As a kind of optional embodiment, receive that the first account sends multiple to declare request include: to receive the first account
First sent declares request;Obtain first declare the first of request declare result before, receive the first account is sent the
Two declare request;It is wherein, multiple that declare request include: first to declare request and second declare request.
It is asynchronous transmission that the first account was sent, which declares request, receives the first account is sent first and declares request, the
One, which declares request, corresponds to first and declares and declare as a result, obtaining first without waiting and declaring the first of request as a result, i.e. reception the
The second of one account transmission declares result.Equally, result and the 4th is declared for third to declare as a result, before without waiting
Declare whether request has been declared as a result, i.e. transmittable declare request.
As a kind of optional embodiment, by the workspace server of destination number to being stored in current first database
The request of declaring of preset quantity is packaged the current quantity for comprising determining that workspace server;Number of targets is less than in current quantity
In the case where amount, the quantity of workspace server is increased into destination number;By the workspace server of destination number to current
The request of declaring stored in one database is packaged.
Since destination number changes, and the processing capacity of workspace server often has the upper limit, therefore can complete number of targets
The workspace server of the encapsulation of amount is also likely to be variation, for example, releasing preferential activity in a certain red-letter day or a variety of businessmans
Afterwards, the quantity for declaring request, which might have, to be increased rapidly, at this point, the quantity of original workspace server be not able to satisfy it is currently processed
The requirement of ability needs to increase the quantity of workspace server, if current workspace server is 5, current processing capacity
It is required that 8 workspace servers could be completed, then need 5 servers increasing to 8, equally, after certain time, current
Workspace server is 8, and current processing capacity requires 5 workspace servers that can complete, then can reduce by 8 servers
To 5.
As a kind of optional embodiment, by the workspace server of destination number to being stored in current first database
The request of declaring of preset quantity is packaged that include: in the workspace server for judge destination number be more than with the presence or absence of time interval
The workspace server of preset threshold, wherein time interval is that workspace server distance is last obtains Shen from first database
Submit a report asking for the interval asked;Judge there are time interval be more than preset threshold workspace server in the case where, from destination number
Workspace server in erasing time interval be more than preset threshold workspace server.
Due to being packaged by more workspace servers to the request of declaring in first database, wherein it is possible that
The case where certain server exception, in order to guarantee to declare the normal encapsulation of request, needs abnormal service in this case
Device is deleted, and is declared request due to the server selection from first database at regular intervals of normal work and is packaged, different
Whether normal server can not be chosen in time is declared request and is packaged, therefore, detect in the workspace server of destination number and deposit
Workspace server of the time interval of request more than preset threshold is being declared apart from upper once obtain from first database, if
There are such workspace servers then to show that exception occurs in the server, and the work service is deleted from the server of destination number
Device.For example, it is 8 that current processing capacity, which requires workspace server, and detect wherein have an appearance abnormal, then by this
Abnormal server is deleted.
As a kind of optional embodiment, erasing time interval is more than default threshold in the workspace server from destination number
After the workspace server of value, the quantity of workspace server is increased into destination number.After deletion, workspace server only has
7, less than the target number of units of workspace server, then need to increase again normal workspace server to 8.As a kind of optional
Embodiment, in the workspace server from destination number erasing time interval be more than preset threshold workspace server after,
Update the current quantity of workspace server and the number of each workspace server.After deleting workspace server, work is updated
Make the current quantity of server and the number of each workspace server, to adjust the quantity of workspace server in time to number of targets
Amount, also, after deleting workspace server, the number for each workspace server that timely updates, to prevent certain needs in quilt
The request of declaring executed in the workspace server deleted can not be processed in time, after updating workspace server number, so that it may
To handle according to normal process flow request is declared.
Since the declaration that declaration system uses asynchronous process trade company is requested, also need to similar to " producer-disappears
Consumer in the person of expense " model carries out load balancing, and (namely declaring request) is requested in the declaration that the producer, that is, trade company sends, consumption
Person is then that will request to push away the processing routine toward customs's interface, guarantees not repeat when consumer spending task, does not leak choosing, and
Task can be averagely allocated to each consumer.For the particularity of cross-border import industry, wealth, which is paid to lead to, can provide real-time paying bill
Retransmission service effectively solves paying bill of the trade company in following scene and retransmits demand: when 1) integrating declaration interface, since declaration is joined
Number fills in three digital ratio caused by mistake to unsuccessfully needing to retransmit paying bill;2) it is led due to network, customs's E-port system
The paying bill of cause falls single problem.
The present invention uses asynchronous process request method, submits the behavior of request to decouple the behavior of declaration and trade company, makes to declare at customs
The return of interface independent of third party's interface, ensure that trade company provide service stability and response speed, also make be
System has the ability for guaranteeing to be sent to.The request landing storage that trade company is submitted chooses program with task to simulate into mysql
Message queue realizes the selection and distribution of request, so that the expansibility of system greatly improves, and added load balancing function
Can, system can arbitrary capacity reducing dilatation, the change without doing any configuration and code.Compared to message queue, mysql
Sql sentence and transaction functionality allow program that can use more flexible condition when choosing task requests to be processed, moreover it is possible to
Task requests are enough updated, furthermore the landing storage of mysql can allow request unlimited number of processed, playback.
The present invention also provides a kind of preferred embodiments, below with reference to the preferred embodiment to the technology of the embodiment of the present invention
Scheme is illustrated.
The business feature of cross-border trading electronic commerce clearance service determines that declaring for cross-border electric business requests timeliness opposite
Longer, the data of paying bill do not need to be declared to Custom system in real time, utilize this characteristic.Customs declaration system uses same
Step returns to declaration request reception result, and the mode of asynchronous process paying bill handles merchant requests.Simulated using mysql real in inside
It is now similar to the function of message queue, carries out the load balancing and distribution of task.
Since the interactive interfacing mode that each cross-border import experimental city customs provides is not quite similar, there is web
Service, ftp, third party's windows client, third party's linux client, http, https and customs actively adjust wealth to pay
The logical interface etc. provided, and the message format of each customs, field have the cannonical format of oneself.Pass through summary and induction customs
Required information element summarizes and is designed to data Kuku table together, by the information design for needing trade company to provide at uniformly connecing
Mouth field, each place customs's interface unifies application procedures by customs and extracts these field informations, according to different customs
It is required that transmitting message is carried out with interactive mode, to shield influence of the diversity of different customs's interfaces to trade company.
Customs uniformly declares service (consumer) and requests for asynchronous process customs declaration, which can be deployed in multiple
On server node, each node has the number of oneself, by calling data decimation service to choose task to be processed.It is each to appoint
Business request have a unique ID, when consumer calls data decimation to service, data decimation service judgement now how many
Consumer node is in normal operating conditions, and obtains sequence of the consumer of current request consumption in all normal work nodes
Number.Customer count total on task requests ID mould should just be appointed if obtained result is equal to the serial number of current consumer
Business is distributed to the node and is handled, or the node is waited to choose data into assignment database.Such as: assuming that current have altogether
Have and deploy customs on 3 servers and uniformly declare service, node serial number is 0,1,2 respectively.When node 1 calls data decimation clothes
When business, the task that data decimation service can pick out task ID %3=1 is distributed to node 1 and is handled, and will send
The task status of hair is changed to distribute, and the state of having chosen for task is changed to choose, it is ensured that task will not be repeated selection.
If there is node is more than the selection without carrying out data in 20 minutes, then the node can be kicked out of normal work node listing.When having
When new node calls data decimation service, data decimation service can automatically be added to the node and work normally node column
Table, and summing node sum, complete dilatation.
Customs's interface status monitor service can monitor the state of customs's interface as ancillary service, when in some node
When upper calling customs interface exception, the node state can be reported, the node can be picked after continuously monitoring three times extremely
It removes, and node total number is subtracted one, according to algorithm before, request can be automatically assigned to other nodes.
In addition to the above main services, customs declaration system further comprises some supplementary modules, when declaring customs with reply
Various abnormal conditions.When occurring single situation during paying bill submits to customs, trade company can call and push away again
Paying bill is reported to customs again by interface.When paying bill is declared unsuccessfully, or time-out is submitted, customs declaration service can be under
The paying bill is declared again when primary operation, when a certain pen singly declares number more than predetermined number of times or to declare duration super
When crossing given number of days, determine that the list to be abnormal single, will issue warning information, manual contact Customs officers to relevant person in charge
Handle this list.
Fig. 4 is the schematic diagram of declaration system framework according to an embodiment of the present invention, as shown in figure 4, system receives trade company
Declaration request after, request caching to database is done into persistent storage, customs uniformly declares service asynchronous and calls data choosing
It takes service to choose request to be declared, then by customs's field in identification request, corresponding paying bill data distribution is given
Different customs's interfaces are declared.
Main modular:
Customs declaration common interface module: the module is located in service access system, is mainly used to provide identification trade company power
Limit receives merchant requests, inquires paying bill information, provides the functions such as CKV caching.
Data layer module: being responsible for carrying out the storage work of actual data information, by the declaration request landing storage of trade company.Number
It can store MYSQL database according to layer module.
Data decimation service module: for passively calling offer task distribution function, it can be with database module and customs
Service module communication is uniformly declared, the declaration operation of customer requirement is completed, and automatically updates the state of working node, rejects length
Time idle node safeguards the working node being newly added, completes the load balancing of task.
Service module is uniformly declared by customs: encapsulating the pre action of all customs's interfaces, carries out the choosing to declaration data
It takes, is packaged into specific format, the task of different customs's interfaces is distributed to corresponding interface.
Customs's interface status monitor module: sea of the module as supplementary module (not shown), on a certain node
When closing interface failure, the workload at this moment needing to allow the node revocation other working nodes to share the node, to guarantee
The availability of system.
The main flow of system is as follows:
Receive declaration request: wealth pays the declaration request that logical customs declaration general-purpose interface receives trade company, will report after authentication verification
It closes request and is registered in mysql database, customs is waited uniformly to declare service asynchronous processing, and return to reception request successfully knot
Fruit.
Data query: service is uniformly declared by calling data decimation service to carry out data query by customs, during this,
Data decimation service can calculate how many current node to work, and calculate the serial number of present node.It is selected in data
During taking, need to be distributed to present node according to the ID of task requests.Calculation formula are as follows: task requests ID% total work
Make number of nodes=present node ID.And need to detect the section for a long time without carrying out data decimation during data query
Point, is rejected, and updates node total number and node serial number.The node newly accessed is needed to increase node total number.
Customs declaration: service is uniformly declared after calling data decimation service acquisition to data to be declared by customs, root
It is sent to different customs's interfaces according to the difference of customs's field in data to be handled, each customs's interface has handled each appoint
The state that will be updated task after business, the declaring failure of the task can be selected out again when next secondary program is run to be located
Reason.The configuration information for servicing available target declaration information processing system is uniformly declared by customs, and configuration information is used to indicate mesh
Then the Format Type for the data that mark declaration information processing system allows to handle stores the configuration of target declaration information processing system
Information, in case being called when the subsequent transmission for carrying out customs declaration request.In this way, customs uniformly declare service can according to target sea
Closing, which allows the Format Type of the data handled that will declare request, configures, and is configured to meet what target customs allowed to handle
The type of the format of data, to facilitate target customs to carry out the processing of declaration information.
The detection of customs's Interface status: when detecting that a certain customs's interface breaks down, customs's interface is at this moment needed to detect
Program adjusts the state of working node, so that other working nodes is undertaken the task of the node, to guarantee the availability of system.
The detection of abnormal order: when detecting that a certain pen declares unsuccessful for a long time, warning information will be issued to related personnel.
Falling single situation to paying bill provides the interface pushed again simultaneously.
It is tested by experiment, the payment system of the embodiment of the present invention can dock 8 cross-border electric business import experimental cities sea
Relationship system can complete system docking with nearly 1000 cross-border electric business (including the U.S., Hong-Kong, China's Mainland trade company).Branch
The paying bill for holding nearly all existing means of payment is declared: the payment of domestic wechat, country hand Q payment, domestic wealth pay it is logical pay with
And wechat payment overseas, hand Q payment overseas.It is requested by cache user, completes customs declaration with asynchronous mode, reach quick
User is responded, ensure that the characteristic that is sent to of system, and due to the decoupling for the treatment of process and user's request, the function of system expands
It opens up also more flexible and convenient.Affairs and customized algorithm by combination mysql, simulate the behavior of message queue, added
Load-balancing function, so that customer service completes load balancing in the case where unaware, and system increases and deletes
Customer service's node, which does not need to do any configuration and code change, can be completed dilatation and capacity reducing.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, it additionally provides a kind of for implementing the above-mentioned data processing method applied to customs declaration
The data processing equipment applied to customs declaration.Fig. 5 is according to an embodiment of the present invention a kind of optionally applied to customs Shen
The schematic diagram of the data processing equipment of report, as shown in figure 5, the apparatus may include:
First receiving unit 10 declares request for receiving the multiple of the first account transmission, wherein multiple to declare in request
Carry declaration information;
First storage unit 20, for by it is multiple declare request store into first database and to the first account send ring
Induction signal;
Determination unit 30, for determining workspace server according to the quantity for declaring request stored in current first database
Destination number, wherein workspace server is for being packaged the request of declaring stored in current first database;
Encapsulation unit 40, for the workspace server by destination number to the present count stored in current first database
The request of declaring of amount is packaged, and declares request after being encapsulated;
First transmission unit 50, for the request of declaring after encapsulating in first database to be sent to report every preset time
Close information processing system, wherein declaration information processing system handles the request of declaring after encapsulation, obtains declaring result;
Second receiving unit 60 is declared for receive that declaration information processing system sends as a result, and will declare result and deposit
Storage is in the second database.
It should be noted that the first receiving unit 10 in the embodiment can be used for executing in the embodiment of the present application 1
Step S302, the first storage unit 20 in the embodiment can be used for executing the step S304 in the embodiment of the present application 1, the reality
Applying the determination unit 30 in example can be used for executing step S306 in the embodiment of the present application 1, the encapsulation unit in the embodiment
40 can be used for executing the step S308 in the embodiment of the present application 1, and the first transmission unit 50 in the embodiment can be used for holding
Step S310 in row the embodiment of the present application 1, the second receiving unit 60 in the embodiment can be used for executing the application implementation
Step S312 in example 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in Fig. 2, hardware realization can also be passed through by software realization.
By above-mentioned module, it can solve to declare due to synchronization call in the related technology and requested to be influenced by system stability
The technical issues of declaring low efficiency caused by big, and then reach asynchronous process and declare the technical effect that efficiency is declared in request raising.
Optionally, the device further include: acquiring unit, for after preset time will encapsulate in first database
It declares request to be sent to before declaration information processing system, obtains the configuration information of target declaration information processing system, wherein mesh
Mark declaration information processing system is to declare the declaration information processing system for requesting corresponding customs, and configuration information is used to indicate target
The Format Type for the data that declaration information processing system allows to handle;Second storage unit, for storing at target declaration information
The configuration information of reason system.
Optionally, encapsulation unit 40 includes: configuration module, for declaring at customs the configuration information of information processing system according to target
The request of declaring of preset quantity in first database is subjected to data configuration, obtains declaring request with what is postponed, wherein with postponing
Format Type and target declaration the information processing system Format Type of data that allows to handle for the data for declaring request it is identical;
First package module, for passing through workspace server the matching to the preset quantity stored in current first database of destination number
The request of declaring postponed is packaged;Sending module is sent to declaration information processing system for the request of declaring after encapsulating.
Optionally, the device further include: third receiving unit, for receiving declaring for declaration information processing system transmission
As a result, and will declare after result is stored in the second database, receive the first account to the inquiry request for declaring result;Inquiry
Unit obtains declaring result for inquiring the second database according to inquiry request;Second transmission unit, for result will to be declared
It is sent to the first account.
Optionally, the first receiving unit includes: the first receiving module, and first for receiving the transmission of the first account declares and ask
It asks;Second receiving module, for obtain first declare the first of request declare result before, receive the first account is sent the
Two declare request, wherein multiple to declare request include: first to declare request and second declare request.
Optionally, encapsulation unit 40 comprises determining that module, for determining the current quantity of workspace server;Increase module,
For in the case where current quantity is less than destination number, the quantity of workspace server to be increased to destination number;Second encapsulation
Module, for being packaged by the workspace server of destination number to the request of declaring stored in current first database.
Optionally, encapsulation unit 40 includes: judgment module, be whether there is in the workspace server for judging destination number
Time interval is more than the workspace server of preset threshold, wherein time interval is that workspace server distance is last from the first number
The interval of request is declared according to acquisition in library;Removing module, for judging that there are the work that time interval is more than preset threshold
In the case where server, erasing time interval is more than the workspace server of preset threshold from the workspace server of destination number.
Optionally, the device further include: adding unit, between the erasing time in the workspace server from destination number
After the workspace server more than preset threshold, the quantity of workspace server is increased into destination number.
Optionally, the device further include: updating unit, between the erasing time in the workspace server from destination number
After the workspace server more than preset threshold, the current quantity of workspace server and the volume of each workspace server are updated
Number.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in Fig. 2, hardware realization can also be passed through by software realization, wherein hardware environment includes network
Environment.
Embodiment 3
According to embodiments of the present invention, it additionally provides a kind of for implementing the above-mentioned data processing method applied to customs declaration
Server or terminal.
Fig. 6 is a kind of structural block diagram of terminal according to an embodiment of the present invention, as shown in fig. 6, the terminal may include: one
A or multiple (one is only shown in figure) processor 201, memory 203 and transmitting device 205 are (in such as above-described embodiment
Sending device), as shown in fig. 6, the terminal can also include input-output equipment 207.
Wherein, memory 203 can be used for storing software program and module, such as the data processing side in the embodiment of the present invention
Method and the corresponding program instruction/module of device, processor 201 by the software program that is stored in memory 203 of operation and
Module realizes above-mentioned data processing method thereby executing various function application and data processing.Memory 203 can wrap
Include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage device, flash memory or
Other non-volatile solid state memories of person.In some instances, memory 203 can further comprise remote relative to processor 201
The memory of journey setting, these remote memories can pass through network connection to terminal.The example of above-mentioned network includes but unlimited
In internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 205 is used to that data to be received or sent via network, can be also used for processor with
Data transmission between memory.Above-mentioned network specific example may include cable network and wireless network.In an example,
Transmitting device 205 includes a network adapter (Network Interface Controller, NIC), can pass through cable
It is connected with other network equipments with router so as to be communicated with internet or local area network.In an example, transmission dress
205 are set as radio frequency (Radio Frequency, RF) module, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 203 is for storing application program.
The application program that processor 201 can call memory 203 to store by transmitting device 205, to execute following steps
It is rapid:
It receives the multiple of the first account transmission and declares request, wherein multiple declare in request carries declaration information;
By it is multiple declare request store into first database and to the first account send response signal;
The destination number of workspace server is determined according to the quantity for declaring request stored in current first database,
In, workspace server is for being packaged the request of declaring stored in current first database;
By the workspace server of destination number to the preset quantity stored in current first database declare request into
Row encapsulation, declares request after being encapsulated;
The request of declaring after encapsulating in first database is sent to declaration information processing system every preset time,
In, declaration information processing system handles the request of declaring after encapsulation, obtains declaring result;
Receive that declaration information processing system sends declares as a result, and will declare result and be stored in the second database.
Processor 201 is also used to execute following step: obtaining the configuration information of target declaration information processing system, wherein
It is to declare the declaration information processing system for requesting corresponding customs that target, which declares at customs information processing system, and configuration information is used to indicate mesh
The Format Type for the data that mark declaration information processing system allows to handle;Store target declaration information processing system matches confidence
Breath.
Processor 201 is also used to execute following step: declaring at customs the configuration information of information processing system for first according to target
The request of declaring of preset quantity carries out data configuration in database, obtains declaring request with what is postponed, wherein declare with what is postponed
The Format Type of the data of request is identical as the Format Type of data that target declaration information processing system allows to handle;Pass through mesh
Mark workspace server being packaged with the request of declaring postponed to the preset quantity stored in current first database of quantity;
Request of declaring after encapsulation is sent to declaration information processing system.
Processor 201 is also used to execute following step: receiving the first account to the inquiry request for declaring result;According to inquiry
Request the second database of inquiry, obtains declaring result;Result will be declared and be sent to the first account.
Processor 201 is also used to execute following step: receiving the first account is sent first and declares request;Obtaining first
Declare the first of request declare result before, receive that the first account sends second declares request.
Processor 201 is also used to execute following step: determining the current quantity of workspace server;Mesh is less than in current quantity
In the case where marking quantity, the quantity of workspace server is increased into destination number;Workspace server by destination number is to working as
The request of declaring stored in preceding first database is packaged.
Processor 201 is also used to execute following step: judging in the workspace server of destination number with the presence or absence of between the time
Every the workspace server for being more than preset threshold, wherein time interval is the workspace server distance last time from first database
Obtain the interval for declaring request;Judge there are time interval be more than preset threshold workspace server in the case where, from mesh
Mark the workspace server that erasing time interval in the workspace server of quantity is more than preset threshold.
Processor 201 is also used to execute following step: the quantity of workspace server is increased to destination number.
Processor 201 is also used to execute following step: update workspace server current quantity and each workspace server
Number.
Using the embodiment of the present invention, by receive it is multiple declare request when be stored in first database, every pre-
If the time declares request to the target that declaration information processing system sends preset quantity, target is then declared into result storage, and
And the quantity due to determining workspace server according to the quantity for declaring request, number of servers can be adjusted in time, prevent from declaring
The accumulation of request, request is declared in processing in time, also improves the treatment effeciency of customs declaration.It solves in the related technology due to same
Step with declare request influenced by system stability caused by declare low efficiency the technical issues of, and then reach raising data Shen
Submit a report asking for the technical effect for declaring efficiency asked.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
It will appreciated by the skilled person that structure shown in fig. 6 is only to illustrate, terminal can be smart phone
(such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device (Mobile Internet
Devices, MID), the terminal devices such as PAD.Fig. 6 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal is also
May include than shown in Fig. 6 more perhaps less component (such as network interface, display device) or have with shown in Fig. 6
Different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium
In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device
(Random Access Memory, RAM), disk or CD etc..
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
For executing the program code for being applied to the data processing method of customs declaration.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment
On at least one network equipment in the network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 receives the multiple of the first account transmission and declares request, wherein multiple declare in request carries declaration information;
S2, by it is multiple declare request store into first database and to the first account send response signal;
S3 determines the destination number of workspace server according to the quantity for declaring request stored in current first database,
Wherein, workspace server is for being packaged the request of declaring stored in current first database;
S4 declares request to the preset quantity stored in current first database by the workspace server of destination number
It is packaged, declares request after being encapsulated;
Request of declaring after encapsulating in first database is sent to declaration information processing system every preset time by S5,
Wherein, declaration information processing system handles the request of declaring after encapsulation, obtains declaring result;
S6, receive that declaration information processing system sends declares as a result, and will declare result and be stored in the second database.
Optionally, storage medium is also configured to store the program code for executing following steps: obtaining target declaration
The configuration information of information processing system, wherein it is to declare that the declaration of corresponding customs is requested to be believed that target, which declares at customs information processing system,
Processing system is ceased, configuration information is used to indicate the Format Type for the data that target declaration information processing system allows to handle;Storage
The configuration information of target declaration information processing system.
Optionally, storage medium is also configured to store the program code for executing following steps: being declared at customs according to target
The request of declaring of preset quantity in first database is carried out data configuration by the configuration information of information processing system, is obtained with postponing
Declare request, wherein Format Type with the data for declaring request postponed allows to locate with target declaration information processing system
The Format Type of the data of reason is identical;By the workspace server of destination number to the present count stored in current first database
Amount is packaged with the request of declaring postponed;Request of declaring after encapsulation is sent to declaration information processing system.
Optionally, storage medium is also configured to store the program code for executing following steps: receiving the first account
To the inquiry request for declaring result;The second database is inquired according to inquiry request, obtains declaring result;Result will be declared to be sent to
First account.
Optionally, storage medium is also configured to store the program code for executing following steps: receiving the first account
First sent declares request;Obtain first declare the first of request declare result before, receive the first account is sent the
Two declare request.
Optionally, storage medium is also configured to store the program code for executing following steps: determining work service
The current quantity of device;In the case where current quantity is less than destination number, the quantity of workspace server is increased into destination number;
The request of declaring stored in current first database is packaged by the workspace server of destination number.
Optionally, storage medium is also configured to store the program code for executing following steps: judging destination number
Workspace server in the presence or absence of time interval be more than preset threshold workspace server, wherein time interval is work clothes
Business device distance is last to obtain the interval for declaring request from first database;Judging to be more than default threshold there are time interval
In the case where the workspace server of value, erasing time interval is more than the work of preset threshold from the workspace server of destination number
Server.
Optionally, storage medium is also configured to store the program code for executing following steps: by workspace server
Quantity increase to destination number.
Optionally, storage medium is also configured to store the program code for executing following steps: updating work service
The number of the current quantity of device and each workspace server.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or
The various media that can store program code such as CD.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (16)
1. a kind of data processing method applied to customs declaration characterized by comprising
It receives the multiple of the first account transmission and declares request, wherein the multiple declare in request carries declaration information;
By it is the multiple declare request store into first database and to first account send response signal;
The quantity that request is declared according to storing in presently described first database determines the destination number of workspace server,
Wherein, the workspace server is for being packaged the request of declaring stored in presently described first database;
By the workspace server of the destination number to the preset quantity stored in the presently described first database
Request of declaring be packaged, declare request after being encapsulated;
The request of declaring after encapsulating described in the first database is sent to declaration information processing system every preset time,
Wherein, the declaration information processing system handles the request of declaring after the encapsulation, obtains declaring result;
Receive declaring as a result, and the result of declaring is stored in the second database for the declaration information processing system transmission
In;
Receive that first account sends multiple to declare request include: to receive first account is sent first and declare to ask
It asks;Obtain described first declare the first of request declare result before, receive first account is sent second and declare and asks
It asks, wherein the multiple to declare request include: described first to declare request and described second declare request.
2. the method according to claim 1, wherein will be described in the first database every preset time
Request of declaring after encapsulation is sent to before declaration information processing system, the method also includes:
Obtain the configuration information of target declaration information processing system, wherein the target declaration information processing system is the Shen
The declaration information processing system for asking corresponding customs is submitted a report asking for, the configuration information is used to indicate the target declaration information processing system
The Format Type for the data that system allows to handle;
Store the configuration information of the target declaration information processing system.
3. according to the method described in claim 2, it is characterized in that, by the workspace server of the destination number to institute
The request of declaring for stating the preset quantity stored in presently described first database is packaged and includes:
Declaring for preset quantity in the first database is asked according to the configuration information that the target declares at customs information processing system
Carry out data configuration is sought, obtains declaring request with what is postponed, wherein the Format Type with the data for declaring request postponed
It is identical as the Format Type of data that target declaration information processing system allows to handle;
By the workspace server of the destination number to the preset quantity stored in the presently described first database
Be packaged with the request of declaring postponed;
Request of declaring after the encapsulation is sent to the declaration information processing system.
4. the method according to claim 1, wherein receiving declaring for the declaration information processing system transmission
As a result, and declared described after result is stored in the second database, the method also includes:
First account is received to the inquiry request for declaring result;
Second database is inquired according to the inquiry request, obtains described declaring result;
The result of declaring is sent to first account.
5. the method according to claim 1, wherein by the workspace server of the destination number to institute
The request of declaring for stating the preset quantity stored in presently described first database is packaged and includes:
Determine the current quantity of the workspace server;
In the case where the current quantity is less than the destination number, the quantity of the workspace server is increased into the mesh
Mark quantity;
Request is declared to what is stored in the presently described first database by the workspace server of the destination number
It is packaged.
6. the method according to claim 1, wherein by the workspace server of the destination number to institute
The request of declaring for stating the preset quantity stored in presently described first database is packaged and includes:
Judge the work service in the workspace server of the destination number with the presence or absence of time interval more than preset threshold
Device, wherein the time interval is to obtain the workspace server distance last time to declare request from the first database
Interval;
Judge there are the time interval be more than preset threshold workspace server in the case where, from the destination number
The workspace server that the time interval is more than the preset threshold is deleted in the workspace server.
7. according to the method described in claim 6, it is characterized in that, in the workspace server from the destination number
After the time interval is deleted more than the workspace server of the preset threshold, the method also includes:
The quantity of the workspace server is increased into the destination number.
8. the method according to the description of claim 7 is characterized in that being deleted in the workspace server from the destination number
Except the time interval be more than the preset threshold workspace server after, the method also includes:
Update the current quantity of the workspace server and the number of each workspace server.
9. a kind of data processing equipment applied to customs declaration characterized by comprising
First receiving unit declares request for receiving the multiple of the first account transmission, wherein the multiple declare is taken in request
With declaration information;
First storage unit, for by it is the multiple declare request store into first database and to first account send
Response signal;
Determination unit, the quantity for declaring request according to storing in presently described first database determine work service
The destination number of device, wherein the workspace server is used to carry out the request of declaring stored in presently described first database
Encapsulation;
Encapsulation unit, for the workspace server by the destination number to being deposited in the presently described first database
The request of declaring of the preset quantity of storage is packaged, and declares request after being encapsulated;
First transmission unit, for being sent to the request of declaring after encapsulating described in the first database every preset time
Declare at customs information processing system, wherein the declaration information processing system handles the request of declaring after the encapsulation, obtains
Declare result;
Second receiving unit, for receive it is described declaration information processing system send declare as a result, and declaring result for described
It is stored in the second database;
Wherein, first receiving unit includes: the first receiving module, is declared for receiving first account is sent first
Request;Second receiving module, for obtain described first declare the first of request declare result before, receive first account
What is number sent second declares request, wherein the multiple to declare request include: described first to declare request and declare with described second
Request.
10. device according to claim 9, which is characterized in that described device further include:
Acquiring unit, for the request of declaring after encapsulating described in the first database to be sent to report every preset time
Before closing information processing system, the configuration information of target declaration information processing system is obtained, wherein at the target declaration information
Reason system declares the declaration information processing system for requesting corresponding customs described in being, the configuration information is used to indicate the target
The Format Type for the data that declaration information processing system allows to handle;
Second storage unit, for storing the configuration information of the target declaration information processing system.
11. device according to claim 10, which is characterized in that the encapsulation unit includes:
Configuration module, the configuration information for declaring at customs information processing system according to the target will be preset in the first database
The request of declaring of quantity carries out data configuration, obtains declaring request with what is postponed, wherein described with the number for declaring request postponed
According to Format Type and the target declaration information processing system Format Type of data that allows to handle it is identical;
First package module, for the workspace server by the destination number to the presently described first database
The preset quantity of middle storage is packaged with the request of declaring postponed;
Sending module, for the request of declaring after the encapsulation to be sent to the declaration information processing system.
12. device according to claim 9, which is characterized in that described device further include:
Third receiving unit is declared for what is sent in the reception declaration information processing system as a result, and declaring knot for described
After fruit is stored in the second database, first account is received to the inquiry request for declaring result;
Query unit obtains described declaring result for inquiring second database according to the inquiry request;
Second transmission unit, for the result of declaring to be sent to first account.
13. device according to claim 9, which is characterized in that the encapsulation unit includes:
Determining module, for determining the current quantity of the workspace server;
Increase module, is used in the case where the current quantity is less than the destination number, by the number of the workspace server
Amount increases to the destination number;
Second package module, for the workspace server by the destination number to the presently described first database
The request of declaring of middle storage is packaged.
14. device according to claim 9, which is characterized in that the encapsulation unit includes:
Judgment module with the presence or absence of time interval is more than default threshold in the workspace server for judging the destination number
The workspace server of value, wherein the time interval is the workspace server distance last time from the first database
Obtain the interval for declaring request;
Removing module, for judge there are the time interval be more than preset threshold workspace server in the case where, from
The workspace server that the time interval is more than the preset threshold is deleted in the workspace server of the destination number.
15. device according to claim 14, which is characterized in that described device further include:
Adding unit is more than described pre- for deleting the time interval in the workspace server from the destination number
If after the workspace server of threshold value, the quantity of the workspace server is increased to the destination number.
16. device according to claim 14, which is characterized in that described device further include:
Updating unit is more than described pre- for deleting the time interval in the workspace server from the destination number
If after the workspace server of threshold value, updating the current quantity of the workspace server and the volume of each workspace server
Number.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611249933.XA CN106874361B (en) | 2016-12-29 | 2016-12-29 | Data processing method and device applied to customs declaration |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611249933.XA CN106874361B (en) | 2016-12-29 | 2016-12-29 | Data processing method and device applied to customs declaration |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106874361A CN106874361A (en) | 2017-06-20 |
| CN106874361B true CN106874361B (en) | 2019-11-08 |
Family
ID=59164260
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611249933.XA Active CN106874361B (en) | 2016-12-29 | 2016-12-29 | Data processing method and device applied to customs declaration |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106874361B (en) |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107566456A (en) * | 2017-08-09 | 2018-01-09 | 北京小米移动软件有限公司 | User's request processing method and device |
| CN108182571A (en) * | 2018-01-29 | 2018-06-19 | 夏飞 | The declaration method and system of a kind of cross-border electric business |
| CN109560895A (en) * | 2018-12-27 | 2019-04-02 | 北京百佑科技有限公司 | Data transmission method and device |
| CN110414921A (en) * | 2019-06-26 | 2019-11-05 | 广东高捷航运物流有限公司 | A kind of total management system declared at customs with no paper at all, method and device |
| CN113722386B (en) * | 2020-05-26 | 2024-09-03 | 腾讯科技(深圳)有限公司 | Customs declaration data processing method and device and electronic equipment |
| CN111784131A (en) * | 2020-06-19 | 2020-10-16 | 江苏金匮通供应链管理有限公司 | Customs processing method and system based on customs data analysis |
| CN112163002A (en) * | 2020-09-28 | 2021-01-01 | 广东巴金斯科技有限公司 | Cross-border e-commerce customs data processing method and system |
| CN112233419B (en) * | 2020-10-10 | 2023-08-25 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and storage medium |
| CN113807908A (en) * | 2021-01-12 | 2021-12-17 | 北京京东振世信息技术有限公司 | A logistics declaration method, system, device, electronic device and storage medium thereof |
| CN113298459A (en) * | 2021-03-31 | 2021-08-24 | 阿里巴巴新加坡控股有限公司 | Order cross-border declaration method, system and device and computing equipment |
| CN116151925A (en) * | 2023-02-20 | 2023-05-23 | 阿里巴巴(中国)有限公司 | Cross-border order processing method, and method and equipment for determining cross-border order reporting mode |
| CN116757583B (en) * | 2023-08-17 | 2023-11-24 | 浙江菜鸟供应链管理有限公司 | Logistics information processing method, system, electronic equipment and storage medium |
| CN119250673B (en) * | 2024-09-06 | 2025-04-25 | 深圳市关区软件有限公司 | Cross-border trade-oriented order information customs declaration method and system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101221648A (en) * | 2008-02-01 | 2008-07-16 | 中国建设银行股份有限公司 | Centralized data processing system and method, centralized tax clearing and trading system |
| CN103297395A (en) * | 2012-02-24 | 2013-09-11 | 阿里巴巴集团控股有限公司 | Achievement method, system and device of internet business |
| CN103996112A (en) * | 2014-04-18 | 2014-08-20 | 青岛诚业国际物流有限公司 | Custom declaration data process system and method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1784768A4 (en) * | 2004-03-04 | 2007-07-04 | Us Postal Service | METHOD AND SYSTEMS FOR OBTAINING AN ELECTRONIC CUSTOMS FORM |
-
2016
- 2016-12-29 CN CN201611249933.XA patent/CN106874361B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101221648A (en) * | 2008-02-01 | 2008-07-16 | 中国建设银行股份有限公司 | Centralized data processing system and method, centralized tax clearing and trading system |
| CN103297395A (en) * | 2012-02-24 | 2013-09-11 | 阿里巴巴集团控股有限公司 | Achievement method, system and device of internet business |
| CN103996112A (en) * | 2014-04-18 | 2014-08-20 | 青岛诚业国际物流有限公司 | Custom declaration data process system and method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106874361A (en) | 2017-06-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106874361B (en) | Data processing method and device applied to customs declaration | |
| CN107845012B (en) | Order processing method and device | |
| CN110417558A (en) | Verification method and device, the storage medium and electronic device of signature | |
| US20170270470A1 (en) | Method and device for handling allocation request | |
| CN106204222A (en) | Order data treating method and apparatus | |
| CN108052398A (en) | A kind of feedback method of order processing state and polymerization payment platform | |
| CN109081033A (en) | Intelligent cargo cabinet control method and system | |
| CN104156843A (en) | Logistics distribution management system and logistics distribution management method | |
| CN110399533A (en) | Funds flow querying method and device | |
| CN105426452B (en) | A kind of business processing and data control method and device | |
| CN106548261A (en) | A kind of Business Process Control method, device and electronic equipment | |
| CN105139505A (en) | Off-time pre-appointment remote queuing method for bank business handling, and system thereof | |
| TW201737170A (en) | Virtual item allocation method, system and server | |
| CN108897854A (en) | A kind of monitoring method and device of overtime task | |
| CN106097092A (en) | Data processing method and device for reconciliation | |
| CN108335237A (en) | It puts on record method, terminal and computer readable storage medium | |
| CN109614209A (en) | A kind of task processing method, application server and system | |
| CN110852870A (en) | Virtual resource transfer method, device, equipment and readable storage medium | |
| CN109829015A (en) | Finance data storage method, device and storage medium based on HBase | |
| CN109582452A (en) | A kind of container dispatching method, dispatching device and electronic equipment | |
| CN110322127A (en) | A kind of project scheduling method, equipment, server and computer readable storage medium | |
| CN110213309A (en) | A kind of method, equipment and the storage medium of binding relationship management | |
| CN107273192A (en) | A kind of propulsion method of product trading, server and system | |
| CN110163739A (en) | Pay complaint method, device, server and readable storage medium storing program for executing | |
| CN113935507A (en) | Foreign currency cash exchange reservation method and device based on block chain |
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 |