CN111738470B - Library seat management system and method based on block chain - Google Patents

Library seat management system and method based on block chain Download PDF

Info

Publication number
CN111738470B
CN111738470B CN202010567349.9A CN202010567349A CN111738470B CN 111738470 B CN111738470 B CN 111738470B CN 202010567349 A CN202010567349 A CN 202010567349A CN 111738470 B CN111738470 B CN 111738470B
Authority
CN
China
Prior art keywords
reservation
reserved
time
time period
user
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.)
Active
Application number
CN202010567349.9A
Other languages
Chinese (zh)
Other versions
CN111738470A (en
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.)
Yueqing Fanshan Electric Appliance Co., Ltd
Original Assignee
Yueqing Fanshan Electric Appliance Co 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 Yueqing Fanshan Electric Appliance Co Ltd filed Critical Yueqing Fanshan Electric Appliance Co Ltd
Priority to CN202010567349.9A priority Critical patent/CN111738470B/en
Publication of CN111738470A publication Critical patent/CN111738470A/en
Application granted granted Critical
Publication of CN111738470B publication Critical patent/CN111738470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • 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
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys

Abstract

The invention discloses a library seat management system and method based on a block chain, wherein the management system comprises a binding module, a reservation information input module and a reservation condition distribution module, the binding module is used for binding nodes on the block chain with seat numbers of a library one by one in advance, the nodes on the block chain are used for storing unlocking passwords, use information and reservation information of corresponding library seat numbers, the reservation information input module is used for inputting reservation seat numbers, reservation dates and reservation time periods after a reservation user inputs own account numbers and login passwords to log in the block chain, and the reservation condition distribution module distributes seat reservation conditions of the reservation user according to identification information of the reservation seat numbers output by the block chain nodes corresponding to the reservation seat numbers in the reservation time periods of the reservation dates.

Description

