CN109964218A - A kind of method for processing business and system - Google Patents

A kind of method for processing business and system Download PDF

Info

Publication number
CN109964218A
CN109964218A CN201980000086.9A CN201980000086A CN109964218A CN 109964218 A CN109964218 A CN 109964218A CN 201980000086 A CN201980000086 A CN 201980000086A CN 109964218 A CN109964218 A CN 109964218A
Authority
CN
China
Prior art keywords
terminal
data
processing
service request
request data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201980000086.9A
Other languages
Chinese (zh)
Other versions
CN109964218B (en
Inventor
李韬
谢新春
林煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yinjie Nico Fujian Technology Co ltd
Original Assignee
Fujian Landi Commercial Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Publication of CN109964218A publication Critical patent/CN109964218A/en
Application granted granted Critical
Publication of CN109964218B publication Critical patent/CN109964218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Landscapes

  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of method for processing business and systems, comprising: receives the service request data that multiple first terminals are sent, and the service request data sent respectively to each first terminal is handled;By service request data, treated that processing data are stored into local Sqlite database, and pushes the processing data respectively to each first terminal.Method for processing business provided by the invention and system can be applied to meal ordering system, so that all first terminals can order food business operation to the customer of any one parlor or dining table, and all first terminals receive service processing result of ordering simultaneously, to hold the efficiency and Customer Experience that first terminal and capable of timely feedbacking near the waiter of customer improves meal ordering system to customer;The present invention, which carries out data storage by local Sqlite database, simultaneously reduces the use cost of business processing without being additionally provided large database as shared data bank.

Description

A kind of method for processing business and system
Technical field
The present invention relates to technical field of data processing more particularly to a kind of method for processing business and systems.
Background technique
With the development of ERP (Enterprise Resource Planning, Enterprise Resources Plan) system, it is desirable to ERP system operation flow and document application are realized by simple mode.But existing ERP system has the disadvantage in that
Disadvantage 1:
Server of the PC as shared data bank is needed, and large database is installed and provides support for it.Also need Server-side application is installed.
Disadvantage 2:
Server is intended only as shared data bank storing data, serious waste resource.
Disadvantage 3:
After the data of shared data bank are modified, application terminal will not receive any notice, will not refresh automatically Data, but the data for needing actively to read shared data bank could refresh data.
Disadvantage 4:
Server only makees shared service data, but service logic be it is independently operated, causing an application terminal When operation, another terminal needs to wait, and cannot modify to shared data.
Summary of the invention
The technical problems to be solved by the present invention are: being not necessarily to volume the present invention provides a kind of method for processing business and system Outer offer large database is as shared data bank.
In order to solve the above-mentioned technical problems, the present invention provides a kind of method for processing business, comprising the following steps:
S1: the service request data that multiple first terminals are sent, and the industry sent respectively to each first terminal are received Business request data is handled;
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes away respectively Send the processing data to each first terminal.
The present invention also provides a kind of transaction processing system, including second terminal and multiple first terminals, described second eventually End is including memory, processor and stores the computer program that can be run on a memory and on a processor, the processor It is performed the steps of when executing the computer program
S1: the service request data that multiple first terminals are sent, and the industry sent respectively to each first terminal are received Business request data is handled;
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes away respectively Send the processing data to each first terminal.
The invention has the benefit that
The present invention provides a kind of method for processing business and systems, are asked by receiving the business that multiple first terminals are sent Data are sought, and the service request data sent respectively to each first terminal is handled;After service request data is handled Processing data store into local Sqlite database, and push the processing data respectively to each first terminal. In terms of business, first terminal receives the machine (the second end for the service request data that multiple first terminals are sent as passenger plane End) it is used as host, it can carry out business operation on any one first terminal, and by the service request data of business operation It is sent to second terminal, after handling and storing in second terminal, feeds back information to all first terminals, so that and the unit All first terminals of net connection can receive simultaneously processing result and refresh interface, can be applied to meal ordering system, so that All first terminals can order food business operation to the customer of any one parlor or dining table, and all first terminals are same When receive service processing result of ordering, to hold first terminal and can to timely feedback near the waiter of customer to Gu Visitor improves the efficiency and Customer Experience of meal ordering system.The present invention is deposited by local Sqlite database progress data simultaneously Storage, without being additionally provided large database as shared data bank, reduces the use cost of business processing.
Detailed description of the invention
Fig. 1 is the key step schematic diagram according to a kind of method for processing business of the embodiment of the present invention;
Fig. 2 is the structural schematic diagram according to a kind of transaction processing system of the embodiment of the present invention;
Label declaration:
1, memory;2, processor.
Specific embodiment
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and cooperate attached Figure is explained in detail.
The design of most critical of the present invention are as follows: receive the service request data that multiple first terminals are sent, and respectively to each The service request data that a first terminal is sent is handled;By service request data treated processing data store to local Sqlite database in, and push the processing data respectively to each first terminal.
Fig. 1 is please referred to, the present invention provides a kind of method for processing business, comprising the following steps:
S1: the service request data that multiple first terminals are sent, and the industry sent respectively to each first terminal are received Business request data is handled;
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes away respectively Send the processing data to each first terminal.
As can be seen from the above description, the present invention provides a kind of method for processing business, by receiving multiple first terminal hairs The service request data sent, and the service request data sent respectively to each first terminal is handled;By service request Processing data after data processing are stored into local Sqlite database, and push respectively the processing data to each First terminal.In terms of business, first terminal receives the machine for the service request data that multiple first terminals are sent as passenger plane As host, business operation can be carried out on any one first terminal, and the service request data of business operation is sent out It send to host, after handling and storing on host, feeds back information to all first terminals, so that the institute being connect with host networking There is first terminal can receive simultaneously processing result and refresh interface, can be applied to meal ordering system, so that all first Terminal can order food business operation to the customer of any one parlor or dining table, and all first terminals receive a little simultaneously Meal service processing result improves point to hold first terminal and can to timely feedback near the waiter of customer to customer The efficiency and Customer Experience of meal system.The present invention carries out data storage by local Sqlite database simultaneously, is not necessarily to volume Outer offer large database reduces the use cost of business processing as shared data bank.
Wherein, Sqlite database is a light-duty database, is the Relational DBMS in accordance with ACID.
Further, the S2 specifically:
By service request data, treated that processing data are stored into local Sqlite database, and pushes institute respectively It states in processing data to first user interface of the machine and in the user interface of each first terminal.
As can be seen from the above description, can receive above-mentioned service request data processing on the machine and all first terminals Processing data afterwards, so that the machine (host) can receive processing data, so that each terminal and the machine can be timely The processing result of service request data is obtained, can make full use of the machine, is improved resource utilization, and can notify to care in time Visitor.
Further, the S1 specifically:
The service request data that multiple first terminals are sent is received, and respectively to the first service request number manipulated in the machine According to and each first terminal send service request data handled.
As can be seen from the above description, the machine can not only serve as the function of server, additionally it is possible to play carry out business operation, send out The function of playing service request, substantially increases local resource utilization rate.
Further, if a service request data processing failure, shows processing failure reason, and at transmission in the machine The service request data of the reason of reason failure and processing failure is to each first terminal.
As can be seen from the above description, can the above method, can show service request on each first terminal and the machine The result and reason of data processing failure, to handle in time the above-mentioned corresponding service request of service request data, The user experience of business processing is can be improved.
Further, the S2 specifically:
Processing data after service request data is successfully processed are stored to local Sqlite database, and described in judgement Whether processing data store success, if it is not, then rollback data, show storage failure cause in the machine, and send storage failure Reason and the service request data of storage failure are to each first terminal;
If so, sending the processing data respectively to all first terminals, so that each first terminal receives To after the processing data, processing data are stored in the database on first terminal, and according to processing data, refresh first Interface display information in terminal.
As can be seen from the above description, can show service request on each first terminal and the machine by the above method The result and reason of the processing data storage failure of data, so as in time to the above-mentioned corresponding service request of service request data It is handled, can be improved the user experience of business processing.And deposit processing data store successfully after, can notify in time often One first terminal and the machine, improve user experience.
Further, before the S1 further include:
WLAN is established respectively with the multiple first terminal to connect.
As can be seen from the above description, the rate that data are transmitted between the machine and first terminal can be improved by the above method, And the safety of internal data transfer can be ensured to a certain extent.
Further, after sending the processing data to all first terminals respectively further include:
Judge whether for the processing data to be successfully transmitted to each first terminal;
If it is not, then disconnecting the connection relationship with the first terminal for sending failure.
As can be seen from the above description, by the above method first terminal of failure can be disconnected, in time to improve the machine The rate interacted between other first terminals.
Further, a kind of method for processing business, further includes:
When establishing connection for the first time with first terminal, data in local Sqlite database are synchronized to described first eventually In the database at end.
As can be seen from the above description, can guarantee each first terminal and native database of connection by the above method Middle storage content is identical, so that other first terminal quickly networkings, carry out business operation.
Further, every preset time, judge in the machine Sqlite database and all first terminal databases Whether data synchronize, if asynchronous, carry out data simultaneously operating.
Preferably, preset time is 3-48 hours.
Further, it is established with first terminal before WLAN connect further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include Target IP Location;
Judge whether the IP address of the target ip address and the machine is consistent, if unanimously, responding the connection request;It is no Then, refuse the connection request.
Further, it is established with first terminal before WLAN connect further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include first terminal The first IP address and first terminal subnet mask;
According to the first IP address and subnet mask, judge whether to handle same network segment with first terminal, if so, response institute State connection request;Otherwise, refuse the connection request.
As can be seen from the above description, the identity information of first terminal is able to verify that, to guarantee in the machine by the above method Data safety.
Referring to figure 2., the present invention provides a kind of transaction processing system, including second terminal and multiple first terminals, institutes Second terminal is stated to include memory 1, processor 2 and be stored in the computer journey that can be run on memory 1 and on processor 2 Sequence, the processor 2 perform the steps of when executing the computer program
S1: the service request data that multiple first terminals are sent, and the industry sent respectively to each first terminal are received Business request data is handled;
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes away respectively Send the processing data to each first terminal.
As can be seen from the above description, the present invention provides a kind of service process terminal, by receiving multiple first terminal hairs The service request data sent, and the service request data sent respectively to each first terminal is handled;By service request Processing data after data processing are stored into local Sqlite database, and push respectively the processing data to each First terminal.In terms of business, first terminal receives the machine for the service request data that multiple first terminals are sent as passenger plane As host (second terminal), business operation can be carried out on any one first terminal, and by the business of business operation Request data is sent to host (second terminal), after handling and store in second terminal, feeds back information to all first eventually End, so that all first terminals connecting with second terminal networking can receive simultaneously processing result and refresh interface, it can Applied to meal ordering system, so that all first terminals can order food business behaviour to the customer of any one parlor or dining table Make, and all first terminals receive service processing result of ordering simultaneously, to hold first terminal and near the clothes of customer Business person can timely feedback the efficiency and Customer Experience that meal ordering system is improved to customer.The present invention passes through local simultaneously Sqlite database, which carries out data storage, reduces business processing without being additionally provided large database as shared data bank Use cost.
Further, a kind of transaction processing system, the S2 specifically:
By service request data, treated that processing data are stored into local Sqlite database, and pushes institute respectively It states in processing data to first user interface of the machine and in the user interface of each first terminal.
As can be seen from the above description, can receive above-mentioned service request data processing on the machine and all first terminals Processing data afterwards, so that the machine (second terminal) can receive processing data, so that each terminal and the machine can Obtain the processing result of service request data in time, can make full use of second terminal, improve resource utilization, and can and Customer Shi Tongzhi.
Further, a kind of transaction processing system, the S1 specifically:
The service request data that multiple first terminals are sent is received, and respectively to the first service request number manipulated in the machine According to and each first terminal send service request data handled.
As can be seen from the above description, the machine can not only serve as the function of server, additionally it is possible to play carry out business operation, send out The function of playing service request, substantially increases local resource utilization rate.
Further, a kind of transaction processing system is shown in the machine if a service request data processing failure The service request data of the reason of showing processing failure reason, and sending processing failure and processing failure is to each first terminal.
As can be seen from the above description, can above system, can show service request on each first terminal and the machine The result and reason of data processing failure, to handle in time the above-mentioned corresponding service request of service request data, The user experience of business processing is can be improved.
Further, a kind of transaction processing system, the S2 specifically:
Processing data after service request data is successfully processed are stored to local Sqlite database, and described in judgement Whether processing data store success, if it is not, then rollback data, show storage failure cause in the machine, and send storage failure Reason and the service request data of storage failure are to each first terminal;
If so, sending the processing data respectively to all first terminals, so that each first terminal receives To after the processing data, processing data are stored in the database on first terminal, and according to processing data, refresh first Interface display information in terminal.
As can be seen from the above description, can show service request on each first terminal and the machine by above system The result and reason of the processing data storage failure of data, so as in time to the above-mentioned corresponding service request of service request data It is handled, can be improved the user experience of business processing.And deposit processing data store successfully after, can notify in time often One first terminal and the machine, improve user experience.
Further, a kind of transaction processing system, before the S1 further include:
WLAN is established respectively with the multiple first terminal to connect.
As can be seen from the above description, the rate that data are transmitted between the machine and first terminal can be improved by above system, And the safety of internal data transfer can be ensured to a certain extent.
Further, a kind of transaction processing system sends the processing data to all first terminals respectively Later further include:
Judge whether for the processing data to be successfully transmitted to each first terminal;
If it is not, then disconnecting the connection relationship with the first terminal for sending failure.
As can be seen from the above description, by above system the first terminal of failure can be disconnected, in time to improve the machine The rate interacted between other first terminals.
Further, a kind of transaction processing system, the processor executes to be realized when the computer program Step further include:
When establishing connection for the first time with first terminal, data in local Sqlite database are synchronized to described first eventually In the database at end.
As can be seen from the above description, can guarantee each first terminal and native database of connection by above system Middle storage content is identical, so that other first terminal quickly networkings, carry out business operation.
Further, a kind of transaction processing system, the processor executes to be realized when the computer program Step further include: every preset time, judge that the machine Sqlite database is with the data in all first terminal databases No synchronization carries out data simultaneously operating if asynchronous.
Preferably, preset time is 3-48 hours.
Further, a kind of transaction processing system is established before WLAN is connect with first terminal and is also wrapped It includes:
The connection request and connection request data that first terminal is sent are received, the connection request data include Target IP Location;
Judge whether the IP address of the target ip address and the machine is consistent, if unanimously, responding the connection request;It is no Then, refuse the connection request.
Further, a kind of transaction processing system is established before WLAN is connect with first terminal and is also wrapped It includes:
The connection request and connection request data that first terminal is sent are received, the connection request data include first terminal The first IP address and first terminal subnet mask;
According to the first IP address and subnet mask, judge whether to handle same network segment with first terminal, if so, response institute State connection request;Otherwise, refuse the connection request.
As can be seen from the above description, the identity information of first terminal is able to verify that, to guarantee in the machine by above system Data safety.
Please refer to Fig. 1, the embodiment of the present invention one are as follows:
The present invention provides a kind of bluetooth localization methods, comprising the following steps:
S1: the service request data that multiple first terminals are sent, and the industry sent respectively to each first terminal are received Business request data is handled;
Wherein, the S1 specifically:
The service request data that multiple first terminals are sent is received, and respectively to the first service request number manipulated in the machine According to and each first terminal send service request data handled.
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes away respectively Send the processing data to each first terminal.
Wherein, the S2 specifically:
By service request data, treated that processing data are stored into local Sqlite database, and pushes institute respectively It states in processing data to first user interface of the machine and in the user interface of each first terminal.
Wherein, the first user face is the user interface in the machine.
The embodiment of the present invention two are as follows:
The present invention provides a kind of method for processing business, comprising the following steps:
S0: WLAN is established respectively with the multiple first terminal and is connect;
Wherein, when establishing connection for the first time with first terminal, data in local Sqlite database are synchronized to described In the database of first terminal.
Wherein, it is established with first terminal before WLAN connect further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include Target IP Location;Judge whether the IP address of the target ip address and the machine is consistent, if unanimously, responding the connection request;Otherwise, it refuses The exhausted connection request.
Wherein, it is established with first terminal before WLAN connect further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include first terminal The first IP address and first terminal subnet mask;According to the first IP address and subnet mask, judge whether and first terminal Same network segment is handled, if so, responding the connection request;Otherwise, refuse the connection request.
S1: the service request data that multiple first terminals are sent, and the industry sent respectively to each first terminal are received Business request data is handled;
Wherein, the S1 specifically:
The service request data that multiple first terminals are sent is received, and respectively to the first service request number manipulated in the machine According to and each first terminal send service request data handled.
Wherein, it if a service request data processing failure, shows processing failure reason in the machine, and sends processing and loses The service request data of the reason of losing and processing failure is to each first terminal.
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes away respectively Send the processing data to each first terminal.
Wherein, the S2 specifically:
Processing data after service request data is successfully processed are stored to local Sqlite database, and described in judgement Whether processing data store success, if it is not, then rollback data, show storage failure cause in the machine, and send storage failure Reason and the service request data of storage failure are to each first terminal;
If so, sending the processing data respectively to all first terminals, so that each first terminal receives To after the processing data, processing data are stored in the database on first terminal, and according to processing data, refresh first Interface display information in terminal.
Wherein, after sending the processing data to all first terminals respectively further include:
Judge whether for the processing data to be successfully transmitted to each first terminal;If it is not, then disconnecting and sending failure First terminal connection relationship.
Wherein, above-mentioned all first terminals and second terminal are android terminal.
Referring to figure 2., the embodiment of the present invention three are as follows:
The present invention provides a kind of transaction processing system, including second terminal and multiple first terminals, the second terminals Including memory 1, processor 2 and it is stored in the computer program that can be run on memory 1 and on processor 2, the processing Device 2 performs the steps of when executing the computer program
S1: the service request data that multiple first terminals are sent, and the industry sent respectively to each first terminal are received Business request data is handled;
Wherein, the S1 specifically:
The service request data that multiple first terminals are sent is received, and respectively to the first service request number manipulated in the machine According to and each first terminal send service request data handled.
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes away respectively Send the processing data to each first terminal.
Wherein, the S2 specifically:
By service request data, treated that processing data are stored into local Sqlite database, and pushes institute respectively It states in processing data to first user interface of the machine and in the user interface of each first terminal.
The embodiment of the present invention four are as follows:
The present invention provides a kind of transaction processing system, including second terminal and multiple first terminals, the second terminals Including memory 1, processor 2 and it is stored in the computer program that can be run on memory 1 and on processor 2, the processing Device 2 performs the steps of when executing the computer program
S0: WLAN is established respectively with the multiple first terminal and is connect;
Wherein, when establishing connection for the first time with first terminal, data in local Sqlite database are synchronized to described In the database of first terminal.
Wherein, it is established with first terminal before WLAN connect further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include Target IP Location;Judge whether the IP address of the target ip address and the machine is consistent, if unanimously, responding the connection request;Otherwise, it refuses The exhausted connection request.
Wherein, it is established with first terminal before WLAN connect further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include first terminal The first IP address and first terminal subnet mask;According to the first IP address and subnet mask, judge whether and first terminal Same network segment is handled, if so, responding the connection request;Otherwise, refuse the connection request.
S1: the service request data that multiple first terminals are sent, and the industry sent respectively to each first terminal are received Business request data is handled;
Wherein, the S1 specifically:
The service request data that multiple first terminals are sent is received, and respectively to the first service request number manipulated in the machine According to and each first terminal send service request data handled.
Wherein, it if a service request data processing failure, shows processing failure reason in the machine, and sends processing and loses The service request data of the reason of losing and processing failure is to each first terminal.
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes away respectively Send the processing data to each first terminal.
Wherein, the S2 specifically:
Processing data after service request data is successfully processed are stored to local Sqlite database, and described in judgement Whether processing data store success, if it is not, then rollback data, show storage failure cause in the machine, and send storage failure Reason and the service request data of storage failure are to each first terminal;
If so, sending the processing data respectively to all first terminals, so that each first terminal receives To after the processing data, processing data are stored in the database on first terminal, and according to processing data, refresh first Interface display information in terminal.
Wherein, after sending the processing data to all first terminals respectively further include:
Judge whether for the processing data to be successfully transmitted to each first terminal;If it is not, then disconnecting and sending failure First terminal connection relationship.
The embodiment of the present invention five are as follows:
1, the present invention provides a method for processing business, and the office of ERP business can be set up using more android terminals Domain net has saved the cost of user networking, improves the utilization rate to terminal, takes full advantage of the performance of terminal.2, service network For a terminal in network as host module of the invention, the as host (second terminal) of business network, other terminals are visitor Machine (first terminal) when passenger plane access service system, first passes through local area network and obtains data information in host data base, and It stores data in the application database of its terminal (passenger plane).Application database uses the light weight number built in android According to library Sqlite, the operation carried out in any terminal of operation system all sends data to host by network, on host After managing and storing, all terminals (passenger plane) in business network are fed back information to.The data of passenger plane update own database.In this way User can not use large database, reduce the expense that client buys commercialization SQLServer database, pass through Android terminal replaces performance server more than needed, saves hardware spending.3, all business are all carried out by host application Reason, and notify the service application of other terminals, optimize the drawbacks of more terminals can not carry out business movement simultaneously in old scheme. In operation system, the business operation carried out on any terminal (host or passenger plane) is all transmitted data at host Reason, and refresh the UI (user interface) of host.After host completion processing, all terminals in business network can be fed back information to (passenger plane) notifies it to refresh the data of display, improves the experience of user.4, under network frame of the invention, user can be with By business procedure find in local area network it is all under same network segment can the host terminal of business network that builds up of group.Pass through business journey Sequence directly chooses host, is connected into business network.It can also be found in local area network not by the address ip of input host terminal Host terminal under same network segment.5, the characteristics of the present invention is based on 2, each terminal being connected into system have a current business The backup of data.When the terminal damage of role any in network, can be replaced at once using another terminal, in system Business datum will not because of terminal damage and lose.6, in the process of development, present invention provides the code skeleton of exploitation, It allows developer only to need to handle the success, failure and the logic notified of current business movement, does not need to be concerned about that the movement occurs In the terminal under which platform or any situation.
In conclusion the present invention provides a kind of method for processing business and system, by receiving multiple first terminal hairs The service request data sent, and the service request data sent respectively to each first terminal is handled;By service request Processing data after data processing are stored into local Sqlite database, and push respectively the processing data to each First terminal.In terms of business, first terminal receives the machine for the service request data that multiple first terminals are sent as passenger plane (second terminal) is used as host, can carry out business operation on any one first terminal, and by the business of business operation Request data is sent to second terminal, after handling and storing in second terminal, feeds back information to all first terminals, so that All first terminals connecting with the machine networking can receive simultaneously processing result and refresh interface, and can be applied to order is System, so that all first terminals can order food business operation to the customer of any one parlor or dining table, and all the One terminal receives service processing result of ordering simultaneously, to hold first terminal and can be timely near the waiter of customer Customer is fed back to, the efficiency and Customer Experience of meal ordering system are improved.Simultaneously the present invention by local Sqlite database into The storage of row data, without being additionally provided large database as shared data bank, reduces the use cost of business processing.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in other relevant technical fields, similarly It is included within the scope of the present invention.

Claims (20)

1. a kind of method for processing business, which comprises the following steps:
S1: the service request data that multiple first terminals are sent is received, and the business sent respectively to each first terminal is asked Data are asked to be handled;
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes institute respectively Processing data are stated to each first terminal.
2. a kind of method for processing business according to claim 1, which is characterized in that the S2 specifically:
By service request data, treated that processing data are stored into local Sqlite database, and pushes the place respectively It manages in data to first user interface of the machine and in the user interface of each first terminal.
3. a kind of method for processing business according to claim 1, which is characterized in that the S1 specifically:
Receive the service request data that multiple first terminals are sent, and respectively to the first service request data manipulated in the machine and The service request data that each first terminal is sent is handled.
4. a kind of method for processing business according to claim 1, which is characterized in that if service request data processing is lost The service request data of the reason of losing, then showing processing failure reason in the machine, and send processing failure and processing failure is extremely Each first terminal.
5. a kind of method for processing business according to claim 1, which is characterized in that the S2 specifically:
Processing data after service request data is successfully processed are stored to local Sqlite database, and judge the processing Whether data store success, if it is not, then rollback data, show storage failure cause, and send storage failure cause in the machine And the service request data of storage failure is to each first terminal;
If so, sending the processing data respectively to all first terminals, so that each first terminal receives institute After stating processing data, processing data are stored in the database on first terminal, and according to processing data, refresh first terminal On interface display information.
6. a kind of method for processing business according to claim 5, which is characterized in that before the S1 further include:
WLAN is established respectively with the multiple first terminal to connect.
7. a kind of method for processing business according to claim 6, which is characterized in that send the processing data respectively to institute After some first terminals further include:
Judge whether for the processing data to be successfully transmitted to each first terminal;
If it is not, then disconnecting the connection relationship with the first terminal for sending failure.
8. a kind of method for processing business according to claim 6, which is characterized in that further include:
When establishing connection for the first time with first terminal, data in local Sqlite database are synchronized to the first terminal In database.
9. a kind of method for processing business according to claim 6, which is characterized in that establish WLAN with first terminal Before connection further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include target ip address;
Judge whether the IP address of the target ip address and the machine is consistent, if unanimously, responding the connection request;Otherwise, Refuse the connection request.
10. a kind of method for processing business according to claim 6, which is characterized in that establish wireless local area with first terminal Before net connection further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include the of first terminal The subnet mask of one IP address and first terminal;
According to the first IP address and subnet mask, judge whether to handle same network segment with first terminal, if so, responding the company Connect request;Otherwise, refuse the connection request.
11. a kind of transaction processing system, including second terminal and multiple first terminals, the second terminal includes memory, place The computer program managing device and storage on a memory and can running on a processor, which is characterized in that the processor executes It is performed the steps of when the computer program
S1: the service request data that multiple first terminals are sent is received, and the business sent respectively to each first terminal is asked Data are asked to be handled;
S2: by service request data, treated that processing data are stored into local Sqlite database, and pushes institute respectively Processing data are stated to each first terminal.
12. a kind of transaction processing system according to claim 11, which is characterized in that the S2 specifically:
By service request data, treated that processing data are stored into local Sqlite database, and pushes the place respectively It manages in data to first user interface of the machine and in the user interface of each first terminal.
13. a kind of transaction processing system according to claim 11, which is characterized in that the S1 specifically:
Receive the service request data that multiple first terminals are sent, and respectively to the first service request data manipulated in the machine and The service request data that each first terminal is sent is handled.
14. a kind of transaction processing system according to claim 11, which is characterized in that if service request data processing is lost The service request data of the reason of losing, then showing processing failure reason in the machine, and send processing failure and processing failure is extremely Each first terminal.
15. a kind of transaction processing system according to claim 11, which is characterized in that the S2 specifically:
Processing data after service request data is successfully processed are stored to local Sqlite database, and judge the processing Whether data store success, if it is not, then rollback data, show storage failure cause, and send storage failure cause in the machine And the service request data of storage failure is to each first terminal;
If so, sending the processing data respectively to all first terminals, so that each first terminal receives institute After stating processing data, processing data are stored in the database on first terminal, and according to processing data, refresh first terminal On interface display information.
16. a kind of transaction processing system according to claim 15, which is characterized in that before the S1 further include:
WLAN is established respectively with the multiple first terminal to connect.
17. a kind of transaction processing system according to claim 16, which is characterized in that send the processing data respectively extremely After all first terminals further include:
Judge whether for the processing data to be successfully transmitted to each first terminal;
If it is not, then disconnecting the connection relationship with the first terminal for sending failure.
18. a kind of transaction processing system according to claim 16, which is characterized in that the processor executes the calculating The step of being realized when machine program further include:
When establishing connection for the first time with first terminal, data in local Sqlite database are synchronized to the first terminal In database.
19. a kind of transaction processing system according to claim 16, which is characterized in that establish wireless local area with first terminal Before net connection further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include target ip address;
Judge whether the IP address of the target ip address and the machine is consistent, if unanimously, responding the connection request;Otherwise, Refuse the connection request.
20. a kind of transaction processing system according to claim 16, which is characterized in that establish wireless local area with first terminal Before net connection further include:
The connection request and connection request data that first terminal is sent are received, the connection request data include the of first terminal The subnet mask of one IP address and first terminal;
According to the first IP address and subnet mask, judge whether to handle same network segment with first terminal, if so, responding the company Connect request;Otherwise, refuse the connection request.
CN201980000086.9A 2019-01-24 2019-01-24 Service processing method and system Active CN109964218B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/072882 WO2020150944A1 (en) 2019-01-24 2019-01-24 Service processing method and system

Publications (2)

Publication Number Publication Date
CN109964218A true CN109964218A (en) 2019-07-02
CN109964218B CN109964218B (en) 2022-04-01

Family

ID=67027217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980000086.9A Active CN109964218B (en) 2019-01-24 2019-01-24 Service processing method and system

Country Status (2)

Country Link
CN (1) CN109964218B (en)
WO (1) WO2020150944A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019617B (en) * 2020-08-26 2022-09-27 蚂蚁胜信(上海)信息技术有限公司 Data storage method, device and equipment
CN112396430B (en) * 2020-11-09 2023-06-30 中国南方电网有限责任公司 Processing method and system for enterprise evaluation
CN115378801B (en) * 2022-08-10 2024-01-30 福州六察网络科技有限公司 Multi-server communication method and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160063473A1 (en) * 2014-08-28 2016-03-03 365 Technologies Holding Limited Method and system for processing food orders
CN107302537A (en) * 2017-07-10 2017-10-27 努比亚技术有限公司 Web conference method, system, service terminal and computer-readable recording medium
CN108846093A (en) * 2018-06-14 2018-11-20 浙江口碑网络技术有限公司 Support the method for processing business and system of multi-user operation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022873B (en) * 2016-05-17 2020-01-17 暨南大学 Self-service ordering system based on augmented reality
CN107770232A (en) * 2016-08-22 2018-03-06 南京中兴软件有限责任公司 A kind of method of data synchronization and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160063473A1 (en) * 2014-08-28 2016-03-03 365 Technologies Holding Limited Method and system for processing food orders
CN107302537A (en) * 2017-07-10 2017-10-27 努比亚技术有限公司 Web conference method, system, service terminal and computer-readable recording medium
CN108846093A (en) * 2018-06-14 2018-11-20 浙江口碑网络技术有限公司 Support the method for processing business and system of multi-user operation

Also Published As

Publication number Publication date
WO2020150944A1 (en) 2020-07-30
CN109964218B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN103116596B (en) System and method of performing snapshot isolation in distributed databases
CN102682052B (en) The data query that filtering data stores
CN103226493B (en) The dispositions method and system of multi-operation system service
KR20020090520A (en) Parallel logging method of transaction processing system
CN109964218A (en) A kind of method for processing business and system
CN105512266A (en) Method and device for achieving operational consistency of distributed database
US20190258646A1 (en) Distributed transactions across multiple consensus groups
CN113220795B (en) Data processing method, device, equipment and medium based on distributed storage
CN106357452A (en) High-availability framework system with single-point heterogeneous data storage function and realizing method thereof
CN105630589A (en) Distributed process scheduling system and process scheduling and execution method
CN111694873B (en) Virtual resource package processing method and device and database server
US20110029486A1 (en) Synchronization of computer databases using caching agents
JP6975153B2 (en) Data storage service processing method and equipment
KR20040074627A (en) System and method of distributing replication commands
US8527995B2 (en) Synchronization system for entities maintained by multiple applications
CN110019231A (en) A kind of method that parallel database dynamically associates and node
CN113239118A (en) Block chain training system and method
CN114254036A (en) Data processing method and system
CN110427427B (en) Method for realizing global transaction distributed processing through pin bridging
CN112104504B (en) Transaction management framework for large-scale resource access, design method and cloud platform
CN108108119A (en) A kind of collocation method and device of expansible storage cluster things
CN105723365B (en) Method for optimum indexing, main database node and subscriber database node
CN106407264A (en) High-availability and high-consistency database cluster system and command processing method thereof
CN105447121A (en) Database cluster connection reestablishing method with high availability
CA2619778A1 (en) Method and apparatus for sequencing transactions globally in a distributed database cluster with collision monitoring

Legal Events

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

Effective date of registration: 20221104

Address after: Floor 3-4, Building 3A, Area A, Fuzhou Software Park, No. 89, Software Avenue, Gulou District, Fuzhou City, Fujian Province 350003

Patentee after: Fujian Liandi Commercial Technology Co.,Ltd.

Address before: 350000 building 17, area a, Fuzhou Software Park, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province

Patentee before: FUJIAN LANDI COMMERCIAL EQUIPMENT Co.,Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: Floor 3-4, Building 3A, Area A, Fuzhou Software Park, No. 89, Software Avenue, Gulou District, Fuzhou City, Fujian Province 350003

Patentee after: Yinjie Nico (Fujian) Technology Co.,Ltd.

Address before: Floor 3-4, Building 3A, Area A, Fuzhou Software Park, No. 89, Software Avenue, Gulou District, Fuzhou City, Fujian Province 350003

Patentee before: Fujian Liandi Commercial Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder