CN115204814A - Order approval method and device, storage medium and computer equipment - Google Patents

Order approval method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN115204814A
CN115204814A CN202210716866.7A CN202210716866A CN115204814A CN 115204814 A CN115204814 A CN 115204814A CN 202210716866 A CN202210716866 A CN 202210716866A CN 115204814 A CN115204814 A CN 115204814A
Authority
CN
China
Prior art keywords
order
approved
message queue
approval
application program
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.)
Withdrawn
Application number
CN202210716866.7A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210716866.7A priority Critical patent/CN115204814A/en
Publication of CN115204814A publication Critical patent/CN115204814A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

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

Abstract

The invention discloses an order approval method, an order approval device, a storage medium and computer equipment, relates to the technical field of information, and mainly aims to improve the order approval efficiency and the order approval accuracy. The method comprises the following steps: acquiring an order to be examined sent by a first application program terminal; storing the order to be approved to a message queue; receiving an approved order and a corresponding approval result obtained by a second application terminal examining and approving an order to be approved in the message queue, and storing the approved order and the corresponding approval result in the message queue; judging whether the order to be approved in the message queue is matched with the approved order or not; and if the to-be-approved order is matched with the approved order, transmitting the approved order and the corresponding approval result to the first application program terminal. The invention is suitable for approving orders.

Description