Library seat management system and method based on block chain
Technical Field
The invention relates to the field of block chains, in particular to a library seat management system and method based on a block chain.
Background
The library is a mechanism for collecting, arranging and collecting book data for people to read and refer. The college library is an important component of school teaching and scientific research work as a literature information center of a school, and plays a unique role in comprehensively improving comprehensive qualities of students. The learning atmosphere of the library is rich, so that many people like going to the library to learn. In order to reduce the phenomenon of random seat occupation and standardize the use condition of the seats of the library, a library seat reservation technology is provided. However, in the process of reserving the use of the library seat, the situation that the utilization rate of the library seat is low still occurs.
Disclosure of Invention
The invention aims to provide a library seat management system and method based on a block chain, so as to solve the problems in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme:
a library seat management system based on a block chain comprises a binding module, a reservation information input module and a reservation condition distribution module, wherein the binding module is used for binding nodes on the block chain with seat numbers of a library one by one in advance, the nodes on the block chain are used for storing unlocking passwords, use information and reservation information of corresponding library seat numbers, the reservation information input module is used for inputting reservation seat numbers, reservation dates and reservation time periods after a reservation user inputs own account numbers and login passwords to the block chain, and the reservation condition distribution module is used for distributing seat reservation conditions of the reservation user according to reservation identification information of the reservation seat numbers output by the block chain nodes corresponding to the reservation seat numbers in the reservation time periods of the reservation dates.
Preferably, the reservation condition distribution module comprises an idle distribution module, a locking distribution module and an assignment distribution module, the idle distribution module is used for changing an initial unlocking password of the reserved seat number into a login password of the reserved user under the condition that the reserved seat is not locked in the reserved time period, the locking distribution module is used for distributing the reservation condition of the reserved seat of the reserved user under the condition that part of time of the reserved seat in the reserved time period is locked, the assignment distribution module is used for sending information of whether to accept the assignment of the reserved seat number to the reserved user when the reserved seat number is assigned in the reserved time period, the assignment distribution module is used for sending back the information of accepting the assignment of the reserved seat number to the reserved user when the reserved seat number is assigned in the reserved time period, the reservation user returns the confirmation acceptance information, and the unlocking password of the reserved seat number is changed into the login password of the reserved user from the login password of a locker.
Preferably, the locking distribution module comprises a locking time period acquisition module, a historical reservation use information acquisition module, a deviation calculation module, a reference difference calculation module, an occupation advance distribution module and an occupation delay distribution module, wherein the locking time period acquisition module is used for acquiring reservation starting time and reservation ending time of a locking time period, the historical reservation use information acquisition module is used for acquiring deviation time between actual starting time and reservation starting time of last n times of a locking user and deviation time between reservation ending time and actual ending time, the deviation calculation module calculates deviation according to the deviation time acquired by the historical reservation use information, the reference difference calculation module calculates time reference difference according to the deviation, locking duration of the locking time period and reservation time of the locking user, and when the time reference difference is less than or equal to a time reference difference threshold value, and transmitting information to the occupancy pre-allocation module or the occupancy delayed allocation module to allocate the seat arrangement condition of the reserved user.
Preferably, the occupancy pre-allocation module is used for allocating the seat arrangement situation of the reserved user when the reserved time period is overlapped with the ending time of the locking time period, the occupancy delay allocation module is used for allocating the seat arrangement situation of the reserved user when the reserved time period is overlapped with the starting time of the locking time period, the occupancy pre-allocation module comprises a pre-reserved time period setting module, a reserved seat number monitoring module and a pre-reserved time period modification module, the pre-reserved time period setting module is used for setting two reserved time periods with different priority levels according to the reserved time period and the locking time period when the reserved time period is overlapped with the ending time of the locking time period, the reserved seat number monitoring module is used for monitoring whether the locked user leaves the reserved seat in advance, and the pre-reserved time period modification module is used for monitoring whether the locked user leaves the reserved seat in advance when the locked user leaves the reserved seat in advance, the method comprises the steps that an unlocking password of a seat number in a reserved time period with a high priority level is modified into a login password of a reserved user, the occupation delay distribution module comprises a delay reserved time period setting module, a query information sending module and a delay reserved time period modifying module, when the reserved time period is overlapped with the starting time of a locking time period, two reserved time periods with different priority levels are set according to the reserved time period and the locking time period, the query information sending module sends information to a locking user to query the preset arrival time of the locking user before the reserved time period, and the delay reserved time period modifying module modifies the unlocking password of the seat number in the reserved time period with the high priority level into the login password of the reserved user when the locking user delays arriving at a reserved seat.
A blockchain based library seat management method, the management method comprising:
step S1: binding nodes on a block chain with seat numbers of the library one by one in advance, wherein the nodes on the block chain are used for storing unlocking passwords, use information and reservation information of the corresponding library seat numbers;
step S2: a reservation user inputs an own account and a login password login block chain, inputs a reservation seat number, a reservation date and a reservation time period, wherein the reservation time period comprises a starting time tsy and an ending time tzy;
step S3: and outputting identification information of the reserved time period of the reserved seat number on the reserved date by the block link point corresponding to the reserved seat number, wherein the identification information comprises a locking identification, acquiring the locking time period of the reserved seat in the reserved time period if the locking identification exists in the identification information of the reserved seat in the reserved time period, and acquiring historical reserved seat information of a locking user of the reserved seat number locking time period and historical use seat information from each node of the block chain to determine the seat reservation condition of the reserved user if the locking time period is partially positioned in the reserved time period.
Preferably, the step S1 further includes:
the unlocking password comprises an initial unlocking password and a login password of a user, when the unlocking password of a certain seat number of the library is the initial unlocking password, anyone can unlock the seat corresponding to the seat number by inputting the initial unlocking password, and when the unlocking password of the certain seat number of the library is the login password of the certain user, the seat corresponding to the seat number can be unlocked by inputting the login password of the user.
Preferably, the step S2, if the locking time period is partially within the reserved time period, the determining the seat reservation status of the reservation user by obtaining the historical reserved seat condition and the historical used seat condition of the reservation user of the reserved seat number locking time period from each node of the blockchain further comprises:
a reservation start time ts0 and a reservation end time tz0 of the lock time period are acquired,
acquiring the last n times of historical reserved seats of the locked user from each node of the block chain, and setting the actual starting time d when the last ith historical reserved seat is setsiAnd the reservation starting time tsiIs a deviation time psiAppointment termination time tziAnd an actual end time dziIs a deviation time pzi
Then the degree of departure of the user's start time is locked
Figure BDA0002548079550000051
Figure BDA0002548079550000052
Deviation degree of termination time
Figure BDA0002548079550000053
If the starting time tsy is later than the starting time ts0 and the starting time tsy is earlier than the ending time tz0, calculating a starting time reference difference M1-tz 0-tsy-Zp (tz0-ts0), when the starting time reference difference M1 is less than or equal to the starting time reference difference threshold, setting a first reservation time period of a reservation user as a time tsy and a time tzy, and setting a second reservation time period as a time tz 0-tzy + (tz0-ts0), wherein the priority level of the first reservation time period is higher than that of the second reservation time period, and sending the first reservation time period to the reservation user for confirmation; if the reservation user confirms that the current setting is accepted, the unlocking password of the reserved seat number of the second reserved time period is modified into the login password of the reservation user, meanwhile, the actual termination time dz0 of the locking user is monitored on the reserved date, if the actual termination time dz0 is earlier than the time tsy, information is transmitted to the reservation user, the unlocking password of the reserved seat number in the first reserved time period is modified into the login password of the reservation user from the login password of the locking person, and the unlocking password of the time tzy to tzy + (tz0-tsy) is modified into the initial unlocking password of the reserved seat number from the login password of the reservation user.
Preferably, the step S2 further includes:
if the termination time tzy is earlier than the termination time tz0 and the termination time tzy is later than the start time ts0, calculating a reference difference of the termination time M2-tzy-ts 0-Qp (tz0-ts0), and when the reference difference of the termination time is less than or equal to the reference difference threshold of the termination time, setting a first reservation time period of the reservation user to be from time tsy to time tzy and a second reservation time period to be from time tsy- (tzy-ts0) to time ts0, wherein the priority level of the first reservation time period is higher than that of the second reservation time period and sending the reservation user confirmation; if the reservation user confirms acceptance of the current setting, the unlocking password of the reserved seat number of the second reserved time period is modified to the login password of the reservation user, and meanwhile, information is sent to the locking user to inquire the preset arrival time of the locking user within a period of time before the reserved date and time tsy, and if the preset arrival time is after the time tzy, information is sent to the reservation user to modify the unlocking password of the first reserved time period to the login password of the reservation user.
Preferably, the step S3 further includes:
and if all the identification information of the reserved seats in the reserved time period is the idle identification, changing the initial unlocking password of the reserved seat number into the login password of the reserved user.
Preferably, the step S3 further includes:
the identification information also comprises an assignment identification, when the seat is not reserved in the login block chain of the reservation user, the identification information of the reserved seat number in the reserved time period is monitored, if the assignment identification is added in the reserved time period, the information of whether to accept the seat assignment of the reserved seat number is sent to the reservation user, and if the reservation user returns the information of confirming the acceptance of the assignment, the unlocking password of the reserved seat number is changed into the login password of the reservation user from the login password of a locker.
Compared with the prior art, the invention has the beneficial effects that: according to the invention, when the part of the locking time period of the reserved seat of the reserved user is positioned in the reserved time period, the reserved time period with high priority level is preferentially arranged for the reserved user according to the historical use condition of the reserved seat of the locked user and the use condition of the locked user on the date of reservation, so that the use experience of the reserved user is improved, and the utilization rate of the library seat is further improved.
Drawings
FIG. 1 is a block diagram of a block chain based library seat management system according to the present invention;
fig. 2 is a schematic flow chart of a block chain-based library seat management method according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-2, in an embodiment of the present invention, a library seat management system based on a block chain includes a binding module, a reservation information input module, and a reservation condition allocation module, where the binding module is configured to bind nodes on the block chain with seat numbers of a library one by one in advance, the nodes on the block chain are configured to store unlocking passwords, use information, and reservation information of corresponding seat numbers of the library, the reservation information input module is configured to input a reservation seat number, a reservation date, and a reservation time period after a user inputs an account number of the user and a login password to log in the block chain, and the reservation condition allocation module allocates a reservation condition of a reservation seat of the reservation user according to identification information of the reservation seat number output by the block chain node corresponding to the reservation seat number in the reservation time period of the reservation date.
Preferably, the reservation condition distribution module comprises an idle distribution module, a locking distribution module and an assignment distribution module, the idle distribution module is used for changing an initial unlocking password of the reserved seat number into a login password of the reserved user under the condition that the reserved seat is not locked in the reserved time period, the locking distribution module is used for distributing the reservation condition of the reserved seat of the reserved user under the condition that part of time of the reserved seat in the reserved time period is locked, the assignment distribution module is used for sending information of whether to accept the assignment of the reserved seat number to the reserved user when the reserved seat number is assigned in the reserved time period, the assignment distribution module is used for sending back the information of accepting the assignment of the reserved seat number to the reserved user when the reserved seat number is assigned in the reserved time period, the reservation user returns the confirmation acceptance information, and the unlocking password of the reserved seat number is changed into the login password of the reserved user from the login password of a locker.
Preferably, the locking distribution module comprises a locking time period acquisition module, a historical reservation use information acquisition module, a deviation calculation module, a reference difference calculation module, an occupation advance distribution module and an occupation delay distribution module, wherein the locking time period acquisition module is used for acquiring reservation starting time and reservation ending time of a locking time period, the historical reservation use information acquisition module is used for acquiring deviation time between actual starting time and reservation starting time of last n times of a locking user and deviation time between reservation ending time and actual ending time, the deviation calculation module calculates deviation according to the deviation time acquired by the historical reservation use information, the reference difference calculation module calculates time reference difference according to the deviation, locking duration of the locking time period and reservation time of the locking user, and when the time reference difference is less than or equal to a time reference difference threshold value, and transmitting information to the occupancy pre-allocation module or the occupancy delayed allocation module to allocate the seat arrangement condition of the reserved user.
Preferably, the occupancy pre-allocation module is used for allocating the seat arrangement situation of the reserved user when the reserved time period is overlapped with the ending time of the locking time period, the occupancy delay allocation module is used for allocating the seat arrangement situation of the reserved user when the reserved time period is overlapped with the starting time of the locking time period, the occupancy pre-allocation module comprises a pre-reserved time period setting module, a reserved seat number monitoring module and a pre-reserved time period modification module, the pre-reserved time period setting module is used for setting two reserved time periods with different priority levels according to the reserved time period and the locking time period when the reserved time period is overlapped with the ending time of the locking time period, the reserved seat number monitoring module is used for monitoring whether the locked user leaves the reserved seat in advance, and the pre-reserved time period modification module is used for monitoring whether the locked user leaves the reserved seat in advance when the locked user leaves the reserved seat in advance, the method comprises the steps that an unlocking password of a seat number in a reserved time period with a high priority level is modified into a login password of a reserved user, the occupation delay distribution module comprises a delay reserved time period setting module, a query information sending module and a delay reserved time period modifying module, when the reserved time period is overlapped with the starting time of a locking time period, two reserved time periods with different priority levels are set according to the reserved time period and the locking time period, the query information sending module sends information to a locking user to query the preset arrival time of the locking user before the reserved time period, and the delay reserved time period modifying module modifies the unlocking password of the seat number in the reserved time period with the high priority level into the login password of the reserved user when the locking user delays arriving at a reserved seat.
A blockchain based library seat management method, the management method comprising:
step S1: binding nodes on a block chain with seat numbers of a library one by one in advance, wherein the nodes on the block chain are used for storing unlocking passwords, use information and reservation information of corresponding library seat numbers, the unlocking passwords comprise initial unlocking passwords and login passwords of users, when the unlocking password of a certain seat number of the library is the initial unlocking password, anyone can unlock a seat corresponding to the seat number by inputting the initial unlocking password, and when the unlocking password of a certain seat number of the library is the login password of a certain user, the seat corresponding to the seat number can be unlocked by inputting the login password of the user;
step S2: a reservation user inputs an own account and a login password login block chain, inputs a reservation seat number, a reservation date and a reservation time period, wherein the reservation time period comprises a starting time tsy and an ending time tzy;
step S3: the block link point corresponding to the reserved seat number outputs identification information of the reserved time period of the reserved seat number on the reserved date, the identification information including a lock identification, acquires a lock time period of the reserved seat in the reserved time period if the lock identification exists in the identification information of the reserved seat in the reserved time period, acquires a reservation start time ts0 and a reservation end time tz0 of the lock time period if the lock time period is partially within the reserved time period,
acquiring the last n times of historical reserved seats of the locked user from each node of the block chain, and setting the actual starting time d when the last ith historical reserved seat is setsiAnd the reservation starting time tsiIs a deviation time psiAppointment termination time tziAnd an actual end time dziIs a deviation time pzi
Then the user is lockedDegree of deviation of the starting time of
Figure BDA0002548079550000111
Figure BDA0002548079550000112
Deviation degree of termination time
Figure BDA0002548079550000113
If the starting time tsy is later than the starting time ts0 and the starting time tsy is earlier than the ending time tz0, calculating a starting time reference difference M1-tz 0-tsy-Zp (tz0-ts0), when the starting time reference difference M1 is less than or equal to the starting time reference difference threshold, setting a first reservation time period of a reservation user as a time tsy and a time tzy, and setting a second reservation time period as a time tz 0-tzy + (tz0-ts0), wherein the priority level of the first reservation time period is higher than that of the second reservation time period, and sending the first reservation time period to the reservation user for confirmation; modifying the unlocking password of the reserved seat number of the second reserved time period into the login password of the reserved user if the reserved user confirms that the current setting is accepted, monitoring the actual termination time dz0 of the locked user at the reserved date, transmitting information to the reserved user if the actual termination time dz0 is earlier than the time tsy, modifying the unlocking password of the reserved seat number in the first reserved time period from the login password of the locked person into the login password of the reserved user, and modifying the unlocking password of the time tzy to tzy + (tz0-tsy) from the login password of the reserved user into the initial unlocking password of the reserved seat number;
if the termination time tzy is earlier than the termination time tz0 and the termination time tzy is later than the start time ts0, calculating a reference difference of the termination time M2-tzy-ts 0-Qp (tz0-ts0), and when the reference difference of the termination time is less than or equal to the reference difference threshold of the termination time, setting a first reservation time period of the reservation user to be from time tsy to time tzy and a second reservation time period to be from time tsy- (tzy-ts0) to time ts0, wherein the priority level of the first reservation time period is higher than that of the second reservation time period and sending the reservation user confirmation; if the reservation user confirms that the current setting is accepted, modifying the unlocking password of the reserved seat number of the second reserved time period into the login password of the reservation user, simultaneously sending information to the locking user to inquire the preset arrival time of the locking user within a period of time before the reserved date and time tsy, and if the preset arrival time is after the time tzy, sending information to the reservation user to modify the unlocking password of the first reserved time period into the login password of the reservation user;
the identification information also comprises an idle identification and an assignment identification, and if all the identification information of the reserved seat in the reserved time period is the idle identification, the initial unlocking password of the reserved seat number is changed into the login password of the reserved user;
when the reservation user does not reserve seats in the login block chain, monitoring the identification information of the reserved seat number in the reserved time period, if the reserved seat number is added with an assignment identification in the reserved time period, sending information of whether to accept seat assignment of the reserved seat number to the reservation user, and if the reservation user returns the information of confirming acceptance of assignment, modifying the unlocking password of the reserved seat number into the login password of the reservation user from the login password of a locker.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (6)

