Scheduling plan adjustment method and device, equipment and medium

By obtaining and analyzing scheduling data and dynamically adjusting shift sequence, the existing scheduling methods are solved, and more reasonable and efficient scheduling plan adjustments are achieved.

CN119090196APending Publication Date: 2024-12-06TONGFANG SMART ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411115575.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing scheduling methods are inefficient and lack fairness and rationality, which leads to the number of times being scheduled to be scheduled to be performed by the person who is scheduled to be scheduled to be scheduled to be too many or too few times within a certain period of time, reducing the satisfaction of the scheduling personnel.

Method used

By obtaining the waiting shift objects in the scheduling configuration interface, selecting the current shift sequence, and obtaining the number of executed times of each preset shift from the attendance data source, determining the priority adjustment reference value, and adjusting the shift if the threshold is exceeded, generating a scheduling 班调整消息,响应确认反馈进行排班计划调整。

Benefits of technology

The scheduling adjustment process is simplified, the scheduling efficiency is improved, the problem of unbalanced shifts caused by a fixed shift sequence is avoided, the rationality and fairness of shift arrangements are improved, and the satisfaction of the scheduling personnel is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119090196A_ABST
    Figure CN119090196A_ABST
Patent Text Reader

Abstract

The invention discloses a scheduling plan adjustment method and device, equipment and a medium. The method comprises the following steps: acquiring a to-be-scheduled object input in a scheduling configuration interface, selecting a current shift sequence for the to-be-scheduled object from a preset shift mechanism configured by a scheduling management service system, and acquiring executed times of each preset shift in the current shift sequence from an attendance data source; determining a priority adjustment reference value of each preset shift according to the executed frequency and the initial sequence number of each preset shift, determining a target end shift based on the priority adjustment reference value, and generating a shift arrangement adjustment message for the target end shift for display; and in response to confirmation feedback of the target ending shift, determining a target shift sequence according to an execution sequence between the target ending shift and each preset shift, and adjusting a shift arrangement plan of the to-be-scheduled object. According to the technical scheme, the scheduling adjustment process can be simplified and the scheduling adjustment efficiency can be improved while the scheduling fairness and rationality are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent data analysis and processing, and in particular to a shift scheduling adjustment method, device, equipment and medium. Background Art

[0002] Scheduling is a daily management task for many companies. A fair and reasonable scheduling method can not only motivate employees, but also improve work efficiency. For example, in the field of rail transit, in order to improve the efficiency of scheduling for positions such as station services and operation and maintenance, the preparation of scheduling plans is one of the key issues in the organization of corresponding rail transit transportation. The efficiency and effectiveness of its preparation have a significant impact on the quality of transportation organization and operating costs.

[0003] Among the existing scheduling methods, paper scheduling or simple template scheduling is usually adopted. The scheduling process is relatively cumbersome and inefficient. After the corresponding scheduling plan is generated, the scheduling plan is fixed before the preset scheduling end time. This makes the shift order of each object to be scheduled fixed when performing a specific shift. As a result, the corresponding object to be scheduled may perform a certain shift too many or too few times within a certain period of time, which lacks certain fairness and rationality, thereby reducing the satisfaction of the scheduled personnel. Summary of the invention

[0004] The present invention provides a shift scheduling adjustment method, device, equipment and medium to ensure the fairness and rationality of the shift scheduling while simplifying the shift scheduling adjustment process and improving the shift scheduling adjustment efficiency.

[0005] According to one aspect of the present invention, a method for adjusting a shift schedule is provided, the method comprising:

[0006] Obtain the object to be scheduled input in the shift configuration interface, select the current shift sequence for the object to be scheduled from the preset shift mechanism configured in the shift management business system, and obtain the number of times each preset shift in the current shift sequence has been executed from the attendance data source; wherein the preset shift mechanism includes the execution order of each preset shift, and different shift sequences correspond to different starting shifts;

[0007] Determining a priority adjustment reference value for each of the preset shifts according to the number of times each of the preset shifts has been executed and the initial sequence number;

[0008] If there is any preset shift whose priority adjustment reference value is greater than the preset priority adjustment threshold, the preset shift is used as the target end shift, and a shift adjustment message is generated for the target end shift, and the shift adjustment message is displayed in the shift configuration interface;

[0009] In response to the confirmation feedback of the target end shift, the target shift sequence is determined according to the execution order between the target end shift and the preset shifts in the preset shift mechanism, and the shift schedule of the object to be scheduled is adjusted based on the target shift sequence and the planned shift end time.

[0010] According to another aspect of the present invention, a shift schedule adjustment device is provided, the device comprising:

[0011] The execution times acquisition module is used to obtain the object to be scheduled input in the shift configuration interface, select the current shift sequence for the object to be scheduled from the preset shift mechanism configured in the shift management business system, and obtain the execution times of each preset shift in the current shift sequence from the attendance data source; wherein the preset shift mechanism includes the execution order of each preset shift, and different shift sequences correspond to different starting shifts;

[0012] A priority adjustment reference value determination module, used to determine the priority adjustment reference value of each preset shift according to the number of times each preset shift has been executed and the initial sequence number;

[0013] A target end shift determination module, configured to, if any preset shift has a priority adjustment reference value greater than a preset priority adjustment threshold, use the preset shift as the target end shift, generate a shift adjustment message for the target end shift, and display the shift adjustment message in the shift configuration interface;

[0014] The shift plan adjustment module is used to respond to the confirmation feedback of the target end shift, determine the target shift sequence according to the execution order between the target end shift and the preset shifts in the preset shift mechanism, and adjust the shift plan of the object to be scheduled based on the target shift sequence and the planned shift end time.

[0015] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0016] at least one processor; and

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the shift schedule adjustment method described in any embodiment of the present invention.