Order approval method and device, storage medium and computer equipment
Technical Field
The invention relates to the technical field of information, in particular to an order approval method, an order approval device, a storage medium and computer equipment.
Background
With the development of society, application programs are continuously updated, but in order to save cost, an old version application program is not offline, and a situation that a part of people in a company use a new version application program and a part of people use an old version application program occurs. Efficient approval of orders between new and old versions of applications becomes especially important if approval of orders based on applications is required internally by the company.
Currently, the approval of an order is usually accomplished by double writing data in a database corresponding to a new version of an application and an old version of the application. However, the code amount of the double write data is large, which results in low efficiency of order approval between the new application and the old application, and meanwhile, if the code of the double write data is wrongly written, an error in order transmission between the new application and the old application is caused, which results in low accuracy of order approval between the new application and the old application.
Disclosure of Invention
The invention provides an order approval method, an order approval device, a storage medium and computer equipment, which mainly aim to improve the order approval efficiency and the order approval accuracy.
According to a first aspect of the present invention, there is provided an order approval method comprising:
acquiring an order to be examined sent by a first application program terminal;
storing the order to be approved to a message queue;
receiving an approved order and a corresponding approval result obtained by a second application terminal examining and approving an order to be approved in the message queue, and storing the approved order and the corresponding approval result in the message queue;
judging whether the order to be approved in the message queue is matched with the approved order;
and if the order to be approved is matched with the approved order, transmitting the approved order and the corresponding approval result thereof to the first application program terminal.
According to a second aspect of the present invention, there is provided an order approval apparatus comprising:
the acquiring unit is used for acquiring the orders to be approved sent by the first application program terminal;
the storage unit is used for storing the order to be approved to a message queue;
the receiving unit is used for receiving an approved order and a corresponding approval result obtained by approval of the to-be-approved order in the message queue by the second application terminal, and storing the approved order and the corresponding approval result into the message queue;
the judging unit is used for judging whether the order to be approved in the message queue is matched with the approved order;
and the transmission unit is used for transmitting the approved order and the corresponding approval result to the first application program terminal if the to-be-approved order is matched with the approved order.
According to a third aspect of the present invention, there is provided a computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring an order to be approved sent by a first application program terminal;
storing the order to be approved to a message queue;
receiving an approved order and a corresponding approval result thereof obtained by a second application terminal approving the order to be approved in the message queue, and storing the approved order and the corresponding approval result thereof in the message queue;
judging whether the order to be approved in the message queue is matched with the approved order;
and if the to-be-approved order is matched with the approved order, transmitting the approved order and the corresponding approval result to the first application program terminal.
According to a fourth aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
acquiring an order to be approved sent by a first application program terminal;
storing the order to be approved to a message queue;
receiving an approved order and a corresponding approval result obtained by a second application terminal examining and approving an order to be approved in the message queue, and storing the approved order and the corresponding approval result in the message queue;
judging whether the order to be approved in the message queue is matched with the approved order;
and if the order to be approved is matched with the approved order, transmitting the approved order and the corresponding approval result thereof to the first application program terminal.
According to the order approval method, the order approval device, the storage medium and the computer equipment, compared with the mode that the order is approved by double writing data in a database corresponding to a new application program and an old application program at present, the order approval method, the device and the computer equipment obtain an order to be approved sent by a first application program terminal; storing the order to be approved to a message queue; receiving an approved order and a corresponding approval result obtained by a second application terminal examining and approving the order to be approved in the message queue, and storing the approved order and the corresponding approval result in the message queue; meanwhile, judging whether the order to be approved in the message queue is matched with the approved order or not; if the order to be approved is matched with the approved order, the approved order and the corresponding approval result are transmitted to the first application program terminal, so that the order to be approved is transmitted to the message queue, the order to be approved in the message queue is transmitted to the second application program terminal for approval, and if the approved order is matched with the approved order, the approved order and the approval result are transmitted to the first application program terminal, so that the approval efficiency of the order is improved, and meanwhile, the error in code writing of double-write data is avoided, the error in order transmission between a new application program and an old application program is caused, and the approval accuracy of the order is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
FIG. 1 is a flow chart of an order approval method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for order approval provided by an embodiment of the invention;
fig. 3 is a schematic structural diagram illustrating an order approval apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another order approval apparatus provided in the embodiment of the present invention;
fig. 5 shows a schematic physical structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings and embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
At present, the order approval efficiency is low in a mode of completing order approval by double writing data in a database corresponding to a new application program and an old application program, and meanwhile, if codes of the double writing data are wrongly written, an order transmission error between the new application program and the old application program can be caused, so that the order approval accuracy between the new application program and the old application program is low.
In order to solve the above problem, an embodiment of the present invention provides an order approval method, as shown in fig. 1, where the method includes:
101. and acquiring the order to be examined sent by the first application program terminal.
The first application program may be a new version application program or an old version application program.
For the embodiment of the invention, in order to solve the problems of low approval efficiency and accurate approval of orders in the prior art, the embodiment of the invention transmits the orders to be approved to the message queue, transmits the orders to be approved in the message queue to the second application terminal for approval, and transmits the approved orders and the approval result to the first application terminal if the approved orders are matched with the orders to be approved, so that the approval efficiency of the orders is improved, and meanwhile, the error in code writing of double-write data, which can cause the error in order transmission between a new application and an old application, is avoided, thereby improving the approval accuracy of the orders.
Specifically, the first application program may be a first APP, and a user of the first APP terminal opens the first APP, and fills an order to be approved on the first APP, that is, obtains the order to be approved, for example, if the first application program is OA software of a 4S store, and the order to be approved is a vehicle purchase and sale order, a worker at 4S fills a vehicle purchase and sale order in the OA software, obtains the vehicle purchase and sale order to be approved, and transmits the vehicle purchase and sale order to be approved to the message queue for queuing and storage, so that a worker at the other OA software terminal obtains the vehicle purchase and sale order to be approved in the message queue and approves the vehicle purchase and sale order.
102. And storing the order to be approved to a message queue.
For the embodiment of the present invention, after the user of the first application terminal fills in the pending order, in order to avoid a problem that the pending order cannot be successfully sent due to insufficient storage space of the database, the embodiment of the present invention needs to store the pending order into the message queue, where the orders in the message queue are queued and stored according to a time sequence, so that a worker at another application terminal is waited to obtain the pending order and approve the pending order, thereby avoiding a situation that if a code of double-written data is wrongly written, an order transmission error between a new application program and an old application program is caused, and thus improving an approval accuracy of the order.
103. And receiving an approved order and a corresponding approval result obtained by a second application terminal examining and approving the order to be approved in the message queue, and storing the approved order and the corresponding approval result in the message queue.
The second application program may be a new application program or an old application program.
For the embodiment of the present invention, after storing the pending order into the message queue, determining a data flow channel between the message queue and the second application, and transmitting the pending order in the message queue to the second application terminal based on the data flow channel, so that a user of the second application terminal approves the pending order to obtain an approved order and an approval result corresponding to the approved order, and storing the approved order and the approval result corresponding to the approved order into the message queue, for example, after a worker in a 4S shop submits the pending order corresponding to a vehicle insurance in a new APP, the pending order corresponding to the vehicle insurance is stored into the message queue, the worker at an old version can obtain the pending order corresponding to the vehicle insurance from the message queue, and based on the content recorded in the pending order, the pending order is approved to obtain the approved order and a result corresponding to the approved order, wherein the approved order and the result include the approved order and the approved order result corresponding to the new version APP, and the pending order is stored in the message queue, and the pending order is transmitted to the message queue, and the pending order is stored in the new version APP, if the pending order is not approved by the approved order, and the approved order is stored in the approved order, and the pending code queue, and the pending code is transmitted, and the pending code is compared with the approved result, and the pending code is compared with the pending code.
104. And judging whether the orders to be approved in the message queue are matched with the approved orders or not.
For the embodiment of the present invention, after the approved order is stored in the message queue, in order to improve the approval accuracy of the order, similarity matching is required to be performed on the order to be approved and the approved order, and if the similarity is greater than or equal to a preset similarity, determining that the order to be checked and approved is checked and approved by the user of the second application program terminal, if the similarity is smaller than the preset similarity, determining that the result returned by the second application program terminal is not the review result for the pending order, for example, the order to be reviewed is order a, but the order A and the order B exist in the message queue, the second application program terminal acquires the order B and checks the order B, simultaneously storing the checked order B into the message queue, calculating the similarity between the order A to be checked and the checked order B to be 30 percent, wherein the preset similarity is 98%, so as to determine that the order A to be audited is not matched with the audited order B, at this time, a compensation interface is added into the message queue, the order A to be audited is sent to the second application program terminal again for auditing based on the compensation interface, and storing the order after repeated review in a message queue, continuously judging whether the similarity between the order after repeated review and the order to be reviewed is greater than or equal to a preset similarity, if so, transmitting the checked order and the corresponding checking result to the first application program terminal, if the similarity is less than the preset similarity, repeating the above operations until the similarity between the order to be audited and the audited order is greater than or equal to the preset similarity.
105. And if the to-be-approved order is matched with the approved order, transmitting the approved order and the corresponding approval result to the first application program terminal.
For the embodiment of the present invention, after the approved order and the corresponding approval structure thereof are stored in the message queue, in order to improve the approval accuracy of the order, it is necessary to determine whether the approved order in the message queue matches the approved order, and specifically, the similarity between the approved order and the approved order may be calculated, and if the similarity is greater than the preset similarity, it is determined that the approved order matches the approved order item, and then the approved order and the corresponding approval result thereof are transmitted to the first application terminal, so that the user of the first application terminal executes the next task based on the approved order and the corresponding approval result thereof.
According to the order approval method provided by the invention, compared with the mode that the order approval is finished by double writing data in the database corresponding to the new application program and the old application program at present, the order to be approved sent by the first application program terminal is obtained; storing the order to be approved into a message queue; receiving an approved order and a corresponding approval result thereof obtained by the approval of the to-be-approved order in the message queue by the second application terminal, and storing the approved order into the message queue; meanwhile, judging whether the order to be approved in the message queue is matched with the approved order; if the order to be approved is matched with the approved order, the approved order and the corresponding approval result are transmitted to the first application program terminal, so that the order to be approved is transmitted to the message queue, the order to be approved in the message queue is transmitted to the second application program terminal for approval, and if the approved order is matched with the approved order, the approved order and the approval result are transmitted to the first application program terminal, so that the approval efficiency of the order is improved, meanwhile, the error in code writing of double-write data is avoided, the error in order transmission between a new application program and an old application program is caused, and the approval accuracy of the order is improved.
Further, in order to better describe the above process of approving the order, as a refinement and an extension of the above embodiment, an embodiment of the present invention provides another order approving method, as shown in fig. 2, where the method includes:
201. and acquiring the order to be examined sent by the first application program terminal.
Specifically, a user of a first application program terminal fills in an order to be approved on the first application program, after the filling is completed, an approver corresponding to the order to be approved is selected at the first application program terminal, then a submit button is clicked, the order to be approved is generated, then the order to be approved is stored in the message queue, and the second application program acquires the order to be approved in the message queue and approves the order to be approved.
202. And storing the order to be approved to a message queue.
For the embodiment of the present invention, after obtaining the pending orders sent by the first application terminal, in order to improve the approval accuracy corresponding to the pending orders, the pending orders need to be stored in the message queue, and based on this, step 202 specifically includes: transmitting the order to be examined to a preset order converter; determining a message queue corresponding to the preset order converter; and storing the orders to be approved in the preset order converter into the message queue.
The preset order converter is an exchanger, the exchanger is an intermediate bridge acting between the first application program and the message queues and plays a role in message routing, and one exchanger can correspond to a plurality of message queues.
Specifically, the first application program is not directly associated with a message queue, but sends the pending order to the switch, and then the switch routes the pending order to a corresponding message queue, so after the pending order is obtained, if the pending order is to be stored in the message queue, the pending order needs to be transmitted to the switch first, and specifically, the pending order is transmitted to the switch by determining a transmission channel between the first application program and the preset order converter, transmitting the pending order to the preset order converter based on the transmission channel, then determining a routing rule between the preset order converter and the message queue, and transmitting the pending order in the preset order converter to the message queue based on the routing rule.
203. And receiving an approved order and a corresponding approval result obtained by a second application terminal examining and approving the order to be approved in the message queue, and storing the approved order and the corresponding approval result in the message queue.
For the embodiment of the present invention, after storing the pending order in the message queue, the pending order needs to be transmitted to the second application program, and based on this, the method includes: determining a data flow path between the message queue and the second application terminal; and sending the orders to be examined in the message queue to the second application program terminal based on the data stream channel.
Specifically, the data flow channel between a second application program and the message queue is firstly determined, and then the order to be approved in the message queue is transmitted to the second application program through the data flow channel, so that a user of the second application program terminal can examine and approve the order to be approved, and an approval result and an approved order corresponding to the order to be approved are obtained.
204. Performing word segmentation on first text content corresponding to the order to be examined in the message queue to obtain each first word segmentation contained in the first text content, and performing word segmentation on second text content corresponding to the order after examination and approval in the message queue to obtain each second word segmentation contained in the second text content.
Specifically, in order to avoid the second application program obtaining an incorrect order to be approved, that is, in order to improve the accuracy of the order approval, after the approved order and the corresponding approval result thereof are stored in the message queue, similarity matching needs to be performed on the approved order and the approved order, and the specific matching method includes determining first text content in the approved order and second text content in the approved order, performing word segmentation processing on the first text content to obtain each first word contained in the first text content, and performing word segmentation processing on the second text content to obtain each second word contained in the second text content, for example, the first text content is a license plate number of jean B34567, the vehicle type is a car, the last time of the car is 2021 year, 3 month and 15 days, the guarantee time of the current time is 2022 year, 3 month and 1 day, and approval is performed, performing word segmentation processing on the first text content to obtain each word: the similarity can be determined for each second participle contained in the second text content, and finally the similarity between the examined order and the examined order is calculated based on each first participle and each second participle, and whether the examined order and the examined order are matched or not is judged based on the similarity.
205. And judging whether the orders to be approved in the message queue are matched with the approved orders or not based on the first participles and the second participles.
For the embodiment of the present invention, after determining each first participle included in the first text content in the pending order and each second participle included in the second text content in the approved order, it needs to determine whether the pending order in the message queue matches the approved order based on each first participle and each second participle, and based on this, step 205 specifically includes: determining the number of the same participles in each first participle and each second participle; judging whether the number of the same participles is larger than or equal to a preset number or not; if the number of the same participles is larger than or equal to the preset number, determining that the order to be approved in the message queue is matched with the approved order; and if the same word segmentation quantity is smaller than the preset quantity, determining that the order to be approved in the message queue is not matched with the approved order.
Specifically, after determining each first participle and each second participle, determining similarity between the order to be approved and the approved order based on the first participle and the second participle, specifically, calculating the similarity by removing stop words in the first participles and the second participles to obtain each first participle from which stop words are removed and each second participle from which stop words are removed, calculating the number of the same participles in the first participles from which stop words are removed and the second participles from which stop words are removed, and determining that the order to be approved matches the order to be approved if the number of the same participles is greater than or equal to a preset number, for example, the number of the first participles from which stop words are removed is: vehicle/insurance/category/yes/force/vehicle/loss/third party/responsibility/theft/audit/opinion, each second participle is: vehicle/application/category/is/intensity of communication/vehicle/loss/third person/responsibility/theft/rescue/glass insurance/review/opinion/agreement/above/application/category, then the number of the same participles in each first participle after removing stop words and each second participle after removing stop words is calculated to be 12, the preset number is 10, so that the number of the same participles is determined to be larger than the preset number, further the order to be reviewed is determined to be matched with the order after approval, if the number of the same participles is smaller than the preset number, the order to be reviewed is determined to be not matched with the order after approval, then a compensation interface between the message queue and the second application program needs to be determined, and the order to be reviewed in the message queue is re-sent to the second application program terminal for re-review based on the compensation interface.
206. And if the to-be-approved order is matched with the approved order, transmitting the approved order and the corresponding approval result to the first application program terminal.
Specifically, after judging whether the order to be approved and the approved order are matched, if the order to be approved and the approved order are matched, the approved order and the corresponding approval result stored in the message queue are transmitted to the preset order converter, and then the approved order and the corresponding approval result in the preset order converter are transmitted to the first application program based on a transmission channel between the first application program and the preset order converter, so that a user of the first application program terminal performs subsequent work tasks based on the approved order and the corresponding approval result.
Further, after the pending order and the approval result corresponding to the pending order are transmitted to the first application, in order to release the storage space in the message queue and improve the efficiency of the next order approval, the method further includes: and deleting the orders to be approved in the message queue and the corresponding approved orders.
Specifically, after the to-be-approved order and the approval result corresponding to the to-be-approved order are transmitted to the first application program, the to-be-approved order in the message queue, the approved order and the approval result corresponding to the to-be-approved order in the message queue need to be deleted, that is, after each transaction is completed, data related to the transaction is deleted from the message queue, further, after the to-be-approved order and the approval result corresponding to the to-be-approved order are transmitted to the first application program, in order to enable a user of the first application program terminal to check the approved order and the approval result corresponding to the approved order in time, that is, to improve the approval efficiency of the order, an approval notification needs to be sent to the user of the first application program terminal, and based on this, the method includes: generating an approval notice corresponding to the order to be approved based on the approved order and the approval result; and calling a preset communication tool interface, and sending the approval notice to the first application program terminal so that a user of the first application program terminal can view the approved order and the approval result based on the approval notice.
Specifically, after the approved order and the approval result corresponding to the approved order are sent to the first application terminal, an approval notification corresponding to the order to be approved is generated, where the approval notification may be a character notification, if there is a message that is not processed, it needs to be explained that the approval notification may also be an icon identifier, and the form of the approval notification is not specifically limited in the present invention, and then a preset communication tool interface is called, where the preset communication interface may specifically be a mailbox interface, and the approval notification is sent to a user of the first application terminal in the form of a mail based on the mailbox interface, and the user of the first application terminal views the mail and logs in the first application to view the approved order and the approval result corresponding to the approved order based on the approval notification displayed in the mail.
According to another order approval method provided by the invention, compared with the mode that the order is approved by writing data in a database corresponding to a new application program and an old application program at present, the order to be approved sent by a first application program terminal is obtained; storing the order to be approved into a message queue; receiving an approved order and a corresponding approval result thereof obtained by the approval of the order to be approved in the message queue by the second application terminal, and storing the approved order and the corresponding approval result thereof in the message queue; meanwhile, judging whether the order to be approved in the message queue is matched with the approved order; if the order to be approved is matched with the approved order, the approved order and the corresponding approval result are transmitted to the first application program terminal, so that the order to be approved is transmitted to the message queue, the order to be approved in the message queue is transmitted to the second application program terminal for approval, and if the approved order is matched with the approved order, the approved order and the approval result are transmitted to the first application program terminal, so that the approval efficiency of the order is improved, and meanwhile, the error in code writing of double-write data is avoided, the error in order transmission between a new application program and an old application program is caused, and the approval accuracy of the order is improved.
Further, as a specific implementation of fig. 1, an embodiment of the present invention provides an order approval apparatus, as shown in fig. 3, the apparatus includes: an acquisition unit 31, a storage unit 32, a reception unit 33, a judgment unit 34, and a transmission unit 35.
The obtaining unit 31 may be configured to obtain an order to be reviewed, which is sent by a first application terminal.
The storage unit 32 may be configured to store the pending order in a message queue.
The receiving unit 33 may be configured to receive an approved order obtained by the second application terminal approving the order to be approved in the message queue and an approval result corresponding to the approved order, and store the approved order and the approval result corresponding to the approved order in the message queue.
The determining unit 34 may be configured to determine whether the approved order in the message queue matches the approved order.
The transmission unit 35 may be configured to transmit the approved order and the corresponding approval result to the first application terminal if the pending order is matched with the approved order.
In a specific application scenario, in order to determine whether the order to be approved in the message queue matches the approved order, as shown in fig. 4, the determining unit 34 includes: a segmentation module 341 and a judgment module 342.
The word segmentation module 341 may be configured to perform word segmentation on the first text content in the order to be approved to obtain each first word segment included in the first text content, and perform word segmentation on the second text content in the approved order to obtain each second word segment included in the second text content.
The determining module 342 may be configured to determine whether the order to be approved in the message queue matches the approved order based on the first participles and the second participles.
In a specific application scenario, in order to determine whether the order to be approved in the message queue matches the approved order based on the first participles and the second participles, the determining module 342 includes: a determination submodule and a judgment submodule.
The determining sub-module may be configured to determine the number of the same participles in each of the first participles and each of the second participles.
The judgment sub-module may be configured to judge whether the number of the same participles is greater than or equal to a preset number.
The determining sub-module may be specifically configured to determine that the order to be approved in the message queue matches the approved order if the number of the same participles is greater than or equal to the preset number.
The determining sub-module may be further configured to determine that the order to be approved in the message queue is not matched with the approved order if the number of the same participles is smaller than the preset number.
In a specific application scenario, in order to store the pending order into a message queue, the storage unit 32 includes: a transmission module 321, a determination module 322 and a storage module 323.
The transmission module 321 may be configured to transmit the pending order to a preset order converter.
The determining module 322 may be configured to determine a message queue corresponding to the predetermined order converter.
The storage module 323 may be configured to store the pending orders in the preset order converter into the message queue.
In a specific application scenario, in order to send the pending order in the message queue to the second application terminal, the apparatus further includes: a determination unit 36 and a transmission unit 37.
The determining unit 36 may be configured to determine a data flow channel between the message queue and the second application terminal.
The sending unit 37 may be configured to send the pending orders in the message queue to the second application terminal based on the data stream channel.
In a specific application scenario, in order to delete the pending orders in the message queue and the approved orders corresponding to the pending orders, the apparatus further includes: and a deletion unit 38.
The deleting unit 38 may be configured to delete the pending orders in the message queue and the approved orders corresponding to the pending orders.
In a specific application scenario, in order to notify a user of the first application terminal to view an approval result, the apparatus further includes: a generating unit 39.
The generating unit 39 may be configured to generate an approval notification corresponding to the to-be-approved order based on the approved order and the approval result.
The sending unit 37 may be configured to call a preset communication tool interface, and send the approval notification to the first application terminal, so that a user of the first application terminal views the approved order and the approval result based on the approval notification.
It should be noted that other corresponding descriptions of the functional modules involved in the order approval apparatus provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps: acquiring an order to be examined sent by a first application program terminal; storing the order to be examined into a message queue; receiving an approved order and a corresponding approval result thereof, which are obtained by the approval of the order to be approved in the message queue by the second application terminal, and storing the approved order into the message queue; judging whether the order to be approved in the message queue is matched with the approved order; and if the to-be-approved order is matched with the approved order, transmitting the approved order and the corresponding approval result to the first application program terminal.
Based on the above embodiments of the method shown in fig. 1 and the apparatus shown in fig. 3, an embodiment of the present invention further provides an entity structure diagram of a computer device, as shown in fig. 5, where the computer device includes: a processor 41, a memory 42, and a computer program stored on the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43 such that when the processor 41 executes the program, the following steps are performed: acquiring an order to be examined sent by a first application program terminal; storing the order to be approved to a message queue; receiving an approved order and a corresponding approval result thereof, which are obtained by a second application terminal examining and approving the order to be approved in the message queue, and storing the approved order in the message queue; judging whether the order to be approved in the message queue is matched with the approved order; and if the to-be-approved order is matched with the approved order, transmitting the approved order and the corresponding approval result to the first application program terminal.
According to the technical scheme, the order to be reviewed sent by the first application program terminal is obtained; storing the order to be examined into a message queue; receiving an approved order and a corresponding approval result thereof obtained by the approval of the to-be-approved order in the message queue by the second application terminal, and storing the approved order in the message queue; meanwhile, judging whether the order to be approved in the message queue is matched with the approved order or not; if the order to be approved is matched with the approved order, the approved order and the corresponding approval result are transmitted to the first application program terminal, so that the order to be approved is transmitted to the message queue, the order to be approved in the message queue is transmitted to the second application program terminal for approval, and if the approved order is matched with the approved order, the approved order and the approval result are transmitted to the first application program terminal, so that the approval efficiency of the order is improved, meanwhile, the error in code writing of double-write data is avoided, the error in order transmission between a new application program and an old application program is caused, and the approval accuracy of the order is improved.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. An order approval method, comprising:
acquiring an order to be approved sent by a first application program terminal;
storing the order to be approved to a message queue;
receiving an approved order and a corresponding approval result thereof obtained by a second application terminal approving the order to be approved in the message queue, and storing the approved order and the corresponding approval result thereof in the message queue;
judging whether the order to be approved in the message queue is matched with the approved order or not;
and if the to-be-approved order is matched with the approved order, transmitting the approved order and the corresponding approval result to the first application program terminal.
2. The method of claim 1, wherein said determining whether the pending orders in the message queue and the approved orders match comprises:
performing word segmentation on first text contents in the order to be approved to obtain each first word segmentation contained in the first text contents, and performing word segmentation on second text contents in the approved order to obtain each second word segmentation contained in the second text contents;
and judging whether the order to be approved in the message queue is matched with the approved order or not based on the first participles and the second participles.
3. The method of claim 2, wherein said determining whether the pending order and the approved order in the message queue match based on the respective first participles and the respective second participles comprises:
determining the number of the same participles in each first participle and each second participle;
judging whether the number of the same participles is larger than or equal to a preset number or not;
if the number of the same participles is larger than or equal to the preset number, determining that the order to be approved in the message queue is matched with the approved order;
and if the number of the same participles is less than the preset number, determining that the order to be approved in the message queue is not matched with the approved order.
4. The method of claim 1, wherein storing the pending order to a message queue comprises:
transmitting the orders to be reviewed to a preset order converter;
determining a message queue corresponding to the preset order converter;
and storing the orders to be approved in the preset order converter to the message queue.
5. The method according to claim 1, wherein before receiving the approved order and the corresponding approval result obtained by the second application terminal approving the pending order in the message queue, the method further comprises:
determining a data flow path between the message queue and the second application terminal;
and sending the order to be approved in the message queue to the second application program terminal based on the data flow channel so that a user of the second application program terminal can examine and approve the order to be approved.
6. The method of claim 1, wherein after transmitting the approved order and its corresponding approval results to the first application terminal, the method further comprises:
and deleting the orders to be approved in the message queue and the corresponding approved orders.
7. The method of claim 1, wherein after said transmitting said approved order and its corresponding approval to said first application terminal, the method further comprises:
generating an approval notice corresponding to the order to be approved based on the approved order and the approval result;
and calling a preset communication tool interface, and sending the approval notice to the first application program terminal so that a user of the first application program terminal can view the approved order and the approval result based on the approval notice.
8. An order approval apparatus, comprising:
the acquiring unit is used for acquiring the orders to be approved sent by the first application program terminal;
the storage unit is used for storing the order to be approved to a message queue;
the receiving unit is used for receiving an approved order obtained by a second application terminal examining and approving an order to be approved in the message queue and a corresponding examination and approval result thereof, and storing the approved order into the message queue;
the judging unit is used for judging whether the order to be approved in the message queue is matched with the approved order or not;
and the transmission unit is used for transmitting the approved order and the corresponding approval result to the first application program terminal if the to-be-approved order is matched with the approved order.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
10. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by the processor.
CN202210716866.7A 2022-06-23 2022-06-23 Order approval method and device, storage medium and computer equipment Withdrawn CN115204814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210716866.7A CN115204814A (en) 2022-06-23 2022-06-23 Order approval method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210716866.7A CN115204814A (en) 2022-06-23 2022-06-23 Order approval method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN115204814A true CN115204814A (en) 2022-10-18

Family

ID=83578543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210716866.7A Withdrawn CN115204814A (en) 2022-06-23 2022-06-23 Order approval method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN115204814A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110060143A (en) * 2019-03-13 2019-07-26 深圳壹账通智能科技有限公司 Service interfacing method, apparatus, computer equipment and storage medium
CN112306655A (en) * 2020-10-29 2021-02-02 平安信托有限责任公司 Task auditing method and device, computer equipment and storage medium
CN113011848A (en) * 2021-03-23 2021-06-22 北京奇艺世纪科技有限公司 Method, device, equipment and storage medium for accessing approval service
WO2022073293A1 (en) * 2020-10-10 2022-04-14 同程网络科技股份有限公司 Distributed order processing method, apparatus, device, and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110060143A (en) * 2019-03-13 2019-07-26 深圳壹账通智能科技有限公司 Service interfacing method, apparatus, computer equipment and storage medium
WO2022073293A1 (en) * 2020-10-10 2022-04-14 同程网络科技股份有限公司 Distributed order processing method, apparatus, device, and storage medium
CN112306655A (en) * 2020-10-29 2021-02-02 平安信托有限责任公司 Task auditing method and device, computer equipment and storage medium
CN113011848A (en) * 2021-03-23 2021-06-22 北京奇艺世纪科技有限公司 Method, device, equipment and storage medium for accessing approval service

