The invention provides an attendance man-hour and night shift
algorithm supporting out-of-order uploading, and the steps are as follows: S1, a sending end selects latest card swiping data in to-be-uploaded card swiping data, and uploads the card swiping data to a cloud end for storage, the cloud end stores card swiping information
List, the card swiping information
List is composed of overview information and card swiping details, and the overview information comprises attendance marks and
working hours; and S2, when each time of card swiping data is uploaded and put in storage, the cloud calls old card swiping information
List corresponding to the card swiping data, recalculates the attendance identification and the
working hours based on the uploaded card swiping data, and updates the old card swiping information List to obtain new card swiping information List. The
algorithm provided by the invention can support the operation site to upload the latest data preferentially, so that
project management personnel can check the latest statistical data in time; the attendance additional recording of the
full life cycle of the project can be supported, and convenience is provided for perfecting the project data; and the query amount and the calculation amount during attendance warehousing can be reduced, and the attendance warehousing efficiency is improved.