Disclosure of Invention
In view of the above, it is desirable to provide an execution work order generation method, apparatus, computer device, and storage medium that can efficiently generate a work order.
A method of performing a work order, the method comprising:
acquiring a maintenance plan execution request, wherein the maintenance plan execution request carries a maintenance plan identifier;
responding to a maintenance plan execution request, acquiring maintenance plan information corresponding to a maintenance plan identifier, and acquiring a standard work order set associated with the maintenance plan identifier, wherein the standard work order set comprises at least one standard work order;
acquiring version information of each standard work order, wherein the version information comprises a version state identifier;
determining the latest effective version information according to the version state identification, and taking the standard work order corresponding to the latest effective version information as a target standard work order from the standard work order set;
and generating at least one target execution work order according to the maintenance plan information and the target standard work order.
In one embodiment, before obtaining the maintenance plan execution request, the method further includes:
acquiring a maintenance plan creating request, wherein the maintenance plan creating request carries maintenance plan information of a maintenance plan to be created, and the maintenance plan information comprises maintenance items; creating a target maintenance plan according to maintenance plan information of a maintenance plan to be created, and obtaining a maintenance plan identifier corresponding to the target maintenance plan; acquiring a candidate standard work order set, wherein the candidate standard work order set comprises a plurality of candidate standard work orders and maintenance items corresponding to the candidate standard work orders; matching the maintenance items corresponding to the target maintenance plan with the maintenance items corresponding to the candidate standard work orders, and determining the standard work order corresponding to the target maintenance plan; and establishing an incidence relation between the standard work order identification of the standard work order corresponding to the target maintenance plan and the maintenance plan identification of the target maintenance plan.
In one embodiment, determining the latest valid version information according to the version status identifier includes:
matching the version state identification of each standard work order with a reference version state identification, wherein the reference version state identification is used for identifying an effective version; and taking the version information corresponding to the successfully matched version state identification as the latest effective version information.
In one embodiment, generating at least one target execution work order based on the maintenance schedule information and the target standard work order comprises: determining the target quantity corresponding to the target execution work order and a plurality of execution time information conforming to the target quantity according to the maintenance duration and the maintenance period in the maintenance plan information; generating a plurality of initial execution work orders according with the target quantity according to the target standard work order, wherein each initial execution work order comprises an execution work order identifier; determining common execution information corresponding to the target execution work order according to other information in the maintenance plan information; combining each piece of execution time information with the public execution information respectively to obtain each piece of target execution information; and generating a target execution work order according to the target execution information and the initial execution work order.
In one embodiment, after generating at least one target execution work order according to the maintenance schedule information and the target standard work order, the method further comprises:
respectively extracting key information with the same attribute in the target standard work order and the target execution work order; comparing the extracted key information with the same attribute; and when the comparison results are consistent, storing the target execution work order.
In one embodiment, comparing the extracted key information of the same attribute includes: performing hash calculation on key information extracted from the target standard work order to obtain a first hash value; performing hash calculation on key information extracted from the target execution work order to obtain a second hash value; the first hash value and the second hash value are compared.
An execution work order generation apparatus, the apparatus comprising:
a maintenance plan execution request obtaining module, configured to obtain a maintenance plan execution request, where the maintenance plan execution request carries a maintenance plan identifier;
the maintenance plan execution request response module is used for responding to the maintenance plan execution request, acquiring maintenance plan information corresponding to the maintenance plan identifier and acquiring a standard work order set associated with the maintenance plan identifier, wherein the standard work order set comprises at least one standard work order;
the version information acquisition module is used for acquiring the version information of each standard work order, and the version information comprises a version state identifier;
the target standard work order determining module is used for determining latest effective version information according to the version state identification, and taking the standard work order corresponding to the latest effective version information as a target standard work order from the standard work order set;
and the target execution work order generation module is used for generating at least one target execution work order according to the maintenance plan information and the target standard work order.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a maintenance plan execution request, wherein the maintenance plan execution request carries a maintenance plan identifier;
responding to a maintenance plan execution request, acquiring maintenance plan information corresponding to a maintenance plan identifier, and acquiring a standard work order set associated with the maintenance plan identifier, wherein the standard work order set comprises at least one standard work order;
acquiring version information of each standard work order, wherein the version information comprises a version state identifier;
determining the latest effective version information according to the version state identification, and taking the standard work order corresponding to the latest effective version information as a target standard work order from the standard work order set;
and generating at least one target execution work order according to the maintenance plan information and the target standard work order.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a maintenance plan execution request, wherein the maintenance plan execution request carries a maintenance plan identifier;
responding to a maintenance plan execution request, acquiring maintenance plan information corresponding to a maintenance plan identifier, and acquiring a standard work order set associated with the maintenance plan identifier, wherein the standard work order set comprises at least one standard work order;
acquiring version information of each standard work order, wherein the version information comprises a version state identifier;
determining the latest effective version information according to the version state identification, and taking the standard work order corresponding to the latest effective version information as a target standard work order from the standard work order set;
and generating at least one target execution work order according to the maintenance plan information and the target standard work order.
According to the execution work order generation method, the execution work order generation device, the computer equipment and the storage medium, the maintenance plan execution request is obtained, and the maintenance plan execution request carries the maintenance plan identification; responding to a maintenance plan execution request, acquiring maintenance plan information corresponding to a maintenance plan identifier, and acquiring a standard work order set associated with the maintenance plan identifier, wherein the standard work order set comprises at least one standard work order; acquiring version information of each standard work order, wherein the version information comprises a version state identifier; determining the latest effective version information according to the version state identification, and taking the standard work order corresponding to the latest effective version information as a target standard work order from the standard work order set; and generating at least one target execution work order according to the maintenance plan information and the target standard work order. Therefore, the execution work order can be automatically generated according to the maintenance plan, the process of creating the work order is simplified, and the generation efficiency of the execution work order is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The execution work order generation method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may send a maintenance plan execution request to the server 104, where the maintenance plan execution request carries a maintenance plan identifier. After receiving the maintenance plan execution request, the server 104 responds to the maintenance plan execution request to obtain maintenance plan information corresponding to the maintenance plan identifier, and obtains a standard work order set associated with the maintenance plan identifier, where the standard work order set includes at least one standard work order. And the server acquires the version information of each standard work order, wherein the version information comprises a version state identifier. The server can determine the latest effective version information according to the version state identification, and takes the standard work order corresponding to the latest effective version information as the target standard work order from the standard work order set. And finally, the server generates at least one target execution work order according to the maintenance plan information and the target standard work order. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for executing a work order is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
s202, a maintenance plan execution request is obtained, and the maintenance plan execution request carries a maintenance plan identifier.
Wherein the maintenance plan execution request is for requesting execution of a corresponding maintenance plan. The maintenance plan identifier is an identifier for uniquely identifying the maintenance plan, and may specifically include a character string of at least one character of letters, numbers, and symbols. For example, the maintenance plan identification may be a maintenance plan number. The maintenance plan is a plan for checking and detecting nuclear power plant equipment or systems, which is prepared in advance for the purpose of preventing failures. Relevant test work is executed according to the maintenance plan, fault symptoms of the nuclear power plant equipment or the nuclear power plant system can be found, and corresponding measures are further taken to effectively prevent faults from occurring, so that the faults are kept in a specified functional state. The maintenance plan may be a daily plan, a weekly plan, a monthly plan, a yearly plan, etc.
Specifically, the terminal may query the maintenance plan created and stored in the server through a client or a web page corresponding to the server. And a control used for triggering the maintenance plan execution request is displayed in a display interface of the client or the webpage. When the trigger operation acting on the control is detected, the terminal can generate a maintenance plan execution request according to the maintenance plan identifier. The trigger operation may be a single-click operation, a double-click operation, a long-press operation, a voice operation, or the like. The terminal transmits a maintenance plan execution request to the server.
In one embodiment, the information related to the maintenance plan to be executed may be used as a query condition, and a query request may be generated according to the query condition and sent to the server. And the server locally searches all maintenance plans meeting the query conditions according to the query request and returns the query result to the terminal. The query result comprises information such as maintenance plan identification, maintenance plan introduction and the like. The terminal can display the query result in the page, and an operator can select a target maintenance plan to be executed according to needs, and further trigger to generate a corresponding maintenance plan execution request.
S204, responding to the maintenance plan execution request, obtaining maintenance plan information corresponding to the maintenance plan identifier, and obtaining a standard work order set associated with the maintenance plan identifier, wherein the standard work order set comprises at least one standard work order.
The maintenance schedule information refers to information related to a maintenance schedule, and includes information such as maintenance items, maintenance cycles, maintenance durations, maintenance areas, maintenance staff, and maintenance schedule priorities. The maintenance items are test information corresponding to the maintenance plan. For example, the maintenance item is a safety injection logic test performed with the RPA603KC (equipment identity). The maintenance period refers to a time interval in which the maintenance items are repeatedly performed. The maintenance duration includes a maintenance schedule start time and a maintenance schedule total time. The maintenance area refers to an execution area of the maintenance plan. The maintenance person refers to a person in charge of the maintenance plan. The maintenance plan priority refers to an execution priority level of the maintenance plan. The standard work order refers to a standard file of the periodic test of the nuclear power plant and is used for stipulating a standard flow and a standard of the periodic test of the nuclear power plant equipment. The standard work order includes at least one of test instructions, test procedures, acceptance criteria, additional forms, and accessories. The nuclear power plant involves a plurality of tests, and the test procedures and the rules of different tests are different, so that different tests correspond to different standard work orders.
Specifically, after receiving the maintenance plan execution request, the server responds to the maintenance plan execution request to obtain the maintenance plan information corresponding to the maintenance plan identifier and the standard work order set associated with the maintenance plan identifier.
In one embodiment, the set of standard work orders includes at least one standard work order. The work order numbers of the standard work orders in the standard work order set are consistent, but the version information of the standard work orders is different. It can be understood that, with the development of the test technology and the improvement of the test conditions, the standard work order needs to be updated, so that the same work order number can correspond to a plurality of versions of the standard work order.
In one embodiment, the maintenance plan execution request may carry a personnel identifier, and the server may perform maintenance plan execution authority verification according to the personnel identifier. The server responds to the maintenance plan execution request only after the maintenance plan execution authority passes the verification. And when the verification of the execution authority of the maintenance plan fails, the server sends a notification message for refusing to execute the execution request of the maintenance plan to the terminal. Specifically, the server may allocate a corresponding maintenance plan execution authority to a worker of the nuclear power plant in advance, and store a correspondence between the worker identifier and the maintenance plan execution authority. The maintenance plan execution authority comprises an execution authority, no execution authority, an execution authority for the maintenance plan of the preset maintenance area and no execution authority for the maintenance plan of the preset maintenance area. For example, when the server determines that the maintenance plan execution authority corresponding to the person identifier carried in the maintenance plan execution request is the execution authority, it indicates that the maintenance plan execution authority passes the verification. Or when the maintenance plan execution authority corresponding to the personnel identifier has execution authority for the maintenance plan of the preset maintenance area, and the maintenance area of the maintenance plan corresponding to the maintenance plan identifier carried in the maintenance plan execution request is the preset maintenance area, it indicates that the maintenance plan execution authority verification is passed. It will be appreciated that operators with different work areas are respectively responsible for maintenance planning execution for the respective areas.
And S206, acquiring the version information of each standard work order, wherein the version information comprises a version state identifier.
And S208, determining the latest effective version information according to the version state identifier, and taking the standard work order corresponding to the latest effective version information as a target standard work order from the standard work order set.
The version information comprises a version number and a version state identifier. The version number is an identification number of the version. The version status identifier is an identifier for uniquely identifying the version status, and may specifically include a character string of at least one character of letters, numbers and symbols. The version status includes at least one of under approval, expired, and validated.
Specifically, the server may obtain version information of each standard work order, and obtain the version status identifier from the version information. And when the version state identifier of the standard work order is in an effective state, the server determines that the standard work order is the target standard work order.
In one embodiment, when an operator modifies part of the content of the standard work order, the version of the standard work order needs to be upgraded so as to distinguish the standard work orders with the same work order number but different work order contents. Moreover, after the operator modifies the work order content of the standard work order, the related approvers are required to approve the modified content. The approver may be one or more, for example, the approver is at least one of group leader, master and manager. And the terminal sends a standard work order version updating request to the server, wherein the standard work order version updating request carries the modification content, the work order number, the current version number and the target version number. After the server receives the standard work order version updating request, the server can modify the version state identification of the standard work order corresponding to the target version number into the examination and approval, acquire the relevant examination and approval terminal of the standard work order corresponding to the work order number, and send the modified content of the standard work order to the relevant examination and approval terminal for examination and approval. And when the approval results of all the approval terminals corresponding to the standard work order are approved, the server modifies the version state identifier of the standard work order corresponding to the target version number into valid and modifies the version state identifier of the standard work order corresponding to the current version number into invalid.
In one embodiment, determining the latest valid version information according to the version status identifier includes: matching the version state identification of each standard work order with a reference version state identification, wherein the reference version state identification is used for identifying an effective version; and taking the version information corresponding to the successfully matched version state identification as the latest effective version information.
Specifically, the reference version status identifier is a preset version status identifier, and the reference version status identifier is used for identifying the validated version information. For example, the reference state flag is set to E (effective). And comparing each version state identifier with the reference version state identifier. And when the comparison result of the reference version state identifier and one of the version state identifiers is consistent, indicating that the version information corresponding to the version state identifier is the latest effective version information, and the standard work order corresponding to the latest effective version information is the target standard work order. For example, there are 4 versions of the standard work order a, and the version information is version 1+ I (invalid), version 2+ I, version 3+ E, and version 4+ T (test, under review), respectively. And determining the version 3 as the latest effective version according to the reference state identifier. In this way, from the plurality of version status identifiers, the latest valid version information can be quickly determined according to the reference status identifier.
And S210, generating at least one target execution work order according to the maintenance plan information and the target standard work order.
The execution work order is a field operation file of the periodic test of the nuclear power plant and is used for instructing field operators to carry out the field test according to a standard flow and a standard. The execution work order includes at least one of a test description, a test procedure, acceptance criteria, an attached form, and an attachment.
Specifically, according to the maintenance period and the maintenance duration in the maintenance schedule information, the server may determine the target number corresponding to the target execution work order. According to the maintenance schedule information, the server may determine execution information for each target execution work order. The execution information includes information such as execution start time, execution area, and test type. And then, the server generates initial execution work orders according with the target quantity according to the target standard work orders, and generates target execution work orders according with the target quantity according to the initial execution work orders and the corresponding execution information. Corresponding execution information exists in each target execution work order. The server can send the generated target execution work order to the execution terminal, so that an executive staff corresponding to the execution terminal can perform a field test according to the target execution work order.
In one embodiment, the same standard work order may generate a plurality of execution work orders, and the execution information of each execution work order is the same except for the difference in the information of the time type.
In one embodiment, the maintenance plan execution request may carry maintenance plan identifiers corresponding to a plurality of maintenance plans. The server can generate at least one target execution work order corresponding to each maintenance plan according to each maintenance plan identifier. For example, a nuclear power plant needs to execute multiple maintenance plans within a year, so all target execution work orders that the nuclear power plant needs to execute within a year can be generated at once.
In one embodiment, after the target execution work order is generated, the target execution work order may be validated. The validity verification means verifying whether the information of the target execution work order is complete and accurate. The target execution work order passing the validity verification is a complete and correct execution work order. The server may store the target execution work order that passes the validation verification locally.
In one embodiment, the server may monitor the execution start time of the target execution work order, and send the target execution work order to the corresponding execution terminal of the executor before the execution start time. When the time interval between the execution starting time of the target execution work order and the current time is smaller than a preset threshold value, the server acquires a target duty worker corresponding to the execution starting time, and sends the target execution work order to an execution terminal corresponding to the target duty worker so as to prompt the target duty worker to prepare relevant preparation work for executing the work order in advance.
According to the execution work order generation method, a maintenance plan execution request is obtained, and the maintenance plan execution request carries a maintenance plan identifier; responding to a maintenance plan execution request, acquiring maintenance plan information corresponding to a maintenance plan identifier, and acquiring a standard work order set associated with the maintenance plan identifier, wherein the standard work order set comprises at least one standard work order; acquiring version information of each standard work order, wherein the version information comprises a version state identifier; determining the latest effective version information according to the version state identification, and taking the standard work order corresponding to the latest effective version information as a target standard work order from the standard work order set; and generating at least one target execution work order according to the maintenance plan information and the target standard work order. Therefore, the execution work order can be automatically generated according to the maintenance plan, the process of creating the execution work order is simplified, and the generation efficiency of the execution work order is improved.
In one embodiment, as shown in fig. 3, before the obtaining of the maintenance plan execution request, the execution work order generation method further includes:
s302, a maintenance plan creating request is obtained, the maintenance plan creating request carries maintenance plan information of a maintenance plan to be created, and the maintenance plan information comprises maintenance items.
Specifically, an information input box and a control used for triggering a maintenance plan creation request are displayed in a display interface of a client side or a webpage of the terminal. The operator may enter the maintenance plan information in which the maintenance plan is to be created in the maintenance plan information input box. When the trigger operation acting on the control is detected, the terminal can generate a maintenance plan creation request according to the entered maintenance plan information and send the maintenance plan creation request to the server.
S304, creating a target maintenance plan according to the maintenance plan information of the maintenance plan to be created, and obtaining a maintenance plan identifier corresponding to the target maintenance plan.
Specifically, the server creates a target maintenance plan according to maintenance plan information carried by the maintenance plan creation request, and allocates a maintenance plan identifier to the created target maintenance plan. The maintenance plan identifier may be a maintenance plan number, and a naming rule of the maintenance plan number may be customized as needed, for example, the maintenance plan number may be a creation date + a serial number of the maintenance plan.
And S306, acquiring a candidate standard work order set, wherein the candidate standard work order set comprises a plurality of candidate standard work orders and maintenance items corresponding to the candidate standard work orders.
And S308, matching the maintenance items corresponding to the target maintenance plan with the maintenance items corresponding to the candidate standard work orders, and determining the standard work orders corresponding to the target maintenance plan.
S310, establishing an association relation between the standard work order identification of the standard work order corresponding to the target maintenance plan and the maintenance plan identification of the target maintenance plan.
The candidate standard work order set is composed of standard work orders stored by the server and used for determining the standard work orders corresponding to the newly created maintenance plan. Corresponding maintenance items exist in each candidate standard work order.
Specifically, the maintenance items corresponding to the target maintenance plan and the maintenance items corresponding to the candidate standard work orders may be matched. And when the maintenance item corresponding to the target maintenance plan is consistent with the maintenance item corresponding to one of the candidate standard work orders, indicating that the matching is successful. And taking the successfully matched candidate standard work order as a standard work order corresponding to the target maintenance plan. Furthermore, the target maintenance plan and the standard work order corresponding to the target maintenance plan are associated, and an association relationship may be established between the maintenance plan identifier and the standard work order identifier.
Fig. 3A is a schematic diagram of an interface for establishing a maintenance schedule of a terminal in an embodiment. The set-up maintenance plan interface includes a maintenance plan head-up input box, a maintenance plan information button bar, and a save button bar. The maintenance plan information button column includes a "maintenance plan period" button, a "maintenance plan parameters" button, and a "maintenance plan additional data" button. The setup maintenance planning interface may present a "maintenance planning period" tab when a triggering operation is detected that acts on the "maintenance planning period" button. The operator may enter relevant maintenance schedule cycle information on a "maintenance schedule cycle" tab. The setup maintenance planning interface may present a "maintenance planning parameters" tab when a triggering operation is detected that acts on the "maintenance planning parameters" button. The operator can input the related maintenance schedule duration and maintenance and protection starting time on a 'maintenance schedule parameter' tab. The setup maintenance plan interface may present a "maintenance plan additional data" tab when a triggering operation is detected that acts on the "maintenance plan additional data" button. The operator can input relevant maintenance item information, such as information of a responsible plant (maintenance area) of the maintenance plan, a maintenance object (equipment) of the maintenance plan, a type of the maintenance plan, priority of the maintenance plan, and the like, on the "maintenance plan additional data" tab. When a trigger operation acting on the 'save' button is detected, all information is combined into maintenance plan information, and the terminal generates a maintenance plan creation request according to the maintenance plan information and sends the maintenance plan creation request to the server.
In this embodiment, when the maintenance plan is created, the maintenance plan identifier of the newly created maintenance plan is associated with the corresponding standard work order identifier, so that the associated standard work order identifier is quickly obtained according to the maintenance plan identifier when the maintenance plan is subsequently executed, and the execution work order is generated according to the standard work order corresponding to the standard work order identifier.
In one embodiment, as shown in fig. 4, the maintenance schedule information includes a maintenance period and a maintenance duration, and the step S210 of generating at least one target execution work order according to the maintenance schedule information and the target standard work order includes:
s402, determining the target quantity corresponding to the target execution work order and a plurality of execution time information conforming to the target quantity according to the maintenance duration and the maintenance period.
The maintenance period refers to a time interval at which the maintenance items are repeatedly executed. The maintenance duration includes a maintenance schedule start time and a maintenance schedule total time.
Specifically, according to the ratio of the total duration of the maintenance plan to the maintenance period in the maintenance duration, the number of times of repeatedly executing the maintenance items from the start time of the maintenance plan to the end time of the maintenance plan, that is, the target number corresponding to the target execution work order, may be determined. The starting time of each execution of the maintenance project, namely the execution time information corresponding to the target execution work order can be determined according to the maintenance plan starting time and the maintenance period. For example, if the total duration of the maintenance plan is 6 weeks, the maintenance period is 3 weeks, and the maintenance start time is 1/2020, it may be determined that the number of times of repeating the maintenance item is 2, that is, the target number corresponding to the target execution work order is 2, where the execution start time of one target execution work order is 1/2020, and the execution start time of the other target execution work order is 1/8/2020.
S404, generating a plurality of initial execution work orders according with the target quantity according to the target standard work orders, wherein each initial execution work order comprises an execution work order identifier.
Specifically, the server generates a target number of initial execution work orders according to the target standard work order, and allocates an execution work order identifier to each initial execution work order. The execution work order identifier may be an execution work order number, and the naming rule of the execution work order number may be customized as needed, for example, the execution work order number may be a maintenance plan number, an execution work order generation date, a serial number, or a standard work order number, an execution work order generation date, and a serial number.
And S406, determining common execution information corresponding to the target execution work order according to other information in the maintenance plan information.
Specifically, the server may determine common execution information corresponding to each target execution work order according to other information besides the maintenance period and the maintenance duration information in the maintenance schedule information. For example, if the maintenance schedule information includes a maintenance area a, the execution areas corresponding to the target execution work orders are the maintenance area a. If the maintenance schedule information includes the maintenance items for performing the safety injection logic test by using the RPA603KC, the execution items corresponding to the target execution work orders are for performing the safety injection logic test by using the RPA603 KC.
And S408, combining each piece of execution time information with the public execution information to obtain each piece of target execution information.
And S410, generating a target execution work order according to the target execution information and the initial execution work order.
Specifically, each execution time information is combined with the common execution information to obtain a plurality of target execution information. And combining each target execution information with a plurality of initial execution work orders according with the target quantity respectively to obtain a plurality of target execution work orders according with the target quantity. It can be understood that if the number of targets is 6, one target standard work order may generate 6 target execution work orders, each target execution work order includes respective target execution information, and each target execution work order includes a unique execution work order number.
In the above embodiment, the target execution information of the multiple target execution work orders to be generated may be determined according to the maintenance plan information, and the multiple target execution work orders may be generated according to the target standard work order and the multiple target execution information. Therefore, a plurality of execution work orders can be generated according to one standard work order, and the generation efficiency of the execution work orders is improved.
In one embodiment, as shown in fig. 5, after step S210, executing the work order generation method further includes:
and S502, respectively extracting key information with the same attribute in the target standard work order and the target execution work order.
S504, the extracted key information with the same attribute is compared.
And S506, when the comparison results are consistent, storing the target execution work order.
Specifically, the target execution work order generated according to the target standard work order includes all information of the target standard work order. Therefore, when the validity of the target standard work order is verified, the key information with the same attribute in the target standard work order and the target execution work order can be respectively extracted, the key information with the same attribute in the target standard work order and the target execution work order is compared, and whether the information of the target execution work order is complete and correct is judged according to the comparison result. And when the comparison result is consistent, determining that the target standard work order passes validity verification, generating the target standard work order correctly, and storing the target standard work order locally by the server.
In one embodiment, when there are a plurality of key information of the same attribute in the target standard work order and the target execution work order, the key information of each attribute may be compared respectively. And when the comparison results corresponding to all the attributes are consistent, the target execution work order is determined to be generated correctly. For example, the test description, test procedure, acceptance criteria, attached form, and attachment in the target standard work order and the target execution work order may be extracted, respectively. And when the test instruction of the target standard work order and the test instruction of the target execution work order, the test process of the target standard work order and the test process of the target execution work order, the acceptance criterion of the target standard work order and the acceptance criterion of the target execution work order, the attached table of the target standard work order and the attached table of the target execution work order, and the accessory of the target standard work order and the accessory of the target execution work order are the same, the target execution work order is determined to be generated correctly.
In one embodiment, different databases may be provided for different execution regions. And storing the generated target execution work order into a database of a corresponding execution area, and realizing the execution work order isolated storage and isolated query of different test areas.
In one embodiment, if a target standard work order generates a plurality of target execution work orders, one target execution work order may be randomly selected from the plurality of target execution work orders to compare with the target standard work order for the key information, and when the comparison result is consistent, it is determined that the plurality of target execution work orders generated by the target standard work order are all complete and correct.
In the above embodiment, after the target execution work order is generated, the key information in the target execution work order is compared with the key information in the target standard work order, and when the comparison result is consistent, the target execution work order is determined to be correctly generated, and the generated correct target execution work order is stored locally. Therefore, the data accuracy of the target execution work order stored by the server is guaranteed.
In one embodiment, the step S504, namely comparing the extracted key information of the same attribute, includes: performing hash calculation on key information extracted from the target standard work order to obtain a first hash value, and performing hash calculation on key information extracted from the target execution work order to obtain a second hash value; the first hash value and the second hash value are compared.
Specifically, in order to improve the efficiency of comparing the key information, hash values of the key information extracted from the target standard work order and the target execution work order may be calculated respectively, so as to obtain a first hash value corresponding to the target standard work order and a second hash value corresponding to the target execution work order. And converting the comparison of the key information into the comparison of the hash values. When a plurality of key information with the same attribute exists in the target standard work order and the target execution work order, whether the hash values corresponding to the target standard work order and the target execution work order under each attribute are the same or not can be compared one by one, and when the hash value comparison results corresponding to all the attributes are consistent, the target execution work order is determined to be generated correctly. The Hash Algorithm used for the Hash calculation may be MD4(Message-Digest Algorithm), MD5(Message-Digest Algorithm), SHA-1(Secure Hash Algorithm-1), SHA-2(Secure Hash Algorithm-2), or the like, and the embodiments of the present application are not limited herein.
In a specific embodiment, as illustrated in fig. 6, the method for generating the work order includes:
s602, a maintenance plan creating request is obtained, the maintenance plan creating request carries maintenance plan information of a maintenance plan to be created, and the maintenance plan information comprises maintenance items.
S604, creating a target maintenance plan according to the maintenance plan information of the maintenance plan to be created, and obtaining a maintenance plan identifier corresponding to the target maintenance plan.
And S606, acquiring a candidate standard work order set, wherein the candidate standard work order set comprises a plurality of candidate standard work orders and maintenance items corresponding to the candidate standard work orders.
And S608, matching the maintenance items corresponding to the target maintenance plan with the maintenance items corresponding to the candidate standard work orders, and determining the standard work orders corresponding to the target maintenance plan.
S610, establishing an association relation between the standard work order identification of the standard work order corresponding to the target maintenance plan and the maintenance plan identification of the target maintenance plan.
And S612, acquiring a maintenance plan execution request, wherein the maintenance plan execution request carries a maintenance plan identifier corresponding to the target maintenance plan.
S614, responding to the maintenance plan execution request, obtaining maintenance plan information corresponding to the maintenance plan identifier, and obtaining a standard work order set associated with the maintenance plan identifier, wherein the standard work order set comprises at least one standard work order.
S616, obtaining the version information of each standard work order, wherein the version information comprises a version state identifier.
And S618, matching the version state identifier of each standard work order with a reference version state identifier, wherein the reference version state identifier is used for identifying an effective version.
S620, taking the version information corresponding to the successfully matched version state identification as the latest effective version information, and taking the standard work order corresponding to the latest effective version information as the target standard work order from the standard work order set.
And S622, determining the target quantity corresponding to the target execution work order and a plurality of execution time information conforming to the target quantity according to the maintenance duration and the maintenance period in the maintenance plan information.
And S624, generating a plurality of initial execution work orders according with the target quantity according to the target standard work orders, wherein each initial execution work order comprises an execution work order identifier.
And S626, determining the common execution information corresponding to the target execution work order according to other information in the maintenance plan information.
And S628, combining each piece of execution time information with the public execution information to obtain each piece of target execution information.
And S630, generating a target execution work order according to the target execution information and the initial execution work order.
And S632, respectively extracting the key information with the same attribute in the target standard work order and the target execution work order.
And S634, performing hash calculation on the key information extracted from the target standard work order to obtain a first hash, and performing hash calculation on the key information extracted from the target execution work order to obtain a second hash value.
And S636, comparing the first hash value with the second hash value.
And S638, when the comparison results are consistent, storing the target execution work order.
It should be understood that the steps in the above-described flowcharts are shown in order as indicated by the arrows, but the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
In one embodiment, as shown in fig. 7, there is provided an execution work order generation apparatus including: a maintenance plan execution request obtaining module 702, a maintenance plan execution request responding module 704, a version information obtaining module 706, a target standard work order determining module 708, and a target execution work order generating module 710, wherein:
a maintenance plan execution request obtaining module 702, configured to obtain a maintenance plan execution request, where the maintenance plan execution request carries a maintenance plan identifier;
a maintenance plan execution request responding module 704, configured to respond to the maintenance plan execution request, obtain maintenance plan information corresponding to the maintenance plan identifier, and obtain a standard work order set associated with the maintenance plan identifier, where the standard work order set includes at least one standard work order;
a version information obtaining module 706, configured to obtain version information of each standard work order, where the version information includes a version status identifier;
a target standard work order determining module 708, configured to determine latest effective version information according to the version status identifier, and use a standard work order corresponding to the latest effective version information as a target standard work order from the standard work order set;
and the target execution work order generation module 710 is configured to generate at least one target execution work order according to the maintenance plan information and the target standard work order.
In one embodiment, the execution work order generation apparatus further includes:
the maintenance plan creating module is used for acquiring a maintenance plan creating request, wherein the maintenance plan creating request carries maintenance plan information of a maintenance plan to be created, and the maintenance plan information comprises maintenance items; creating a target maintenance plan according to maintenance plan information of the maintenance plan to be created to obtain a maintenance plan identifier corresponding to the target maintenance plan; acquiring a candidate standard work order set, wherein the candidate standard work order set comprises a plurality of candidate standard work orders and maintenance items corresponding to the candidate standard work orders; matching the maintenance items corresponding to the target maintenance plan with the maintenance items corresponding to the candidate standard work orders to determine the standard work order corresponding to the target maintenance plan; and establishing an incidence relation between the standard work order identification of the standard work order corresponding to the target maintenance plan and the maintenance plan identification of the target maintenance plan.
In one embodiment, the target standard work order determination module is further configured to match the version status identifier of each standard work order with a reference version status identifier, where the reference version status identifier is used to identify an effective version; and taking the version information corresponding to the successfully matched version state identification as the latest effective version information.
In one embodiment, the target execution work order generation module is further configured to determine, according to the maintenance duration and the maintenance period in the maintenance plan information, a target number corresponding to the target execution work order and a plurality of execution time information conforming to the target number; generating a plurality of initial execution work orders according with the target quantity according to the target standard work order, wherein each initial execution work order comprises an execution work order identifier; determining common execution information corresponding to the target execution work order according to other information in the maintenance plan information; combining each piece of execution time information with the public execution information respectively to obtain each piece of target execution information; and generating a target execution work order according to the target execution information and the initial execution work order.
In one embodiment, the execution work order generation apparatus further includes:
the target execution work order storage module is used for respectively extracting key information with the same attribute in the target standard work order and the target execution work order; comparing the extracted key information with the same attribute; and when the comparison results are consistent, storing the target execution work order.
In one embodiment, the target execution work order storage module is further configured to perform hash calculation on key information extracted from the target standard work order to obtain a first hash value; performing hash calculation on key information extracted from the target execution work order to obtain a second hash value; the first hash value and the second hash value are compared.
For specific limitations of the execution work order generation apparatus, reference may be made to the above limitations of the execution work order generation method, which are not described herein again. The modules in the execution work order generation device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing relevant data required for generating the execution work order and the generated execution work order. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an execution work order generation method.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of performing the work order generation method described above. The steps of executing the work order generation method herein may be the steps of executing the work order generation method of the various embodiments described above.
In one embodiment, a computer readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of performing the work order generation method described above. The steps of executing the work order generation method herein may be the steps of executing the work order generation method of the various embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.