每年都有大量的新生需要报到,但是很多时候因为是第一次到本校进行报到,不知道具体的报到流程和学校的安排,如果挨个的去通知无形之间会给工作人员增加工作量,目前最好的办法就是开发一套新生报到系统,让新生可以自己去查看具体的工作流程和安排

本系统根据实际需要分为管理人员和新生用户两个部分具体功能如下,
计算机毕业设计Python+djang的新生报到服务管理系统(源码+系统+mysql数据库+Lw文档)
开发语言:Python
python框架:django
软件版本:python3.7/python3.8
数据库:mysql 5.7或更高版本
数据库工具:Navicat11
开发软件:PyCharm/vs code
前端框架:vue.js
可开发框架:ssm/Springboot/vue/python/PHP/小程序/安卓均可开发
本界面为系统登录界面,在本界面中管理人员和用户都可以在这里面进行登录,同时如果新用户没有账号的话,还可以进行注册

管理人员在登录之后可以对系统的用户进行管理。用户信息主要包括用户的账号,用户的密码,姓名。电话以及头像,管理人员可以对用户进行修改和删除,同时可以查看用户的详细信息。

管理人员除了对用户进行管理之外,还可以对每年的新生进行管理新生管理主要包括新生的账号,新生的姓名,性别。学号,报道时间,分数以及学生生源地等信息。管理人员在本模块中可以对新生信息进行修改和删除。同时可以查看这些新生的详细信息。

对于每年的新生来说都是要进行住校的,所以我们开发了宿舍安排模块儿,在本模块中我们可以看到宿舍号,宿舍类型。宿舍所在的楼栋。可住人数以及剩余床位。你和被安排的新生等内容。

