A permission control method and system
By establishing an office number sharing pool and determining office number permissions, the problem of high work costs and limitations in flight inventory information control is solved, more efficient permission control is achieved, and different office numbers are allowed to operate on the same flight number.
Patent Information
- Application Number
- CN202010749813.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-07-30
AI Technical Summary
The existing technology has high work costs, low work efficiency and limitations when controlling flight inventory information, especially the problem that office numbers on different routes cannot control the same flight number.
By establishing an office number sharing pool, it is determined whether the pending office number and the master office number are in the shared pool. If they are, the operation instructions are executed to control the flight inventory information; if not, the control authority is determined based on the office number authority. and execute operating instructions.
It reduces the need to configure separate control office numbers for each flight, improves work efficiency, allows different office numbers to control the same flight number, and reduces control limitations.
Smart Images

Figure CN111859328B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of authority control, and in particular to an authority control method and system. Background Art
[0002] To ensure the business operation of the airline, the airline needs to manage flights, for example, the airline needs to control the inventory information of the flight.
[0003] At present, the leg / seg method is usually used to control the inventory information of flights. The specific control method is: each user is assigned an office number, each flight number has a master office number, and each flight has at most one sub-office number. Users with the flight's master office number can add, delete, modify, and query the flight, and have the authority to control the flight's inventory information. Users with a flight's sub-office number cannot operate the flight and can only operate the flight's inventory information within a certain range.
[0004] However, on the one hand, when finely controlling the inventory information of flights, it is necessary to configure a sub-control office number for each flight. Due to the large number of flights, the workload of configuring a sub-control office number for each flight is huge, the work cost is high and the work efficiency is low. On the other hand, there are currently situations where the same flight number is used to fly different routes, and the office numbers for different routes are also different. The current control method does not allow users with different office numbers to control the same flight number, which has great limitations. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a permission control method and system to solve the problems of high working cost, low working efficiency and great limitations in the current way of controlling flight inventory information.
[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0007] A first aspect of an embodiment of the present invention discloses a permission control method, the method comprising:
[0008] Obtaining the destination flight corresponding to the operation instruction and the main control office number of the destination flight, and obtaining the pending office number of the user who sent the operation instruction;
[0009] Determine whether the to-be-processed office number and the master office number are in a preset office number sharing pool, wherein the office number sharing pool includes office numbers corresponding to multiple flights, and any office number in the office number sharing pool has the authority to operate the inventory information of all flights in the office number sharing pool;
[0010] If the to-be-processed office number and the master office number are in the office number sharing pool, the operation instruction is executed to control the inventory information of the destination flight;
[0011] If the pending office number and the master office number are not in the office number sharing pool, determining whether the pending office number has the authority to control the inventory information of the destination flight according to the pending office number and the master office number;
[0012] If the office number to be processed has the authority to control the inventory information of the destination flight, the operation instruction is executed to control the inventory information of the destination flight.
[0013] Preferably, the step of obtaining the destination flight corresponding to the operation instruction and the main control office number of the destination flight, and obtaining the to-be-processed office number of the user who sent the operation instruction, includes:
[0014] Receive request messages and queue information corresponding to operation instructions;
[0015] Parsing the request message to obtain the destination flight and the main control office number of the destination flight;
[0016] The queue information is parsed to obtain the to-be-processed office number of the user who sent the operation instruction.
[0017] Preferably, the determining, based on the pending office number and the master office number, whether the pending office number has the authority to control the inventory information of the destination flight includes:
[0018] Determine whether the to-be-processed office number is consistent with the master office number;
[0019] If the pending office number is consistent with the main control office number, it is determined that the pending office number has the authority to control the inventory information of the destination flight;
[0020] If the office number to be processed is inconsistent with the main control office number, the office number to be processed is subjected to sub-control verification;
[0021] If the office number to be processed passes the sub-control verification, it is determined that the office number to be processed has the authority to control the inventory information of the destination flight;
[0022] If the office number to be processed fails to pass the sub-control verification, it is determined that the office number to be processed does not have the authority to control the inventory information of the destination flight.
[0023] Preferably, the sub-control verification of the office number to be processed includes:
[0024] Determine whether the office number to be processed is a sub-control office number of the main control office number;
[0025] If the office number to be processed is not a sub-control office number of the main control office number, determining that the office number to be processed has not passed the sub-control verification;
[0026] If the office number to be processed is a sub-control office number of the main control office number, determine whether the operation instruction is within the operation authority corresponding to the office number to be processed;
[0027] If the operation instruction is within the operation authority corresponding to the office number to be processed, it is determined that the office number to be processed has passed the sub-control verification;
[0028] If the operation instruction is not within the operation authority corresponding to the office number to be processed, it is determined that the office number to be processed has not passed the sub-control verification.
[0029] Preferably, it also includes:
[0030] If the office number to be processed does not have the authority to control the inventory information of the destination flight, a prompt message indicating an authority error is fed back to the user.
[0031] Preferably, after executing the operation instruction and controlling the inventory information of the destination flight, the method further includes:
[0032] Feedback the execution result after executing the operation instruction to the user.
[0033] A second aspect of an embodiment of the present invention discloses a permission control system, the system comprising:
[0034] An acquisition unit, used to acquire a destination flight corresponding to the operation instruction and a main control office number of the destination flight, and to acquire a pending office number of a user who sends the operation instruction;
[0035] A judging unit, used for judging whether the office number to be processed and the main office number are in a preset office number sharing pool, and if the office number to be processed and the main office number are in the office number sharing pool, executing an operating unit, and if the office number to be processed and the main office number are not in the office number sharing pool, executing a determining unit, the office number sharing pool includes office numbers corresponding to multiple flights, and any office number in the office number sharing pool has the authority to operate the inventory information of all flights in the office number sharing pool;
[0036] The operating unit is used to execute the operating instruction to control the inventory information of the destination flight;
[0037] The determination unit is used to determine whether the office number to be processed has the authority to control the inventory information of the destination flight based on the office number to be processed and the main control office number, and if the office number to be processed has the authority to control the inventory information of the destination flight, execute the operation unit.
[0038] Preferably, the acquisition unit is specifically used to: receive a request message and queue information corresponding to the operation instruction, parse the request message, obtain the destination flight and the main control office number of the destination flight, parse the queue information, and obtain the pending office number of the user who sent the operation instruction.
[0039] Preferably, the determining unit includes:
[0040] A judgment module, used to judge whether the office number to be processed is consistent with the main control office number, if the office number to be processed is consistent with the main control office number, execute the first determination module, if the office number to be processed is inconsistent with the main control office number, execute the verification module;
[0041] The first determination module is used to determine whether the office number to be processed has the authority to control the inventory information of the destination flight;
[0042] A verification module, used for performing sub-control verification on the office number to be processed, and if the office number to be processed passes the sub-control verification, executing the first determination module, and if the office number to be processed fails the sub-control verification, executing the second determination module;
[0043] The second determining module is used to determine that the office number to be processed does not have the authority to control the inventory information of the destination flight.
[0044] Preferably, the verification module is specifically used to: determine whether the office number to be processed is a sub-control office number of the main control office number; if the office number to be processed is not a sub-control office number of the main control office number, determine that the office number to be processed has not passed the sub-control verification; if the office number to be processed is a sub-control office number of the main control office number, determine whether the operation instruction is within the operation authority corresponding to the office number to be processed; if the operation instruction is within the operation authority corresponding to the office number to be processed, determine that the office number to be processed has passed the sub-control verification; if the operation instruction is not within the operation authority corresponding to the office number to be processed, determine that the office number to be processed has not passed the sub-control verification.
[0045] Based on the above-mentioned embodiment of the present invention, a permission control method and system are provided. The method is as follows: obtaining the destination flight and the main control office number of the destination flight corresponding to the operation instruction, and obtaining the pending office number of the user who sent the operation instruction; judging whether the pending office number and the main control office number are in the preset office number sharing pool; if the pending office number and the main control office number are in the office number sharing pool, executing the operation instruction to control the inventory information of the destination flight; if the pending office number and the main control office number are not in the office number sharing pool, determining whether the pending office number has the authority to control the inventory information of the destination flight according to the pending office number and the main control office number; if the pending office number has the authority to control the inventory information of the destination flight, executing the operation instruction to control the inventory information of the destination flight. It is not necessary to configure a sub-control office number for each flight, which reduces the work cost and improves the work efficiency. Different office numbers can also control the same flight number, reducing the limitation of controlling the inventory information of the flight. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0047] Figure 1 A flowchart of a permission control method provided by an embodiment of the present invention;
[0048] Figure 2 A flowchart for determining whether the office number to be processed has the authority to control the inventory information of the destination flight provided by an embodiment of the present invention;
[0049] Figure 3 A flowchart of performing sub-control verification on the office number to be processed provided by an embodiment of the present invention;
[0050] Figure 4 A structural block diagram of a permission control system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0053] As can be seen from the background technology, the leg / seg method is currently commonly used to control the inventory information of flights. However, due to the large number of flights and the situation where the same flight number is used for different routes, the use of the leg / seg method to control the inventory information of flights requires a high work cost, has low work efficiency and has great limitations.
[0054] Therefore, an embodiment of the present invention provides a permission control method and system, which determines whether the office number to be processed and the main control office number are in the preset office number sharing pool. If the office number to be processed and the main control office number are in the office number sharing pool, the operation instruction is executed to control the inventory information of the destination flight. If the office number to be processed and the main control office number are not in the office number sharing pool, it is determined whether the office number to be processed has the permission to control the inventory information of the destination flight based on the office number to be processed and the main control office number. If the office number to be processed has the permission to control the inventory information of the destination flight, the operation instruction is executed to control the inventory information of the destination flight. There is no need to configure a sub-control office number for each flight, and different office numbers can also control the same flight number, so as to reduce work costs, improve work efficiency and reduce limitations.
[0055] See also Figure 1 , shows a flow chart of a permission control method provided by an embodiment of the present invention, the permission control method comprising:
[0056] Step S101: Acquire the destination flight corresponding to the operation instruction and the main control office number of the destination flight, and acquire the to-be-processed office number of the user who sends the operation instruction.
[0057] In the specific implementation of step S101, a request message (Inventory Manage Request, IMQ) corresponding to an operation instruction sent by a user (such as a host) is received, the request message is parsed, and the destination flight and the main control office number (also called office) of the destination flight are obtained.
[0058] It should be noted that the operation instruction is used to control the inventory information of the destination flight. When the request message is received, the queue information is received and the queue information is parsed to obtain the pending office number of the user who sent the operation instruction.
[0059] Step S102: Determine whether the office number to be processed and the main office number are in the preset office number sharing pool. If the office number to be processed and the main office number are in the office number sharing pool, execute step S104. If the office number to be processed and the main office number are not in the office number sharing pool, execute step S103.
[0060] It should be noted that an office number sharing pool corresponding to airlines is established in advance, and each airline establishes its own office number sharing pool. The office number sharing pool includes office numbers corresponding to multiple flights, such as the main control office numbers and / or sub-control office numbers corresponding to multiple flights. Any office number in the office number sharing pool has the authority to operate the inventory information of all flights in the office number sharing pool.
[0061] In order to better explain the office number sharing pool involved above, the following content is used as an example.
[0062] It should be noted that airlines divide route resources through two mechanisms. One is based on routes (Origin & Destination, OD), divided according to routes, regional groups and hub definitions; the other is based on flight numbers, divided according to the main control office number and sub-control office number. The above two division methods lead to two different authority control mechanisms.
[0063] The two permission control mechanisms mentioned above are effective and run in parallel. If you want to operate the data of a specific flight, you need to meet the constraints of both permission mechanisms at the same time. If the airline is based on the OD unified control concept, it can break the restriction of office number division on flight interoperability by establishing an office number sharing pool.
[0064] Assume that for an airline, there are multiple master office numbers, and a user who logs in with the master office number (called Office_A) has the authority to operate the inventory information of the flights corresponding to another master office number (called Office_B). Then, a set of {Office_A, Office_B} can be established. This set is called an office number sharing pool, and the office numbers in the office number sharing pool are Office_A and Office_B.
[0065] If Office_A has multiple sub-control office numbers, namely {Office_1, Office_2, Office_3}, and users with the aforementioned sub-control office numbers of Office_A can also operate the inventory information of Office_B's flights, then an office number sharing pool including the main control office number and the sub-control office number can be established, and the office number sharing pool is {Office_A, Office_1, Office_2, Office_3, Office_B}.
[0066] It is understandable that for any sub-control office number (or main control office number) added to the office number sharing pool, the sub-control office number (or main control office number) can operate the inventory information of the flight corresponding to any office number in the office number sharing pool. For example: Office_1 can operate the inventory information of the flights corresponding to Office_A, Office_2, Office_3 and Office_B.
[0067] It should be noted that for some special master office numbers of airlines (such as PEK001), the special master office number is not added to the office number sharing pool.
[0068] In the specific implementation of step S102, combined with the above content, it is determined whether the office number to be processed and the main office number (the main office number of the destination flight) are in the office number sharing pool. If the office number to be processed and the main office number are in the office number sharing pool, it means that the office number to be processed has the authority to operate the inventory information of the flight of the main office number, and step S104 is executed. If the office number to be processed and the main office number are not in the office number sharing pool, the office number to be processed is combined with the office number to be processed and the main office number to perform a one-step authority check on the office number to be processed.
[0069] Step S103: Determine whether the office number to be processed has the authority to control the inventory information of the destination flight according to the office number to be processed and the main control office number. If the office number to be processed has the authority to control the inventory information of the destination flight, execute step S104; if the office number to be processed does not have the authority to control the inventory information of the destination flight, execute step S105.
[0070] In the specific implementation of step S103, the office number to be processed is compared with the main control office number, and the authority of the office number to be processed is checked to determine whether the office number to be processed has the authority to control the inventory information of the destination flight.
[0071] Step S104: Execute the operation instruction to control the inventory information of the destination flight.
[0072] In the process of implementing step S104, if the office number to be processed has the authority to control the inventory information of the destination flight, the operation instruction is executed, and the inventory information of the destination flight is controlled in combination with the preset rules for setting the inventory, for example: the operation instruction is executed to change the data of the inventory information of the destination flight (for example, adjust the cabin space and number of seats of the destination flight).
[0073] Preferably, after executing step S104, the execution result after executing the operation instruction is fed back to the user in the form of a message.
[0074] Step S105: Feedback prompt information indicating permission error to the user.
[0075] In the specific implementation of step S105, if it is determined based on the pending office number and the main control office number that the pending office number does not have the authority to control the inventory information of the destination flight, a prompt message indicating an authority error is fed back to the user to prompt the user of the authority error.
[0076] In an embodiment of the present invention, an office number sharing pool is established in advance, and after obtaining the office number to be processed and the main office number of the destination flight, it is determined whether the office number to be processed and the main office number are in the preset office number sharing pool. If the office number to be processed and the main office number are in the office number sharing pool, the operation instruction is executed to control the inventory information of the destination flight. If the office number to be processed and the main office number are not in the office number sharing pool, it is determined whether the office number to be processed has the authority to control the inventory information of the destination flight based on the office number to be processed and the main office number. If the office number to be processed has the authority to control the inventory information of the destination flight, the operation instruction is executed to control the inventory information of the destination flight. There is no need to configure a sub-control office number for each flight, and different office numbers can also control the same flight number, which reduces work costs, improves work efficiency and reduces limitations.
[0077] The above embodiments of the present invention Figure 1 The process of determining whether the office number to be processed has the authority to control the inventory information of the destination flight involved in step S103 is described in detail in Figure 2 , showing a flow chart of determining whether the office number to be processed has the authority to control the inventory information of the destination flight provided by an embodiment of the present invention, including the following steps:
[0078] Step S201: Determine whether the office number to be processed is consistent with the main office number. If the office number to be processed is consistent with the main office number, execute step S204; if the office number to be processed is inconsistent with the main office number, execute step S202.
[0079] In the specific implementation of step S201, it is determined whether the pending office number is consistent with the main control office number (the main control office number of the destination flight). If the pending office number is consistent with the main control office number, the pending office number has the authority to control the inventory information of the destination flight. If the pending office number is inconsistent with the main control office number, the pending office number is subjected to a sub-control check.
[0080] Step S202: Perform sub-control verification on the office number to be processed, and determine whether the office number to be processed passes the sub-control verification. If the office number to be processed passes the sub-control verification, execute step S203; if the office number to be processed does not pass the sub-control verification, execute step S204.
[0081] In the process of implementing step S202, the office number to be processed is subjected to sub-control verification. If the office number to be processed passes the sub-control verification, the office number to be processed has the authority to control the inventory information of the destination flight. If the office number to be processed fails to pass the sub-control verification, the office number to be processed does not have the authority to control the inventory information of the destination flight.
[0082] Step S203: Determine whether the office number to be processed has the authority to control the inventory information of the destination flight.
[0083] Step S204: Determine that the office number to be processed does not have the authority to control the inventory information of the destination flight.
[0084] In the embodiment of the present invention, when the office number to be processed and the main control office number are not in the office number sharing pool, it is determined whether the office number to be processed and the main control office number are consistent. If they are consistent, the office number to be processed has the authority to control the inventory information of the destination flight. If they are inconsistent, the office number to be processed is subjected to a sub-control check. If the office number to be processed passes the sub-control check, the office number to be processed has the authority to control the inventory information of the destination flight. If the office number to be processed does not pass the sub-control check, the office number to be processed does not have the authority to control the inventory information of the destination flight. The authority control is performed in a variety of ways to improve the scalability of the authority control.
[0085] The above embodiments of the present invention Figure 2 For the process of performing sub-control verification on the office number to be processed involved in step S203, see Figure 3 , shows a flowchart of performing sub-control verification on an office number to be processed provided by an embodiment of the present invention, including the following steps:
[0086] Step S301: Determine whether the office number to be processed is a sub-control office number of the main control office number. If the office number to be processed is not a sub-control office number of the main control office number, execute step S304; if the office number to be processed is a sub-control office number of the main control office number, execute step S302.
[0087] In the process of implementing step S301, it is determined whether the office number to be processed is a sub-control office number of the main control office number (the main control office number of the destination flight), that is, whether there is a sub-control relationship between the office number to be processed and the main control office number of the destination flight. If not, it is determined that the office number to be processed has not passed the sub-control check. If so, it is determined whether the operation instruction is within the operation authority corresponding to the office number to be processed (in this case, the sub-control office number of the main control office number of the destination flight).
[0088] Step S302: Determine whether the operation instruction is within the operation authority corresponding to the office number to be processed. If the operation instruction is within the operation authority corresponding to the office number to be processed, execute step S303; if the operation instruction is not within the operation authority corresponding to the office number to be processed, execute step S304.
[0089] It should be noted that for the sub-control office number of the main control office number of the destination flight, the sub-control office number has a certain range (settable) of operating permissions. In the specific implementation of step S302, if the office number to be processed is the sub-control office number of the main control office number of the destination flight, it is necessary to determine whether the operation instruction is within the operating permission corresponding to the office number to be processed, that is, to determine whether the office number to be processed has the authority to execute the operation instruction.
[0090] If the operation instruction is within the operation authority corresponding to the office number to be processed, it is determined that the office number to be processed has passed the sub-control verification. If the operation instruction is not within the operation authority corresponding to the office number to be processed, it is determined that the office number to be processed has not passed the sub-control verification.
[0091] Step S303: Determine whether the office number to be processed passes the sub-control verification.
[0092] Step S304: Determine whether the office number to be processed has not passed the sub-control verification.
[0093] Corresponding to a permission control method provided in the above embodiment of the present invention, see Figure 4 , the embodiment of the present invention also provides a structural block diagram of an authority control system, the authority control system includes: an acquisition unit 401, a judgment unit 402, an operation unit 403 and a determination unit 404;
[0094] The acquisition unit 401 is used to acquire the destination flight and the control office number of the destination flight corresponding to the operation instruction, and acquire the to-be-processed office number of the user who sends the operation instruction.
[0095] In a specific implementation, the acquisition unit 401 is specifically used to: receive the request message and queue information corresponding to the operation instruction, parse the request message, obtain the destination flight and the main control office number of the destination flight, parse the queue information, and obtain the pending office number of the user who sent the operation instruction.
[0096] The judgment unit 402 is used to judge whether the office number to be processed and the main office number are in the preset office number sharing pool. If the office number to be processed and the main office number are in the office number sharing pool, the operation unit 403 is executed. If the office number to be processed and the main office number are not in the office number sharing pool, the determination unit 404 is executed. The office number sharing pool includes office numbers corresponding to multiple flights. Any office number in the office number sharing pool has the authority to operate the inventory information of all flights in the office number sharing pool.
[0097] The operating unit 403 is used to execute operating instructions to control the inventory information of the destination flight.
[0098] The determination unit 404 is used to determine whether the office number to be processed has the authority to control the inventory information of the destination flight according to the office number to be processed and the main control office number. If the office number to be processed has the authority to control the inventory information of the destination flight, the operation unit 403 is executed.
[0099] In an embodiment of the present invention, an office number sharing pool is established in advance, and after obtaining the office number to be processed and the main office number of the destination flight, it is determined whether the office number to be processed and the main office number are in the preset office number sharing pool. If the office number to be processed and the main office number are in the office number sharing pool, the operation instruction is executed to control the inventory information of the destination flight. If the office number to be processed and the main office number are not in the office number sharing pool, it is determined whether the office number to be processed has the authority to control the inventory information of the destination flight based on the office number to be processed and the main office number. If the office number to be processed has the authority to control the inventory information of the destination flight, the operation instruction is executed to control the inventory information of the destination flight. There is no need to configure a sub-control office number for each flight, and different office numbers can also control the same flight number, which reduces work costs, improves work efficiency and reduces limitations.
[0100] Preferably, combined Figure 4 The content shown, the determination unit 404 includes: a judgment module, a first determination module, an acquisition module, a verification module and a second determination module, and the execution principle of each module is:
[0101] The judgment module is used to judge whether the office number to be processed is consistent with the main office number. If the office number to be processed is consistent with the main office number, the first determination module is executed; if the office number to be processed is inconsistent with the main office number, the verification module is executed.
[0102] The first determination module is used to determine whether the office number to be processed has the authority to control the inventory information of the destination flight.
[0103] The verification module is used to perform sub-control verification on the office number to be processed. If the office number to be processed passes the sub-control verification, the first determination module is executed. If the office number to be processed does not pass the sub-control verification, the second determination module is executed.
[0104] In the specific implementation, the verification module is specifically used to: determine whether the office number to be processed is a sub-control office number of the main control office number; if the office number to be processed is not a sub-control office number of the main control office number, determine that the office number to be processed has not passed the sub-control verification; if the office number to be processed is a sub-control office number of the main control office number, determine whether the operation instruction is within the operation authority corresponding to the office number to be processed; if the operation instruction is within the operation authority corresponding to the office number to be processed, determine that the office number to be processed has passed the sub-control verification; if the operation instruction is not within the operation authority corresponding to the office number to be processed, determine that the office number to be processed has not passed the sub-control verification.
[0105] The second determination module is used to determine that the office number to be processed does not have the authority to control the inventory information of the destination flight.
[0106] Preferably, combined Figure 4 The content shown, the permission control system also includes:
[0107] The feedback unit is used to feedback a prompt message indicating an authority error to the user if the office number to be processed does not have the authority to control the inventory information of the destination flight.
[0108] Preferably, the feedback unit is also used to: provide feedback to the user on the execution result after the operation instruction is executed.
[0109] In summary, the embodiment of the present invention provides a permission control method and system, which determines whether the office number to be processed and the main control office number are in the preset office number sharing pool. If the office number to be processed and the main control office number are in the office number sharing pool, the operation instruction is executed to control the inventory information of the destination flight. If the office number to be processed and the main control office number are not in the office number sharing pool, it is determined whether the office number to be processed has the permission to control the inventory information of the destination flight based on the office number to be processed and the main control office number. If the office number to be processed has the permission to control the inventory information of the destination flight, the operation instruction is executed to control the inventory information of the destination flight. There is no need to configure a sub-control office number for each flight, and different office numbers can also control the same flight number, which reduces work costs, improves work efficiency and reduces limitations.
[0110] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0111] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0112] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A permission control method, characterized in that: The method comprises: Acquire the destination flight corresponding to the operation instruction and the main control office number of the destination flight, and acquire the pending office number of the user who sent the operation instruction; the operation instruction is used to control the inventory information of the destination flight; Determine whether the to-be-processed office number and the master office number are in a preset office number sharing pool, wherein the office number sharing pool includes office numbers corresponding to multiple flights, and any office number in the office number sharing pool has the authority to operate the inventory information of all flights in the office number sharing pool; If the to-be-processed office number and the master office number are in the office number sharing pool, the operation instruction is executed to control the inventory information of the destination flight; wherein controlling the inventory information of the destination flight includes changing the data of the inventory information of the destination flight, and the data of the inventory information includes cabin space and number of seats; If the pending office number and the master office number are not in the office number sharing pool, determining whether the pending office number has the authority to control the inventory information of the destination flight according to the pending office number and the master office number; If the office number to be processed has the authority to control the inventory information of the destination flight, execute the operation instruction to control the inventory information of the destination flight; Wherein, determining whether the office number to be processed has the authority to control the inventory information of the destination flight according to the office number to be processed and the main control office number includes: Determine whether the to-be-processed office number is consistent with the master office number; If the pending office number is consistent with the main control office number, it is determined that the pending office number has the authority to control the inventory information of the destination flight; If the office number to be processed is inconsistent with the main control office number, the office number to be processed is subjected to sub-control verification; If the office number to be processed passes the sub-control verification, it is determined that the office number to be processed has the authority to control the inventory information of the destination flight; If the office number to be processed fails to pass the sub-control verification, it is determined that the office number to be processed does not have the authority to control the inventory information of the destination flight.
2. The method according to claim 1, characterized in that The step of obtaining the destination flight corresponding to the operation instruction and the main control office number of the destination flight, and obtaining the to-be-processed office number of the user who sent the operation instruction, includes: Receive request messages and queue information corresponding to operation instructions; Parsing the request message to obtain the destination flight and the main control office number of the destination flight; The queue information is parsed to obtain the to-be-processed office number of the user who sent the operation instruction.
3. The method according to claim 1, characterized in that The sub-control verification of the office number to be processed includes: Determine whether the office number to be processed is a sub-control office number of the main control office number; If the office number to be processed is not a sub-control office number of the main control office number, determining that the office number to be processed has not passed the sub-control verification; If the office number to be processed is a sub-control office number of the main control office number, determine whether the operation instruction is within the operation authority corresponding to the office number to be processed; If the operation instruction is within the operation authority corresponding to the office number to be processed, it is determined that the office number to be processed has passed the sub-control verification; If the operation instruction is not within the operation authority corresponding to the office number to be processed, it is determined that the office number to be processed has not passed the sub-control verification.
4. The method according to claim 1, characterized in that Also includes: If the office number to be processed does not have the authority to control the inventory information of the destination flight, a prompt message indicating an authority error is fed back to the user.
5. The method according to claim 1, characterized in that After executing the operation instruction and controlling the inventory information of the destination flight, the method further includes: Feedback the execution result after executing the operation instruction to the user.
6. A permission control system, characterized in that: The system comprises: An acquisition unit, used to acquire a destination flight corresponding to an operation instruction and a main control office number of the destination flight, and to acquire a pending office number of a user who sends the operation instruction; the operation instruction is used to control inventory information of the destination flight; A judgment unit, used for judging whether the office number to be processed and the main control office number are in a preset office number sharing pool, and if the office number to be processed and the main control office number are in the office number sharing pool, executing an operation unit, and if the office number to be processed and the main control office number are not in the office number sharing pool, executing a determination unit, wherein the office number sharing pool includes office numbers corresponding to multiple flights, and any office number in the office number sharing pool has the authority to operate the inventory information of all flights in the office number sharing pool; wherein controlling the inventory information of the destination flight includes changing the data of the inventory information of the destination flight, and the data of the inventory information includes the cabin space and the number of seats; The operating unit is used to execute the operating instruction to control the inventory information of the destination flight; The determining unit is used to determine whether the to-be-processed office number has the authority to control the inventory information of the destination flight according to the to-be-processed office number and the master control office number, and if the to-be-processed office number has the authority to control the inventory information of the destination flight, execute the operating unit; Wherein, the determining unit includes: A judgment module, used to judge whether the office number to be processed is consistent with the main control office number, if the office number to be processed is consistent with the main control office number, execute the first determination module, if the office number to be processed is inconsistent with the main control office number, execute the verification module; The first determination module is used to determine whether the office number to be processed has the authority to control the inventory information of the destination flight; A verification module, used for performing sub-control verification on the office number to be processed, and if the office number to be processed passes the sub-control verification, executing the first determination module, and if the office number to be processed fails the sub-control verification, executing the second determination module; The second determining module is used to determine that the office number to be processed does not have the authority to control the inventory information of the destination flight.
7. The system according to claim 6, characterized in that The acquisition unit is specifically used to: receive a request message and queue information corresponding to an operation instruction, parse the request message, obtain a destination flight and a main control office number of the destination flight, parse the queue information, and obtain a pending office number of a user who sends the operation instruction.
8. The system according to claim 6, characterized in that The verification module is specifically used to: determine whether the office number to be processed is a sub-control office number of the main control office number; if the office number to be processed is not a sub-control office number of the main control office number, determine that the office number to be processed has not passed the sub-control verification; if the office number to be processed is a sub-control office number of the main control office number, determine whether the operation instruction is within the operation authority corresponding to the office number to be processed; if the operation instruction is within the operation authority corresponding to the office number to be processed, determine that the office number to be processed has passed the sub-control verification; if the operation instruction is not within the operation authority corresponding to the office number to be processed, determine that the office number to be processed has not passed the sub-control verification.
Citation Information
Patent Citations
Collaborative management method and system for intelligent unified cooperative office
CN109961261A
Flight effective batch effective adjustment method and device
CN110322161A
Permission control method and device
CN110727930A