[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the shift schedule adjustment method described in any embodiment of the present invention when executed.

[0020] According to another aspect of the present invention, a computer program product is provided, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the method for adjusting a shift schedule as described in any embodiment of the present invention is implemented.

[0021] The technical solution of the embodiment of the present invention, by obtaining the object to be scheduled input in the scheduling configuration interface, selecting the current shift sequence for the object to be scheduled from the preset shift mechanism configured by the scheduling management business system, and obtaining the historical execution times of each preset shift in the current shift sequence from the attendance data source, can eliminate the need for manual extraction and classification of relevant scheduling information of each object to be scheduled, thereby helping to simplify the process of adjusting the corresponding scheduling plan and improving the overall efficiency of the corresponding scheduling adjustment process. In addition, it determines the corresponding priority adjustment reference value through the corresponding number of executions and the number of each preset shift itself in the current shift sequence. Based on the priority adjustment reference value, it can determine in real time whether the shift sequence corresponding to the corresponding shift needs to be adjusted, and promptly feed back the determined corresponding target end shift to the scheduling management personnel in the form of a scheduling adjustment message, thereby avoiding the situation where the shift sequence of each shift is not adjusted in time manually, which helps to further simplify the process of adjusting the corresponding shift schedule and improve the efficiency of adjusting the corresponding shift schedule. At the same time, it obtains a new target shift sequence by adjusting the shift sequence corresponding to the corresponding shift, realizes timely dynamic adjustment of the corresponding shift schedule, and can effectively avoid the situation where the corresponding object to be scheduled always executes a fixed shift sequence, resulting in too many or too few executions of a certain shift, resulting in excessive or too light workload, which helps to improve the rationality and fairness of the shift arrangement for each object to be scheduled and improve the satisfaction of the scheduled personnel.

[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 The present invention is a flowchart of a method for adjusting a shift schedule provided in accordance with a first embodiment of the present invention.

[0025] Figure 2 4 is a flowchart of another shift scheduling adjustment method provided according to the second embodiment of the present invention.

[0026] Figure 3 4 is a flowchart of another shift scheduling adjustment method provided according to Embodiment 3 of the present invention.

[0027] Figure 4 It is a structural schematic diagram of a shift scheduling adjustment device provided according to Embodiment 4 of the present invention.

[0028] Figure 5 It is a structural schematic diagram of an electronic device for implementing the shift schedule adjustment method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Figure 1 A method for adjusting a shift schedule is provided in an embodiment of the present invention. This embodiment is applicable to the case where the shift order of the scheduled object is adjusted for each preset shift. The method can be executed by a shift schedule adjustment device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 Said method comprises:

[0032] S110, obtaining the object to be scheduled input in the shift configuration interface, selecting the current shift sequence for the object to be scheduled from the preset shift mechanism configured in the shift scheduling business system, and obtaining the number of times each preset shift in the current shift sequence has been executed from the attendance data source; wherein the preset shift mechanism includes the execution order of each preset shift, and different shift sequences correspond to different starting shifts.

[0033] Among them, the organization where the object to be scheduled is located can be divided according to a multi-level structure, and the number of levels supported can be set according to actual needs. The organizational structure can be composed of at least one department, each department is composed of at least one team, and members in the same team can execute the same scheduling rules. The team can be the smallest unit for the above multi-level structure division. Different teams can be divided based on different functions. For example, in a subway operating organization, it can include functions such as dispatching, operation and maintenance, and passenger transportation. The specific settings of the functions can be set according to the needs of the organization. An individual can be the smallest unit for scheduling, and the scheduling rules for special positions or individuals can be set separately. The scheduling rules for special positions or individuals do not need to follow the same scheduling rules for the team or function. The scheduling rules can be the shift mechanism that needs to be executed at present, and the shift mechanism can include the shifts that need to be executed and the execution order between the shifts. Each shift can include day shift, night shift and rest, etc. The execution order can be day shift before night shift, night shift before rest, etc. If the team increases or decreases personnel, the scheduling rules of the team can remain unchanged, and the corresponding increase in personnel does not need to adjust the scheduling separately, and the same scheduling rules as the team can be directly implemented. Objects to be scheduled may include teams, individuals, and preset personnel groups. Preset personnel groups may be multiple personnel to be scheduled that are pre-set to execute the same scheduling rules, and personnel to be scheduled may be personnel who need to be scheduled. Personnel may include at least one of operating personnel, patrol personnel, and management personnel. The attendance data source may be data information in identity verification equipment and / or access control equipment;

[0034] Specifically, different objects to be scheduled can be set with corresponding shift sequences in the corresponding shift mechanism. The shift sequence can be a shift combination formed by arranging the shifts based on the execution order between the shifts after selecting one of the shifts included in the corresponding shift mechanism as the starting shift. Among them, the starting shift can be the shift at the starting position in the shift sequence, and the selection of the starting shift can be set according to actual needs. In the set scheduling cycle, the corresponding object to be scheduled can cyclically execute the shift sequence. The number of times each preset shift has been executed can be the number of times the object to be scheduled has executed each preset shift before the current moment of the current scheduling cycle. The number of times executed can be obtained by querying the attendance data of the corresponding object to be scheduled. The scheduling cycle can be the time range for scheduling, and the time range can be set according to human needs. For example, the time range can span days, months or years.

[0035] S120: Determine a priority adjustment reference value of each preset shift according to the number of times each preset shift has been executed and the initial sequence number.

[0036] Among them, the initial sequence number can be the position number in the shift sequence corresponding to each preset shift at the beginning of the current scheduling cycle. The shift sequence corresponding to the beginning of the current scheduling cycle can be the current shift sequence. The earlier the position of the preset shift in the current shift sequence, the smaller the corresponding initial sequence number. For example, the initial sequence number of the starting shift can be 1, and the sequence number corresponding to the first shift after the starting shift can be 2, and so on. The priority adjustment reference value can be a reference value for judging whether it is necessary to adjust the priority of the current shift in the current shift sequence. The priority adjustment reference value can be used to characterize the degree to which the priority of the preset shift needs to be adjusted. For example, the larger the priority adjustment reference value, the more it indicates that the priority of the preset shift needs to be adjusted. Different priorities correspond to different position numbers, and the position number corresponding to the current shift can be reset according to the adjustment of the priority. For example, if the position number is 1, the corresponding priority may be the highest; if the position number is 2, the corresponding priority may be medium; if the position number is 3, the corresponding priority may be lower; and so on. The priority of the current shift before the priority adjustment is the highest, and the priority after the adjustment is lower. Then the position number corresponding to the current shift needs to be reset from 1 to 3.

[0037] Specifically, a mapping relationship database between different executed times, different initial sequence numbers and corresponding priority adjustment reference values ​​may be pre-established. Accordingly, when the executed times and initial sequence numbers of a preset shift are obtained, the executed times and initial sequence numbers may be matched by traversing the mapping relationship database, and the priority adjustment reference values ​​of the matched corresponding executed times and initial sequence numbers in the corresponding mapping relationship may be used as the priority adjustment reference values ​​of the preset shift.

[0038] S130. If there is any preset shift whose priority adjustment reference value is greater than the preset priority adjustment threshold, the preset shift is used as the target end shift, and a shift adjustment message is generated for the target end shift, and the shift adjustment message is displayed in the shift configuration interface.

[0039] The preset priority adjustment threshold may be a preset maximum priority adjustment reference value that does not require priority adjustment. The target end shift may be the last shift in the new shift sequence formed after the priority of the corresponding preset shift is adjusted. The new shift sequence may be the target shift sequence. The shift adjustment information may be notification information for prompting the shift management personnel to adjust the current shift schedule. The shift adjustment information may include information such as the target end shift.

[0040] Specifically, if there is no preset shift whose priority adjustment reference value is greater than the preset priority adjustment threshold, the current shift order can be kept unchanged. If there are at least two preset shifts whose priority adjustment reference values ​​are both greater than the preset priority adjustment threshold, the preset shift corresponding to the largest priority adjustment reference value can be used as the corresponding target end shift.

[0041] S140: In response to the confirmation feedback of the target end shift, determine the target shift sequence according to the target end shift and the execution order of each preset shift in the preset shift mechanism, and adjust the shift schedule of the object to be scheduled based on the target shift sequence and the planned shift end time.

[0042] The shift schedule may be a shift sequence corresponding to each shift that the object to be scheduled cyclically executes in a preset shift cycle. The confirmation feedback may be feedback information generated for the confirmation operation of the scheduling manager on the target end shift in the shift adjustment message.

[0043] Specifically, after determining the target end shift, the previous preset shift of the target end shift can be determined based on the execution order between the target end shift and other preset shifts, and based on the mechanism for determining the previous preset shift, the preset shifts before the previous preset shift and the positions of the preset shifts in the new shift sequence can be determined until the target start shift corresponding to the target end shift is determined. The target start shift can be the first shift in the new shift sequence formed after adjusting the priority of the corresponding preset shift. Accordingly, the preset shifts can be rearranged based on the positions of the preset shifts in the new shift sequence to form the corresponding target shift sequence. Further, when the target shift sequence and the planned shift end time are determined, the shift schedule of the preset shifts in the target shift sequence that are cyclically executed from the current moment until the planned shift end time is used as a new shift schedule, and the original shift schedule of the object to be scheduled is replaced based on the new shift schedule.

[0044] The technical solution of the embodiment of the present invention, by obtaining the object to be scheduled input in the scheduling configuration interface, selecting the current shift sequence for the object to be scheduled from the preset shift mechanism configured by the scheduling management business system, and obtaining the historical execution times of each preset shift in the current shift sequence from the attendance data source, can eliminate the need for manual extraction of relevant scheduling information of each object to be scheduled, thereby helping to simplify the process of adjusting the corresponding scheduling plan and improving the overall efficiency of the corresponding scheduling adjustment process. In addition, it determines the corresponding priority adjustment reference value through the corresponding number of executions and the number of each preset shift itself in the current shift sequence. Based on the priority adjustment reference value, it can determine in real time whether the shift sequence corresponding to the corresponding shift needs to be adjusted, and promptly feed back the determined corresponding target end shift to the scheduling management personnel in the form of a scheduling adjustment message, thereby avoiding the situation where the shift sequence of each shift is not adjusted in time manually, which helps to further simplify the process of adjusting the corresponding shift schedule and improve the efficiency of adjusting the corresponding shift schedule. At the same time, it obtains a new target shift sequence by adjusting the shift sequence corresponding to the corresponding shift, realizes timely dynamic adjustment of the corresponding shift schedule, and can effectively avoid the situation where the corresponding object to be scheduled always executes a fixed shift sequence, resulting in too many or too few executions of a certain shift, resulting in excessive or too light workload, which helps to improve the rationality and fairness of the shift arrangement for each object to be scheduled and improve the satisfaction of the scheduled personnel.

[0045] Figure 2 This is a flow chart of a method for adjusting a shift schedule provided in Embodiment 2 of the present invention. This embodiment is further optimized based on the above embodiments. It should be noted that for the parts not described in detail in this embodiment, please refer to the relevant descriptions in other embodiments.

[0046] Further, “determine the priority adjustment reference value of each preset shift according to the number of times each preset shift has been executed and the initial sequence number” is refined into “determine the initial priority weight value corresponding to each preset shift according to the initial sequence number based on the association between the candidate sequence number and the candidate priority weight value; wherein the size of the candidate sequence number is negatively correlated with the candidate priority weight value; determine the priority adjustment coefficient corresponding to each preset shift according to the number of times each shift has been executed; and use the product of the initial priority weight value corresponding to each preset shift and the priority adjustment coefficient as the priority adjustment reference value of each preset shift” to improve the determination mechanism of the corresponding priority adjustment reference value.

[0047] refer to Figure 2 , the method specifically comprises the following steps:

[0048] S210, obtaining the object to be scheduled input in the shift configuration interface, selecting the current shift sequence for the object to be scheduled from the preset shift mechanism configured in the shift scheduling business system, and obtaining the number of times each preset shift in the current shift sequence has been executed from the attendance data source; wherein the preset shift mechanism includes the execution order of each preset shift, and different shift sequences correspond to different starting shifts.

[0049] S220. Based on the correlation between the candidate sequence number and the candidate priority weight value, determine the initial priority weight value corresponding to each preset shift according to the initial sequence number; wherein the size of the candidate sequence number is negatively correlated with the candidate priority weight value.

[0050] Among them, the candidate sequence number can be a pre-set number used to characterize the position of each shift in the shift sequence. The candidate sequence number can include the initial sequence number corresponding to each preset shift. The candidate sequence number can be arranged in ascending order based on the order of the positions of each shift in the shift sequence. For example, the candidate sequence number of the starting shift at the starting position in the shift sequence can be 1, and the candidate sequence number of the first preset shift after the starting position in the shift sequence can be 2, and so on. The candidate priority weight value can be the corresponding priority weight value pre-set for each candidate sequence number. The candidate priority weight value can correspond to the candidate sequence number one by one. For example, the candidate sequence number 1 can correspond to the candidate priority weight value of 100, the candidate sequence number 2 can correspond to the candidate priority weight value of 50, and the candidate sequence number 3 can correspond to the candidate priority weight value of 0. It should be noted that the specific number of candidate sequence numbers and corresponding candidate priority weight values ​​can be set as needed, and is not specifically limited here. The initial priority weight value can be the candidate priority weight value matched by the number value of the initial sequence number corresponding to the candidate sequence number.

[0051] Specifically, the candidate sequence number that is the same as the initial sequence number can be matched according to the initial sequence number, and then based on the relationship between the candidate sequence number and the candidate priority weight value, the candidate priority weight value corresponding to the candidate sequence number can be used as the initial priority weight value corresponding to the corresponding preset shift.

[0052] S230. Determine the priority adjustment coefficient corresponding to each preset shift according to the number of executions.

[0053] Among them, the priority adjustment coefficient can be a reference coefficient for adjusting the priority of the preset shift under the preset shift mechanism. The priority adjustment coefficient can be positively correlated with the number of times executed. For example, the larger the corresponding value of the number of times executed, the larger the corresponding value of the priority adjustment coefficient. And the values ​​of the priority adjustment coefficient corresponding to different numbers of times executed can be set as needed, for example, it can be the same as the corresponding number of times executed, or it can be other values ​​different from the number of times executed, which is not specifically limited here.

[0054] Specifically, an association relationship between different execution times and priority adjustment coefficients can be established in advance. When the execution times of a preset shift is determined, the execution times can be matched with each execution times in the association relationship, and the priority adjustment coefficient associated with the matched corresponding execution times can be used as the priority adjustment coefficient of the preset shift.

[0055] S240: taking the product of the initial priority weight value corresponding to each preset shift and the priority adjustment coefficient as the priority adjustment reference value of each preset shift.

[0056] S250. If there is any preset shift whose priority adjustment reference value is greater than the preset priority adjustment threshold, the preset shift is used as the target end shift, and a shift adjustment message is generated for the target end shift, and the shift adjustment message is displayed in the shift configuration interface.

[0057] S260: In response to the confirmation feedback of the target end shift, determine the target shift sequence according to the target end shift and the execution order of each preset shift in the preset shift mechanism, and adjust the shift schedule of the object to be scheduled based on the target shift sequence and the planned shift end time.

[0058] In an optional embodiment, after determining the target shift sequence, the following steps may also be performed:

[0059] A target sequence number for each preset shift is extracted from the target shift sequence; based on the association between the candidate sequence number and the candidate priority weight value, the candidate priority weight value associated with the target sequence number is used as the target priority weight value for the preset shift, and the initial priority weight value of the preset shift is updated based on the target priority weight value.

[0060] The target sequence number may be a number used to characterize the position of each preset shift in the target shift sequence. The candidate sequence number may include the target sequence number corresponding to each preset shift.

[0061] Specifically, the target sequence number corresponding to the preset shift can be determined according to the position of the preset shift in the target shift sequence. Accordingly, the target sequence number can be matched with each candidate sequence number in the corresponding association relationship, and the candidate priority weight value corresponding to the matched candidate sequence number is used as the target priority weight value of the preset shift. The initial priority weight value of the corresponding preset shift can be replaced with the target priority weight value to completely update the priority weight corresponding to the preset shift.

[0062] It can be understood that by determining the target priority weight value of each preset shift in the current target shift sequence through the target sequence number of each preset shift in the target shift sequence, the initial priority weight value of each preset shift can be timely updated based on the target priority weight value, so that the priority of each preset shift can be adjusted again later based on the updated target priority weight value, thereby helping to improve the accuracy of the subsequent process of adjusting the priority and determining a new shift sequence.

[0063] In an optional embodiment, the above method may further include:

[0064] In the new scheduling cycle, a new shift mechanism is obtained; the new shift mechanism includes a new preset shift and a new sequence number of the new preset shift; if the new preset shift belongs to the original scheduling cycle, the target priority weight value of the new preset shift in the original scheduling cycle is used as the initial priority weight value of the new preset shift in the new scheduling cycle; wherein the target priority weight value is determined according to the target sequence number of the new preset shift in the target shift sequence.

[0065] The new shift cycle may be the next shift cycle of the original shift cycle. The settings of each shift cycle may be set manually according to needs. For example, corresponding shift cycles may be set for summer time and winter time respectively. When the shift cycle corresponding to summer time is the original shift cycle, the shift cycle corresponding to winter time may be the next cycle of the shift cycle corresponding to summer time. Different shift cycles may correspond to different pre-set shift mechanisms.

[0066] Specifically, after obtaining the new shift mechanism corresponding to the new scheduling cycle, it is possible to determine whether the new preset shifts included in the new shift mechanism are repeated with the preset shifts in the preset shift mechanism corresponding to the original scheduling cycle and the degree of repetition. Correspondingly, if all are repeated, the latest target priority weight values ​​corresponding to the preset shifts in the original scheduling cycle can be used as the initial priority weight values ​​of the new preset shifts under the new shift mechanism in the new scheduling cycle; if there are partial repetitions, the latest target priority weight values ​​of the repeated preset shifts in the original scheduling cycle can be used as the initial priority weight values ​​of the new preset shifts that are the same as the preset shifts under the new shift mechanism in the new scheduling cycle, and the candidate priority weight values ​​associated with the new sequence numbers corresponding to the non-repeated new preset shifts can be used as the initial priority weight values ​​of the non-repeated new preset shifts under the new shift mechanism in the new scheduling cycle; if there are no repetitions, the candidate priority weight values ​​associated with the new sequence numbers corresponding to the new preset shifts can be used as the initial priority weight values ​​of the new preset shifts under the new shift mechanism in the new scheduling cycle.

[0067] It can be understood that, by applying the priority weight values ​​of each preset shift in the original scheduling cycle to each new preset shift in the new scheduling cycle when the scheduling cycle changes, it is possible to avoid the situation where the scheduled personnel continuously perform the same shift too much or are unable to adapt due to the priority settings directly enabled for each shift in the new scheduling cycle, so that the scheduled personnel can transition naturally when changing shifts, which helps the scheduled personnel to quickly adapt to the changes in the scheduling shifts.

[0068] In the embodiment of the present invention, by presetting the association relationship between the candidate sequence number and the candidate priority weight, the initial priority weight value of each preset shift can be determined specifically based on the initial sequence number of each preset shift, and then the product of the initial priority weight value and the corresponding priority adjustment coefficient determined based on the number of executions can be used as the corresponding priority adjustment reference value, thereby avoiding the situation where the corresponding priority of each preset shift cannot be determined due to the same number of executions of multiple preset shifts when the priority of the corresponding preset shift is adjusted only by considering the number of executions, thereby helping to ensure that when the priority of the corresponding shift needs to be adjusted, the determination process of the corresponding target shift sequence is carried out smoothly, and at the same time, because the priority adjustment judgment is made in combination with the initial priority weight value and the number of executions of the corresponding preset shift itself, the rationality of the determination of the corresponding target shift sequence is further improved.

[0069] Figure 3 This is a flow chart of a shift schedule adjustment method provided in Embodiment 3 of the present invention. This embodiment is further optimized based on the above embodiments. It should be noted that for the parts not described in detail in this embodiment, please refer to the relevant descriptions in other embodiments.

[0070] Furthermore, the following is added: "When generating a new shift schedule, the existing shift schedule information and leave information of each person to be scheduled in the shift schedule object are obtained, and the existing shift schedule information and leave information are merged into conflict detection information; the conflict detection information is matched with the planned shift schedule information of each person to be scheduled, and it is determined whether there is an overlapping time period between the conflict detection information and the planned shift schedule information; if so, the shift corresponding to the overlapping time period in the new shift schedule is taken as the conflict shift, and candidate shift personnel are selected as substitutes to perform the conflict shift; wherein the candidate shift personnel are other persons to be scheduled other than the persons to be scheduled corresponding to the conflict shift" to realize the detection of possible conflicts in the scheduling.

[0071] refer to Figure 3 , the method specifically comprises the following steps:

[0072] S310, obtaining the object to be scheduled input in the shift configuration interface, selecting the current shift sequence for the object to be scheduled from the preset shift mechanism configured in the shift management business system, and obtaining the number of times each preset shift in the current shift sequence has been executed from the attendance data source; wherein the preset shift mechanism includes the execution order of each preset shift, and different shift sequences correspond to different starting shifts;

[0073] S320, determining a priority adjustment reference value of each preset shift according to the number of times each preset shift has been executed and the initial sequence number;

[0074] S330: If there is any preset shift whose priority adjustment reference value is greater than the preset priority adjustment threshold, the preset shift is used as the target end shift, and a shift adjustment message is generated for the target end shift, and the shift adjustment message is displayed in the shift configuration interface;

[0075] S340, in response to the confirmation feedback of the target end shift, determining the target shift sequence according to the execution order between the target end shift and each preset shift in the preset shift mechanism, and adjusting the shift schedule of the object to be scheduled based on the target shift sequence and the planned shift end time;

[0076] In an optional embodiment, after determining the target shift sequence according to the target end shift and the execution order of the preset shifts in the preset shift mechanism, the method may further include:

[0077] According to the target shift sequence, the first target starting shift of the object to be scheduled is determined; according to the chronological execution order between the target starting shift and the preset shifts, the preset shifts after the target starting shift are selected in sequence as the second target starting shift of each associated scheduling object; wherein the associated scheduling object is an object to be scheduled with the same function as the object to be scheduled, and the objects to be scheduled with the same function implement the same shift mechanism; according to the chronological execution order between the second target starting shift of each associated scheduling object and the preset shifts, the candidate shift sequence of each associated scheduling object is determined, and based on the candidate shift sequence and the planned scheduling end time, the scheduling plan of each associated scheduling object is adjusted.

[0078] Among them, the first target starting shift can be the starting shift of the object to be scheduled in the target shift sequence. The second target starting shift can be the starting shift of each associated scheduling object after the scheduling plan is adjusted. The sequence between the first target starting shift and each second target starting shift can be the sequence of execution of each preset shift in the preset shift mechanism. Each associated scheduling object and the object to be scheduled can also be a plurality of personnel who execute the same shift mechanism as required. The starting shift between each associated scheduling object and the object to be scheduled can be selected based on the preset scheduling object sequence. The shift sequence between the object to be scheduled and each associated scheduling object can be determined based on a preset mutually exclusive rule, and the mutually exclusive rule can be a rule for ensuring that there is at least one object to be scheduled within the time corresponding to any shift under the corresponding shift mechanism.

[0079] Exemplarily, after determining the first target starting shift of the object to be scheduled, based on the scheduling object order corresponding to the object to be scheduled and each associated scheduling object, and the sequential execution order of each preset shift in the preset shift mechanism, a circular matching algorithm is used to cyclically match the starting shifts of each associated scheduling object, and the matched starting shifts can be used as the second target starting shift of each associated scheduling object.

[0080] For example, there may be three preset shifts in the preset shift mechanism, namely shift a, shift b and shift c. The execution order of the three preset shifts may be shift a, shift b, shift c. The objects to be scheduled for executing the preset shift mechanism may be shifts, and there may be shift 1, shift 2, shift 3, shift 4, shift 5 and shift 6. The order of scheduling objects corresponding to the shifts may be shift 1, shift 2, shift 3, shift 4, shift 5 and shift 6. Based on this, when it is determined that the starting shift corresponding to shift 1 is shift a, the starting shift corresponding to shift 2 may be shift b, the starting shift corresponding to shift 3 may be shift c, the starting shift corresponding to shift 4 may be shift a, the starting shift corresponding to shift 5 may be shift b, and the starting shift corresponding to shift 6 may be shift c. Based on this, shift 1 and shift 4 can go to work at the same time, and the shift executed is shift a.

[0081] It can be understood that after determining the target shift sequence of the corresponding object to be scheduled, the second starting shift of each associated scheduled object under the same function associated with the object to be scheduled is determined, and the scheduling plan of each associated scheduled object is also adjusted based on the second starting shift, so that a unified scheduling plan can be made for each object to be scheduled under the same function, thereby avoiding the situation where the object to be scheduled is not scheduled to work within a certain time period, which helps to ensure that at any time there is at least one object to be scheduled working, reducing the probability of accidents.

[0082] In an optional embodiment, the starting shift of each shift sequence in the shift mechanism can be set as needed, or it can be determined based on at least one of the actual on-the-job working hours, the last shift and the vacation status of each object to be scheduled, and no specific limitation is made here.

[0083] Among them, the actual on-the-job working hours may be the number of days that the object to be scheduled actually worked on the job within the preset number of days before the current moment. The last shift may be the type of shift that the object to be scheduled last executed before the current moment. The vacation situation may be whether there is vacation information within the scheduling time range corresponding to the current moment. The scheduling time range may be a preset number of days before and after the current moment, and the preset number of days may be set as needed. The vacation type corresponding to the vacation information may include a first vacation type and a second vacation type. The first vacation type may include maternity leave, breastfeeding leave, etc., and the second vacation type may include sick leave, bereavement leave, etc.

[0084] Exemplarily, the vacation status of the object to be scheduled can be queried, and the shift type corresponding to the starting shift of the object to be scheduled can be determined based on the vacation information of the object to be scheduled. For example, if the vacation type included in the vacation information of the object to be scheduled is the first vacation type mentioned above, the night shift and overtime shift within the scheduling time range can be cancelled, and other shifts can be selected as the starting shift of the object to be scheduled; if the vacation type included in the vacation information of the object to be scheduled is the second vacation type mentioned above, the day shift or rest shift can be preferentially arranged as the starting shift of the object to be scheduled.

[0085] Exemplarily, the last shift information of the object to be scheduled can also be queried, and the starting shift of the object to be scheduled can be determined based on the last shift information. For example, if the last shift of the object to be scheduled is a night shift, and the end time of the night shift does not exceed the preset time threshold, the rest shift can be used as the starting shift of the object to be scheduled; if the last shift of the object to be scheduled is a night shift, and the end time of the night shift exceeds the preset time threshold, the day shift can be used as the starting shift of the object to be scheduled; if the last shift of the object to be scheduled is a day shift, and the end time of the day shift does not exceed the preset time threshold, the day shift can be used as the starting shift of the object to be scheduled; if the last shift of the object to be scheduled is a day shift, and the end time of the day shift exceeds the preset time threshold, the night shift can be used as the starting shift of the object to be scheduled. The preset time threshold can be set as needed, for example, it can be 12 hours or 24 hours.

[0086] Exemplarily, the actual on-the-job working hours and planned working hours of the object to be scheduled can also be queried and calculated. For example, if the actual on-the-job working hours exceed the preset time threshold of the planned working hours, the vacation shift or the shift with a shorter duration can be used as the starting shift of the object to be scheduled; if the actual on-the-job working hours exceed the planned working hours by less than the preset time threshold, the day shift can be used as the starting shift of the object to be scheduled; if the actual on-the-job working hours are less than the planned working hours, the night shift or the shift with a longer duration can be used as the starting shift of the object to be scheduled.

[0087] It can be understood that by considering the actual on-the-job working hours, last shift and vacation status of each object to be scheduled when setting the starting shift, and flexibly adjusting the shift type corresponding to the starting shift of the object to be scheduled, it is possible to avoid unreasonable scheduling plans corresponding to the objects to be scheduled, thereby helping to improve the satisfaction of the corresponding objects to be scheduled.

[0088] S350, when generating a new shift schedule, obtaining the existing shift schedule information and leave information of each person to be scheduled in the shift schedule object, and merging the existing shift schedule information and leave information into conflict detection information;

[0089] The new shift schedule may be a shift schedule after adjusting the current shift schedule of each object to be scheduled. The existing shift schedule information may be the existing shift schedule information of each person to be scheduled in the object to be scheduled in the current shift schedule cycle, which may include the name, position, shift date, shift start and end time, etc. of each person to be scheduled. The leave information may be the specific time when each person to be scheduled takes leave in the current shift schedule cycle. The conflict detection information may be information for detecting whether the existing shift schedule information and leave information conflict with the shift schedule information corresponding to the new shift schedule.

[0090] Specifically, according to the time range corresponding to the current scheduling cycle, the existing scheduling information and leave information of each person to be scheduled can be extracted from the database table, and the existing scheduling information and leave information can be preprocessed, and the preprocessed existing scheduling information and leave information can be merged to obtain corresponding conflict detection information. Among them, the database table can include a leave information table, a scheduling information table, and a personnel information table. Preprocessing can include processing missing values ​​and data type conversion.

[0091] S360, matching the conflict detection information with the planned shift information of each person to be scheduled, and determining whether there is an overlapping time period between the conflict detection information and the planned shift information;

[0092] Specifically, the time periods corresponding to the existing scheduling information and leave information included in the conflict detection information can be traversed, and the time periods can be matched with the time periods corresponding to the shifts included in the planned scheduling information of each person to be scheduled in the new scheduling plan. Correspondingly, if the match is successful, it can be indicated that there is a conflict, that is, it can be determined that there is an overlapping time period between the corresponding conflict detection information and the planned scheduling information; if the match fails, it can be determined that there is no conflict between the corresponding conflict detection information and the planned scheduling information, that is, it can be determined that there is no overlapping time period between the corresponding conflict detection information and the planned scheduling information.

[0093] S370: If so, the shift corresponding to the overlapping time period in the new shift scheduling plan is regarded as a conflicting shift, and candidate shift personnel are selected as substitutes to perform the conflicting shift; wherein the candidate shift personnel are other personnel to be scheduled except the personnel to be scheduled corresponding to the conflicting shift.

[0094] Specifically, if there is no overlapping time period between the conflict detection information and the planned shift information, it is determined that there is no conflict between the new shift plan and the existing shift information and leave information of each person to be scheduled.

[0095] Exemplarily, after determining whether there is an overlapping time period between the conflict detection information and the planned shift information, the method may further include: generating conflict alarm information to prompt the shift scheduling management personnel to adjust the personnel to be scheduled corresponding to the conflicting shifts.

[0096] In an optional embodiment, selecting a person to be scheduled from the candidate objects to be scheduled as a replacement person may include:

[0097] Obtaining the reference information of each candidate for shift replacement; wherein the reference information includes at least one type of information of each candidate for shift replacement, including recent leave information, adjacent shift end time information, shift continuous execution information, historical attendance information and current shift plan information; determining the recommended score of each candidate for shift replacement according to the weight ratio corresponding to each information type included in the reference information and the reference score of the substitute; and selecting the candidate for shift replacement corresponding to the largest recommended score of the substitute as the substitute.

[0098] Among them, the substitute shift reference information may be reference information for judging whether the candidate shift personnel can be used as a substitute shift personnel. The adjacent shift end time information may be the end time information of the shift that was executed most recently to the conflicting shift. The shift continuous execution information may be the number of days that the candidate shift personnel has continuously executed the shift within a preset time period before the conflicting shift. The historical attendance information may be the attendance rate of the candidate shift personnel before the conflicting shift. The current shift schedule information may be the scheduling information of the candidate shift personnel in the new shift schedule. The corresponding weight ratio of each information type may be set as needed, and is not specifically limited here.

[0099] Specifically, a mapping relationship between the reference information of the substitute shift and the reference score of the substitute shift of different information types can be established in advance. Accordingly, after determining the substitute reference information of the candidate shift scheduling personnel, the mapping relationship can be traversed to match the substitute reference score corresponding to each information type included in the substitute reference information, and the matched substitute reference score can be used as the substitute reference score corresponding to each information type in the substitute reference information of the candidate shift scheduling personnel. Accordingly, the product of the weight ratio corresponding to each information type in the substitute reference information of the candidate shift scheduling personnel and the substitute reference score can be superimposed to obtain the substitute recommendation score of the candidate shift scheduling personnel.

[0100] It can be understood that by introducing the various information types included in the substitute reference information of each candidate shift personnel and the weight ratio and substitute reference score corresponding to each information type, and further adopting a weighted approach to obtain the substitute recommendation score of each candidate shift personnel, the candidate shift personnel corresponding to the largest substitute recommendation score is used as the corresponding substitute, which can fully take into account the current actual situation of each candidate shift personnel, thereby helping to more accurately judge the suitability of each candidate shift personnel as the corresponding substitute, and further helping to ensure the rationality of the currently recommended substitute personnel, and avoid the current substitute personnel from reducing their satisfaction with the scheduling plan.

[0101] In an optional embodiment, the recent leave information may include the leave time information and leave type of the candidate shift personnel within a preset time interval from the conflicting shift. The preset time interval may be a set time period before and / or after the conflicting shift, and the set time period may be set as needed, for example, it may be one week, etc. Leave time information may include information types such as the leave start time and the leave end time. Leave types may include special leave and normal leave, etc. Special leave may include sick leave, maternity leave, breastfeeding leave, etc. Accordingly, according to the weight ratio corresponding to each information type included in the substitute shift reference information and the substitute shift reference score, the substitute shift recommended score of each candidate shift personnel is determined, which may include at least one of the following:

[0102] If the leave time information of the candidate shift employee conflicts with the conflicting shift, the candidate shift employee's substitution recommendation score may be determined to be 0, and the candidate shift employee's recommendation as a substitution employee may be cancelled;

[0103] If the leave type of the candidate is a special leave, the candidate's substitution recommendation score can be determined to be 0, and the candidate is cancelled from being recommended as a substitution;

[0104] If the leave type of the candidate shift scheduling personnel is a normal leave, and the leave time information does not conflict with the overlapping time period, the first substitute shift reference score of the candidate shift scheduling personnel can be determined according to the length of time that the interval time between the leave start time or the leave end time and the conflicting shift exceeds the first preset time threshold; wherein the length of time that the interval time exceeds the preset time threshold can be positively correlated with the first substitute shift reference score; the preset time threshold can be set as needed, for example, it can be 24 hours, etc.;

[0105] The interval between the end time of the candidate shift's adjacent shift and the conflicting shift can be determined based on the candidate shift's adjacent shift end time information, and the second shift replacement reference score of the candidate shift to be scheduled can be determined based on the length of time that the interval exceeds the second preset time threshold; wherein the second preset time threshold can be half of the first preset time threshold, and can be positively correlated with the second shift replacement reference score;

[0106] The third substitute shift reference score may be determined according to the number of days that the candidate shift personnel continuously performs shifts within a preset time period before the conflicting shift; wherein the number of days that the candidate shift personnel continuously performs shifts may be negatively correlated with the third substitute shift reference score;

[0107] The fourth substitute shift reference score may be determined according to the candidate shift scheduling personnel's attendance rate before the conflicting shift; wherein the attendance rate may be negatively correlated with the fourth substitute shift reference score;

[0108] Based on the current shift schedule information of the candidate shift personnel, if it is determined that the shift information of the candidate shift personnel in the new shift schedule conflicts with the conflicting shift or there is a shift adjacent to the conflicting shift, the fifth substitute shift reference score of the candidate shift personnel is determined to be a set score; wherein the set score may be a value less than 0.

[0109] In the embodiment of the present invention, the generated new shift schedule is detected for conflicts through the existing shift information and leave information of each person to be scheduled, so that potential staff gaps can be identified in advance before the generated new shift schedule is released, which helps to make timely and on-the-spot adjustments to the generated corresponding shift schedule, thereby helping to simplify the process of adjusting the corresponding shift schedule, improve the efficiency of adjusting the corresponding shift schedule, and improve the rationality and fairness of the shift arrangements for each person to be scheduled, while ensuring the accuracy and completeness of the scheduling information corresponding to the generated new shift schedule.

[0110] Figure 4 A shift schedule adjustment device is provided in the fourth embodiment of the present invention. This embodiment is applicable to the case where the shift sequence of the scheduled objects is adjusted for each preset shift. The device can be implemented in the form of hardware and / or software and can be configured in an electronic device. Figure 4 As shown, the device comprises:

[0111] The executed times acquisition module 410 is used to acquire the object to be scheduled input in the shift configuration interface, select the current shift sequence for the object to be scheduled from the preset shift mechanism configured in the shift management business system, and acquire the executed times of each preset shift in the current shift sequence from the attendance data source; wherein the preset shift mechanism includes the execution order of each preset shift, and different shift sequences correspond to different starting shifts;

[0112] A priority adjustment reference value determination module 420, configured to determine a priority adjustment reference value of each preset shift according to the number of times each preset shift has been executed and the initial sequence number;

[0113] The target end shift determination module 430 is used to, if there is any preset shift whose priority adjustment reference value is greater than the preset priority adjustment threshold, use the preset shift as the target end shift, generate a schedule adjustment message for the target end shift, and display the schedule adjustment message in the schedule configuration interface;

[0114] The shift plan adjustment module 440 is used to respond to the confirmation feedback of the target end shift, determine the target shift sequence according to the execution order between the target end shift and the preset shifts in the preset shift mechanism, and adjust the shift plan of the object to be scheduled based on the target shift sequence and the planned shift end time.

[0115] The technical solution of the embodiment of the present invention, by obtaining the object to be scheduled input in the scheduling configuration interface, selecting the current shift sequence for the object to be scheduled from the preset shift mechanism configured by the scheduling management business system, and obtaining the historical execution times of each preset shift in the current shift sequence from the attendance data source, can eliminate the need for manual extraction of relevant scheduling information of each object to be scheduled, thereby helping to simplify the process of adjusting the corresponding scheduling plan and improving the overall efficiency of the corresponding scheduling adjustment process. In addition, it determines the corresponding priority adjustment reference value through the corresponding number of executions and the number of each preset shift itself in the current shift sequence. Based on the priority adjustment reference value, it can determine in real time whether the shift sequence corresponding to the corresponding shift needs to be adjusted, and promptly feed back the determined corresponding target end shift to the scheduling management personnel in the form of a scheduling adjustment message, thereby avoiding the situation where the shift sequence of each shift is not adjusted in time manually, which helps to further simplify the process of adjusting the corresponding shift schedule and improve the efficiency of adjusting the corresponding shift schedule. At the same time, it obtains a new target shift sequence by adjusting the shift sequence corresponding to the corresponding shift, realizes timely dynamic adjustment of the corresponding shift schedule, and can effectively avoid the situation where the corresponding object to be scheduled always executes a fixed shift sequence, resulting in too many or too few executions of a certain shift, resulting in excessive or too light workload, which helps to improve the rationality and fairness of the shift arrangement for each object to be scheduled and improve the satisfaction of the scheduled personnel.

[0116] Optionally, the priority adjustment reference value determination module 420 may include:

[0117] An initial priority weight value determination unit, configured to determine the initial priority weight value corresponding to each preset shift according to the initial sequence number based on the association relationship between the candidate sequence number and the candidate priority weight value; wherein the size of the candidate sequence number is negatively correlated with the candidate priority weight value;

[0118] A priority adjustment coefficient determination unit, used to determine the priority adjustment coefficient corresponding to each preset shift according to the number of executions;

[0119] The priority adjustment reference value determination unit is used to use the product of the initial priority weight value corresponding to each preset shift and the priority adjustment coefficient as the priority adjustment reference value of each preset shift.

[0120] Optionally, the device may further include:

[0121] A first target start shift determination module, configured to determine a first target start shift of the object to be scheduled according to the target shift sequence after determining the target shift sequence according to the target end shift and the execution order of each preset shift in the preset shift mechanism;

[0122] A second target starting shift determination module is used to select, according to the execution order between the target starting shift and the preset shifts, the preset shifts after the target starting shift as the second target starting shift of each associated scheduling object; wherein the associated scheduling object is an object to be scheduled with the same function as the object to be scheduled, and the objects to be scheduled with the same function implement the same shift mechanism;

[0123] The associated shift object scheduling plan adjustment module is used to determine the candidate shift sequence of each associated shift object according to the second target starting shift of each associated shift object and the execution order between the preset shifts, and adjust the scheduling plan of each associated shift object based on the candidate shift sequence and the planned shift end time.

[0124] Optionally, the device may further include:

[0125] a target sequence number determination module, configured to extract a target sequence number of each preset shift from the target shift sequence after determining the target shift sequence;

[0126] An initial priority weight value updating module is used to take the candidate priority weight value associated with the target sequence number as the target priority weight value of the preset shift based on the association relationship between the candidate sequence number and the candidate priority weight value, and to update the initial priority weight value of the preset shift based on the target priority weight value.

[0127] Optionally, the device may further include:

[0128] A new shift mechanism acquisition module is used to acquire a new shift mechanism in a new shift scheduling cycle; the new shift mechanism includes a new preset shift and a new sequence number of the new preset shift;

[0129] The first module for determining the initial priority weight value is used to determine, if the new preset shift belongs to the original scheduling cycle, the target priority weight value of the new preset shift in the original scheduling cycle as the initial priority weight value of the new preset shift in the new scheduling cycle; wherein, the target priority weight value is determined according to the target sequence number of the new preset shift in the target shift sequence.

[0130] The second determination module of the initial priority weight value is used to otherwise, based on the association relationship between the candidate sequence number and the candidate priority weight value, according to the new sequence number of the new preset shift, use the candidate priority weight value associated with the new sequence number as the initial priority weight value of the new preset shift in the new scheduling cycle.

[0131] Optionally, the device may further include:

[0132] A conflict detection information generation module, used for obtaining the existing scheduling information and leave information of each person to be scheduled in the object to be scheduled when generating a new scheduling plan, and merging the existing scheduling information and leave information into conflict detection information;

[0133] An overlapping time period determination module is used to match the conflict detection information with the planned scheduling information of each person to be scheduled, and determine whether there is an overlapping time period between the conflict detection information and the planned scheduling information;

[0134] A substitute selection module is used to, if any, treat the shift corresponding to the overlapping time period in the new shift schedule as a conflicting shift, and select candidate shift personnel as substitutes to perform the conflicting shift; wherein the candidate shift personnel are other to-be-scheduled personnel other than the to-be-scheduled personnel corresponding to the conflicting shift.

[0135] Optionally, the replacement personnel selection module may include:

[0136] A substitute shift reference information acquisition unit, used to acquire substitute shift reference information of each candidate shift scheduling personnel; wherein the substitute shift reference information includes at least one type of information of each candidate shift scheduling personnel's recent leave information, adjacent shift end time information, shift continuous execution information, historical attendance information and current shift scheduling plan information;

[0137] a substitute shift recommendation score determination unit, configured to determine a substitute shift recommendation score for each candidate shift scheduling personnel according to a weight ratio corresponding to each information type included in the substitute shift reference information and a substitute shift reference score;

[0138] The substitute determination unit is used to select the candidate shift scheduling personnel corresponding to the maximum substitute recommendation score as the substitute personnel.

[0139] The shift schedule adjustment device provided in the embodiment of the present invention can execute any of the shift schedule adjustment methods provided in the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing each shift schedule adjustment method. For the contents not described in detail in the embodiment of the present invention, reference can be made to the description in any of the shift schedule adjustment method embodiments of the present invention.

[0140] According to an embodiment of the present invention, the present invention also provides an electronic device, a readable storage medium and a computer program product.

[0141] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0142] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0143] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0144] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the shift schedule adjustment method.

