✨作者主页:IT研究室✨
个人简介:曾从事计算机专业培训教学,擅长Java、Python、微信小程序、Golang、安卓Android等。接项目定制开发、代码讲解、答辩教学、文档编写、降重等。
☑文末获取源码☑
精彩专栏推荐⬇⬇⬇
Java项目
Python项目
安卓项目
微信小程序项目
在当今信息化社会,随着大学规模的不断扩大,学生宿舍管理面临着越来越多的挑战。如何实现便捷、有序、安全的学生宿舍管理已成为各大学亟待解决的问题。传统的学生宿舍管理方式往往依赖人工操作,不仅效率低下,而且容易出错。因此,开发一款智慧学生宿舍管理系统,对于提高学生宿舍管理水平,提高学生学习生活的体验具有重要意义。
当前,一些学校已经开始尝试使用学生宿舍管理系统,但这些系统往往功能单一,只能处理某一特定问题,无法满足学生、教师、宿管、维修人员等多方需求。此外,这些系统普遍缺乏数据分析和决策支持功能,无法为管理者提供准确的信息,以帮助他们做出更好的决策。因此,开发一款功能齐全、灵活,能够满足各方需求,并具备数据分析和决策支持功能的智慧学生宿舍管理系统是十分必要的。
智慧学生宿舍管理系统将提供包括学生管理、教师管理、宿管管理、外来人员管理、维修人员管理、学生信息管理、学生签到管理、学生物品管理、口令码管理、学生进出宿舍管理、教师进出宿舍管理、申请信息管理、导员确定管理、宿舍物品管理、公告物品管理、预约使用管理、取消预约管理、水电信息管理、宿舍卫生管理、晚归未归登记管理、失物招领管理、寻物启事管理、违纪登记管理、环境信息管理、通知公告管理、学生报修管理、报修接单管理、报修订单管理、学生评价管理、排行榜管理等在内的多种功能。
系统的研究目的在于通过先进的信息化技术,实现学生宿舍管理的智能化,提高管理效率,降低管理成本,同时提供安全、舒适的学生生活环境。
智慧学生宿舍管理系统的开发和应用具有重要的意义。首先,系统可以为学生提供方便快捷的服务,如在线报修、物品预约等,从而提高学生满意度。其次,系统可以提高宿舍管理的效率和质量,通过自动化的数据采集和分析,为管理者提供准确的信息支持,帮助他们更好地制定决策。此外,系统还可以提供安全保障,如对学生进出宿舍的自动监控,对晚归未归学生的及时登记等。再次,系统可以增进学校和学生之间的互动交流,通过评价管理和排行榜等功能,增强学生的参与感和归属感。
# ----------------------------------------------通知信息表------------------------------------------------#
def tongzhi_opendb():
conn = sqlite3.connect("doem_repair_info.db")
cur = conn.execute(
"""create table if not exists tongzhi_info(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,tongzhi varchar(256))""")
return cur, conn
def tongzhi_insert_data(tongzhi):
try:
hel = tongzhi_opendb()
hel[1].execute(
"insert into tongzhi_info(tongzhi) values ('%s')" % (tongzhi))
hel[1].commit()
hel[1].close()
return 1
except:
return 0
# 根据id查找用户整体信息
def tongzhi_select_all():
hel = tongzhi_opendb()
cur = hel[1].cursor()
cur.execute("select * from tongzhi_info")
res = cur.fetchall()
return res
cur.close()
# ----------------------------------------------宿舍管理员信息表------------------------------------------------#
def dorm_opendb():
conn = sqlite3.connect("doem_repair_info.db")
cur = conn.execute(
"""create table if not exists dorm_info(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,userName varchar(56),phoneNumber varchar(12),passWord varchar(256))""")
return cur, conn
def dorm_insert_data(userName, phoneNumber, passWord):
try:
hel = dorm_opendb()
hel[1].execute("insert into dorm_info(userName,phoneNumber, passWord) values ('%s','%s','%s')" % (
userName, phoneNumber, passWord))
hel[1].commit()
hel[1].close()
return 1
except:
return 0
# 查找用户整体信息
def dorm_select_phone_password(phoneNumber, passWord):
hel = dorm_opendb()
cur = hel[1].cursor()
cur.execute("select * from dorm_info where phoneNumber='%s' and passWord='%s'" %
(phoneNumber, passWord))
res = cur.fetchall()
return res
cur.close()
def dorm_alter_id(userName, phoneNumber, passWord, id):
hel = dorm_opendb()
cur = hel[1].cursor()
cur.execute("update dorm_info set userName='%s',phoneNumber='%s',passWord='%s' where id='%s'" % (
userName, phoneNumber, passWord, id))
print("宿管资料已修改!")
hel[1].commit()
hel[1].close()
# 根据手机号查找用户整体信息
def dorm_select_phonenumber(phoneNumber):
hel = dorm_opendb()
cur = hel[1].cursor()
cur.execute("select * from dorm_info where phoneNumber='%s'" % phoneNumber)
res = cur.fetchall()
return res
cur.close()
# 根据id查找用户整体信息
def dorm_select_all():
hel = dorm_opendb()
cur = hel[1].cursor()
cur.execute("select * from dorm_info")
res = cur.fetchall()
return res
cur.close()
# 根据id查找用户整体信息
def dorm_select_id(id):
hel = dorm_opendb()
cur = hel[1].cursor()
cur.execute("select * from dorm_info where id='%s'" % id)
res = cur.fetchall()
return res
cur.close()
def dorm_alter_id(userName, phoneNumber, passWord, id):
hel = dorm_opendb()
cur = hel[1].cursor()
cur.execute("update dorm_info set userName='%s',phoneNumber='%s',passWord='%s' where id='%s'" % (
userName, phoneNumber, passWord, id))
print("宿管资料已修改!")
hel[1].commit()
hel[1].close()
# ----------------------------------------------报修信息表------------------------------------------------#
def repair_opendb():
conn = sqlite3.connect("doem_repair_info.db")
cur = conn.execute(
"""create table if not exists repair_info(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,student_id varchar(56),userName varchar(56),dormAddress varchar(216),description varchar(256),phoneNumber varchar(12),repairDate varchar(126),status varchar(3),appraise varchar(256),money varchar(256))""")
return cur, conn
def repair_insert_data(student_id, userName, dormAddress, description, phoneNumber, repairDate, status, appraise,money):
try:
hel = repair_opendb()
hel[1].execute("insert into repair_info(student_id, userName,dormAddress, description,phoneNumber, repairDate,status,appraise,money) values ('%s','%s','%s','%s','%s','%s','%s','%s','%s')" % (
student_id, userName, dormAddress, description, phoneNumber, repairDate, status, appraise,money))
hel[1].commit()
hel[1].close()
print('ok')
return 1
except:
return 0
# 根据id查找用户整体信息
def repair_select_id(student_id):
hel = repair_opendb()
cur = hel[1].cursor()
cur.execute("select * from repair_info where student_id='%s'" % student_id)
res = cur.fetchall()
return res
cur.close()
# 根据id查找用户整体信息
def repair_select_all():
hel = repair_opendb()
cur = hel[1].cursor()
cur.execute("select * from repair_info")
res = cur.fetchall()
return res
cur.close()
def repair_alter_id(id, status):
try:
hel = repair_opendb()
cur = hel[1].cursor()
cur.execute(
"update repair_info set status='%s' where id='%s'" % (status, id))
print("资料已修改!")
hel[1].commit()
hel[1].close()
return 1
except:
return 0
def repair_alter_money(id, money):
try:
hel = repair_opendb()
cur = hel[1].cursor()
cur.execute(
"update repair_info set money='%s' where id='%s'" % (money, id))
hel[1].commit()
hel[1].close()
return 1
except:
return 0
def repair_alter_id_appraise(id, appraise):
try:
hel = repair_opendb()
cur = hel[1].cursor()
cur.execute(
"update repair_info set appraise='%s' where id='%s'" % (appraise, id))
print("资料已修改!")
hel[1].commit()
hel[1].close()
return 1
except:
return 0
def repair_del_id(id):
try:
hel = repair_opendb()
cur = hel[1].cursor()
cur.execute("delete from repair_info where id='%s'" % id)
print("报修信息已删除!")
hel[1].commit()
hel[1].close()
return 1
except:
return 0
# ----------------------------------------------用户信息表------------------------------------------------#
def student_opendb():
conn = sqlite3.connect("doem_repair_info.db")
cur = conn.execute(
"""create table if not exists student_info(id varchar(56),userName varchar(56),dormName varchar(216),phoneNumber varchar(12),passWord varchar(256))""")
return cur, conn
def student_insert_data(id, userName, dormName, phoneNumber, passWord):
try:
hel = student_opendb()
hel[1].execute("insert into student_info(id, userName, dormName, phoneNumber, passWord) values ('%s','%s','%s','%s','%s')" % (
id, userName, dormName, phoneNumber, passWord))
hel[1].commit()
hel[1].close()
return 1
except:
return 0
# 根据phoneNumber查找用户整体信息
def student_select_phone_password(phoneNumber, passWord):
hel = student_opendb()
cur = hel[1].cursor()
cur.execute("select * from student_info where phoneNumber='%s' and passWord='%s'" %
(phoneNumber, passWord))
res = cur.fetchall()
return res
cur.close()
# 根据id查找用户整体信息
def student_select_id(id):
hel = student_opendb()
cur = hel[1].cursor()
cur.execute("select * from student_info where id='%s'" % id)
res = cur.fetchall()
return res
cur.close()
def student_select_all():
hel = student_opendb()
cur = hel[1].cursor()
cur.execute("select * from student_info")
res = cur.fetchall()
return res
cur.close()
# 根据手机号查找用户整体信息
def student_select_phonenumber(phoneNumber):
hel = student_opendb()
cur = hel[1].cursor()
cur.execute("select * from student_info where phoneNumber='%s'" %
phoneNumber)
res = cur.fetchall()
return res
cur.close()
def student_del_id(id):
try:
hel = student_opendb()
cur = hel[1].cursor()
cur.execute("delete from student_info where id='%s'" % id)
print("用户信息已删除!")
hel[1].commit()
hel[1].close()
return 1
except:
return 0
def student_alter_id(id, userName, dormName, phoneNumber, passWord):
hel = student_opendb()
cur = hel[1].cursor()
cur.execute("update student_info set userName='%s',dormName='%s',phoneNumber='%s',passWord='%s' where id='%s'" % (
userName, dormName, phoneNumber, passWord, id))
print("资料已修改!")
hel[1].commit()
hel[1].close()
# 后台主页view
@app.route('/')
def index():
try:
if not session.get("phoneNumber"):
return redirect("/login")
else:
user = {}
student_res = student_select_phonenumber(session.get("phoneNumber"))
dorm_res = dorm_select_phonenumber(session.get("phoneNumber"))
if student_res:
user = {"id": student_res[0][0],
"userName": student_res[0][1],
"dormName": student_res[0][2],
"phoneNumber": student_res[0][3]
}
flag_user = 2 # 身份判定 0 系统管理员,1 宿舍管理员,2 学生
elif dorm_res:
user = {"id": dorm_res[0][0],
"userName": dorm_res[0][1],
"phoneNumber": dorm_res[0][2]
}
flag_user=1
else:
user = {"userName": "管理员"}
flag_user=0
return render_template('home.html', user=user, flag_user=flag_user)
except:
return redirect("/login")
# 学生登录接口
@app.route('/studen_singIn', methods=['GET', 'POST'])
def studen_singIn():
# 从request对象中读取表单内容:
data = json.loads(request.form.get('data'))
phoneNumber = data['phoneNumber']
passWord = data['password']
a = hashlib.md5()
a.update(passWord.encode(encoding="utf-8"))
md5Password = a.hexdigest() # sha1哈希加密
res = student_select_phone_password(phoneNumber, md5Password)
if res:
session['phoneNumber'] = phoneNumber
session.permanent = True
return jsonify({'status': 200, 'errmsg': '登录成功!'})
else:
return jsonify({'status': 500, 'errmsg': '登录失败,登录信息不存在!'})
# 维修登录接口
@app.route('/admin_singIn', methods=['GET', 'POST'])
def admin_singIn():
# 从request对象中读取表单内容:
data = json.loads(request.form.get('data'))
phoneNumber = data['phoneNumber']
passWord = data['password']
a = hashlib.md5()
a.update(passWord.encode(encoding="utf-8"))
md5Password = a.hexdigest() # sha1哈希加密
res_2 = dorm_select_phone_password(phoneNumber, md5Password)
if res_2:
session['phoneNumber'] = phoneNumber
session.permanent = True
return jsonify({'status': 200, 'errmsg': '登录成功!'})
elif phoneNumber=="admin" and passWord=="root1234":
session['phoneNumber'] = "管理员"
session.permanent = True
return jsonify({'status': 200, 'errmsg': '登录成功!'})
else:
return jsonify({'status': 500, 'errmsg': '登录失败,登录信息不存在!'})
# 学生登录view
@app.route('/login')
def login():
if not session.get("phoneNumber"):
return render_template("login.html")
else:
return redirect("/")
# 退出登录view
@app.route('/logout')
def logout():
try:
session.pop("phoneNumber")
return render_template("login.html")
except:
return render_template("login.html")
# 添加通知
@app.route('/addTongZhi',methods=['POST'])
def addTongZhi():
# res=tongzhi_insert_data()
tongzhi=request.form['tongzhi']
print(tongzhi)
res = tongzhi_insert_data(tongzhi)
if res:
return jsonify({'status': 200, 'errmsg': '添加成功!'})
else:
return jsonify({'status': 500, 'errmsg': '添加失败!'})
# 通知添加view
@app.route('/tongzhiAdd')
def tongzhiAdd():
return render_template('addTongzhi.html')
# 学生添加view
@app.route('/student_addView')
def student_addView():
return render_template('/user/addView.html')
# 添加学生信息
@app.route('/student_add', methods=['POST'])
def student_add():
# 从request对象中读取表单内容:
id = request.form['id']
userName = request.form['userName']
dormName = request.form['dormName']
phoneNumber = request.form['phoneNumber']
password = request.form['passWord']
a = hashlib.md5()
a.update(password.encode(encoding="utf-8"))
md5Password = a.hexdigest() # sha1哈希加密
res = student_insert_data(id, userName, dormName, phoneNumber, md5Password)
if res:
return jsonify({'status': 200, 'errmsg': '添加成功!'})
else:
return jsonify({'status': 500, 'errmsg': '添加失败!'})
# 学生添加报修view
@app.route('/student_addRepairView/')
def student_addRepairView(id):
res = student_select_id(id)
user = {}
if res:
user = {"id": res[0][0],"userName": res[0][1], "dormName": res[0][2],"phoneNumber": res[0][3]}
return render_template('/user/add_repairView.html', info=user)
# 学生添加报修信息
@app.route('/student_addRepair', methods=['POST'])
def student_addRepair():
try:
# 从request对象中读取表单内容:
student_id = request.form['id']
userName = request.form['userName']
dormName = request.form['dormName']
phoneNumber = request.form['phoneNumber']
dormAddress = request.form['dormAddress']
description = request.form['description']
now = datetime.now() # current date and time
repairDate = now.strftime("%Y-%m-%d %H:%M:%S")
status='1'
#发送邮件
contant="报修用户姓名:%s\n报修用户电话号码:%s\n报修地址:%s\n报修详情:%s\n报修时间:%s"%(userName,phoneNumber,dormAddress, description, repairDate)
send_qqemails(contant)
#插入数据库
print('start')
res=repair_insert_data(student_id, userName,dormAddress, description,phoneNumber, repairDate,status,"暂无评价!","维修人员暂未设置费用!")
if res:
print('200')
return jsonify({'status': 200, 'errmsg': '报修成功!'})
else:
print('500')
return jsonify({'status': 500, 'errmsg': '报修失败!'})
except Exception as e:
print(e)
return jsonify({'status': 500, 'errmsg': '报修失败!'})
# 学生评价view
@app.route('/student_appraise/',methods=['GET', 'POST'])
def student_appraise(id):
user = {"id":id}
return render_template('/user/appraiseView.html', info=user)
# 添加评价信息
@app.route('/student_addAppraise', methods=['POST'])
def student_addAppraise():
# 从request对象中读取表单内容:
id = request.form['id']
appraise = request.form['appraise']
res = repair_alter_id_appraise(id,appraise)
if res:
return jsonify({'status': 200, 'errmsg': '添加成功!'})
else:
return jsonify({'status': 500, 'errmsg': '添加失败!'})
#学生报修信息
@app.route("/student_repairListView/", methods=['GET', 'POST'])
def student_repairListView(id):
res = student_select_id(id)
user = {}
if res:
user = {"id": res[0][0],"userName": res[0][1], "dormName": res[0][2],"phoneNumber": res[0][3]}
tongzhi=tongzhi_select_all()[-1][1]
return render_template('/user/student_listView.html',info=user,tongzhi="通知:"+tongzhi)
# 查询报修数据
@app.route("/student_list", methods=['GET', 'POST'])
def student_list():
page = request.args.get("page")
limit = request.args.get("limit")
status = request.args.get("status")
student_id = request.args.get("id")
res=repair_select_id(student_id)
jsonData = []
if status !='':
for pet in res:
if int(status)== int(pet[7]):
o = {"status": int(pet[7]), 'id': pet[0], "address": pet[3],
"description":pet[4],
"applicantName": pet[2], "mobile": pet[5],"repairDate":pet[6],"appraise":pet[8],'money':pet[9]}
jsonData.append(o)
else:
for pet in res:
o = {"status": int(pet[7]), 'id': pet[0], "address": pet[3],
"description":pet[4],
"applicantName": pet[2], "mobile": pet[5],"repairDate":pet[6],"appraise":pet[8],'money':pet[9]}
jsonData.append(o)
start =(int(page)-1)*int(limit)
end = start + int(limit)
# 使用切片来显示每页显示多少项
p = {'page': page, "data": jsonData[start:end], "count": len(jsonData), "code": 0}
return jsonify(p)
# 删除学生信息
@app.route('/student_delete', methods=['POST'])
def student_delete():
# 从request对象中读取表单内容:
userId = request.form['id']
res=student_del_id(userId)
if res:
return jsonify({'status': 200, 'errmsg': '删除成功!'})
else:
return jsonify({'status': 500, 'errmsg': '删除失败!'})
# 学生修改view
@app.route('/student_editView/')
def student_editView(id):
res = student_select_id(id)
user = {}
if res:
user = {"id": res[0][0],"userName": res[0][1], "dormName": res[0][2],"phoneNumber": res[0][3]}
return render_template('/user/editView.html', info=user)
# 修改学生信息
@app.route('/student_edit', methods=['POST'])
def student_edit():
try:
# 从request对象中读取表单内容:
id = request.form['id']
userName = request.form['userName']
dormName = request.form['dormName']
phoneNumber = request.form['phoneNumber']
password = request.form['passWord']
print(id,userName,dormName,phoneNumber,password)
a = hashlib.md5()
a.update(password.encode(encoding="utf-8"))
md5Password = a.hexdigest() # sha1哈希加密
student_alter_id(id, userName, dormName, phoneNumber, md5Password)
session.pop("phoneNumber")
return jsonify({'status': 200, 'errmsg': '修改成功!'})
except Exception as e:
print(e)
return jsonify({'status': 500, 'errmsg': '修改失败!'})
# 查询学生数据
@app.route("/userListView/", methods=['GET', 'POST'])
def userListView(page=1):
res=student_select_all()
users=[]
for i in res:
temp={"id": i[0], "userName": i[1],"dormName":i[2],"phoneNumber":i[3]}
users.append(temp)
pagination = Pagination(users, page, 3, len(users), users[page-1])
# 定义每页显示多少项
start = (page-1)*10
end = start + 10
# 使用切片来显示每页显示多少项
users = users[start:end]
return render_template('/user/listView.html', infos=users, pagination=pagination)
# 宿舍添加view
@app.route('/dormAddView')
def dormAddView():
return render_template('/dorm/addView.html')
# 添加宿管信息
@app.route('/dormAdd', methods=['POST'])
def dormAdd():
# 从request对象中读取表单内容:
userName = request.form['userName']
passWord = request.form['passWord']
phoneNumber = request.form['phoneNumber']
a = hashlib.md5()
a.update(passWord.encode(encoding="utf-8"))
md5Password = a.hexdigest() # sha1哈希加密
res=dorm_insert_data(userName,phoneNumber, md5Password)
if res:
return jsonify({'status': 200, 'errmsg': '添加成功!'})
else:
return jsonify({'status': 500, 'errmsg': '添加失败!'})
# 宿管修改view
@app.route('/dormEditView')
def dormEditView():
userId = request.args["userId"]
res=dorm_select_id(userId)
user = {}
if res:
user = {"id": res[0][0],"userName": res[0][1],"phoneNumber": res[0][2]}
return render_template('/dorm/editView.html', info=user)
# 修改宿管信息
@app.route('/dorm_edit', methods=['POST'])
def dorm_edit():
try:
userId = request.form['id']
userName = request.form['userName']
passWord = request.form['passWord']
phoneNumber = request.form['phoneNumber']
a = hashlib.md5()
a.update(passWord.encode(encoding="utf-8"))
md5Password = a.hexdigest() # sha1哈希加密
dorm_alter_id( userName, phoneNumber, md5Password,int(userId))
return jsonify({'status': 200, 'errmsg': '修改成功!'})
except Exception as e:
print(e)
return jsonify({'status': 500, 'errmsg': '修改失败!'})
# 宿管信息
@app.route("/dormListView/", methods=['GET', 'POST'])
def dormListView(page=1):
res=dorm_select_all()
users=[]
for i in res:
temp={"id": i[0], "userName": i[1], "phoneNumber": i[2]}
users.append(temp)
try:
pagination = Pagination(users, page, 10, len(users), users[page-1])
except:
pagination = Pagination(users, page, 10, len(users), users)
# 定义每页显示多少项
start = (page-1)*10
end = start + 10
# 使用切片来显示每页显示多少项
users = users[start:end]
return render_template('/dorm/listView.html', infos=users, pagination=pagination)
#报修信息
@app.route("/repairListView", methods=['GET', 'POST'])
def repairListView():
tongzhi=tongzhi_select_all()[-1][1]
return render_template('/repair/listView.html',tongzhi="通知:"+tongzhi)
# 宿舍管理员查询报修数据
@app.route("/repair_list", methods=['GET', 'POST'])
def repair_list():
page = request.args.get("page")
limit = request.args.get("limit")
status = request.args.get("status")
applicantName = request.args.get("applicantName")
res=repair_select_all()
jsonData = []
if status !='' or applicantName !='':
if status=='':
status=0
for pet in res:
if int(status)== int(pet[7]) or applicantName in pet[2] and applicantName !='':
o = {"status": int(pet[7]), 'id': pet[0], "address": pet[3],
"description":pet[4],
"applicantName": pet[2], "mobile": pet[5],"repairDate":pet[6],"appraise":pet[8],'money':pet[9]}
jsonData.append(o)
else:
for pet in res:
o = {"status": int(pet[7]), 'id': pet[0], "address": pet[3],
"description":pet[4],
"applicantName": pet[2], "mobile": pet[5],"repairDate":pet[6],"appraise":pet[8],'money':pet[9]}
jsonData.append(o)
start =(int(page)-1)*int(limit)
end = start + int(limit)
# 使用切片来显示每页显示多少项
p = {'page': page, "data": jsonData[start:end], "count": len(jsonData), "code": 0}
return jsonify(p)
# 修改报修数据
@app.route("/repairEditView/", methods=['GET', 'POST'])
def repairEditView(id):
return render_template('/repair/editView.html', id=id)
# 修改报修数据
@app.route("/repairEditMoneyView/", methods=['GET', 'POST'])
def repairEditMoneyView(id):
return render_template('/repair/editMoneyView.html', id=id)
# 修改报修维修金额数据
@app.route('/repairEdit', methods=['POST'])
def repairEdit():
# 从request对象中读取表单内容:
repairId = request.form['id']
status = request.form['status']
res = repair_alter_id(repairId, status)
if res:
return jsonify({'status': 200, 'errmsg': '修改成功!'})
else:
return jsonify({'status': 500, 'errmsg': '修改失败!'})
# 修改维修金额数据
@app.route('/repairMoneyEdit', methods=['POST'])
def repairMoneyEdit():
# 从request对象中读取表单内容:
repairId = request.form['id']
money = request.form['money']
res = repair_alter_money(repairId, money)
if res:
return jsonify({'status': 200, 'errmsg': '修改成功!'})
else:
return jsonify({'status': 500, 'errmsg': '修改失败!'})
# 删除报修信息
@app.route('/repairDelete', methods=['POST'])
def repairDelete():
# 从request对象中读取表单内容:
repairId = request.form['id']
res=repair_del_id(repairId)
if res:
return jsonify({'status': 200, 'errmsg': '删除成功!'})
else:
return jsonify({'status': 500, 'errmsg': '删除失败!'})
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=True)
基于Python的智慧学生宿舍管理系统
计算机毕业设计选题推荐-智慧学生宿舍管理系统-Python项目实战
大家可以帮忙点赞、收藏、关注、评论啦~
源码获取:私信我
精彩专栏推荐⬇⬇⬇
Java项目
Python项目
安卓项目
微信小程序项目