CN108520307A - Data processing method and relevant apparatus - Google Patents
Data processing method and relevant apparatus Download PDFInfo
- Publication number
- CN108520307A CN108520307A CN201810281967.XA CN201810281967A CN108520307A CN 108520307 A CN108520307 A CN 108520307A CN 201810281967 A CN201810281967 A CN 201810281967A CN 108520307 A CN108520307 A CN 108520307A
- Authority
- CN
- China
- Prior art keywords
- order
- block chain
- transaction
- customer end
- service customer
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/02—Reservations, e.g. for tickets, services or events
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/10—Office automation; Time management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
Abstract
The embodiment of the present application discloses a kind of data processing method and relevant apparatus, this method include:Block chain managing device obtains the request of the first order transaction by first node device, the request of first order transaction is used to ask the first order transaction of storage the first service customer end processing, and identity information, the first order data and the first order status of the first service customer end are included at least in the first order transaction;Block chain managing device verifies the identity information of first service customer end, the first order data and the first order status by common recognition mechanism;If the identity information of the first service customer end, the first order data and the verification of the first order status pass through, the first order transaction is stored each node apparatus including including first node device to block chain network by block chain managing device.Data reliability can be improved in the embodiment of the present application, reduces the manual processing links of data processing, promotes data-handling efficiency.
Description
Technical field
This application involves field of computer technology more particularly to a kind of data processing method and relevant apparatus.
Background technology
Business-travel management is analyzed by carrying out whole investigate to the travel activity of enterprise mainly using enterprise as object, provides official communication
Opinion is ask, is then commonly improved flow, and make enterprise's travel by using the resource that business-travel management service supplier is possessed
Cost minimization realizes the control to business travel cost, and provides the management activity of whole travel service.Current business-travel management row
In industry, Three role is related generally to:(1) business-travel management is entrusted to business-travel management company (travel by enterprise, enterprise
Management corporation, TMC), air ticket, hotel reservation that enterprise staff is gone on business etc. can provide service by TMC,
Enterprise can be with monthly closing entry expense to TMC under normal mode;(2) TMC, predominantly enterprise provide business-travel management service.Such as hotel is pre-
It orders, TMC collects the resources such as house type, the room amount of each hotel publication, then issues the house type in each hotel, Fang Liang, room to enterprise
The information such as valence, the open hotel's resource for meeting its travel policy to enterprise staff;And order is subscribed in the travel for handling enterprise staff,
TMC can be with monthly closing entry rent to hotel;(3) hotel, provides hotel accommodations business, hotel issued to TMC the house type in hotel, Fang Liang,
The resources such as room rate confirm the reservation order of TMC, handle the matters such as move in and check out of enterprise staff.
During current business-travel management, TMC provides business-travel management system, and there are the management system of oneself in hotel and enterprise
System.Enterprise staff carries out inquiry about the hotels and reservation in business-travel management system or by customer service.But due to hotel, TMC, enterprise three
Enterprise staff is just all recorded in respective system moves in time and check-out time, when closing the account, does not believe between each other
Appoint, therefore controversial order in business datum is needed to carry out manually to link up and confirm, with a low credibility, the number of business datum
According to long processing period and efficiency it is low.
Invention content
A kind of data processing method of the embodiment of the present application offer and relevant apparatus, can be improved data reliability, reduce data
The manual processing links of processing promote data-handling efficiency.
In a first aspect, the embodiment of the present application provides a kind of data processing method, this method includes:Block chain managing device is logical
It crosses first node device and obtains the request of the first order transaction, first order transaction request is for asking the first business client of storage
The first order transaction for holding processing, include at least in first order transaction first service customer end identity information, first
Order data and the first order status.Block chain managing device believes the identity of first service customer end by mechanism of knowing together
Breath, first order data and first order status are verified.If the identity information of first service customer end, this
One order data and first order status verification passes through, the block chain managing device then by first order transaction store to
Block chain network includes each node apparatus including the first node device.In the embodiment of the present application, the first order transaction
In include at least the first order data, block chain managing device verifies first order data by common recognition mechanism,
After first order transaction verification passes through, block chain managing device can store the first order transaction into block chain network.
Since first order data is after being reached common understanding by common recognition mechanism, to be just stored in block chain network in block chain network
, and the data stored in block chain network have can not tamper, therefore the order data that is stored in block chain network it is identical and
It is credible, to improve data reliability, reduces the manual processing links of data processing, improve data-handling efficiency.
With reference to first aspect, in a kind of possible embodiment, block chain managing device deposits first order transaction
Storage include the first node device to block chain network including each node apparatus when, which can build the
One block, first block include first order transaction.Each node dress of the block chain managing device into the block link network
It sets and broadcasts first block, to trigger each node apparatus to first block progress block verification and be stored when verification passes through
First block.In the embodiment of the present application, block chain managing device to the identity information of first service customer end, this
After one order data and first order status verification pass through, block chain managing device can be by first order transaction with area
The form of block is stored in block chain network.Due to having recorded the cryptographic Hash of previous block in the block head of each block
(hash value), therefore there are block data can not distort, time-proven and believable characteristic, and the first order transaction includes first
Order data, therefore the first order data is stored in the form of block on each node apparatus of block chain network, can be prevented each
Service customer end malicious modification order data, data can not distort, and then can guarantee data reliability.Here, time-proven can
To be interpreted as being stored in all blocks on each node apparatus by generated time chain together, block chain is formed, therefore in block chain
Each block have a specific chronological order, i.e., each area's data in the block also having time sequencing.
With reference to first aspect, in a kind of possible embodiment, in block chain managing device by first order transaction
It stores to block chain network after including each node apparatus including the first node device, block chain managing device can pass through
The first node device sends order transaction processing response to first service customer end.Wherein, order transaction processing response
For notifying first service customer end to store first order transaction, which has stored to the block link network
In the order status library of network.Wherein, which includes first order note identification, the first order data, the transactions classes
One or more of type.In the embodiment of the present application, block chain managing device stores first order transaction to block
After chain network, which, can be timely by sending order transaction processing response to the first service customer end
The handling result that block chain managing device is fed back to the first service customer end is conducive to the propulsion of interaction.
With reference to first aspect, in a kind of possible embodiment, which includes the first order thing
The transaction types of business and the first order note identification.First order transaction is stored into block chain network in block chain managing device
After each node apparatus including the first node device, block chain managing device can determine closes with first order transaction
Second service customer end of connection.Block chain managing device by the corresponding second node device of second service customer end to this
Two service customer ends send order status synchronization notice, which obtains for triggering second service customer end
First order status and first order note identification in first order transaction are taken, and should according to first order status update
The order status that first order note identification of second service customer end storage corresponds to order is first order status.In the application
In embodiment, block chain managing device stores first order transaction to block chain network, to the first order thing
Be engaged in associated second service customer end sends order status synchronization notice, the second service customer end according to first order status more
The order status that new first order note identification corresponds to order is the first order status, and the shape between each service customer end may be implemented
State synchronizes and update, ensures the accuracy and validity of the data of each service customer end storage, and then each business client can be improved
The confidence level of the data of storage is held, while each service customer end user real-time query order status can be facilitated, obtains order most
New disposition.
With reference to first aspect, in a kind of possible embodiment, in block chain managing device by first order transaction
It stores to block chain network after including each node apparatus including the first node device, block chain managing device can pass through
Each node apparatus sends the event notice of first order transaction to the service customer end associated by each node apparatus.Wherein,
The event of first order transaction is notified for triggering at least one of the service customer end associated by each node apparatus industry
Business client handles to obtain the second order transaction according to first order data of first order transaction, and to the block chain pipe
Reason device request stores second order transaction to each node apparatus of the block chain network.In the embodiment of the present application, area
Block chain managing device stores first order transaction to block chain network, by the business associated by each node apparatus
Client sends the event notice of first order transaction, can timely and effectively push next process flow of order.
With reference to first aspect, in a kind of possible embodiment, which includes hotel's mark, hotel
House type information, hotel's room rate information, move in people's information, move in the time and the check-out time in it is one or more.This first is ordered
The transaction types of single affairs be order creation, acknowledgement of orders, cancellation of order, order come into force and order complete in one kind.It should
First order status of the first order transaction is one kind in creating, have confirmed that, cancelled, come into force and being completed.
Second aspect, the embodiment of the present application provide a kind of data processing method, and this method includes:First service customer end obtains
Associated first order data of the first order transaction is taken, and handles to obtain the second order transaction according to first order data.The
One service customer end sends the request of the second order transaction to block chain managing device, and second order transaction request is deposited for asking
Store up second order transaction of first service customer end processing.First service customer end receives block chain managing device transmission
Order transaction processing response, the order transaction processing response for notifying first service customer end to store second order
Affairs, second order status have been stored into the order status library of block chain network.Wherein, which includes the
One or more of two order note identifications, the second order data, transaction types.In the embodiment of the present application, the first business visitor
Family end can be used to indicate that the arbitrary service customer end for sending order transaction request.First service customer end is according to the first order thing
Associated first order data of being engaged in creates the second order transaction, and sends the request of the second order transaction to block chain managing device,
Block chain managing device stores the second order transaction to block chain network, is returned at order transaction to the first service customer end
Reason response, after thereby may be ensured that either which service customer end handles order data, is required in block link network
Reach common understanding on network.Therefore the data reliability in service customer end and block chain network can be improved, and can ensure to look forward to
Industry, hotel, on the respective service customer ends of TMC data consistency, when hotel's order is settled accounts, be not in enterprise, hotel,
The case where TMC mutual mistrusts, reduces a large amount of manual processing links, improves treatment effeciency.
In conjunction with second aspect, in a kind of possible embodiment, the first service customer end obtains the first order transaction and closes
First order data of connection, and when handling to obtain the second order transaction according to first order data, concretely:First business
Client receives the event notice for the first order transaction that block chain managing device is sent, and according to the thing of first order transaction
Part notice obtains the first identifier in first order transaction.If detecting, the first identifier is target identification, the first business visitor
Family end obtains the first order data that first order transaction includes.First service customer end carries out first order data
The second order data is obtained after information processing, and the second order transaction is generated according to second order data.Wherein, the target mark
Know for unique mark first service customer end, such as hotel's mark etc..
In conjunction with second aspect, in a kind of possible embodiment, which includes hotel's mark, hotel
House type information hotel's room rate information, moves in people's information, moves in the one or more in time and check-out time.First industry
Business client obtains the second order data after carrying out information processing to first order data, and is given birth to according to second order data
When at the second order transaction, concretely:First service customer end, which detects in resource database, whether there is and first order
The hotels data Zhong Gai mark, the hotel information of hotel's house type information and hotel's room rate information matches.If in the presence of first
Service customer end adjusts first order data according to the hotel information and obtains the second order data.First service customer end according to
Second order data generates the second order transaction.
In conjunction with second aspect, in a kind of possible embodiment, the first service customer end obtains the first order transaction and closes
Connection the first order data, and according to first order data create the second order transaction when, concretely:First business client
End receives the event notice for the first order transaction that block chain managing device is sent, and logical according to the event of first order transaction
Know the transaction types for obtaining first order transaction.If the transaction types of first order transaction are target transaction type, first
Service customer end obtains the first order data that first order transaction includes.First order data includes hotel's mark
Knowledge hotel's house type information, hotel's room rate information, moves in people's information, moves in the one or more in time and check-out time.
First service customer end detects in resource database with the presence or absence of the third order data with first order data matches.This
In, third order data can be hotel's mark, hotel's house type information, hotel's room rate information, move in people's information, move in the time with
And the one or more in the check-out time.If in the presence of the third order data with first order data matches, first
Service customer end generates the second order transaction according to the third order data.Optionally, if being stored in resource database and the
The identical efficient resource (i.e. available resources) of hotel's house type information, hotel's room rate information in one order data, then effectively by this
Resource is determined as third order data, and the first service customer end generates the second order transaction according to the third order data.This has
Effect resource is used to indicate the resources such as unoccupied or not scheduled house type, room rate, room quantity.
In conjunction with second aspect, in a kind of possible embodiment, block chain management is received in the first service customer end
After the order transaction processing response that device is sent, the first service customer end can obtain identity information (such as body of the first user
Part card either subscribes people's name or moves in people's name) and second order transaction third order data that includes, it is raw
At third order transaction.First service customer end sends the request of third order transaction to the block chain managing device, which orders
The third order transaction that single transactions requests are used to ask to store first service customer end processing, the third order transaction is at least
Identity information, the third order data including first service customer end and third order status.First service customer end
The order transaction processing response of block chain managing device transmission is received, order transaction processing response is for notifying first industry
Business client has stored the third order transaction, which has stored into the order status library of block chain network.
In conjunction with second aspect, in a kind of possible embodiment, the first service customer end obtains the identity of the first user
The third order data that information and second order transaction include, when generating third order transaction, concretely:First
Service customer end obtains the identity information of the first user, and the identity information of first user is for confirming for the first effective time.This
In it is appreciated that the first effective time can refer to the first user move in time and/or departure time.First service customer end obtains
The third order data that the second order transaction includes is taken, and after recording first effective time in the third order data
Generate third order transaction.
In conjunction with second aspect, in a kind of possible embodiment, first after first order data and/or adjustment orders
Forms data may include hotel's mark, hotel's house type information, hotel's room rate information, move in people's information, moves in time and the when of checking out
Between in it is one or more.
The third aspect, the embodiment of the present application provide a kind of data processing method, and this method includes:Second service customer end connects
The order status synchronization notice that block chain managing device is sent is received, which obtains for block chain managing device
After first order transaction asks and asks the first order transaction of storage to store first order transaction, to this
The request for asking second service customer end update order status library that second service customer end is sent.Second business client
End is obtained according to the order status synchronization notice in the first order note identification and first order transaction in the first order data
First order status.Second service customer end according to first order status update second service customer end storage this first
The order status that order note identification corresponds to order is first order status.
Fourth aspect, the embodiment of the present application provide a kind of block chain managing device, which, which has, realizes
The function of data processing method described in first aspect.The function can also execute phase by hardware realization by hardware
The software realization answered.The hardware or software include one or more modules corresponding with above-mentioned function.
In a kind of possible embodiment, which includes acquisition module, correction verification module and processing
Module.Wherein, acquisition module, for obtaining the request of the first order transaction, first order transaction by first node device
First order transaction of the request for ask storage the first service customer end processing, in first order transaction including at least this
The identity information of one service customer end, the first order data and the first order status.The correction verification module, for passing through common recognition machine
Make first order transaction stored includes is asked to first order transaction that the acquisition module obtains this
The identity information of one service customer end, first order data and first order status are verified.The processing module is used
In in the correction verification module to the identity information of first service customer end, first order data and the first order status school
Test by when, by first order transaction store each node including including the first node device to block chain network dress
It sets.
In a kind of possible embodiment, which includes processor, memory and communication interface, is somebody's turn to do
Processor, memory and communication interface are connected with each other, wherein for storing program code, which is used for the memory
The request of the first order transaction is obtained by first node device, first order transaction request is for asking storage the first business visitor
First order transaction of family end processing, include at least in first order transaction first service customer end identity information, the
One order data and the first order status;
The processor executes following operation for calling the program code:
Block chain managing device is by mechanism of knowing together to the identity information of first service customer end, the first order data the
One order data and the first order status are verified.If the identity information of first service customer end, first order numbers
According to this and first order status verification passes through, and it includes that the first segment is decorated which, which is stored up to block chain network,
Each node apparatus including setting.
5th aspect, the embodiment of the present application provide a kind of service customer end, which, which has, realizes second aspect
The function of the data processing method.The function can also execute corresponding software by hardware realization by hardware
It realizes.The hardware or software include one or more modules corresponding with above-mentioned function.
6th aspect, the embodiment of the present application provide another service customer end, which, which has, realizes third party
The function of data processing method described in face.The function can also be executed corresponding soft by hardware realization by hardware
Part is realized.The hardware or software include one or more modules corresponding with above-mentioned function.
7th aspect, the embodiment of the present application provide a kind of data processing system, which includes block chain managing device, the
One service customer end and the second service customer end, the block chain managing device are used to execute the data described in above-mentioned first aspect
Processing method;First service customer end is used to execute the data processing method described in above-mentioned second aspect;Second business visitor
Family end is used to execute the data processing method described in the above-mentioned third aspect.
Eighth aspect, the embodiment of the present application provides a kind of computer storage media, for being stored as block chain managing device
Computer program instructions used, it includes for executing the program involved by above-mentioned first aspect.
9th aspect, embodiments herein provides a kind of computer storage media, for being stored as the first business client
End computer program instructions used, it includes for executing the program involved by above-mentioned second aspect.
Tenth aspect, embodiments herein provides a kind of computer storage media, for being stored as the second business client
End computer program instructions used, it includes for executing the program involved by the above-mentioned third aspect.
Implement the embodiment of the present application, on the one hand, can ensure to trust each other between service customer end user, improving data can
Reliability;On the other hand, when closing the account, it is possible to reduce the manual processing links of data processing promote data-handling efficiency.
Description of the drawings
In order to illustrate more clearly of the technical solution of the embodiment of the present application, required use in being described below to embodiment
Attached drawing be briefly described.
Fig. 1 is the schematic flow diagram of business-travel management process;
Fig. 2 is a kind of schematic diagram of system architecture provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of data processing provided by the embodiments of the present application;
Fig. 4 a are a kind of schematic diagrames of transaction data structure provided by the embodiments of the present application;
Fig. 4 b are the relation schematic diagrams of a kind of transaction types and order status provided by the embodiments of the present application;
Fig. 5 is a kind of schematic flow diagram of affairs method of calibration provided by the embodiments of the present application;
Fig. 6 is a kind of schematic flow diagram of block storage method provided by the embodiments of the present application;
Fig. 7 is a kind of schematic diagram in order status library provided by the embodiments of the present application;
Fig. 8 is the schematic flow diagram that a kind of order status provided by the embodiments of the present application synchronizes;
Fig. 9 is the flow diagram of another data processing provided by the embodiments of the present application;
Figure 10 is the flow diagram of another data processing provided by the embodiments of the present application;
Figure 11 is a kind of structural schematic diagram of block chain managing device provided by the embodiments of the present application;
Figure 12 is the structural schematic diagram of another block chain managing device provided by the embodiments of the present application;
Figure 13 is a kind of structural schematic diagram of service customer end provided by the embodiments of the present application;
Figure 14 is the structural schematic diagram of another service customer end provided by the embodiments of the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation describes.
Data processing method provided by the embodiments of the present application is applicable to the business-travel management application scenarios of hotel's order processing
In.In some feasible embodiments, data processing method as shown in Figure 1 may be used in business-travel management process.Referring to figure
1, Fig. 1 is the schematic flow diagram of business-travel management process.Data handling procedure shown in FIG. 1 may include step:
S101 creates hotel's order.
In the embodiment of the present application, certain enterprise staff can create hotel in the service customer end system of enterprise oneself and order
It is single.Since enterprise and TMC are there are cooperative relationship, TMC can also provide enterprise of the service customer end system to collaboration,
Therefore the enterprise staff of the enterprise can also create hotel's order in the service customer end system that TMC is supplied to enterprise.
S102, TMC send hotel's order to hotel.
S103, hotel's acknowledgement of orders, and will confirm that information is sent to TMC.
S104, TMC send hotel's Confirmation of Orders situation and give certain enterprise staff.
S105, hotel record certain enterprise staff actual check-in time and check-out time.
S106, TMC settlement clerk carry out moving in the time with certain enterprise staff and the check-out time confirms, records certain enterprise staff
Actual check-in time and check-out time.
S107, TMC settlement clerk carry out reconciliation, both sides' reconciliation knot with enterprise settlement clerk according to hotel's order in respective system
After fruit is reached an agreement, enterprise settlement clerk notifies Finance Department to pay TMC.
S108, hotel settlement clerk carry out reconciliation, both sides' reconciliation knot with TMC settlement clerks according to hotel's order in respective system
After fruit is reached an agreement, TMC settlement clerks notify Finance Department to pay hotel.
It is assumed, however, that in data handling procedure shown in Fig. 1, it is assumed that certain enterprise staff was filled in when creating order
It moves in the time and the check-out time is respectively totally 2 evening on March 17, -2018 years on the 15th March in 2018, at this point, enterprise's record is moved in
Time and check-out time are totally 2 evening on March 17, -2018 years on the 15th March in 2018.But since stroke is delayed, certain enterprise staff
Really on March 16th, 2018 moves in, and departure on March 17th, 2018, certain enterprise staff that at this moment hotel records moves in the time
With the check-out time be on March 17, -2018 years on the 16th March in 2018 totally 1 evening.When TMC settlement clerks move in certain enterprise staff
Between and the check-out time confirm after, record certain enterprise staff actual check-in time and the check-out time be 16 days -2018 March in 2018
On March 17, in.In such cases, since enterprise, hotel, TMC settlement clerks respectively record moving in the time and checking out for enterprise staff
Time, the hotel's order information stored in respective system so as to cause enterprise, TMC, hotel differs, when mainly moving in
It is differed in length, when carrying out the clearing of hotel's order, enterprise staff, TMC settlement clerks and hotel settlement clerk would have to carry out
It is artificial to link up and confirm so that the data processing cycle of hotel's order is long and efficiency is low.
Data processing method provided by the embodiments of the present application, which can be applied to enterprise, TMC, hotel etc., the more of business contact
Between a service customer end system.Due in hotel's order this scene, enterprise staff move in the time and the check-out time exists
There are record, but enterprise, hotel, the respective service customer end systems of TMC in enterprise, hotel in the respective service customer end systems of TMC
Move in time and the check-out time recorded on system can be different because of the uncertainty of enterprise staff stroke, so as to cause enterprise,
The data stored between multiple service customer end systems such as TMC, hotel are inconsistent, therefore between multiple service customer end system
It is insincere.Data processing method provided by the embodiments of the present application is applicable to each business client that business-travel management system includes
End system, by taking business-travel management system as an example, referring to Fig. 2, Fig. 2 is a kind of system architecture diagram provided by the embodiments of the present application.Such as Fig. 2
Shown in may include the service customer end system of enterprise side, the service customer end system of the sides TMC, the industry of hotel side in system architecture
Business FTP client FTP and the block chain node apparatus of block chain network side.Wherein, the service customer end system of enterprise side can be with
It is made of order management client 1, enterprise order processing unit and order database 1.Order management client 1 can be with enterprise
Industry order processing device connects, and enterprise order processing unit can be connect with order database 1, and enterprise order processing unit may be used also
To be communicated with the block chain node apparatus 1 of block chain network side.The service customer end system of the sides TMC can be by order management
Client 2, TMC order processings device and order database 2 form.Order management client 2 can be filled with TMC order processings
Connection is set, TMC order processings device can be connect with order database 2, and TMC order processings device can also be with block chain network
The block chain node apparatus 2 of side is communicated.The service customer end system of hotel side can be ordered by order management client 3, TMC
Processing apparatus and order database 3 form.Order management client 3 can be connect with hotel's order processing device, hotel
Order processing device can be connect with order database 3, and hotel's order processing device can also be with the block of block chain network side
Chain node apparatus 3 is communicated.Wherein, block chain managing device can be all block chain node apparatus in block chain network
The block chain node apparatus that common recognition mechanism based on block chain network elects.Block chain managing device may be block chain
The block chain node apparatus of order transaction request is received in network.
In the embodiment of the present application, the service customer end system of enterprise side, the service customer end system of the sides TMC and hotel
The service customer end system of side, can be by respective block chain node apparatus to block chain after generating or creating order transaction
Managing device sends order transaction request, block chain managing device (block chain node apparatus 1 as shown in Figure 2, block chain node
Any of device 2, block chain node apparatus 3) after receiving order transaction request, by mechanism of knowing together to the order thing
Identity information, order data and order status in business are verified.It, can be by the order transaction with area after verification passes through
The form of block is stored in block chain network.Since the order data is reached common understanding in block chain network, and can be with block
Form storage reduce the manual processing links of data processing so as to improve data reliability, promote data processing effect
Rate.
Below in conjunction with Fig. 3 to Figure 14, data processing method provided by the embodiments of the present application and device are illustrated.
Embodiment one:
For ease of more fully understanding and implementing the scheme of the application, hotel's order in business-travel management system will be passed through below
Application scenarios are introduced.It is a kind of flow diagram of data processing provided by the embodiments of the present application referring to Fig. 3.Such as Fig. 3 institutes
Show, Data processing shown in Fig. 3, the first service customer end can refer to the service customer end system of enterprise side (as shown in Figure 2
Order management client 1, enterprise order processing unit and order database 1).For ease of description, with system shown in Fig. 2
Framework illustrates.Such as Fig. 3, data processing provided by the embodiments of the present application may include step:
S201, the first service customer end obtain associated first order data of the first order transaction, and according to the first order
Data processing obtains the first order transaction.
In some feasible embodiments, enterprise staff can select oneself to want in order management client 1 into
Hotel firmly, house type, the relevant information in the room hotels quantity Deng Yu, and fill in and move in people, contact method accordingly, move in/move back
The personal information such as room time.Wherein, it is provided by TMC with the relevant information in hotel.Enterprise order processing unit can obtain enterprise
The first order data of employee, first order data can be the information created needed for the first order transaction.At enterprise order
The first order transaction can also be created according to first order data by managing device.Wherein, the transaction types of first order transaction
For " establishment ".For example, enterprise order processing unit can be by the first order data, first order note identification etc. and the relevant letter of order
Breath is encapsulated in transaction data structure, forms an order transaction.First order data may include hotel's mark, hotel room
Type information, hotel's room rate information, move in people's information, move in the time and the check-out time in it is one or more.Hotel's mark can
It is uniquely determined by hotel name.
In some feasible embodiments, transaction data structure can there are many forms, such as table, file.This Shen
Please the transaction data structure that provides of embodiment may include the attributes such as number, version, transaction types, transaction parameter.Wherein, it numbers
For uniquely identifying the affairs in block chain network.Version refers to version, such as V1, V2 of transaction data structure, etc..Thing
The attribute of service type self-explanatory characters business, such as " order creation ", " acknowledgement of orders ", " order comes into force ", " order completion ", " cancellation of order "
Etc. fields.Transaction parameter be and the relevant parameter information of order, such as order note identification, order data, order status.If first
Order transaction is hotel's order transaction, and transaction data structure can as shown in fig. 4 a, and Fig. 4 a are provided by the embodiments of the present application one
The schematic diagram of kind transaction data structure.Wherein, transaction parameter specifically includes order number, hotel number, house type, room rate, moves in people, connection
Be mode, perfect instrument, move in the time, the check-out time, order status etc..Wherein, order number, hotel number can be with fixation
The character string of length, the character string may include number, alphabetical (large and small to write) or number and the combination of letter etc..Order number and
The character length in hotel number can be identical, can also differ.Such as order number can be 8 bit lengths character string " O2018001 ",
" Hrder002 ", " 20180316 " etc.;Hotel number can be character string " H003 ", " Ht46 " of 4 bit lengths etc..Order number can
To be that the first service customer end is distributed unitedly as hotel's order transaction.Hotel number by hotel be supplied to collaboration TMC or
Enterprise.Room rate is what enterprise appointed with TMC.Enterprise staff can select house type, move in people, contact method, perfect instrument, enter
Firmly time, check-out time etc..As shown in Figure 4 b, Fig. 4 b are a kind of transaction types provided by the embodiments of the present application and order status
Relation schematic diagram.Wherein, the operation of each service customer end system can form affairs, and the transaction types of each affairs can be by each business
The operation of FTP client FTP determines that each order status can be determined again by the transaction types of each affairs.For example, the industry of enterprise side
When business FTP client FTP " creating order for the first time, record is estimated to move in time and check-out time ", transaction types are " order creation ",
Order status can be " newly-built ".In service customer end system " confirmation has room, confirms an order effectively " of hotel side, transaction types
Become " acknowledgement of orders " from " order creation ", order status can be become " having confirmed that " from " newly-built ".Business client in hotel side
When end system " confirming that employee moves in ", transaction types can be become " order comes into force " from " acknowledgement of orders ", and order status can be by " really
Recognize " become " having come into force " etc..
Optionally, order management client 1 as shown in Figure 2, enterprise order processing unit and order database 1 can be with
It is integrated on a service customer end, can also be independently present in the service customer end system of enterprise side, not be limited herein.
S202, the first service customer end send the request of the first order transaction to block chain managing device.
In some feasible embodiments, enterprise order processing unit, can be with after creating above-mentioned first order transaction
The request of the first order transaction is sent to the block chain node apparatus 1 of block chain network side, block chain managing device can pass through area
Block chain node apparatus 1 receives first order transaction request.Block chain managing device referred herein can be to receive order thing
The block chain node apparatus of business request can also be all block chain node apparatus in block chain network based on block chain network
The block chain node apparatus that elects of common recognition mechanism.If being asked for example, block chain node apparatus 1 receives order transaction,
Block chain node apparatus 1 can be block chain managing device, and block chain node apparatus 1 directly receives first order transaction request.
It elects if block chain managing device is common recognition mechanism and is not block chain node apparatus 1, block chain managing device can be with
First order transaction request is received by block chain node apparatus 1.Wherein, first order transaction request is for asking storage
Above-mentioned first order transaction of enterprise order processing unit processing includes at least the enterprise order in first order transaction and handles
The identity information of device such as enterprise number, the first order data and the first order status.First order status can be " newly-built ".
In some feasible embodiments, block chain network may include N+1 node apparatus, this N+1 node dress
It can be the block chain node apparatus for being deployed in block chain network side to set.For example, N=2,3 node apparatus of block chain network
Can be respectively block chain node apparatus 1, block chain node apparatus 2 and block chain node apparatus 3.In this 3 node apparatus
In node apparatus corresponding with the first service customer end be first node device, first node device can be with the first business client
End is communicated, therefore the first node device in the embodiment of the present application can be block chain node apparatus 1.
S203, block chain managing device pass through the identity information of the first service customer end of mechanism pair, the first order numbers of knowing together
According to this and the first order status is verified.
S204, if the identity information of the first service customer end, the first order data and the verification of the first order status pass through,
The block chain managing device then stores the first order transaction each including including first node device to block chain network
Node apparatus.
In some feasible embodiments, block chain managing device after receiving the request of above-mentioned first order transaction,
Can by common recognition mechanism in enterprise number, the first order data hotel number, move in people's information etc. and verify, and utilize shape
Whether state machine the first order status of modulo check is legal.Wherein, state machine pattern can refer to multiple states must be according to certain
Sequence changes.Assuming that stateful 1, state 2, state 3 totally 3 states, next state of state 1 is state 2, state 2
Next state be state 3, if a upper order status for the first order status be state 1, the first order status if
State 3 then illustrates that the first order status is illegal, and verification does not pass through.If a upper order status for the first order status is
State 1, the first order status then illustrate that the first order status is legal, are verified if state 2.If verification passes through, block chain
First order transaction can be stored each node including including the first node device to block chain network by managing device
Device.
In some feasible embodiments, common common recognition mechanism includes but not limited to proof of work (proof of
Work, PoW) algorithm, equity prove (proof of stake, PoS) algorithm, equity authorized to prove (delegated proof
Of stake, DPoS) algorithm, practical Byzantine failure tolerance (practical byzantine fault tolerance, PBFT) calculate
Method, etc..By taking PBFT algorithms as an example, specific PBFD algorithms can with as shown in figure 5, Fig. 5 be provided by the embodiments of the present application one
The schematic flow diagram of kind affairs method of calibration.The detailed process of the affairs method of calibration may include step:
S2031, the identity information of block chain the first service customer end of managing device pair, the first order data and first are ordered
Single state is verified.
In some feasible embodiments, by taking PBFT algorithms as an example, block chain managing device is leader node apparatus.
Leader node apparatus is that all node apparatus in block chain network elect the node apparatus for book keeping operation.Block chain pipe
Manage device (leader node apparatus) can to the identity information (such as enterprise number) of the first service customer end, the first order data with
And first order status verified.Wherein, the first order data may include order note identification, the first order data and first
Order status, first order data may include hotel mark (such as hotel number), hotel's house type information, hotel's room rate information,
Move in people's information, move in the time and the check-out time in it is one or more.For example, block chain managing device can verify enterprise
It is number whether unique, whether effectively, so as to prevent the block chain node apparatus of block chain network side by illegal traffic client
System (refers to the service customer end system except enterprise side, the service customer end system of the sides TMC, the service customer end system of hotel side
Except service customer end system) send order data store, ensure the reliability in the first order data source.Area
Block chain managing device can also verify whether the mark of the hotel in first order data, to move in people's information legal, prevent non-conjunction
The enterprise staff for making relationship creates first order data.Block chain managing device can also verify in first order data
Move in the time, whether the check-out time is supplied in hotel in the target time section of enterprise, prevent that this from moving in the time and/or this is checked out
Time not in the target time period, so as to cause first order transaction it is invalid.Block chain managing device can also utilize shape
Whether state machine the first order status of modulo check is legal.
S2032, if the identity information of the first service customer end, the first order data and the verification of the first order status are logical
It crosses, the first order transaction is sent to other in block chain network other than block chain managing device by block chain managing device
N number of node apparatus.
In some feasible embodiments, if the identity information of first service customer end, the first order data and
The check results of first order status are to pass through, and illustrate the from the horse's mouth, legal, effective of first order transaction.Block chain pipe
First order transaction is sent to other N number of nodes in block chain network other than block chain managing device and filled by reason device
It sets.Other N number of node apparatus in block chain network receive the first order transaction.Here block chain managing device can be the
One node apparatus, other N number of node apparatus can be block chain node apparatus 2 and block chain node apparatus 3.
S2033, N number of node apparatus is to the identity information of block chain managing device, the first order data and the first order
State is verified.
S2034, N number of node apparatus respectively to block chain managing device send block chain managing device identity information, the
The check results of one order data and the first order status.
In some feasible embodiments, N number of node apparatus can obtain area after receiving first order transaction
The identity information of block chain managing device, the first order data and the first order status in first order transaction.N number of node
Each node apparatus in device can to the identity information of the block chain managing device, first order data and this first
Order status is verified.Each node apparatus in N number of node apparatus can be sent to block chain managing device to this respectively
The check results of the identity information of block chain managing device, first order data and first order status, block chain pipe
Reason device receives the check results that N number of node apparatus returns.Wherein, identity of each node apparatus to the block chain managing device
Information, first order data and first order status can obtain a check results, N number of node dress after being verified
It sets after the identity information to the block chain managing device, first order data and first order status verify and there are
N number of check results.
S2035, block chain managing device count check results be by node apparatus number.
In some feasible embodiments, block chain managing device receives N number of check results that N number of node apparatus returns
Afterwards, can count in N number of check results for by check results number, to obtain check results be by node fill
Set number.Due to each node apparatus to the identity information of the block chain managing device, first order data and this first
Order status can obtain a check results after being verified, thus count in N number of check results for by verification knot
Fruit number, you can know check results be by node apparatus number.
S2036, if the check results that M node apparatus in N number of node apparatus returns are to pass through, block chain managing device
First order transaction is stored into each node apparatus including including first node device to block chain network.
In some feasible embodiments, if block chain managing device, which counts in N number of node apparatus, M node dress
The check results for setting return are all to pass through, wherein M > 1/2*N, i.e., block chain managing device follows a small number of clothes in PBFD algorithms
From majority principle, it can be said that bright first order transaction has reached common recognition in most of node apparatus of block chain network.
Block chain managing device can store first order transaction include the first node device to block chain network including
Each node apparatus.First order transaction that N number of node apparatus can receive step S2032 preserves.Due to first
Order data is verified by all node apparatus in block chain network, and the first order transaction of most of node apparatus pair
Check results be to pass through, therefore can ensure that the first order transaction that each node apparatus preserves is to reach common understanding and believable,
Data reliability can be improved.
Optionally, there are the check results that M node apparatus returns in N number of node apparatus if block chain managing device counts on
Not pass through, it can be said that bright first order transaction is not reached common understanding in most of node apparatus of block chain network, area
Block chain managing device can send order processing failure notification to the service customer end system of enterprise side.
In some feasible embodiments, block chain managing device stores the first order transaction into block chain network
The detailed process of each node apparatus including first node device can be using as shown in fig. 6, Fig. 6 be provided as the embodiment of the present application
Block storage method schematic flow diagram, the detailed process of the block storage method may include step:
S20361, block chain managing device build the first block.
In some feasible embodiments, if block chain managing device counts on the dress of M node in N number of node apparatus
The check results for setting return are all to pass through, then illustrate that the first order transaction has been reached altogether in each node apparatus of block chain network
Know, the multiple affairs not being packaged at present can be packaged by block chain managing device, build the first block.Wherein, this first
Block includes first order transaction, and firstth area all affairs in the block, which verify, to be passed through.
S20362, N number of node apparatus of the block chain managing device into block chain network broadcast the first block.
S20363, N number of node apparatus carry out block verification to the first block respectively.
S20364, each node apparatus in N number of node apparatus store first after the block verification of the first block passes through
Block.
In some feasible embodiments, block chain managing device can respectively to N number of node apparatus broadcast this first
Block.N number of node apparatus receives the first block of block chain managing device broadcast.Each node apparatus in N number of node apparatus
Block verification can be carried out to first block respectively again with interim storage first block, each node apparatus.Each node dress
It sets and stores first block after the block verification of first block passes through.At this time due to being had recorded in the block head of each block
The cryptographic Hash (hash value) of previous block, so when the firstth area content in the block for storing can not change.Therefore it can protect
It is believable to demonstrate,prove the data in multiple systems, to reduce manual processing links, promotion processing when settling accounts hotel's order
Efficiency.Here, time-proven can be understood as being stored in all blocks on each node apparatus by generated time chain together, shape
At block chain.Wherein, block verification can carry out legitimacy verifies to the source of first block.For example, according to first
The identification information judgment for the sender that block carries sends whether the node apparatus of first block is block chain managing device
(leader node apparatus)
Optionally, if each node apparatus does not pass through the block verification of first block, illustrate that first block exists
Do not reach common understanding in each node apparatus of block chain network, which can delete firstth area of interim storage
Block.
S205, block chain managing device send order transaction processing to the first service customer end by first node device and ring
It answers.
In some feasible embodiments, block chain managing device is stored by first order transaction to block link network
After network includes each node apparatus including the first node device, it can be handled to enterprise order by first node device
Device sends order transaction processing response, and order transaction processing response can illustrate that the first order transaction has been stored to block chain
Network, i.e. hotel's order creation success of enterprise side.Order transaction processing response can be used for notifying enterprise order processing dress
It sets and has stored first order transaction, which has stored into the order status library of the block chain network.Wherein,
First order transaction includes one or more of the first order note identification, the first order data, the transaction types.Block chain pipe
Reason device stores first order transaction to block chain network include each node apparatus including the first node device after,
It, can be in time to the service customer end system feedback block chain managing device of enterprise side by sending order transaction processing response
Handling result.
In some feasible embodiments, the order status library of block chain network can be with key-value's (key-value)
Mode stores order data, as shown in fig. 7, Fig. 7 is a kind of schematic diagram in order status library provided by the embodiments of the present application.key
The order note identification in order transaction, i.e. order number (order ID) can be used, value may include and order transaction is relevant orders
Forms data (such as hotel name, move in people etc.) and order status.
In some feasible embodiments, enterprise staff is before hotel confirms an order or moves in before hotel through order pipe
It manages client 1 and cancels scheduled hotel's order.Enterprise order processing unit can be operated according to the cancellation of enterprise staff, be generated
New order transaction, new order transaction request is sent to block chain managing device, and request block chain managing device stores new
Order transaction.Wherein, the transaction types of the new order transaction can be " cancellation of order " as shown in Figure 4 b.
S206, block chain managing device notice carry out order status with associated second service customer end of the first order transaction
It is synchronous.
In some feasible embodiments, block chain managing device stores first order transaction to block chain network
Include that can be notified and associated second industry of first order transaction after each node apparatus including the first node device
Client of being engaged in carries out order status synchronization.Second service customer end can be used to indicate that in addition to the first service customer end and with this
The associated arbitrary service customer end of one order transaction, such as the second service customer end can be the sides TMC service customer end system and/or
The service customer end system of hotel side.Specifically, the process that order status synchronizes can be with as shown in figure 8, Fig. 8 be implemented for the application
The schematic flow diagram that a kind of order status that example provides synchronizes.Specifically it may include step:
S2061, block chain managing device determine and associated second service customer end of the first order transaction.
In some feasible embodiments, block chain managing device stores first order transaction to block chain network
Include after each node apparatus including the first node device, block chain managing device can obtain first order transaction
The interface message of request, and the interface message that can be asked according to first order transaction is determined and is associated with first order transaction
The sides TMC service customer end system and/or hotel side service customer end system.Wherein, which can refer to transmission
The identification information (such as enterprise number, hotel number or No. TMC) of the service customer end of order transaction request.In block chain network, order
There are preset incidence relations between interface message and each service customer end system in single transactions requests.For example, if first orders
Single transactions requests be enterprise side service customer end system send, then with the associated second business client of first order transaction
End can be the service customer end system of the sides TMC and/or the service customer end system of hotel side.If the request of the first order transaction is
The service customer end system of the sides TMC is sent, then can be enterprise side with associated second service customer end of first order transaction
Service customer end system and/or hotel side service customer end system.If the request of the first order transaction is the business of hotel side
FTP client FTP, then with associated second service customer end of first order transaction can be enterprise side service customer end and/
Or the service customer end system of the sides TMC.
S2062, block chain managing device are objective to the second business by the corresponding second node device of the second service customer end
Family end sends order status synchronization notice.
In some feasible embodiments, block chain managing device can pass through the second service customer end corresponding second
Node apparatus sends order status synchronization notice to the second service customer end, and the second service customer end receives block chain managing device
The order status synchronization notice of transmission.Wherein, node apparatus corresponding with the second service customer end is second in block chain network
Node apparatus.For example, the second service customer end can be the service customer end system of the sides TMC and/or the business client of hotel side
End system, then second node device can be block chain node apparatus 2 and/or block chain node apparatus 3.Similarly, if the second industry
Client of being engaged in is the service customer end system of enterprise side, and second node device is also correspondingly block chain node apparatus 1.
S2063, the second service customer end obtain the first order status and the first order note identification in the first order transaction.
In some feasible embodiments, the second service customer end receives the order of block chain managing device transmission
After state synchronized notice, the first order status and the first order note identification in the first order transaction can be obtained.Specifically, first
Order note identification can be order number, and the first order status changes with the transaction types of first order transaction.For example, first orders
The transaction types of single affairs are " order creation ", and the first order status is " newly-built ", and the first order note identification is order number
“O2018001”。
S2064, the second service customer end update the first order that the second service customer end stores according to the first order status
The order status of the corresponding order of mark is the first order status.
In some feasible embodiments, the second service customer end can be searched and is somebody's turn to do in the order database of oneself
The corresponding order information of first order note identification, and the order status in the order information can be revised as to the first order shape
State.Real-time synchronization order status between each service customer end may be implemented by affairs relevance judgment mechanism in the embodiment of the present application
Information grasps the processing state of order convenient for the user of each service customer end in real time.
S207, block chain managing device send the by each node apparatus to the service customer end associated by each node apparatus
The event of one order transaction notifies.
In some feasible embodiments, block chain managing device stores first order transaction to block chain network
After including each node apparatus including the first node device, block chain managing device can be by each node apparatus to each
Service customer end associated by node apparatus sends the event notice of first order transaction.Wherein, first order transaction
Event notice can be used for triggering at least one of the service customer end associated by each node apparatus service customer end according to this
First order data of first order transaction handles to obtain the second order transaction, and should to block chain managing device request
Second order transaction is stored to each node apparatus of the block chain network.The event that the embodiment of the present application passes through transmission order transaction
Notice, can timely and effectively push next process flow of order.
In the embodiment of the present application, the first order transaction of service customer end system creation of enterprise side, and to block chain pipe
It manages device and sends the request of the first order transaction, the first order transaction of the service customer end system processing of request storage enterprise side.
Including at least the identity information of service customer end system of the enterprise side, the first order data and the in first order transaction
One order status block chain managing device is by mechanism of knowing together to the identity information of the service customer end system of the enterprise side, first
Order data and the first order status are verified.After verification passes through, block chain managing device is by first order transaction
Store each node apparatus including including the first node device to block chain network.To improve each service customer end system
Data reliability in system and block chain network, and ensure that enterprise, hotel, the respective service customer end systems of TMC cannot
Altered data privately, when hotel's order is settled accounts, the case where being not in enterprise, hotel, TMC mutual mistrusts, reduces a large amount of
Manual processing links, improve treatment effeciency.
Embodiment two:
And then embodiment one is introduced the embodiment of the present application.The service customer end of enterprise side creates the first order transaction
Afterwards, the request of the first order transaction is sent to block chain managing device, the service customer end system processing of request storage enterprise side
First order transaction.After block chain managing device receives the request of the first order transaction, pass through mechanism pair the first order thing of knowing together
Business is stored.After storing the first order transaction into block chain network, block chain managing device is to each business client
End system sends the event notice of the first order transaction.The event that the service customer end of the sides TMC receives the first order transaction is logical
After knowing, process flow as shown in Figure 9 can be carried out, Fig. 9 is the flow of another data processing provided by the embodiments of the present application
Schematic diagram.Data processing shown in Fig. 9, the first service customer end can refer to service customer end system (such as Fig. 2 of the sides TMC
Shown in order management client 2, TMC order processings device and order database 2).For ease of description, with shown in Fig. 2
System architecture illustrates.The specific process flow of the embodiment of the present application may include step:
S301, the first service customer end notify to obtain first in the first order transaction according to the event of the first order transaction
Mark.
S302, if detecting, first identifier is target identification, and the first service customer end obtains to be wrapped in first order transaction
The first order data included.
In some feasible embodiments, the service customer end system that block chain managing device receives enterprise side is sent
The first order transaction ask and first order transaction is stored to block chain network, to the industry associated by each node apparatus
Client of being engaged in sends the event notice of the first order transaction.TMC order processing devices receive the transmission of block chain managing device
After the event notice of first order transaction, the first identifier in first order transaction is obtained.TMC order processings device can be with
Detect whether the first identifier is target identification.If the first identifier is the target identification, TMC order processings device can obtain
The first order data that first order transaction includes.Wherein, target identification can be that the identity of TMC order processing devices is believed
Breath such as No. TMC.Since the first order data in the first order transaction preserves on each node apparatus, and block chain node
Device 1, block chain node apparatus 2, block chain node apparatus 3 can respectively with the service customer end system of enterprise side, the sides TMC
Service customer end system and the service customer end system of hotel side are communicated.Therefore TMC order processings device can be from block
The first order data that first order transaction includes is obtained in chain node apparatus 2.Wherein, it can be wrapped in the first order data
Include hotel's mark, hotel's house type information, hotel's room rate information, move in people's information, move in the time and the check-out time in one
Or it is multinomial.
S303, first the first order data of service customer end pair obtain the second order data, and root after carrying out information processing
The second order transaction is generated according to the second order data.
In some feasible embodiments, in first order data may include hotel's mark, hotel's house type information,
Hotel's room rate information moves in people's information, moves in the one or more in time and check-out time.Hotel's mark can be by hotel
Title uniquely determines.TMC order processings device obtains the second order numbers after can carrying out information processing to first order data
According to.For example, 128 yuan of room rate in the first order data can be adjusted to what TMC was appointed with hotel by TMC order processings device
108 yuan of room rate can obtain the second order data based on the first order data after adjustment.TMC order processings device can incite somebody to action
Second order data is packaged into the second order transaction.Wherein, first created for the ease of differentiation enterprise order processing unit
Order transaction, the order transaction that TMC order processing devices generate can be indicated with the second order transaction.Second order transaction
Transaction types can may be the same or different with the transaction types of the first order transaction.For example, the thing of the second order transaction
Service type can be as shown in Figure 4 b " order creation ".Due to order status as transaction types change, for ease of distinguishing first
Order status, therefore the order status in the second order transaction can be the second order status, therefore the second order transaction may include the
The first order data after two order note identifications, adjustment and the second order status.The second order status still can be " newly-built " at this time.
The second order note identification at this time can be identical as the first order note identification, can also be different from the first order note identification.
In some feasible embodiments, TMC order processings device can detect in resource database with the presence or absence of with
Hotel's mark, hotel's house type information and the consistent hotel information of hotel's room rate information in first order data.If in the presence of,
TMC order processings device can adjust first order data according to the hotel information and obtain the second order data, and can root
The second order transaction is generated according to second order data.It is somebody's turn to do for example, TMC order processings device can be adjusted according to the hotel information
Hotel's room rate information and/or hotel's mark in first order data etc. obtain the second order data.Wherein, the number of resources of TMC
It can be used to save essential information of client, such as enterprise name, enterprise's mark etc. according to library;Hotel name, hotel's mark, room
The information such as type, room rate, room quantity.
S304, the first service customer end send the request of the second order transaction to block chain managing device.
In some feasible embodiments, TMC order processings device, can be to area after generating second order transaction
The block chain node apparatus 2 of block chain network side sends the request of the second order transaction, and block chain managing device passes through block chain node
Device 2 receives the request of the second order transaction.Here block chain node apparatus 2 can be first node device.The second order thing
Business request can be used for asking second order transaction of storage TMC order processing devices processing, be wrapped in second order transaction
Include identity information, the second order data and the second order status of TMC order processing devices.
S305, the first service customer end that block chain managing device includes by the second order transaction of common recognition mechanism pair
Identity information, the second order data and the second order status are verified.
S306, if the identity information of the first service customer end, the second order data and the verification of the second order status pass through,
Second order transaction is then stored each node including including first node device to block chain network by block chain managing device
Device.
S307, block chain managing device send order transaction processing to the first service customer end by first node device and ring
It answers.
S308, block chain managing device notice carry out order status with associated second service customer end of the second order transaction
It is synchronous.
S309, block chain managing device send the by each node apparatus to the service customer end associated by each node apparatus
The event of two order transactions notifies.
In some feasible embodiments, the step S305- steps S309 in the embodiment of the present application can be real with reference chart 3
The step S203- step S207 of example are applied, details are not described herein.
In the embodiment of the present application, the service customer end system of the sides TMC generates the second order thing according to the first order transaction
Business, and the request of the second order transaction is sent to block chain managing device, block chain managing device receives the request of the second order transaction
And the second order transaction is stored into block chain network.It thereby may be ensured that either which service customer end system is to order
After order data in affairs is handled, it is required for reaching common understanding in block chain network.Therefore each business visitor can be improved
Data reliability in family end system and block chain network, and can ensure enterprise, hotel, the respective service customer ends of TMC
The consistency of data in system, when hotel's order is settled accounts, the case where being not in enterprise, hotel, TMC mutual mistrusts, is reduced
A large amount of manual processing links, improve treatment effeciency.
Embodiment three:
And then embodiment two is introduced the embodiment of the present application.The service customer end system of the sides TMC generates the second order
After affairs, the request of the second order transaction is sent to block chain managing device, the of the service customer end processing of request storage TMC sides
Two order transactions.After block chain managing device receives the request of the second order transaction, pass through the second order transaction of mechanism pair of knowing together
It is stored.After storing the second order transaction into block chain network, block chain managing device is to each service customer end
Send the event notice of the second order transaction.The service customer end system of hotel side receives the event notice of the second order transaction
Afterwards, process flow as shown in Figure 10 can be carried out, Figure 10 is the flow of another data processing provided by the embodiments of the present application
Schematic diagram.In Data processing shown in Fig. 10, the first service customer end can refer to the service customer end system of hotel side (as schemed
Order management client 3, hotel's order processing device and order database 3 shown in 2).For ease of description, with shown in Fig. 2
System architecture illustrate.The specific process flow of the embodiment of the present application may include step:
S401, the first service customer end notify to obtain second in the second order transaction according to the event of the second order transaction
Mark.
S402, if detecting, second identifier is target identification, and the first service customer end obtains the first order transaction and includes
The first order data.
In some feasible embodiments, the service customer end system that block chain managing device receives the sides TMC is sent
The second order transaction ask and second order transaction is stored to block chain network, to the industry associated by each node apparatus
Client of being engaged in sends the event notice of the second order transaction.Hotel's order processing device receives the transmission of block chain managing device
After the event notice of second order transaction, the second identifier in first order transaction is obtained.Hotel's order processing device can
To detect whether the second identifier is target identification.If the second identifier is the target identification, hotel's order processing device can be with
Obtain the second order data that second order transaction includes.Wherein, target identification can be hotel's order processing device
Identity information such as hotel number.Since the second order data in the second order transaction preserves on each node apparatus, and block
Chain node apparatus 1, block chain node apparatus 2, block chain node apparatus 3 can respectively with the service customer end system of enterprise side,
The service customer end system of the sides TMC and the service customer end system of hotel side are communicated.Therefore hotel's order processing device can
To obtain the second order data that second order transaction includes from block chain node apparatus 3.Wherein, the second order data
In may include hotel's mark, hotel's house type information, hotel's room rate information, move in people's information, move in time and check-out time
In one or more.
S403, the first service customer end are detected in resource database and are ordered with the presence or absence of the third with the second order data matches
Forms data.
S404, if in the presence of the third order data with the second order data matches, the first service customer end is according to third
Order data generates third order transaction.
In some feasible embodiments, in second order data may include hotel's mark, hotel's house type information,
Hotel's room rate information moves in people's information, moves in the one or more in time and check-out time.It hotel number can be by hotel's name
Title uniquely determines.Order processing device in hotel's, which can detect in resource database, whether there is and second order data matches
Third order data.It whether there is and second order numbers for example, order processing device in hotel's can detect in resource database
The identical efficient resource (i.e. available resources) of hotel's house type information, hotel's room rate information in, and if it exists, then by effective money
Source is determined as third order data.The third order data can be packaged into third order transaction by hotel's order processing device.
Wherein, which is used to indicate the resources such as unoccupied or not scheduled house type, room rate, room quantity.For the ease of
The second order transaction that TMC order processing devices generate is distinguished, the order transaction that order processing device in hotel's generates can use the
Three order transactions indicate.The transaction types of third order transaction can be with the affairs of the first order transaction and the second order transaction
Type is different.The service customer end system confirmation of hotel side has room at this time, and order is effective, therefore the transaction types of third order transaction
Can be " acknowledgement of orders " as shown in Figure 4 b.Due to order status as transaction types change, for ease of distinguishing the first order
State and the second order status, the order status in third order transaction can be third order status.Third order shape at this time
State can be " to be had confirmed that " shown in Fig. 4 b.Third order transaction may include third order note identification, third order data and
Three order status.Third order note identification at this time can be identical as the second order note identification or the first order note identification.The resource in hotel
Database is for storing the information such as the house type/room quantity subscribed, not scheduled house type/room quantity.
In some feasible embodiments, hotel's order processing device, can after getting second order data
To be sent to order management client 3, order management client 3 can export second order data to Hotel Staff.Wine
Salesman's work can confirm and hotel's house type information, the hotel's room rate information in the second order data in the resource database in hotel
Identical third order data.The third order data can also be sent to wine by Hotel Staff by order management client 3
Shop order processing device.The third order data can be packaged into third order transaction by hotel's order processing device.
S405, the first service customer end send the request of third order transaction to block chain managing device.
In some feasible embodiments, order processing device in hotel's is after generating the third order transaction, Ke Yixiang
The block chain node apparatus 3 of block chain network side sends the request of third order transaction, and block chain managing device passes through block chain link
Point device 3 receives the request of third order transaction.Here block chain node apparatus 3 can be first node device.The third is ordered
Single transactions requests can be used for asking the third order transaction of storage hotel's order processing device processing, the third order transaction
Include identity information, third order data and the third order status of hotel's order processing device.
S406, the first service customer end that block chain managing device includes to third order transaction by common recognition mechanism
Identity information, third order data and third order status are verified.
S407, if the identity information of the first service customer end, third order data and the verification of third order status pass through,
Third order transaction is then stored each node including including first node device to block chain network by block chain managing device
Device.
In some feasible embodiments, the step S406- steps S407 in the embodiment of the present application can be real with reference chart 3
The step S203- step S204 of example are applied, details are not described herein.
S408, block chain managing device send order transaction processing to the first service customer end by first node device and ring
It answers.
In some feasible embodiments, block chain managing device by third order transaction store to block chain network it
Afterwards, order transaction processing response can be sent to hotel's order processing device by block chain node apparatus 3.At the order transaction
Reason response can illustrate that third order transaction has been stored to block chain network.Order transaction processing response can be used for notifying wine
Shop order processing device has stored the third order transaction, which has stored to the order shape of the block chain network
In state library.Wherein, third order transaction include third order note identification, one kind in third order data, the transaction types or
It is a variety of.
In some feasible embodiments, hotel's order processing device receive order transaction processing response after,
Enterprise staff is handled to hotel when moving in, order management client 3 can obtain enterprise staff identity information (such as identity card or
Person subscribes people's name or moves in people's name), and the identity information of enterprise staff is sent to hotel's order processing device.Hotel
After order processing device receives the identity information of enterprise staff, the third that the third order transaction includes can be obtained and ordered
Forms data generates the 4th order transaction.After generating the 4th order transaction, hotel's order processing device can be to block chain management
Device sends the request of the 4th order transaction, and the request of the 4th order transaction is for asking storage hotel's order processing device processing
4th order transaction.Wherein, the transaction types of the 4th order transaction can " order comes into force or order for as shown in Figure 4 b
It completes ".4th order transaction includes the 4th order note identification, the 4th order data, the 4th order status.The 4th at this time orders
Single state can be " to have come into force or be completed " shown in Fig. 4 b.
In some feasible embodiments, order management client 3 can obtain the identity information of enterprise staff, the enterprise
For the identity information of industry employee for confirming for the first effective time, such as the first effective time can be enterprise staff actual check-in time
And/or the check-out time.Order processing device in hotel's can also be obtained from block chain node apparatus 3 and be wrapped in the third order transaction
The third order data included, and generate the 4th order transaction after recording first effective time in the third order data.
4th order transaction can be to move in affairs or affairs of checking out.The transaction types of 4th order transaction can be shown in Fig. 4 b
" order come into force or order complete ".4th order transaction includes the 4th order note identification, the 4th order data, the 4th order
State.The 4th order status at this time can be " to have come into force or be completed " shown in Fig. 4 b.
S409, block chain managing device notice carry out order status with associated second service customer end of third order transaction
It is synchronous.
In some feasible embodiments, the step S409 in the embodiment of the present application can be with the step of 3 embodiment of reference chart
Rapid S206, details are not described herein.
Third order thing is generated according to the second order transaction in the service customer end system of the embodiment of the present application, hotel side
Business, and the request of third order transaction is sent to block chain managing device, block chain managing device receives the request of third order transaction
And third order transaction is stored into block chain network.It thereby may be ensured that either which service customer end system is to order
After order data in affairs is handled, it is required for reaching common understanding in block chain network.Therefore each business visitor can be improved
Data reliability in family end system and block chain network, and can ensure enterprise, hotel, the respective service customer ends of TMC
The consistency of data in system, when hotel's order is settled accounts, the case where being not in enterprise, hotel, TMC mutual mistrusts, is reduced
A large amount of manual processing links, improve treatment effeciency.
The above-mentioned method for illustrating the embodiment of the present application, for the ease of preferably implementing the above-mentioned of the embodiment of the present application
Scheme, the embodiment of the present application also provides corresponding devices.
It is a kind of structural schematic diagram of block chain managing device provided by the embodiments of the present application referring to Figure 11, Figure 11.This Shen
Please the block chain managing device of embodiment can refer to block chain node apparatus 1, block chain node apparatus 2, block chain node apparatus 3
In either block chain node apparatus.As shown in figure 11, which may include:
Acquisition module 501, for obtaining the request of the first order transaction by first node device.Wherein, it above-mentioned first orders
Single transactions requests are used to ask the first order transaction of storage the first service customer end processing.In above-mentioned first order transaction at least
Identity information, the first order data including above-mentioned first service customer end and the first order status.
Correction verification module 502, for asking institute to above-mentioned first order transaction that acquisition module 501 obtains by common recognition mechanism
The identity information of the first order transaction above-mentioned first service customer end for including of request storage, the first order data and on
The first order status is stated to be verified.
Processing module 503, for being received to the identity information of above-mentioned first service customer end, above-mentioned in correction verification module 502
When first order data and the verification of above-mentioned first order status pass through, above-mentioned first order transaction is stored to block chain network
It include each node apparatus including above-mentioned first node device.
In some feasible embodiments, which includes:
Construction unit 5031, for building the first block.Wherein, the first block includes above-mentioned first order transaction.Extensively
Unit 5032 is broadcast, first block is broadcasted for each node apparatus into above-mentioned block link network, has triggered above-mentioned each node dress
It sets and block verification is carried out to above-mentioned first block and stores above-mentioned first block when verification passes through.
In some feasible embodiments, which further includes:
First sending module 504 stores above-mentioned first order transaction into block chain network for working as processing module 503
It is objective to above-mentioned first business by above-mentioned first node device after each node apparatus including above-mentioned first node device
Family end sends order transaction processing response.Wherein, the response of the above order issued transaction is for notifying above-mentioned first service customer end
Above-mentioned first order transaction is stored, above-mentioned first order status has been stored into the order status library of above-mentioned block chain network.
Wherein, above-mentioned first order transaction includes a kind of or more in the first order note identification, above-mentioned first order data, transaction types
Kind.
In some feasible embodiments, above-mentioned first order transaction includes the transactions classes of above-mentioned first order transaction
The first order note identification of type.
Above-mentioned block chain managing device 50 further includes:Determining module 505 is ordered for working as processing module 503 by above-mentioned first
Single affairs are stored to block chain network include each node apparatus including above-mentioned first node device after, determine and above-mentioned the
Associated second service customer end of one order transaction.Second sending module 506, for being corresponded to by above-mentioned second service customer end
Second node device to above-mentioned second service customer end send order status synchronization notice.Wherein, the above order state synchronized
It notifies to obtain above-mentioned first order status in above-mentioned first order transaction and above-mentioned for triggering above-mentioned second service customer end
First order note identification, and the above-mentioned first order mark that above-mentioned second service customer end stores is updated according to above-mentioned first order status
The order status for knowing corresponding order is above-mentioned first order status.
In some feasible embodiments, above-mentioned block chain managing device 50 further includes:
Third sending module 507 stores above-mentioned first order transaction into block chain network for working as processing module 503
After each node apparatus including above-mentioned first node device, closed to each node apparatus by above-mentioned each node apparatus
The service customer end of connection sends the event notice of the first order transaction.Wherein, the event notice of above-mentioned first order transaction is used for
At least one of the service customer end associated by above-mentioned each node apparatus service customer end is triggered according to above-mentioned first order thing
Above-mentioned first order data of business handles the second order transaction, and is asked to above-mentioned block chain managing device by above-mentioned second order
Affairs are stored to each node apparatus of above-mentioned block chain network.
In some feasible embodiments, above-mentioned first order data includes hotel's mark, hotel's house type information, wine
Shop room rate information, move in people's information, move in the time and the check-out time in it is one or more.The thing of above-mentioned first order transaction
Service type be order creation, acknowledgement of orders, cancellation of order, order come into force and order complete in one kind.Above-mentioned first order
First order status of affairs is one kind in creating, have confirmed that, cancelled, come into force and being completed.
In the specific implementation, the module that block chain managing device provided by the embodiments of the present application can include by it execute Fig. 3,
The corresponding function of Data processing block chain managing device described in Fig. 9, Figure 10, for details, reference can be made to block chains in above-described embodiment
Realization method performed by managing device, details are not described herein.
Referring to Figure 12, Figure 12 is the structural schematic diagram of another block chain managing device provided by the embodiments of the present application.This
The block chain managing device of application embodiment can refer to block chain node apparatus 1, block chain node apparatus 2, block chain link and decorate
Set the either block chain node apparatus in 3.Block chain managing device 60 as shown in figure 12 includes processor 601, memory
602, communication interface 603.Above-mentioned processor 601, above-mentioned memory 602, above-mentioned communication interface 603 are communicated by one or more
Bus 604 connects.
Above-mentioned processor 601 controls the operation of block chain managing device 60, and processor 601 can be one or more centers
Processor (central processing unit, CPU).In the case where processor 601 is a CPU, which can be
Monokaryon CPU can also be multi-core CPU.Above-mentioned processor 601 is configured as that above-mentioned block chain managing device is supported to execute Fig. 3, figure
9, the corresponding function of Data processing block chain managing device described in Figure 10.In the embodiment of the present application, processor 601 can wrap
Include data operation chip, encryption chip etc..
In specific application, the various components of block chain managing device 60 are coupled by communication bus 604, wherein
Communication bus 604 can also include power bus, controlling bus and status signal bus in addition etc. in addition to including data/address bus.But
It is that various buses are all designated as communication bus 604 in fig. 12 for the sake of clear explanation.For ease of indicating, only it is in Figure 12
It is schematically drawn.
Above-mentioned memory 602 is for storing program code etc..Memory 602 may include volatile memory
(volatile memory), such as random access memory (random access memory, RAM).Memory 602 also may be used
To include nonvolatile memory (non-volatile memory), such as read-only memory (read-only memory,
ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid state disk (solid-state
Drive, SSD).Memory 602 can also include the combination of the memory of mentioned kind.In the embodiment of the present application, memory 602
Institute during for storing hotels' orders such as the first order transaction, the first order data and the first block from start to end
The data of generation.
Above-mentioned communication interface 603 is for sending and receiving data.For example, communication interface by first node device for being connect
The request of the first order transaction is received, order transaction processing response is sent, sends order status synchronization notice etc..The embodiment of the present application
In, which includes multiple communication interfaces.Wherein, for the communication interface of transmission data and for receiving
The communication interface of data can not be the same communication interface, for example, for receiving the request of the first order transaction and sending order
The communication interface of state synchronized notice is not the same communication interface.Communication interface for sending/receiving different data can be with
It is not the same communication interface, for example, the communication interface for sending order transaction processing response and order status synchronization notice
It is not the same communication interface.
It is a kind of structural schematic diagram of service customer end provided by the embodiments of the present application referring to Figure 13, Figure 13.The application is real
The service customer end system of enterprise side, the service customer end system of the sides TMC, the industry of hotel side can be referred to by applying the service customer end of example
Any service customer end system being engaged in FTP client FTP.As shown in figure 13, when service customer end 70 is used as the first business client
When end, service customer end 70 may include:
First acquisition module 701 first is ordered for obtaining associated first order data of the first order transaction, and according to this
Forms data handles to obtain the second order transaction.
Sending module 702, for sending the request of the second order transaction to block chain managing device.Wherein, it above-mentioned second orders
Single transactions requests are used to ask to store above-mentioned second order transaction that above-mentioned first service customer end 70 is handled.
First receiving module 703, the order transaction for receiving the transmission of block chain managing device handle response.Wherein, on
Order transaction processing response is stated for notifying above-mentioned first service customer end to store above-mentioned second order transaction, above-mentioned second orders
Single state has been stored into the order status library of block chain network.Wherein, above-mentioned second order transaction include the second order note identification,
One or more of second order data, transaction types.
In a kind of feasible embodiment, the first acquisition module 701 includes:
First acquisition unit 7011, the event notice of the first order transaction for receiving the transmission of block chain managing device,
And it is notified to obtain the first identifier in the first order transaction according to the event of first order transaction.Second acquisition unit 7012,
For when it is target identification to detect above-mentioned first identifier, obtaining the first order data that first order transaction includes.
First processing units 7013, first order data for being obtained to second acquisition unit 7012 obtain after carrying out information processing
Second order data.First generation unit 7014, second order for being obtained after being handled according to first processing units 7013
Data generate the second order transaction.Wherein, above-mentioned target identification is used for above-mentioned first service customer end of unique mark.
In a kind of feasible embodiment, which includes hotel's mark, hotel's house type information, hotel
Room rate information moves in people's information, moves in the one or more in time and check-out time.First processing units 7013 are specific
For detecting in resource database with the presence or absence of the hotels the first order data Zhong Gai obtained with second acquisition unit 7012
Mark, the hotel information of hotel's house type information and hotel's room rate information matches.When detecting the presence of and first order
When the hotel information of the hotels data Zhong Gai mark, hotel's house type information and hotel's room rate information matches, according to the wine
Shop information adjusts first order data and obtains the second order data.First generation unit 7014 is specifically used for second being ordered according to this
Forms data generates the second order transaction.
In a kind of feasible embodiment, the first acquisition module 701 includes:
Above-mentioned first acquisition unit 7011 is additionally operable to receive the event for the first order transaction that block chain managing device is sent
Notice, and the first identifier in the first order transaction of acquisition is notified according to the event of first order transaction.Above-mentioned second obtains
Unit 7012 is additionally operable to, when it is target identification to detect the first identifier, obtain first order transaction includes first
Order data.Detection unit 7015, for detecting in resource database with the presence or absence of the third with first order data matches
Order data.Second generation unit 7016, for being detected the presence of and first order data matches when detection unit 7015
The third order data generates the second order transaction according to the third order data.
In a kind of feasible embodiment, which further includes:
Second acquisition module 704, the identity information for obtaining the first user.Above-mentioned first acquisition module 701 is additionally operable to
Obtain the third order data that the second order transaction includes.Generation module 705, for being obtained according to the second acquisition module 704
The third order data that the identity information of first user got and the first acquisition module 701 are got generates third and orders
Single affairs.Above-mentioned sending module 702 is additionally operable to send the request of third order transaction to block chain managing device.Wherein, the third
The third order transaction of order transaction request for asking the storage service customer end 70 processing.Wherein, the third order thing
Identity information, the third order data and third order status of the business including at least first service customer end.Above-mentioned reception
Module 703 is additionally operable to receive the order transaction processing response that block chain managing device is sent.Wherein, the above order issued transaction
Response for notifying above-mentioned first service customer end to store above-mentioned third order transaction, above-mentioned third order status stored to
In the order status library of block chain network.Wherein, above-mentioned third order transaction include third order note identification, third order data,
One or more of transaction types.
In a kind of feasible embodiment, above-mentioned second acquisition module 704 is specifically used for obtaining the identity of the first user
Information.Wherein, the identity information of above-mentioned first user is for confirming for the first effective time.Wherein, above-mentioned first effective time can
Time and/or departure time are moved in the first user of finger.Above-mentioned generation module 705 is specifically used in the first acquisition module 701
Third order transaction is generated after recording first effective time in the third order data got.
In a kind of feasible embodiment, the first order data after first order data and/or adjustment may include
Hotel's mark, hotel's house type information, hotel's room rate information, move in people's information, move in the time and the check-out time in one or
It is multinomial.The transaction types of first order transaction are order creation, acknowledgement of orders, cancellation of order, order comes into force and order is complete
One kind in.First order status of first order transaction is to create, have confirmed that, cancelled, come into force and be completed
In one kind.
In the specific implementation, when service customer end provided by the embodiments of the present application is as the first service customer end, it can be passed through
Including module execute the corresponding function of the first service customer end of Data processing described in Fig. 3, Fig. 9, Figure 10, for details, reference can be made to
Realization method in above-described embodiment performed by the first service customer end, details are not described herein.
Further, in a kind of feasible embodiment, when service customer end 70 is as the second service customer end, industry
Business client 70 include:
Second receiving module 706, the order status synchronization notice for receiving the transmission of block chain managing device.Wherein, should
Order status synchronization notice obtains the request of the first order transaction for block chain managing device and asks institute to first order transaction
After first order transaction of request storage is stored, what is sent to the service customer end 70 is used to ask the second business client
The request of end update order database.
Third acquisition module 707, the order status synchronization notice for being received according to the second receiving module 706 obtain
The first order status in first order transaction and the first order note identification.
Update module 708, first order status for being got according to third acquisition module 707 update second industry
The order status that first order note identification of business client storage corresponds to order is the first order status.
In the specific implementation, when service customer end provided by the embodiments of the present application is as the second service customer end, it can be passed through
Including module execute the corresponding function of the second service customer end of Data processing described in Fig. 3, Fig. 9, Figure 10, for details, reference can be made to
Realization method in above-described embodiment performed by the second service customer end, details are not described herein.
It is the structural schematic diagram of another service customer end provided by the embodiments of the present application referring to Figure 14, Figure 14.The application
The service customer end of embodiment can refer to the service customer end system of enterprise side, the service customer end systems of the sides TMC, hotel side
Any service customer end system in service customer end system.The service customer end of the embodiment of the present application can both be used as the first industry
Business client can also be used as the second service customer end.Service customer end 80 as shown in figure 14 includes processor 801, memory
802, communication interface 803.Above-mentioned processor 801, above-mentioned memory 802, above-mentioned communication interface 803 are communicated by one or more
Bus 804 connects.
Above-mentioned processor 801 controls the operation of service customer end 80, and processor 801 can be one or more central processings
Device (central processing unit, CPU).In the case where processor 801 is a CPU, which can be monokaryon
CPU can also be multi-core CPU.Above-mentioned processor 801 is configured as that above-mentioned service customer end is supported to execute Fig. 3, Fig. 9, Tu10Suo
The first service customer end of Data processing and/or the corresponding function of the second service customer end stated.In the embodiment of the present application, processing
Device 801 may be a kind of IC chip, the processing capacity with signal.
In specific application, the various components of service customer end 80 are coupled by communication bus 804, wherein communicating
Bus 804 can also include power bus, controlling bus and status signal bus in addition etc. in addition to including data/address bus.But it is
For the sake of clear explanation, in fig. 14 various buses are all designated as communication bus 804.Only it is signal for ease of indicating, in Figure 14
Property is drawn.
Above-mentioned memory 802 is for storing program code etc..Memory 002 may include volatile memory
(volatile memory), such as random access memory (random access memory, RAM).Memory 802 also may be used
To include nonvolatile memory (non-volatile memory), such as read-only memory (read-only memory,
ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid state disk (solid-state
Drive, SSD).Memory 802 can also include the combination of the memory of mentioned kind.In the embodiment of the present application, memory 802
Essential information (account of such as enterprise staff, order letter for storing order transaction, order data and each service customer end
At least one of in breath, TMC essential informations, hotel's essential information) etc..
Above-mentioned communication interface 803 is for sending and receiving data.For example, communication interface is asked for sending order transaction,
Order transaction processing response is received, order status synchronization notice etc. is received.In the embodiment of the present application, in the service customer end 80
Including multiple communication interfaces.Wherein, the communication interface for the communication interface of transmission data and for receiving data can not be
The same communication interface, for example, not being for sending order transaction request and receiving the communication interface of order status synchronization notice
The same communication interface.Communication interface for sending/receiving different data can not be the same communication interface, for example, with
It is not the same communication interface in receiving the communication interface of order transaction processing response and order status synchronization notice.
The embodiment of the present application also provides a kind of data processing system, which includes aforementioned area as seen in figures 11 or 12
Block chain managing device and the aforementioned service customer end as shown in Figure 13 or Figure 14, which, which is specifically as follows, as shown in Figure 2 is
System framework.
The embodiment of the present application also provides a kind of computer storage media, can be used for storing Figure 11 or embodiment illustrated in fig. 12
Computer software instructions used in middle block chain managing device, it includes filled for block chain management for executing in above-described embodiment
Set designed program.
The embodiment of the present application also provides another computer storage media, can be used for storing shown in Figure 13 or Figure 14 and implement
Computer software instructions in example used in service customer end, it includes be the first service customer end for executing in above-described embodiment
And/or the second program designed by service customer end.
Above computer storage medium includes but not limited to flash memory, hard disk, solid state disk.
The embodiment of the present application also provides a kind of computer program product, can when which is run by computing device
To execute in above-mentioned Fig. 3, Fig. 9, Figure 10 embodiment as the data processing method designed by block chain managing device.
The embodiment of the present application also provides a kind of computer program product, can when which is run by computing device
To execute in above-mentioned Fig. 3, Fig. 9, Figure 10 embodiment as the data processing method designed by the first service customer end.
The embodiment of the present application also provides a kind of computer program product, can when which is run by computing device
To execute in above-mentioned Fig. 3, Fig. 9, Figure 10 embodiment as the data processing method designed by the second service customer end.
A kind of chip, including processor and memory are also provided in the embodiment of the present application, and it includes processing which, which uses,
Device and memory, the memory is for storing computer program, and the processor from memory for calling and running the calculating
Machine program, the computer program is for realizing the method in above method embodiment.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, the flow
Relevant hardware can be instructed to complete by computer program, which can be stored in computer read/write memory medium, should
Program is when being executed, it may include such as the flow of above-mentioned each method embodiment.And storage medium above-mentioned includes:ROM is deposited at random
Store up the medium of the various program storage codes such as memory body RAM, magnetic disc or CD.
Claims (14)
1. a kind of data processing method, which is characterized in that including:
Block chain managing device obtains the request of the first order transaction by first node device, and the first order transaction request is used
Described first is included at least in the first order transaction of request storage the first service customer end processing, first order transaction
The identity information of service customer end, the first order data and the first order status;
The block chain managing device passes through identity information, first order of the mechanism to first service customer end of knowing together
Data and first order status are verified;
If the identity information of first service customer end, first order data and first order status verification are logical
It crosses, it includes that the first segment is decorated that the block chain managing device, which then stores first order transaction to block chain network,
Each node apparatus including setting.
2. according to the method described in claim 1, it is characterized in that, the block chain managing device is by first order transaction
Each node apparatus including including the first node device to block chain network is stored, including:
The block chain managing device builds the first block, and first block includes first order transaction;
Each node apparatus of the block chain managing device into the block link network broadcasts first block, described in triggering
Each node apparatus carries out block verification to first block and stores first block when verification passes through.
3. method according to claim 1 or 2, which is characterized in that the block chain managing device is by first order
Affairs are stored to block chain network include each node apparatus including the first node device after, the method is also wrapped
It includes:
The block chain managing device is sent to first service customer end at order transaction by the first node device
Reason response;
Wherein, the order transaction processing response is for notifying first service customer end to store the first order thing
Business, first order status have been stored into the order status library of the block chain network;
First order transaction includes a kind of or more in the first order note identification, first order data, transaction types
Kind.
4. method according to claim 1 or 2, which is characterized in that first order transaction includes described first ordering
The transaction types of single affairs and the first order note identification;
It includes that the first segment is decorated that the block chain managing device, which stores first order transaction to block chain network,
After each node apparatus including setting, the method further includes:
The block chain managing device determines and associated second service customer end of first order transaction;
The block chain managing device is by the corresponding second node device of second service customer end to second business
Client sends order status synchronization notice, and the order status synchronization notice is obtained for triggering second service customer end
First order status in first order transaction and first order note identification, and according to first order status
First order note identification for updating the second service customer end storage corresponds to the order status of order as first order
State.
5. method according to claim 1 or 2, which is characterized in that the block chain managing device is by first order
Affairs are stored to block chain network include each node apparatus including the first node device after, the method is also wrapped
It includes:
The block chain managing device is sent out by each node apparatus to the service customer end associated by each node apparatus
The event of first order transaction is sent to notify;
Wherein, the event of first order transaction is notified for triggering in the service customer end associated by each node apparatus
At least one service customer end handle to obtain the second order thing according to first order data of first order transaction
Business, and store second order transaction to each node dress of the block chain network to block chain managing device request
It sets.
6. according to claim 1-5 any one of them methods, which is characterized in that first order data includes hotel's mark
Knowledge hotel's house type information, hotel's room rate information, moves in people's information, moves in the one or more in time and check-out time;
The transaction types of first order transaction are order creation, acknowledgement of orders, cancellation of order, order comes into force and order is complete
One kind in;
First order status of first order transaction is one in creating, have confirmed that, cancelled, come into force and being completed
Kind.
7. a kind of block chain managing device, which is characterized in that including:
Acquisition module, for obtaining the request of the first order transaction by first node device, the first order transaction request is used
Described first is included at least in the first order transaction of request storage the first service customer end processing, first order transaction
The identity information of service customer end, the first order data and the first order status;
Correction verification module, for asking to deposit to first order transaction that the acquisition module obtains by common recognition mechanism
The identity information of first order transaction first service customer end that includes of storage, first order data and
First order status is verified;
Processing module, in identity information of the correction verification module to first service customer end, first order numbers
When according to this and first order status verification passes through, it includes described that first order transaction, which is stored to block chain network,
Each node apparatus including first node device.
8. block chain managing device according to claim 7, which is characterized in that the processing module includes:
Construction unit, for building the first block, first block includes first order transaction;
Radio unit broadcasts first block, to trigger each section for each node apparatus into the block link network
Point device carries out block verification to first block and stores first block when verification passes through.
9. block chain managing device according to claim 7 or 8, which is characterized in that the block chain managing device is also wrapped
It includes:
First sending module includes institute for working as the processing module to store first order transaction to block chain network
After stating each node apparatus including first node device, sent out to first service customer end by the first node device
Send order transaction processing response;
Wherein, the order transaction processing response is for notifying first service customer end to store the first order thing
Business, first order status have been stored into the order status library of the block chain network;
First order transaction includes a kind of or more in the first order note identification, first order data, transaction types
Kind.
10. block chain managing device according to claim 7 or 8, which is characterized in that first order transaction includes
The transaction types and the first order note identification of first order transaction;
The block chain managing device further includes:
Determining module includes described for working as the processing module to store first order transaction to block chain network
After each node apparatus including one node apparatus, determine and associated second service customer end of first order transaction;
Second sending module, for objective to second business by the corresponding second node device of second service customer end
Family end sends order status synchronization notice, and the order status synchronization notice obtains institute for triggering second service customer end
First order status in the first order transaction and first order note identification are stated, and more according to first order status
It is the first order shape that first order note identification of the new second service customer end storage, which corresponds to the order status of order,
State.
11. block chain managing device according to claim 7 or 8, which is characterized in that the block chain managing device is also wrapped
It includes:
Third sending module includes institute for working as the processing module to store first order transaction to block chain network
After stating each node apparatus including first node device, by each node apparatus to associated by each node apparatus
Service customer end sends the event notice of first order transaction;
Wherein, the event of first order transaction is notified for triggering in the service customer end associated by each node apparatus
At least one service customer end handle to obtain the second order thing according to first order data of first order transaction
Business, and store second order transaction to each node dress of the block chain network to block chain managing device request
It sets.
12. according to claim 7-11 any one of them block chain managing devices, which is characterized in that first order data
Include hotel's mark, hotel's house type information, hotel's room rate information, moves in people's information, moves in time and check-out time
It is one or more;
The transaction types of first order transaction are order creation, acknowledgement of orders, cancellation of order, order comes into force and order is complete
One kind in;
First order status of first order transaction is one in creating, have confirmed that, cancelled, come into force and being completed
Kind.
13. a kind of data processing system, which is characterized in that including block chain managing device, the first service customer end and second
Service customer end, the block chain managing device, first service customer end and second service customer end are for holding
Method of the row as described in any one of claim 1-6 claims.
14. a kind of computer storage media, which is characterized in that the computer storage media is stored with computer program, described
Computer program includes program instruction, and described program instruction makes the computer execute such as claim when executed by a computer
1-6 any one of them methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810281967.XA CN108520307A (en) | 2018-03-31 | 2018-03-31 | Data processing method and relevant apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810281967.XA CN108520307A (en) | 2018-03-31 | 2018-03-31 | Data processing method and relevant apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108520307A true CN108520307A (en) | 2018-09-11 |
Family
ID=63431461
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810281967.XA Pending CN108520307A (en) | 2018-03-31 | 2018-03-31 | Data processing method and relevant apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108520307A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109377223A (en) * | 2018-10-18 | 2019-02-22 | 李玥 | A kind of method and system based on block chain technical management network safety event disposal process |
CN109523045A (en) * | 2018-10-31 | 2019-03-26 | 深圳慧通商务有限公司 | It is a kind of that the method and apparatus of travel service is provided |
CN109544145A (en) * | 2018-11-23 | 2019-03-29 | 中国联合网络通信集团有限公司 | Rechargeable card processing method and processing device |
CN109559252A (en) * | 2018-10-18 | 2019-04-02 | 深圳慧通商务有限公司 | A kind of departure time confirmation method and relevant apparatus |
CN109584110A (en) * | 2018-11-22 | 2019-04-05 | 广州点睿信息科技有限公司 | A kind of intelligent hotel managing device and method based on block chain |
CN110222052A (en) * | 2019-05-20 | 2019-09-10 | 重庆金融资产交易所有限责任公司 | Block chain data processing method, device, computer equipment and storage medium |
CN110738502A (en) * | 2019-10-10 | 2020-01-31 | 腾讯科技(深圳)有限公司 | bill processing method and device and storage medium device |
WO2020057424A1 (en) * | 2018-09-18 | 2020-03-26 | 杭州复杂美科技有限公司 | Group meal payment method, device, and storage medium |
CN111401672A (en) * | 2019-01-02 | 2020-07-10 | 中国移动通信有限公司研究院 | Block chain based validity checking method, equipment and system |
WO2020192328A1 (en) * | 2019-03-28 | 2020-10-01 | 深圳前海微众银行股份有限公司 | Blockchain-based order state updating method, apparatus and device, and storage medium |
CN112100279A (en) * | 2020-10-30 | 2020-12-18 | 中航信移动科技有限公司 | Data sharing system based on block chain |
CN112767084A (en) * | 2021-01-20 | 2021-05-07 | 高锡东 | Data security verification method and device based on cloud computing and server |
CN113420083A (en) * | 2021-06-02 | 2021-09-21 | 湖南大学 | Heterogeneous parallel block chain structure with expandable distributed account book |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775619A (en) * | 2016-11-12 | 2017-05-31 | 杭州复杂美科技有限公司 | Flexible block chain framework |
CN107730188A (en) * | 2017-11-22 | 2018-02-23 | 合肥维天运通信息科技股份有限公司 | A kind of logistics clearing and payment administrative system and method based on block chain technology |
CN107820690A (en) * | 2017-08-21 | 2018-03-20 | 达闼科技成都有限公司 | Information choosing method, device, electronic equipment and computer-readable recording medium |
-
2018
- 2018-03-31 CN CN201810281967.XA patent/CN108520307A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775619A (en) * | 2016-11-12 | 2017-05-31 | 杭州复杂美科技有限公司 | Flexible block chain framework |
CN107820690A (en) * | 2017-08-21 | 2018-03-20 | 达闼科技成都有限公司 | Information choosing method, device, electronic equipment and computer-readable recording medium |
CN107730188A (en) * | 2017-11-22 | 2018-02-23 | 合肥维天运通信息科技股份有限公司 | A kind of logistics clearing and payment administrative system and method based on block chain technology |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020057424A1 (en) * | 2018-09-18 | 2020-03-26 | 杭州复杂美科技有限公司 | Group meal payment method, device, and storage medium |
CN109377223A (en) * | 2018-10-18 | 2019-02-22 | 李玥 | A kind of method and system based on block chain technical management network safety event disposal process |
CN109559252A (en) * | 2018-10-18 | 2019-04-02 | 深圳慧通商务有限公司 | A kind of departure time confirmation method and relevant apparatus |
CN109377223B (en) * | 2018-10-18 | 2021-07-27 | 李玥 | Method and system for managing network security event handling process based on block chain technology |
CN109523045A (en) * | 2018-10-31 | 2019-03-26 | 深圳慧通商务有限公司 | It is a kind of that the method and apparatus of travel service is provided |
CN109523045B (en) * | 2018-10-31 | 2021-03-30 | 深圳慧通商务有限公司 | Method and equipment for providing travel service |
CN109584110A (en) * | 2018-11-22 | 2019-04-05 | 广州点睿信息科技有限公司 | A kind of intelligent hotel managing device and method based on block chain |
CN109544145A (en) * | 2018-11-23 | 2019-03-29 | 中国联合网络通信集团有限公司 | Rechargeable card processing method and processing device |
CN111401672A (en) * | 2019-01-02 | 2020-07-10 | 中国移动通信有限公司研究院 | Block chain based validity checking method, equipment and system |
CN111401672B (en) * | 2019-01-02 | 2023-11-28 | 中国移动通信有限公司研究院 | Block chain-based validity verification method, device and system |
WO2020192328A1 (en) * | 2019-03-28 | 2020-10-01 | 深圳前海微众银行股份有限公司 | Blockchain-based order state updating method, apparatus and device, and storage medium |
CN110222052A (en) * | 2019-05-20 | 2019-09-10 | 重庆金融资产交易所有限责任公司 | Block chain data processing method, device, computer equipment and storage medium |
CN110738502A (en) * | 2019-10-10 | 2020-01-31 | 腾讯科技(深圳)有限公司 | bill processing method and device and storage medium device |
CN112100279A (en) * | 2020-10-30 | 2020-12-18 | 中航信移动科技有限公司 | Data sharing system based on block chain |
CN112100279B (en) * | 2020-10-30 | 2021-06-29 | 中航信移动科技有限公司 | Data sharing system based on block chain |
CN112767084A (en) * | 2021-01-20 | 2021-05-07 | 高锡东 | Data security verification method and device based on cloud computing and server |
CN112767084B (en) * | 2021-01-20 | 2022-08-26 | 中乾思创(北京)科技有限公司 | Data security verification method and device based on cloud computing and server |
CN113420083A (en) * | 2021-06-02 | 2021-09-21 | 湖南大学 | Heterogeneous parallel block chain structure with expandable distributed account book |
CN113420083B (en) * | 2021-06-02 | 2024-03-19 | 湖南大学 | System with heterogeneous parallel block chain structure of extensible distributed ledger |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108520307A (en) | Data processing method and relevant apparatus | |
US11301136B2 (en) | Capacity forecasting based on capacity policies and transactions | |
CN108446976B (en) | A kind of common reserve fund transfer method, computer readable storage medium and terminal device | |
CN103782573B (en) | Server is covered to client and application to stop transport | |
CN108229926B (en) | Service settlement method and related device | |
WO2018228974A1 (en) | Expendable cryptographic key access | |
CN111833034B (en) | Batch deduction method, payment server, computer equipment and storage medium | |
TW202014926A (en) | Blockchain-based data processing method and apparatus, and electronic device | |
CN103679048B (en) | For the data confidentiality in multi-system landscape and the system and method destroyed | |
Celiz et al. | Cloud model for purchase management in health sector of peru based on IoT and blockchain | |
US20240126908A1 (en) | Systems and methods for hard deletion of data across systems | |
WO2018192931A1 (en) | Delivery versus payment mechanism | |
CN110555684A (en) | Account and system based on block chain system | |
WO2022206439A1 (en) | Method and apparatus for providing cross-chain message | |
CN111596956A (en) | Block chain-based information processing method and device, electronic device and medium | |
US10430413B2 (en) | Data information framework | |
CN114463135A (en) | Stock right management method, system, device, equipment, storage medium and program product | |
Zhao | Design of Optimal Scheduling Model for emergency medical supplies by Blockchain technology | |
CN110162521A (en) | A kind of payment system transaction data processing method and system | |
US20210082061A1 (en) | Data governance system, model and process for multi-source financial reference data using automated business logic | |
CN107526816A (en) | A kind of store method, device and the electronic equipment of streaming distributed recorder | |
CN110060128B (en) | Data management method and system | |
CN114237553A (en) | Demand management method, apparatus, device, readable storage medium, and program product | |
CN115203486A (en) | Deduction scheme generation method and device and computer equipment | |
CN115170081A (en) | Passport processing method and system based on alliance 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180911 |