Similar Documents

Publication Publication Date Title
CN112488652B (en) Work order auditing method, system, terminal and storage medium
US20060005098A1 (en) Interface workbench for high volume data buffering and connectivity
CN108876306A (en) A kind of online measures and procedures for the examination and approval, device and storage medium
CN113268336B (en) Service acquisition method, device, equipment and readable medium
CN111340584A (en) Method, device, equipment and storage medium for determining fund side
CN110688536A (en) Label prediction method, device, equipment and storage medium
CN110597984B (en) Method and device for determining abnormal behavior user information, storage medium and terminal
JP6535863B2 (en) Information processing apparatus and program
CN112651733A (en) Channel route selection method, device, equipment and storage medium
CN107644045B (en) Processing method and device for insuring data
CN112990868A (en) Method, system, equipment and storage medium for automatic vehicle insurance claims
CN111260479A (en) Financing application processing method, device, equipment and storage medium
CN115204814A (en) Order approval method and device, storage medium and computer equipment
CN108769143B (en) Message pushing method and device, storage medium and electronic equipment
CN109427015B (en) Method, device and equipment for inquiring price of insurance scheme and computer readable storage medium
JP3325928B2 (en) Email system
CN107172311B (en) Service evaluation method and terminal equipment
CN113111153B (en) Data analysis method, device, equipment and storage medium
CN115525449A (en) Micro-service data transmission system, method and storage medium
CN115358716A (en) Vehicle usage management method and device, electronic device and readable medium
CN111625455A (en) Program testing method, device, equipment and medium
CN111427778A (en) Test method, test device, terminal equipment and storage medium
CN110659871B (en) Information management method and related device
CN112035711B (en) Information query method, device, equipment and storage medium
JP7185543B2 (en) business card management system

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20221018