1. A block chain based library seat management system, comprising: the management system comprises a binding module, a reservation information input module and a reservation condition distribution module, wherein the binding module is used for binding nodes on a block chain with seat numbers of a library one by one in advance, the nodes on the block chain are used for storing unlocking passwords, use information and reservation information of the corresponding seat numbers of the library, the reservation information input module is used for inputting reservation seat numbers, reservation dates and reservation time periods after a reservation user inputs own account numbers and login passwords to log in the block chain, and the reservation condition distribution module is used for distributing seat reservation conditions of the reservation user according to identification information of the reservation seat numbers output by the block chain nodes corresponding to the reservation seat numbers in the reservation time periods of the reservation dates;
the reservation condition distribution module comprises an idle distribution module, a locking distribution module and an assignment distribution module, wherein the idle distribution module is used for changing an initial unlocking password of a reserved seat number into a login password of a reserved user under the condition that a reserved seat is not locked in a reserved time period, the locking distribution module is used for distributing the reservation condition of the reserved seat of the reserved user under the condition that part of time of the reserved seat in the reserved time period is locked, the assignment distribution module is used for sending information of whether to accept seat assignment of the reserved seat number to the reserved user when the reserved seat number is assigned in the reserved time period, returning confirmation of acceptance of assignment information by the reserved user, and changing the unlocking password of the reserved seat number into the login password of the reserved user from the login password of a locker;
the locking distribution module comprises a locking time period acquisition module, a historical reservation use information acquisition module, a deviation degree calculation module, a reference difference calculation module, an occupation advance distribution module and an occupation delay distribution module, wherein the locking time period acquisition module is used for acquiring reservation starting time and reservation ending time of a locking time period, the historical reservation use information acquisition module is used for acquiring deviation time of actual starting time and reservation starting time of last n times of a locking user and deviation time of reservation ending time and actual ending time, the deviation degree calculation module calculates deviation degree according to the deviation time acquired by the historical reservation use information, the reference difference calculation module calculates time reference difference according to the deviation degree, locking duration of the locking time period and the reservation time of the reserving user, and when the time reference difference is less than or equal to a time reference difference threshold value, and transmitting information to the occupancy pre-allocation module or the occupancy delayed allocation module to allocate the seat arrangement condition of the reserved user.
2. The blockchain-based library seat management system of claim 1, wherein: the occupancy pre-allocation module is used for allocating the seat arrangement situation of the reservation user when the reservation time period is overlapped with the ending time of the locking time period, the occupancy delay allocation module is used for allocating the seat arrangement situation of the reservation user when the reservation time period is overlapped with the starting time of the locking time period, the occupancy pre-allocation module comprises a pre-reservation time period setting module, a reservation seat number monitoring module and a pre-reservation time period modification module, the pre-reservation time period setting module sets two reservation time periods with different priority levels according to the reservation time period and the locking time period when the reservation time period is overlapped with the ending time of the locking time period, the reservation seat number monitoring module is used for monitoring whether the locking user leaves the reservation seat in advance, and the pre-reservation time period modification module is used for monitoring whether the locking user leaves the reservation seat in advance when the locking user leaves the reservation seat in advance, the method comprises the steps that an unlocking password of a seat number in a reserved time period with a high priority level is modified into a login password of a reserved user, the occupation delay distribution module comprises a delay reserved time period setting module, a query information sending module and a delay reserved time period modifying module, when the reserved time period is overlapped with the starting time of a locking time period, two reserved time periods with different priority levels are set according to the reserved time period and the locking time period, the query information sending module sends information to a locking user to query the preset arrival time of the locking user before the reserved time period, and the delay reserved time period modifying module modifies the unlocking password of the seat number in the reserved time period with the high priority level into the login password of the reserved user when the locking user delays arriving at a reserved seat.
3. A library seat management method based on a block chain is characterized in that: the management method comprises the following steps:
step S1: binding nodes on a block chain with seat numbers of the library one by one in advance, wherein the nodes on the block chain are used for storing unlocking passwords, use information and reservation information of the corresponding library seat numbers;
step S2: a reservation user inputs an own account and a login password login block chain, inputs a reservation seat number, a reservation date and a reservation time period, wherein the reservation time period comprises a starting time tsy and an ending time tzy;
step S3: outputting identification information of a reserved time period of the reserved seat number on a reserved date by a block link point corresponding to the reserved seat number, wherein the identification information comprises a locking identification, acquiring the locking time period of the reserved seat in the reserved time period if the locking identification exists in the identification information of the reserved seat in the reserved time period, and acquiring historical reserved seat information and historical use seat information of a locking user of the reserved seat number locking time period from each node of the block chain to determine the seat reservation condition of the reserved user if the locking time period is partially positioned in the reserved time period;
the step S1 further includes:
the unlocking password comprises an initial unlocking password and a login password of a user, when the unlocking password of a certain seat number of the library is the initial unlocking password, anyone can unlock the seat corresponding to the seat number by inputting the initial unlocking password, and when the unlocking password of the certain seat number of the library is the login password of the certain user, the seat corresponding to the seat number can be unlocked by inputting the login password of the user;
the determining the seat reservation situation of the reservation user by obtaining the historical reserved seat situation of the reservation user and the historical used seat situation of the reservation user from each node of the blockchain if the locking time period part is located in the reservation time period in the step S3 further comprises:
a reservation start time ts0 and a reservation end time tz0 of the lock time period are acquired,
acquiring the last n times of historical reserved seats of the locked user from each node of the block chain, and setting the actual starting time d when the last ith historical reserved seat is setsiAnd the reservation starting time tsiIs a deviation time psiAnd the reservation is terminatedTime tziAnd an actual end time dziIs a deviation time pzi
Then the degree of departure of the user's start time is locked
Figure FDA0002971079790000041
Figure FDA0002971079790000042
Deviation degree of termination time
Figure FDA0002971079790000043
If the starting time tsy is later than the starting time ts0 and the starting time tsy is earlier than the ending time tz0, calculating a starting time reference difference M1-tz 0-tsy-Zp (tz0-ts0), when the starting time reference difference M1 is less than or equal to the starting time reference difference threshold, setting a first reservation time period of a reservation user as a time tsy and a time tzy, and setting a second reservation time period as a time tz 0-tzy + (tz0-ts0), wherein the priority level of the first reservation time period is higher than that of the second reservation time period, and sending the first reservation time period to the reservation user for confirmation; if the reservation user confirms that the current setting is accepted, the unlocking password of the reserved seat number of the second reserved time period is modified into the login password of the reservation user, meanwhile, the actual termination time dz0 of the locking user is monitored on the reserved date, if the actual termination time dz0 is earlier than the time tsy, information is transmitted to the reservation user, the unlocking password of the reserved seat number in the first reserved time period is modified into the login password of the reservation user from the login password of the locking person, and the unlocking password of the time tzy to tzy + (tz0-tsy) is modified into the initial unlocking password of the reserved seat number from the login password of the reservation user.
4. The block chain based library seat management method of claim 3, wherein: the step S3 further includes:
if the termination time tzy is earlier than the termination time tz0 and the termination time tzy is later than the start time ts0, calculating a reference difference of the termination time M2-tzy-ts 0-Qp (tz0-ts0), and when the reference difference of the termination time is less than or equal to the reference difference threshold of the termination time, setting a first reservation time period of the reservation user to be from time tsy to time tzy and a second reservation time period to be from time tsy- (tzy-ts0) to time ts0, wherein the priority level of the first reservation time period is higher than that of the second reservation time period and sending the reservation user confirmation; if the reservation user confirms acceptance of the current setting, the unlocking password of the reserved seat number of the second reserved time period is modified to the login password of the reservation user, and meanwhile, information is sent to the locking user to inquire the preset arrival time of the locking user within a period of time before the reserved date and time tsy, and if the preset arrival time is after the time tzy, information is sent to the reservation user to modify the unlocking password of the first reserved time period to the login password of the reservation user.
5. The block chain based library seat management method of claim 3, wherein: the step S3 further includes:
and if all the identification information of the reserved seats in the reserved time period is the idle identification, changing the initial unlocking password of the reserved seat number into the login password of the reserved user.
6. The block chain based library seat management method of claim 5, wherein: the step S3 further includes:
the identification information also comprises an assignment identification, when the seat is not reserved in the login block chain of the reservation user, the identification information of the reserved seat number in the reserved time period is monitored, if the assignment identification is added in the reserved time period, the information of whether to accept the seat assignment of the reserved seat number is sent to the reservation user, and if the reservation user returns the information of confirming the acceptance of the assignment, the unlocking password of the reserved seat number is changed into the login password of the reservation user from the login password of a locker.
CN202010567349.9A 2020-06-19 2020-06-19 Library seat management system and method based on block chain Active CN111738470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010567349.9A CN111738470B (en) 2020-06-19 2020-06-19 Library seat management system and method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010567349.9A CN111738470B (en) 2020-06-19 2020-06-19 Library seat management system and method based on block chain