[0145] In some embodiments, the shift schedule adjustment method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the shift schedule adjustment method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the shift schedule adjustment method in any other appropriate manner (e.g., by means of firmware).

[0146] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0147] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0148] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0149] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0150] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0151] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0152] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning technology, big data processing technology, knowledge graph technology, and other major directions.

[0153] Cloud computing refers to a technology system that uses network access to elastically scalable shared physical or virtual resource pools. Resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed on demand and in a self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence and blockchain, as well as model training.

[0154] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution provided by this disclosure can be achieved, and this document does not limit this.

[0155] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for adjusting a shift schedule, characterized in that: include: Obtain the subject to be scheduled entered in the shift configuration interface, select the current shift sequence for the subject to be scheduled from the preset shift mechanism configured in the shift management business system, and obtain the number of times each preset shift in the current shift sequence has been executed from the attendance data source; wherein the preset shift mechanism includes the execution order of each preset shift, and different shift sequences correspond to different starting shifts; Determining a priority adjustment reference value for each of the preset shifts based on the number of times each of the preset shifts has been executed and the initial sequence number; If the priority adjustment reference value of any preset shift is greater than the preset priority adjustment threshold, the preset shift is used as the target end shift, and a schedule adjustment message is generated for the target end shift, and the schedule adjustment message is displayed in the schedule configuration interface; In response to the confirmation feedback of the target end shift, a target shift sequence is determined according to the execution order between the target end shift and each preset shift in the preset shift mechanism, and the shift schedule of the object to be scheduled is adjusted based on the target shift sequence and the planned shift end time.

2. The method according to claim 1, characterized in that The step of determining a priority adjustment reference value for each preset shift based on the number of times each preset shift has been executed and the initial sequence number includes: Based on the correlation between the candidate sequence number and the candidate priority weight value, the initial priority weight value corresponding to each preset shift is determined according to the initial sequence number; wherein the size of the candidate sequence number is negatively correlated with the candidate priority weight value; Determining the priority adjustment coefficient corresponding to each preset shift based on the number of times the shift has been executed; The product of the initial priority weight value corresponding to each preset shift and the priority adjustment coefficient is used as the priority adjustment reference value of each preset shift.

3. The method according to claim 1, characterized in that After determining the target shift sequence according to the target end shift and the execution order of each preset shift in the preset shift mechanism, the method further includes: Determining a first target starting shift for the object to be scheduled according to the target shift sequence; According to the execution order between the first target starting shift and the preset shifts, each preset shift after the first target starting shift is selected in sequence as the second target starting shift of each associated scheduling object; wherein the associated scheduling object is a to-be-scheduled object with the same function as the to-be-scheduled object, and the to-be-scheduled objects with the same function are subject to the same shift mechanism; Determine the candidate shift sequence of each associated schedule object according to the sequential execution order between the second target starting shift of each associated schedule object and the preset shifts, and adjust the schedule plan of each associated schedule object based on the candidate shift sequence and the planned schedule end time.

