• 计算机毕业设计Python+djang的新生报到服务管理系统(源码+系统+mysql数据库+Lw文档)


    项目介绍

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

    功能介绍请添加图片描述

    本系统根据实际需要分为管理人员和新生用户两个部分具体功能如下,

    • 管理员部分功能
      管理人员是本系统的最高权限用户。他可以对。系统的用户进行管理,对新生的相关内容安排这新生的住宿安排,同时还可以进行系统设置。管理自己的个人中心
    • 用户部分功能
      用户可以查看系统的首页,并且可以在首页查看新生相关内容,同时在登录之后可以管理自己的个人信息。还可以查看自己宿舍安排相关内容。

    开发环境

    计算机毕业设计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]}})
    
      
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
  • 相关阅读:
    LCD1602液晶显示屏介绍和程序开发
    javaIO流07:处理流BufferedReader和BufferedWriter,Buffer拷贝
    27、用户操作srv、web服务实现
    测试用例:四步测试设计法
    c++ 智能指针使用注意事项及解决方案
    mac 桌面不能右键 文件也不见了 但在finder的桌面上有
    搞定ESD(三):ESD干扰耦合路径深入分析(一)
    Java8 Stream 强大功能之统计、汇总、多字段分组和多个列汇总统计【含面试题】
    实现高并发Web服务器(C语言版)
    开源一个教学型分库分表示例项目 shardingsphere-jdbc-demo
  • 原文地址:https://blog.csdn.net/QQ860234001/article/details/126064208