Publications (2)

Publication Number Publication Date
CN111738470A CN111738470A (en) 2020-10-02
CN111738470B true CN111738470B (en) 2021-11-05

Family

ID=72651780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010567349.9A Active CN111738470B (en) 2020-06-19 2020-06-19 Library seat management system and method based on block chain

Country Status (1)

Country Link
CN (1) CN111738470B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108537666A (en) * 2018-04-09 2018-09-14 深圳市云蚂蚁科技有限责任公司 A kind of block catenary system and block chain network method of commerce
CN108713209A (en) * 2018-05-30 2018-10-26 深圳市元征科技股份有限公司 Repair management method, system and the data management server of station
CN108877290A (en) * 2018-08-03 2018-11-23 中国联合网络通信集团有限公司 Parking stall dispatching method, device, equipment and storage medium
CN109118076A (en) * 2018-08-03 2019-01-01 中国联合网络通信集团有限公司 Parking stall dispatching method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102048961B1 (en) * 2018-05-24 2019-11-26 주식회사 카카오게임즈 Computer program, server and method for advertising intermediation through block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108537666A (en) * 2018-04-09 2018-09-14 深圳市云蚂蚁科技有限责任公司 A kind of block catenary system and block chain network method of commerce
CN108713209A (en) * 2018-05-30 2018-10-26 深圳市元征科技股份有限公司 Repair management method, system and the data management server of station
CN108877290A (en) * 2018-08-03 2018-11-23 中国联合网络通信集团有限公司 Parking stall dispatching method, device, equipment and storage medium
CN109118076A (en) * 2018-08-03 2019-01-01 中国联合网络通信集团有限公司 Parking stall dispatching method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111738470A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN108600301B (en) Cross-link method between block chains and main block chain
US10880095B2 (en) Electronic apparatus, method for electronic apparatus and information processing system
Rubin Message delays in FDMA and TDMA communication channels
US8261329B2 (en) Trust and identity in secure calendar sharing collaboration
CN106878000A (en) A kind of alliance's chain common recognition method and system
DE60027054T2 (en) Distributed time stamping system
CN111813864A (en) Alliance chain building method and device, computer equipment and storage medium
CN112069550B (en) Electronic contract evidence-storing system based on intelligent contract mode
CN111738470B (en) Library seat management system and method based on block chain
CN111047064B (en) Delivery reservation method for express cabinet
Hunt et al. Outcomes of applications to court for contact orders after parental separation or divorce
CN111159764A (en) Voting-based method for realizing alliance chain autonomy by combining link-up and link-down
CN115499129A (en) Multimode trust cross-chain consensus method, system, medium, equipment and terminal
CN110278246B (en) Certificate storage service transfer method, device and equipment for alliance chain
CN111223227B (en) Target user screening method and device
Ghosal et al. Computing robustness of flexray schedules to uncertainties in design parameters
CN112418466B (en) Train sectional seat ticketing method based on ticket amount distribution
CN112261109B (en) Multi-airport time slot exchange system and method based on block chain
CN110070347B (en) Cloud service-based travel state management system and method
CN110225130B (en) Public place mobile terminal positioning intelligent transaction and social contact system and method
CN109391643A (en) Block chain light-weight technologg method, block chain node and storage medium
JP2003114962A (en) Schedule managing system
CN112199729A (en) Verification method and system for cone block chain
CN112215707A (en) Use method of customized asset transaction intelligent contract based on block chain
CN111930838A (en) Time-oriented distributed file management method

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
TA01 Transfer of patent application right

Effective date of registration: 20211019

Address after: 325600 Zhiguang village, Liushi Town, Leqing City, Wenzhou City, Zhejiang Province

Applicant after: Yueqing Fanshan Electric Appliance Co., Ltd

Address before: 215000 no.216, Jialingjiang Road, high tech Zone, Suzhou City, Jiangsu Province

Applicant before: Yang Yiwen

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant