CN107491927A - The distribution method and device of a kind of working time - Google Patents

The distribution method and device of a kind of working time Download PDF

Info

Publication number
CN107491927A
CN107491927A CN201610415027.6A CN201610415027A CN107491927A CN 107491927 A CN107491927 A CN 107491927A CN 201610415027 A CN201610415027 A CN 201610415027A CN 107491927 A CN107491927 A CN 107491927A
Authority
CN
China
Prior art keywords
period
allocated
users
distribution
periods
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610415027.6A
Other languages
Chinese (zh)
Inventor
邹立新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610415027.6A priority Critical patent/CN107491927A/en
Publication of CN107491927A publication Critical patent/CN107491927A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting

Abstract

The embodiment of the present application provides the distribution method and device of a kind of working time, and methods described includes:The working time to be allocated is received, the working time includes one or more periods;It is determined that the number of users to match with one or more of periods;Obtain user's mark of one or more users;Identified according to the user, extract the period distribution status information of one or more of users, the period distribution status information includes time segment information to be allocated and corresponding number to be allocated;For the number of users, time segment information to be allocated and corresponding number to be allocated, shared out the work the time for one or more of users, to obtain the period allocation result of one or more users, realize the automatic distribution of working time, avoid due to the manual allocation working time it is unreasonable caused by operating efficiency it is low the problem of.

Description

The distribution method and device of a kind of working time
Technical field
The application is related to field of computer technology, when being worked more particularly to a kind of distribution method of working time and one kind Between distributor.
Background technology
Employee's work on duty is required within 24 hours for production and after-sale service etc., it is enterprise's peace to be arranged an order according to class and grade for employee Arrange the important step of work.The purpose arranged an order according to class and grade is according to work requirements, by the rotation of different order of classes or grades at school, so as to provide optimal people Power optimal management schemes.
By taking after-sale service team of enterprise as an example, generally, after-sale service team includes the portions such as after-sale technical support, call center Door, personnel are numerous.Before monthly starting, arranging an order according to class and grade for next month will be carried out for the employee of each team in advance, and periodically go out Has the quantity on duty of report form statistics employee, and quantity of taking off.At present, enterprise arranges an order according to class and grade to be substantially to use for employee and manually arranged an order according to class and grade Mode.Personnel arrange an order according to class and grade when arranging the order of classes or grades at school of next month at the end of month in team, it is necessary first to leaf through even The Month Before Last last month Employee's duty arrangement, to ensure that the working order of classes or grades at school in team between each employee generally is kept in balance, then will arrange an order according to class and grade result again Team is handed down in the form of Excel forms.If midway has employee to ask for leave temporarily, the problem of change shift is changed shifts is related to, also Need the change shift changing shifts situation of hand-kept this month.Therefore, each team spent in the time on arranging an order according to class and grade and was likely to be breached every month Several hours, seriously wasting manpower and material resources.Manually arranged an order according to class and grade simultaneously as employing, result of arranging an order according to class and grade also easily is arranged an order according to class and grade personnel Subjective impact, irrational result of arranging an order according to class and grade may also influence the operating efficiency of employee.
The content of the invention
In view of the above problems, it is proposed that the embodiment of the present application overcomes above mentioned problem or at least in part to provide one kind The distribution method of the working time to solve the above problems a kind of and a kind of corresponding distributor of working time.
In order to solve the above problems, this application discloses a kind of distribution method of working time, including:
The working time to be allocated is received, the working time includes one or more periods;
It is determined that the number of users to match with one or more of periods;
Obtain user's mark of one or more users;
Identified according to the user, extract the period distribution status information of one or more of users, the time Section distribution status information includes time segment information to be allocated and corresponding number to be allocated;
It is one or more for the number of users, time segment information to be allocated and corresponding number to be allocated Individual user shares out the work the time, to obtain the period allocation result of one or more users.
Alternatively, the step of number of users that the determination matches with one or more of periods, includes:
One or more periods of the working time are extracted from preset period-number of users mapping table, And the number of users to match respectively with one or more of periods.
Alternatively, one or more of periods include a default time period, and it is one or more non-default when Between section, one or more periods that the working time is extracted from preset period-number of users mapping table, And match respectively with one or more of periods number of users the step of include:
The period of the working time, Yi Jiyi are extracted from preset period-number of users mapping table Individual or multiple non-default periods;
Respectively one or more of non-default period distributing user quantity;
Remaining unappropriated number of users is distributed into the default time period.
Alternatively, the period distribution status information also includes having distributed time segment information and distributed accordingly secondary Number;It is described according to the user identify, extract one or more of users period distribution status information the step of include:
Obtain the distribution period of one or more users, and with the distribution that to have distributed the period corresponding Number;
The period to be allocated of one or more of users is counted, and corresponding with the period to be allocated is treated Distribute number;
The number to be allocated of one or more of users is arranged in order, obtains list to be allocated.
Alternatively, it is described for the number of users, time segment information to be allocated and corresponding number to be allocated, for institute State one or more users share out the work the time the step of include:
Determine number minimum value to be allocated in the list to be allocated;
After the period to be allocated corresponding to the number minimum value to be allocated is distributed into the user, by the use The remaining period to be allocated at family, and the to be allocated number corresponding with the period to be allocated is from the list to be allocated Middle deletion;
Return and perform the step of determining number minimum value to be allocated in the list to be allocated, to obtain one or more use The period allocation result at family.
Alternatively, the period allocation result includes one or more distribution lists, and methods described also includes:
Optimum allocation result is extracted from one or more of distribution lists.
Alternatively, one or more of periods have corresponding period code, described from one or more of The step of optimum allocation result is extracted in distribution list includes:
For the period code, the mean square deviation of one or more of distribution lists is calculated respectively;
It is optimum allocation result to extract the distribution list corresponding to the mean square deviation minimum value.
In order to solve the above problems, disclosed herein as well is a kind of distributor of working time, including:
Working time receiving module, for receiving the working time to be allocated, the working time includes one or more Period;
Number of users determining module, for the number of users for determining to match with one or more of periods;
User's identifier acquisition module, the user for obtaining one or more users identify;
Period distributes status information extraction module, for being identified according to the user, extracts one or more of use The period distribution status information at family, the period distribution status information include time segment information to be allocated and treated accordingly Distribute number;
Working time distribute module, for for the number of users, time segment information to be allocated and corresponding treating point With number, shared out the work the time for one or more of users, to obtain the period allocation result of one or more users.
Alternatively, the number of users determining module includes:
Period and number of users determination sub-module, for being extracted from preset period-number of users mapping table One or more periods of the working time, and the number of users to match respectively with one or more of periods Amount.
Alternatively, one or more of periods include a default time period, and it is one or more non-default when Between section, the period includes with number of users determination sub-module:
Period extraction unit, for extracting the working time from preset period-number of users mapping table A period, and one or more non-default period;
Non-default period number of users allocation unit, for being respectively one or more of non-default period distribution Number of users;
Default time period number of users allocation unit, during for remaining unappropriated number of users to be distributed into the acquiescence Between section.
Alternatively, the period distribution status information also includes having distributed time segment information and distributed accordingly secondary Number;The period distribution status information extraction module includes:
Period and number acquisition submodule have been distributed, for obtaining the distribution period of one or more users, with And with the distribution number that to have distributed the period corresponding;
Period to be allocated and number statistic submodule, for counting the time to be allocated of one or more of users Section, and the to be allocated number corresponding with the period to be allocated;
List to be allocated obtains submodule, for the number to be allocated of one or more of users to be arranged in order, Obtain list to be allocated.
Alternatively, the working time distribute module includes:
Number determination sub-module to be allocated, for determining number minimum value to be allocated in the list to be allocated;
Period distribution sub module to be allocated, for the time to be allocated corresponding to by the number minimum value to be allocated After section distributes to the user, by the remaining period to be allocated of the user, and it is corresponding with the period to be allocated Number to be allocated deleted from the list to be allocated;
Allocation result obtains submodule, and number minimum value to be allocated in the list to be allocated is determined for returning to perform Step, to obtain the period allocation result of one or more users.
Alternatively, the period allocation result includes one or more distribution lists, and described device also includes:
Optimum allocation result extraction module, for extracting optimum allocation knot from one or more of distribution lists Fruit.
Alternatively, one or more of periods have corresponding period code, the optimum allocation result extraction Module includes:
Distribution list mean square deviation calculating sub module, for for the period code, calculating respectively one or more The mean square deviation of individual distribution list;
Optimum allocation result extracting sub-module, for extracting the distribution list corresponding to the mean square deviation minimum value to be optimal Allocation result.
Compared with background technology, the embodiment of the present application includes advantages below:
The embodiment of the present application is true according to multiple periods of the working time after the working time to be allocated is received The number of users to match is made, and then goes out period distribution status information according to user's marker extraction, then for the use Amount amount, time segment information to be allocated and corresponding number to be allocated, share out the work the time for one or more users, realize The automatic distribution of working time, avoid due to the manual allocation working time it is unreasonable caused by operating efficiency is low asks Topic.
Secondly, the embodiment of the present application can also pass through more each distribution list after one or more distribution lists are obtained Mean square deviation, determine optimum allocation result, avoid the irrationality of artificial selection distribution list.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of the distribution method embodiment one of working time of the application;
Fig. 2 is a kind of step flow chart of the distribution method embodiment two of working time of the application;
Fig. 3 is a kind of structured flowchart of the distributor embodiment of working time of the application.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable the above-mentioned purpose of the application, feature and advantage more obvious understandable Mode is applied to be described in further detail the application.
Reference picture 1, a kind of step flow chart of the distribution method embodiment one of working time of the application is shown, specifically It may include steps of:
Step 101, the working time to be allocated is received;
In the embodiment of the present application, the working time to be allocated can be when needing to arrange on duty one section of employee Between, for example, one day.The working time can include one or more periods, for example, for every day, can be according to work Make or what is produced is actually needed, the working time is divided into multiple periods.For example, 8 points of morning to afternoon 4 points be one Period, 4 points to 12 points at night of afternoon is a period, and 8 points to the next morning of at 12 points in evening is again a period.
In the specific implementation, one or more of periods can be regarded as needing to arrange for employee specific class on duty It is secondary, for example, 8 points of morning to afternoon 4 points be mornig shift, 4 points to 12 points at night of afternoon be the middle class in a kindergarten, at 12 points in evening to the next morning 8 Point is night shift.Those skilled in the art can divide according to being actually needed to the working time, such as be divided into 4 periods (4 order of classes or grades at school), each period (each order of classes or grades at school) are entered for 6 hours etc., or each period by the unequal time Row division, the application are not especially limited to this.
Step 102, it is determined that the number of users to match with one or more of periods;
In the embodiment of the present application, after receiving and needing the assignment time, each time can be determined respectively Headcount required for section.For example, mornig shift needs 12 people, the middle class in a kindergarten needs 10 people, and night shift needs 6 people etc..
In a preferred embodiment of the present application, the user for determining to match with one or more of periods The step of quantity, can specifically include following sub-step:
Sub-step 1021, extracted from preset period-number of users mapping table one of the working time or Multiple periods, and the number of users to match respectively with one or more of periods.
Typically for different order of classes or grades at school, it is necessary to headcount may be different, it is same even for the different working times One order of classes or grades at school, required headcount may also be different.For example, for retail business, 4 points at night 8 of the afternoon of Monday to Thursday The middle class in a kindergarten period of point is less due to customer, it may be necessary to which the headcount of arrangement is also less, and being somebody's turn to do for Friday to Sunday Period, then more employees are needed to arrange for, to tackle substantial amounts of customer.
Therefore, in the specific implementation, the different time sections institute that each working time can be pre-set according to being actually needed The headcount needed, mapping table is formed, then the assignment time as needed, from the mapping table, extracted described The headcount of one or more periods of working time.
In the embodiment of the present application, the working time can daily calculate, and can correspond to week according to the working time It is several to form corresponding week-order of classes or grades at school mapping table.For example, for Monday, multiple periods can be included, each period How many employee are needed, for Tuesday, the identical or different period can be included, each period needs how many member again Work, until the headcount of different time sections seven days a week is respectively provided with into completion.Then when receiving work to be allocated Between after, can directly judge what day the working time to be allocated belongs to, then from preset week-order of classes or grades at school mapping table Extract the headcount required for each period.
Step 103, user's mark of one or more users is obtained;
In the embodiment of the present application, user's mark can be employee name or the employee's job number of order of classes or grades at school to be allocated, The application is not especially limited to this.
Step 104, identified according to the user, extract the period distribution status information of one or more of users;
In the embodiment of the present application, the period distribution status information can include time segment information to be allocated and phase The number to be allocated answered, and, distribute time segment information and distribute number accordingly.
In the embodiment of the present application, can be identified according to user, such as employee's job number, count the order of classes or grades at school that the employee has arranged And the occurrence order of classes or grades at school number of the order of classes or grades at school arranged, and, the occurrence order of classes or grades at school number of the order of classes or grades at school not arranged and the order of classes or grades at school not arranged.
In the specific implementation, whole classes of every employee required arrangement in certain time section can be pre-set It is secondary, and the number that each order of classes or grades at school should be on duty.For example, using the moon as section, every employee should monthly arrange mornig shift, in Class, night shift, night stop, weekend each how many times off duty.
It should be noted that for different employees, the number on duty of its order of classes or grades at school that should be arranged and each order of classes or grades at school may not Together, for example, schoolgirl does not worth alternate night shift, then distributed in the period in status information, schoolgirl is exactly this order of classes or grades at school of no alternate night shift State, it can be the corresponding order of classes or grades at school of Staffing, arranged order of classes or grades at school according to the number of the number on duty of each order of classes or grades at school when arranging an order according to class and grade Number on duty it is more, then continue to arrange the possibility of the order of classes or grades at school with regard to smaller.
It is described to be identified according to the user in a preferred embodiment of the present application, extract one or more of use The step of period distribution status information at family, can specifically include following sub-step:
Sub-step 1041, the distribution period of one or more users is obtained, and period phase has been distributed with described It is corresponding to have distributed number;
Sub-step 1042, counts the period to be allocated of one or more of users, and with the time to be allocated The corresponding number to be allocated of section;
Sub-step 1043, the number to be allocated of one or more of users is arranged in order, obtains list to be allocated.
In the specific implementation, order of classes or grades at school and each class that every employee arranged in this month can be obtained using the moon as time interval Secondary number on duty, and, the order of classes or grades at school and the number on duty of remaining each order of classes or grades at school that this month had not arranged, then by remaining each order of classes or grades at school Number on duty arranges in order, obtains a list to be allocated.The list to be allocated includes the order of classes or grades at school to be scheduled of whole employees And corresponding number on duty.Putting in order for number on duty can be number ascending order on duty or number descending on duty, The application is not especially limited to this.
Step 105, it is described for the number of users, time segment information to be allocated and corresponding number to be allocated One or more users share out the work the time, to obtain the period allocation result of one or more users.
It is described to be directed to the number of users, time segment information to be allocated and phase in a kind of preferred embodiment of the application The number to be allocated answered, for one or more of users share out the work the time the step of can specifically include following sub-step:
Sub-step 1051, determine number minimum value to be allocated in the list to be allocated;
Sub-step 1052, the period to be allocated corresponding to the number minimum value to be allocated is being distributed into the user Afterwards, by the remaining period to be allocated of the user, and the to be allocated number corresponding with the period to be allocated is from institute State and deleted in list to be allocated;
Sub-step 1053, return and perform sub-step 1051, to obtain the period allocation result of one or more users.
In the embodiment of the present application, after list to be allocated is obtained, number wherein to be allocated can be determined first most Small value, the period to be allocated corresponding to the minimum value is then distributed into the user, then by the information of the user from Deleted in list to be allocated, continue to determine the minimum value of the number to be allocated of remaining users, until distributing for whole users The corresponding period.
, can be by the order of classes or grades at school corresponding to the minimum value after in the specific implementation, determining the minimum value of number to be allocated Corresponding employee is distributed to, then deletes the information for the employee for having distributed order of classes or grades at school, next bit employee is continued as and distributes order of classes or grades at school, until Order of classes or grades at school is arranged properly for whole employees.
In the embodiment of the present application, after the working time to be allocated is received, according to the working time it is multiple when Between section determine the number of users that matches, and then go out period distribution status information according to user's marker extraction, be then directed to The number of users, time segment information to be allocated and corresponding number to be allocated, when being shared out the work for one or more users Between, the automatic distribution of working time is realized, avoids the unreasonable caused operating efficiency due to the manual allocation working time The problem of low.
Reference picture 2, a kind of step flow chart of the distribution method embodiment two of working time of the application is shown, specifically It may include steps of:
Step 201, the working time to be allocated is received;
In the embodiment of the present application, the working time to be allocated can be when needing to arrange on duty one section of employee Between, for example, one day.The working time can include one or more periods, for example, for every day, can be according to work Make or what is produced is actually needed, the working time is divided into multiple periods.For example, 8 points of morning to afternoon 4 points be one Period (mornig shift), 4 points to 12 points at night of afternoon is a period (middle class in a kindergarten), and at 12 points in evening is to 8 points of the next morning and is One period (night shift).
Step 202, the time of the working time is extracted from preset period-number of users mapping table Section, and one or more non-default periods;
In the embodiment of the present application, one or more of periods can include a default time period, and one Or multiple non-default periods.The non-default period can with multiple different order of classes or grades at school (non-default order of classes or grades at school) of same day employee, For example, morning, the middle class in a kindergarten, night shift, alternate night shift, change one's shift to get leave later, night stops etc.;And default time period can be then the acquiescence class of same day employee It is secondary, such as normal day shift.
Step 203, respectively one or more of non-default period distributing user quantity;
Step 204, remaining unappropriated number of users is distributed into the default time period;
In the specific implementation, headcount required for each non-default order of classes or grades at school can be determined first, respectively described non- After acquiescence order of classes or grades at school is assigned headcount, remaining unappropriated headcount can be distributed to acquiescence order of classes or grades at school.
Step 205, user's mark of one or more users is obtained;
In the embodiment of the present application, user's mark can be employee name or the employee's job number of order of classes or grades at school to be allocated, The application is not especially limited to this.
Step 206, count the period to be allocated of one or more of users, and with the period phase to be allocated Corresponding number to be allocated, the number to be allocated of one or more of users is arranged in order, obtains list to be allocated;
In the embodiment of the present application, the period distribution status information can include time segment information to be allocated and phase The number to be allocated answered, and, distribute time segment information and distribute number accordingly.
Generally, whole order of classes or grades at school of every employee required arrangement in certain time section can be pre-set, and often One order of classes or grades at school should be on duty number.For example, using the moon as section, every employee should monthly arrange mornig shift, the middle class in a kindergarten, night shift, night Not, weekend each how many times off duty.
In the specific implementation, order of classes or grades at school and each class that every employee arranged in this month can be obtained using the moon as time interval Secondary number on duty, and, the order of classes or grades at school and the number on duty of remaining each order of classes or grades at school that this month had not arranged, then by remaining each order of classes or grades at school Number on duty arranges in order, obtains a list to be allocated.The list to be allocated includes the order of classes or grades at school to be scheduled of whole employees And corresponding number on duty.Putting in order for number on duty can be number ascending order on duty or number descending on duty, The application is not especially limited to this.
Step 207, number minimum value to be allocated in the list to be allocated is determined;
In the embodiment of the present application, after list to be allocated is obtained, number wherein to be allocated can be determined first most Small value, i.e., the number minimum value on duty of described employee order of classes or grades at school to be scheduled.
For example, if a certain value employee's yesterday is alternate night shift, then is provided according to work, the employee can only just perform today The order of classes or grades at school that night stops, off duty time of his night can sub-quantity on duty be 1, then give him night sub-distribution off duty first when arranging order of classes or grades at school.
Step 208, the period allocation result of one or more users is obtained;
In the specific implementation, determining the minimum value of number to be allocated, and by the order of classes or grades at school corresponding to the minimum value point After the corresponding employee of dispensing, the information for the employee for having distributed order of classes or grades at school can be deleted, then redefines and treats in list to be allocated The minimum value of number is distributed, order of classes or grades at school is distributed so as to continue as next bit employee, until after arranging order of classes or grades at school properly for whole employees, can To obtain the result of arranging an order according to class and grade of whole employees, i.e. period allocation result.
It should be noted that because the minimum value of number to be allocated likely corresponds to multidigit employee, i.e., same order of classes or grades at school may The multidigit employee to be arranged an order according to class and grade corresponding to needs so that for different selections, in fact it could happen that one or more distribution lists, therefore, In the embodiment of the present application, in addition to from one or more of distribution lists optimal allocation result is extracted.
Step 209, optimum allocation result is extracted from one or more of distribution lists.
Generally, one or more of periods can have corresponding period code, i.e., different order of classes or grades at school corresponds to Different order of classes or grades at school codes.
It is described that most optimal sorting is extracted from one or more of distribution lists in a preferred embodiment of the present application The step of with result, can specifically include following sub-step:
Sub-step 2091, for the period code, the mean square deviation of one or more of distribution lists is calculated respectively;
Sub-step 2092, it is optimum allocation result to extract the distribution list corresponding to the mean square deviation minimum value.
In the specific implementation, after multiple distribution lists are obtained, the order of classes or grades at school code can be directed to, calculates the allocated column The mean square deviation of table, the distribution list corresponding to mean square deviation minimum value is then extracted as optimum allocation result.
In the embodiment of the present application, after one or more distribution lists are obtained, more each distribution list can also be passed through Mean square deviation, determine optimum allocation result, avoid the irrationality of artificial selection distribution list.
In order to make it easy to understand, one is made specifically to the working time distribution method of the application with a specific example below It is bright.
Exemplified by thinking that certain line of enterprise's post-sale support one was arranged an order according to class and grade May 9, it is determined that arranging an order according to class and grade the date after 2016-05-09, to lead to Cross and call java Calendar tool-class to judge that the date is first day of one week, then in predefined week order of classes or grades at school strategy Order of classes or grades at school strategy corresponding to Monday " Monday order of classes or grades at school " is extracted in mapping table, acquisition Monday order of classes or grades at school strategy needs the order of classes or grades at school performed and needed The headcount wanted:Morning 3 people, the people of the middle class in a kindergarten 2, the people of night shift 2, the people of alternate night shift 1, change one's shift to get leave later 4 people, and night stops 1 people, and prime shift -1 is (except spy Different other outer employees of order of classes or grades at school are assigned as prime shift), a line total number of persons is 25 people, then prime shift is assigned as after calculating should be 12 People.As shown in Table 1, it is the line whole employee's order of classes or grades at school state table of post-sale support one (employee information does not arrange entirely).
Table one:It is the line whole employee's order of classes or grades at school state table of post-sale support one
By arranging an order according to class and grade, multiple results of arranging an order according to class and grade are obtained:
Result of arranging an order according to class and grade 1 (output is employee's job number and the mapping table of dispensing section time code):
32=62,33=64,39=64,36=57,37=64,447=59,131=64,254=58,255=6 3, 19=64,256=66,48=60,253=59,23=62,22=60,25=64,334=66,267=6 6,26=64,333 =66,124=60,29=64,28=64,121=64,329=89 }
As a result 1 mean square deviation being calculated:31.342228
Result of arranging an order according to class and grade 2
32=64,33=64,39=64,36=57,37=64,447=60,131=60,254=59,255=6 3, 19=64,256=66,253=59,48=62,23=64,22=60,25=64,334=66,267=6 6,26=64,333 =66,124=62,29=58,28=64,121=64,329=89 }
As a result 2 mean square deviation being calculated:30.273243
Result of arranging an order according to class and grade 3
32=62,33=64,39=64,36=57,37=64,447=62,131=58,254=59,255=6 3, 19=64,256=66,253=59,48=60,23=64,22=60,25=64,334=66,267=6 6,26=64,333 =66,124=60,29=64,28=64,121=64,329=89 }
As a result 3 mean square deviation being calculated:31.352312
... (remaining result of arranging an order according to class and grade is not listed)
After being compared to the mean square deviation for result of respectively arranging an order according to class and grade, the result of arranging an order according to class and grade for taking mean square deviation minimum is arranged an order according to class and grade as final As a result, that is, result 2 of arranging an order according to class and grade is optimal result of arranging an order according to class and grade, as shown in Table 2.
The optimal result of arranging an order according to class and grade of table two
Order of classes or grades at school title Number Distribute the lists of persons of the order of classes or grades at school
Mornig shift 3 Yellow pretty X, king is to X, Wang X
The middle class in a kindergarten 2 Liu X, Yang Mu X
Night shift 2 Huang climbs X, Li Yue X
Alternate night shift 1 King X
Change one's shift to get leave later 4 Old war X, golden X, letter sub- X, poplar X
Night stops 1 Yang Ya X
Prime shift 12 The remaining personnel distributed above outside special order of classes or grades at school
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group Close, but those skilled in the art should know, the embodiment of the present application is not limited by described sequence of movement, because according to According to the embodiment of the present application, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and involved action not necessarily the application is implemented Necessary to example.
Reference picture 3, a kind of structured flowchart of the distributor embodiment of working time of the application is shown, specifically can be with Including following module:
Working time receiving module 301, for receiving the working time to be allocated, the working time includes one or more The individual period;
Number of users determining module 302, for the number of users for determining to match with one or more of periods;
User's identifier acquisition module 303, the user for obtaining one or more users identify;
Period distribution status information extraction module 304, for being identified according to the user, extraction is one or more of The period distribution status information of user, the period distribution status information is including time segment information to be allocated and accordingly Number to be allocated;
Working time distribute module 305, for treating for the number of users, time segment information to be allocated and accordingly Number is distributed, is shared out the work the time for one or more of users, to obtain the period of one or more users distribution knot Fruit.
In the embodiment of the present application, the number of users determining module 302 can specifically include following submodule:
Period and number of users determination sub-module 3021, for being carried from preset period-number of users mapping table Take out one or more periods of the working time, and the user to match respectively with one or more of periods Quantity.
In the embodiment of the present application, one or more of periods include a default time period, and one or more Individual non-default period, the period can specifically include such as lower unit with number of users determination sub-module 3021:
Period extraction unit, for extracting the working time from preset period-number of users mapping table A period, and one or more non-default period;
Non-default period number of users allocation unit, for being respectively one or more of non-default period distribution Number of users;
Default time period number of users allocation unit, during for remaining unappropriated number of users to be distributed into the acquiescence Between section.
In the embodiment of the present application, period distribution status information also includes having distributed time segment information and corresponding Distribution number;The period distribution status information extraction module 304 can specifically include following submodule:
Period and number acquisition submodule 3041 are distributed, for obtaining the distribution time of one or more users Section, and with the distribution number that to have distributed the period corresponding;
Period to be allocated and number statistic submodule 3042, for count one or more of users it is to be allocated when Between section, and the to be allocated number corresponding with the period to be allocated;
List to be allocated obtains submodule 3043, for the number to be allocated of one or more of users to be arranged in order Row, obtain list to be allocated.
In the embodiment of the present application, the working time distribute module 305 can specifically include following submodule:
Number determination sub-module 3051 to be allocated, for determining number minimum value to be allocated in the list to be allocated;
Period distribution sub module 3052 to be allocated, for will be to be allocated corresponding to the number minimum value to be allocated After period distributes to the user, by the remaining period to be allocated of the user, and with the period phase to be allocated Corresponding number to be allocated is deleted from the list to be allocated;
Allocation result obtains submodule 3053, determines that number to be allocated is minimum in the list to be allocated for returning to perform The step of value, to obtain the period allocation result of one or more users.
In the embodiment of the present application, the period allocation result includes one or more distribution lists, and described device is also Following module can be included:
Optimum allocation result extraction module 306, for extracting optimum allocation from one or more of distribution lists As a result.
In the embodiment of the present application, one or more of periods have corresponding period code, the most optimal sorting It can specifically include following submodule with result extraction module 306:
Distribution list mean square deviation calculating sub module 3061, for for the period code, calculating respectively one Or the mean square deviation of multiple distribution lists;
Optimum allocation result extracting sub-module 3062, it is for extracting the distribution list corresponding to the mean square deviation minimum value Optimum allocation result.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present application can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present application can use complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can use one or more wherein include computer can With in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
In a typical configuration, the computer equipment includes one or more processors (CPU), input/output Interface, network interface and internal memory.Internal memory may include the volatile memory in computer-readable medium, random access memory The form such as device (RAM) and/or Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is to calculate The example of machine computer-readable recording medium.Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be with Realize that information stores by any method or technique.Information can be computer-readable instruction, data structure, the module of program or Other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or Other magnetic storage apparatus or any other non-transmission medium, the information that can be accessed by a computing device available for storage.According to Herein defines, and computer-readable medium does not include the computer readable media (transitory media) of non-standing, such as The data-signal and carrier wave of modulation.
The embodiment of the present application is with reference to according to the method for the embodiment of the present application, terminal device (system) and computer program The flow chart and/or block diagram of product describes.It should be understood that can be by computer program instructions implementation process figure and/or block diagram In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to produce a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames The device for the function of specifying.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces bag The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present application, those skilled in the art once know base This creative concept, then other change and modification can be made to these embodiments.So appended claims are intended to be construed to Including preferred embodiment and fall into having altered and changing for the embodiment of the present application scope.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or terminal device including a series of elements are not only wrapped Those key elements, but also the other element including being not expressly set out are included, or is also included for this process, method, article Or the key element that terminal device is intrinsic.In the absence of more restrictions, wanted by what sentence "including a ..." limited Element, it is not excluded that other identical element in the process including the key element, method, article or terminal device also be present.
Distribution method to a kind of working time provided herein and a kind of distributor of working time above, enter Go and be discussed in detail, specific case used herein is set forth to the principle and embodiment of the application, and the above is implemented The explanation of example is only intended to help and understands the present processes and its core concept;Meanwhile for the general technology people of this area Member, according to the thought of the application, there will be changes in specific embodiments and applications, in summary, this explanation Book content should not be construed as the limitation to the application.

Claims (14)

  1. A kind of 1. distribution method of working time, it is characterised in that including:
    The working time to be allocated is received, the working time includes one or more periods;
    It is determined that the number of users to match with one or more of periods;
    Obtain user's mark of one or more users;
    Identified according to the user, extract the period distribution status information of one or more of users, the period point Include time segment information to be allocated and corresponding number to be allocated with status information;
    It is one or more of use for the number of users, time segment information to be allocated and corresponding number to be allocated Family shares out the work the time, to obtain the period allocation result of one or more users.
  2. 2. according to the method for claim 1, it is characterised in that the determination matches with one or more of periods Number of users the step of include:
    One or more periods of the working time are extracted from preset period-number of users mapping table, and The number of users to match respectively with one or more of periods.
  3. 3. according to the method for claim 2, it is characterised in that one or more of periods include a default time Section, and one or more non-default periods, it is described to extract the work from preset period-number of users mapping table Make one or more periods of time, and match respectively with one or more of periods number of users the step of Including:
    Extract the period of the working time from preset period-number of users mapping table, and one or Multiple non-default periods;
    Respectively one or more of non-default period distributing user quantity;
    Remaining unappropriated number of users is distributed into the default time period.
  4. 4. according to the method in claim 2 or 3, it is characterised in that the period distribution status information also includes having divided Number is distributed with time segment information and accordingly;It is described to be identified according to the user, extract one or more of users Period distribution status information the step of include:
    Obtain the distribution period of one or more users, and with the distribution time that to have distributed the period corresponding Number;
    Count the period to be allocated of one or more of users, and it is corresponding with the period to be allocated to be allocated Number;
    The number to be allocated of one or more of users is arranged in order, obtains list to be allocated.
  5. 5. according to the method for claim 4, it is characterised in that described to believe for the number of users, period to be allocated Breath and corresponding number to be allocated, for one or more of users share out the work the time the step of include:
    Determine number minimum value to be allocated in the list to be allocated;
    After the period to be allocated corresponding to the number minimum value to be allocated is distributed into the user, by the user's Remaining period to be allocated, and the to be allocated number corresponding with the period to be allocated are deleted from the list to be allocated Remove;
    Return and perform the step of determining number minimum value to be allocated in the list to be allocated, to obtain one or more users' Period allocation result.
  6. 6. according to the method described in claim 1 or 2 or 3 or 5, it is characterised in that the period allocation result includes one Or multiple distribution lists, methods described also include:
    Optimum allocation result is extracted from one or more of distribution lists.
  7. 7. according to the method for claim 6, it is characterised in that one or more of periods have the corresponding period Code, described the step of optimum allocation result is extracted from one or more of distribution lists, include:
    For the period code, the mean square deviation of one or more of distribution lists is calculated respectively;
    It is optimum allocation result to extract the distribution list corresponding to the mean square deviation minimum value.
  8. A kind of 8. distributor of working time, it is characterised in that including:
    Working time receiving module, for receiving the working time to be allocated, the working time includes one or more times Section;
    Number of users determining module, for the number of users for determining to match with one or more of periods;
    User's identifier acquisition module, the user for obtaining one or more users identify;
    Period distributes status information extraction module, for being identified according to the user, extracts one or more of users' Period distributes status information, and period distribution status information includes time segment information to be allocated and corresponding to be allocated Number;
    Working time distribute module, for for the number of users, time segment information to be allocated and to be allocated accordingly time Number, shared out the work the time for one or more of users, to obtain the period allocation result of one or more users.
  9. 9. device according to claim 8, it is characterised in that the number of users determining module includes:
    Period and number of users determination sub-module, it is described for being extracted from preset period-number of users mapping table One or more periods of working time, and the number of users to match respectively with one or more of periods.
  10. 10. device according to claim 9, it is characterised in that when one or more of periods include an acquiescence Between section, and one or more non-default period, the period include with number of users determination sub-module:
    Period extraction unit, for extracting the one of the working time from preset period-number of users mapping table Individual period, and one or more non-default periods;
    Non-default period number of users allocation unit, for being respectively one or more of non-default period distributing users Quantity;
    Default time period number of users allocation unit, for remaining unappropriated number of users to be distributed into the default time Section.
  11. 11. the device according to claim 9 or 10, it is characterised in that the period distribution status information is also included Distribute time segment information and distribute number accordingly;The period distribution status information extraction module includes:
    Period and number acquisition submodule are distributed, for obtaining the distribution period of one or more users, Yi Jiyu It is described to have distributed period corresponding distribution number;
    Period to be allocated and number statistic submodule, for counting the period to be allocated of one or more of users, with And the to be allocated number corresponding with the period to be allocated;
    List to be allocated obtains submodule, for the number to be allocated of one or more of users to be arranged in order, obtains List to be allocated.
  12. 12. device according to claim 11, it is characterised in that the working time distribute module includes:
    Number determination sub-module to be allocated, for determining number minimum value to be allocated in the list to be allocated;
    Period distribution sub module to be allocated, for dividing by the period to be allocated corresponding to the number minimum value to be allocated After user described in dispensing, by the remaining period to be allocated of the user, and corresponding with the period to be allocated treat Distribution number is deleted from the list to be allocated;
    Allocation result obtains submodule, and the step for determining number minimum value to be allocated in the list to be allocated is performed for returning Suddenly, to obtain the period allocation result of one or more users.
  13. 13. according to the device described in claim 8 or 9 or 10 or 12, it is characterised in that the period allocation result includes one Individual or multiple distribution lists, described device also include:
    Optimum allocation result extraction module, for extracting optimum allocation result from one or more of distribution lists.
  14. 14. device according to claim 13, it is characterised in that one or more of periods have the corresponding time Section code, the optimum allocation result extraction module include:
    Distribution list mean square deviation calculating sub module, for for the period code, calculating one or more of points respectively Mean square deviation with list;
    Optimum allocation result extracting sub-module, it is optimum allocation for extracting the distribution list corresponding to the mean square deviation minimum value As a result.