4. The method according to claim 2, characterized in that After determining the target shift sequence, it also includes: Extracting a target sequence number for each preset shift from the target shift sequence; Based on the association between the candidate sequence number and the candidate priority weight value, the candidate priority weight value associated with the target sequence number is used as the target priority weight value of the preset shift, and the initial priority weight value of the preset shift is updated based on the target priority weight value.

5. The method according to claim 2, characterized in that Also includes: In the new shift scheduling cycle, a new shift mechanism is obtained; the new shift mechanism includes new preset shifts and new sequence numbers of the new preset shifts; If the new preset shift belongs to the original scheduling cycle, the target priority weight value of the new preset shift in the original scheduling cycle is used as the initial priority weight value of the new preset shift in the new scheduling cycle; wherein the target priority weight value is determined according to the target sequence number of the new preset shift in the target shift sequence; Otherwise, based on the association between the candidate sequence number and the candidate priority weight value, according to the new sequence number of the new preset shift, the candidate priority weight value associated with the new sequence number is used as the initial priority weight value of the new preset shift in the new scheduling cycle.

6. The method according to claim 1, wherein The method further comprises: When generating a new shift schedule, obtaining the existing shift schedule information and leave information of each person to be scheduled in the scheduled object, and merging the existing shift schedule information and leave information into conflict detection information; Matching the conflict detection information with the planned shift information of each person to be scheduled, and determining whether there is an overlapping time period between the conflict detection information and the planned shift information; If so, the shift corresponding to the overlapping time period in the new shift schedule is taken as the conflicting shift, and candidate shift personnel are selected as substitutes to perform the conflicting shift; wherein the candidate shift personnel are other to-be-scheduled personnel other than the to-be-scheduled personnel corresponding to the conflicting shift.

7. The method according to claim 6, characterized in that The step of selecting a candidate shift worker as a replacement shift worker includes: Obtaining reference information for each candidate shift scheduler; wherein the reference information includes at least one type of information of each candidate shift scheduler's recent leave information, adjacent shift end time information, shift continuous execution information, historical attendance information, and current shift schedule information; Determining the recommended scores for each candidate shift scheduler based on the weight ratios corresponding to the information types included in the shift replacement reference information and the reference scores for the shift replacement; The candidate shift scheduler corresponding to the largest substitute recommendation score is used as the substitute shifter.

8. A shift schedule adjustment device, characterized in that: include: The executed times acquisition module is used to obtain the object to be scheduled input in the shift configuration interface, select the current shift sequence for the object to be scheduled from the preset shift mechanism configured in the shift management business system, and obtain the executed times of each preset shift in the current shift sequence from the attendance data source; wherein, the preset shift mechanism includes the execution order of each preset shift, and different shift sequences correspond to different starting shifts; a priority adjustment reference value determination module, configured to determine a priority adjustment reference value for each of the preset shifts based on the number of times each of the preset shifts has been executed and the initial sequence number; a target end shift determination module, configured to, if any preset shift has a priority adjustment reference value greater than a preset priority adjustment threshold, use the preset shift as the target end shift, generate a schedule adjustment message for the target end shift, and display the schedule adjustment message in the schedule configuration interface; The shift plan adjustment module is used to respond to the confirmation feedback of the target end shift, determine the target shift sequence according to the execution order between the target end shift and the preset shifts in the preset shift mechanism, and adjust the shift plan of the object to be scheduled based on the target shift sequence and the planned shift end time.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the shift schedule adjustment method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the shift schedule adjustment method according to any one of claims 1 to 7 when executed.