def xinshengxinxi_add(request):
'''
前台新增
'''
if request.method in ["POST", "GET"]:
msg = {"code": normal_code, "msg": mes.normal_code, "data": {}}
req_dict = request.session.get("req_dict")
#获取全部列名
columns= xinshengxinxi.getallcolumn( xinshengxinxi, xinshengxinxi)
try:
__authSeparate__=xinshengxinxi.__authSeparate__
except:
__authSeparate__=None
if __authSeparate__=="是":
tablename=request.session.get("tablename")
if tablename!="users" and 'userid' in columns:
try:
req_dict['userid']=request.session.get("params").get("id")
except:
pass
try:
__foreEndListAuth__=xinshengxinxi.__foreEndListAuth__
except:
__foreEndListAuth__=None
if __foreEndListAuth__ and __foreEndListAuth__!="否":
tablename=request.session.get("tablename")
if tablename!="users":
req_dict['userid']=request.session.get("params").get("id")
error= xinshengxinxi.createbyreq(xinshengxinxi,xinshengxinxi, req_dict)
if error!=None:
msg['code'] = crud_error_code
msg['msg'] = error
return JsonResponse(msg)
def xinshengxinxi_thumbsup(request,id_):
'''
点赞:表属性thumbsUp[是/否],刷表新增thumbsupnum赞和crazilynum踩字段,
'''
if request.method in ["POST", "GET"]:
msg = {"code": normal_code, "msg": mes.normal_code, "data": {}}
req_dict = request.session.get("req_dict")
id_=int(id_)
type_=int(req_dict.get("type",0))
rets=xinshengxinxi.getbyid(xinshengxinxi,xinshengxinxi,id_)
update_dict={
"id":id_,
}
if type_==1:#赞
update_dict["thumbsupnum"]=int(rets[0].get('thumbsupnum'))+1
elif type_==2:#踩
update_dict["crazilynum"]=int(rets[0].get('crazilynum'))+1
error = xinshengxinxi.updatebyparams(xinshengxinxi,xinshengxinxi, update_dict)
if error!=None:
msg['code'] = crud_error_code
msg['msg'] = error
return JsonResponse(msg)
def xinshengxinxi_info(request,id_):
'''
'''
if request.method in ["POST", "GET"]:
msg = {"code": normal_code, "msg": mes.normal_code, "data": {}}
data = xinshengxinxi.getbyid(xinshengxinxi,xinshengxinxi, int(id_))
if len(data)>0:
msg['data']=data[0]
#浏览点击次数
try:
__browseClick__= xinshengxinxi.__browseClick__
except:
__browseClick__=None
if __browseClick__=="是" and "clicknum" in xinshengxinxi.getallcolumn(xinshengxinxi,xinshengxinxi):
try:
clicknum=int(data[0].get("clicknum",0))+1
except:
clicknum=0+1
click_dict={"id":int(id_),"clicknum":clicknum}
ret=xinshengxinxi.updatebyparams(xinshengxinxi,xinshengxinxi,click_dict)
if ret!=None:
msg['code'] = crud_error_code
msg['msg'] = ret
return JsonResponse(msg)
def xinshengxinxi_detail(request,id_):
'''
'''
if request.method in ["POST", "GET"]:
msg = {"code": normal_code, "msg": mes.normal_code, "data": {}}
data =xinshengxinxi.getbyid(xinshengxinxi,xinshengxinxi, int(id_))
if len(data)>0:
msg['data']=data[0]
#浏览点击次数
try:
__browseClick__= xinshengxinxi.__browseClick__
except:
__browseClick__=None
if __browseClick__=="是" and "clicknum" in xinshengxinxi.getallcolumn(xinshengxinxi,xinshengxinxi):
try:
clicknum=int(data[0].get("clicknum",0))+1
except:
clicknum=0+1
click_dict={"id":int(id_),"clicknum":clicknum}
ret=xinshengxinxi.updatebyparams(xinshengxinxi,xinshengxinxi,click_dict)
if ret!=None:
msg['code'] = crud_error_code
msg['msg'] = retfo
return JsonResponse(msg)
def xinshengxinxi_update(request):
'''
'''
if request.method in ["POST", "GET"]:
msg = {"code": normal_code, "msg": mes.normal_code, "data": {}}
req_dict = request.session.get("req_dict")
if req_dict.get("mima") and req_dict.get("password"):
if "mima" not in xinshengxinxi.getallcolumn(xinshengxinxi,xinshengxinxi) :
del req_dict["mima"]
if "password" not in xinshengxinxi.getallcolumn(xinshengxinxi,xinshengxinxi) :
del req_dict["password"]
try:
del req_dict["clicknum"]
except:
pass
error = xinshengxinxi.updatebyparams(xinshengxinxi, xinshengxinxi, req_dict)
if error!=None:
msg['code'] = crud_error_code
msg['msg'] = error
return JsonResponse(msg)
def xinshengxinxi_delete(request):
'''
批量删除
'''
if request.method in ["POST", "GET"]:
msg = {"code": normal_code, "msg": mes.normal_code, "data": {}}
req_dict = request.session.get("req_dict")
error=xinshengxinxi.deletes(xinshengxinxi,
xinshengxinxi,
req_dict.get("ids")
)
if error!=None:
msg['code'] = crud_error_code
msg['msg'] = error
return JsonResponse(msg)
def xinshengxinxi_autoSort2(request):
if request.method in ["POST", "GET"]:
req_dict = request.session.get("req_dict")
cursor = connection.cursor()
leixing = set()
try:
cursor.execute("select inteltype from storeup where userid = %d"%(request.session.get("params").get("id"))+" and tablename = 'xinshengxinxi' order by addtime desc")
rows = cursor.fetchall()
for row in rows:
for item in row:
leixing.add(item)
except:
leixing = set()
L = []
cursor.execute("select * from xinshengxinxi where $intelRecomColumn in ('%s"%("','").join(leixing)+"') union all select * from xinshengxinxi where $intelRecomColumn not in('%s"%("','").join(leixing)+"')")
desc = cursor.description
data_dict = [dict(zip([col[0] for col in desc], row)) for row in cursor.fetchall()]
for online_dict in data_dict:
for key in online_dict:
if 'datetime.datetime' in str(type(online_dict[key])):
online_dict[key] = online_dict[key].strftime(
"%Y-%m-%d %H:%M:%S")
else:
pass
L.append(online_dict)
return JsonResponse({"code": 0, "msg": '', "data":{"currPage":1,"totalPage":1,"total":1,"pageSize":5,"list": L[0:6]}})