CN201610415027.6A 2016-06-13 2016-06-13 The distribution method and device of a kind of working time Pending CN107491927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610415027.6A CN107491927A (en) 2016-06-13 2016-06-13 The distribution method and device of a kind of working time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610415027.6A CN107491927A (en) 2016-06-13 2016-06-13 The distribution method and device of a kind of working time

Publications (1)

Publication Number Publication Date
CN107491927A true CN107491927A (en) 2017-12-19

Family

ID=60641880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610415027.6A Pending CN107491927A (en) 2016-06-13 2016-06-13 The distribution method and device of a kind of working time

Country Status (1)

Country Link
CN (1) CN107491927A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110147943A (en) * 2019-04-29 2019-08-20 深圳市元征科技股份有限公司 A kind of personnel management methods and relevant apparatus
CN110210801A (en) * 2019-04-25 2019-09-06 好慷(厦门)信息技术有限公司 A kind of service inventory management method and system, server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6445968B1 (en) * 1999-07-12 2002-09-03 Maharaj K. Jalla Task manager
CN102122252B (en) * 2011-03-14 2013-06-19 华中科技大学 Method for designing thread pool capable of ensuring temporal succession
CN103839199A (en) * 2014-03-18 2014-06-04 北京倍得力商务服务有限公司 Resource scheduling system and method
CN104112175A (en) * 2013-04-17 2014-10-22 腾讯科技(深圳)有限公司 Duty arranging method and system
CN105069569A (en) * 2015-08-10 2015-11-18 北京思特奇信息技术股份有限公司 Scheduling method and scheduling system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6445968B1 (en) * 1999-07-12 2002-09-03 Maharaj K. Jalla Task manager
CN102122252B (en) * 2011-03-14 2013-06-19 华中科技大学 Method for designing thread pool capable of ensuring temporal succession
CN104112175A (en) * 2013-04-17 2014-10-22 腾讯科技(深圳)有限公司 Duty arranging method and system
CN103839199A (en) * 2014-03-18 2014-06-04 北京倍得力商务服务有限公司 Resource scheduling system and method
CN105069569A (en) * 2015-08-10 2015-11-18 北京思特奇信息技术股份有限公司 Scheduling method and scheduling system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110210801A (en) * 2019-04-25 2019-09-06 好慷(厦门)信息技术有限公司 A kind of service inventory management method and system, server
CN110210801B (en) * 2019-04-25 2022-05-10 好慷(厦门)信息技术有限公司 Service inventory management method and system and server
CN110147943A (en) * 2019-04-29 2019-08-20 深圳市元征科技股份有限公司 A kind of personnel management methods and relevant apparatus
CN110147943B (en) * 2019-04-29 2023-11-03 深圳市元征科技股份有限公司 Personnel management method and related device

Similar Documents

Publication Publication Date Title
US7251612B1 (en) Method and system for scheduling distribution routes and timeslots
US7539627B2 (en) System and method for forecasting workload and resource requirements in a call center/help desk
US7725339B1 (en) Contact center scheduling using integer programming
US20110167034A1 (en) System and method for metric based allocation of costs
US20200193551A1 (en) Network flow evaluation
CN107291545A (en) The method for scheduling task and equipment of multi-user in computing cluster
CN110580544B (en) Traffic prediction method based on periodic dependence
US11360999B2 (en) Computer-implemented method for managing inventory allocations
CN109996202B (en) Flow charging method and device
CN107038521A (en) Intelligent scheduling and work item distribution
CN111178952A (en) System, method and medium for sales lead follow-up and processing for the automotive industry
CN106250303A (en) Business diary collection and early warning system and business diary collection and method for early warning
US20140324499A1 (en) System and method for automatic shrinkage forecasting
CN107491927A (en) The distribution method and device of a kind of working time
CN110233741A (en) Service charging method, device, equipment and storage medium
CN110175943B (en) Method, device and system for intelligent course management and storage medium
US7006885B2 (en) Method for generating a suggestive dispatch lot list that considers upstream/downstream stage requirements
WO2007134379A1 (en) The management of inventory allocations
Tsubone et al. Production seat booking system for the combination of make-to-order and make-to-stock products
CN107122892A (en) The method and apparatus that a kind of vehicle is arranged an order according to class and grade
US20140222480A1 (en) Test scheduling
US20160004562A1 (en) Method of Centralized Planning of Tasks to be Executed by Computers Satisfying Certain Qualitative Criteria Within a Distributed Set of Computers
CN114219501B (en) Sample labeling resource allocation method, device and application
CN114202258A (en) Intelligent cloud scheduling method and device, computer equipment and storage medium
US20170061380A1 (en) Computerized system and method for controlling electronic distribution of compensation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171219