当前位置:首页>python>用Python写了一个疫苗管理系统!

用Python写了一个疫苗管理系统!

  • 2026-02-08 12:21:42
用Python写了一个疫苗管理系统!

大家好,

不少小伙伴问我,Python 怎么学,我的统一回答:实战,多练。

其实就是从自己的兴趣出发,做一些实战小项目

正好,周末在家摸鱼的时候用 Python 写了一个疫苗管理系统的小项目。

很基础,适合新手学习,主要涉及 Python、Tkinter、数据库存储等知识。

分享给大家~

整体结构图

连接数据库

defconnect_DBS(self, database, content):        db = pymysql.connect(host="localhost", user="root", password="pwd", database=database)        cursor = db.cursor()        cursor.execute(content)        data = cursor.fetchone()        db.commit()        db.close()return data

主界面

defmain_window(self):        tk.Button(app, text='登录', bg='white', font=("Arial,12"), width=12, height=1, command=self.login).place(x=260,                                                                                                      y=200)        tk.Button(app, text='注册', bg='white', font=("Arial,12"), width=12, height=1, command=self.register).place(x=260,                                                                                                                y=240)        tk.Button(app, text='退出', bg='white', font=("Arial,12"), width=12, height=1, command=self.quit_mainloop).place(x=260, y=280)

注册界面

defregister(self):        register = tk.Toplevel(app)        register.title('用户注册')        register.geometry("600x400")        tk.Label(register, text="欢迎注册", font=("KaiTi"40)).place(x=200, y=20)        tk.Label(register, text='添加管理员姓名:', font=("Arial"9)).place(x=80, y=120)        tk.Label(register, text='确认管理员编号:', font=('Arial'9)).place(x=80, y=150)        entry1 = tk.Entry(register, font=("Arial, 9"), width=46, )        entry2 = tk.Entry(register, font=("Arial, 9"), width=46, )        entry1.pack()        entry2.pack()        entry1.place(x=180, y=120, width=350, height=25)        entry2.place(x=180, y=150, width=350, height=25)defuser_register():            user_name = entry1.get()            user_code = entry2.get()if user_name == ""or user_code == "":                tkinter.messagebox.showwarning(title="警告", message="用户名或密码不能为空!")else:                content = "INSERT INTO user_info (user_name, user_code) VALUES ('%s', '%s');" % (user_name, user_code)                self.connect_DBS(database="vaccine_info", content=content)                tkinter.messagebox.showinfo(title="信息", message="注册成功!")        tk.Button(register, text="注册", bg='white', font=("Arial,9"), width=12, height=0, command=user_register).place(x=250, y=250)

登陆界面

deflogin(self):        login = tk.Toplevel(app)        login.title('用户登录')        login.geometry("600x400")        tk.Label(login, text="欢迎登录", font=("KaiTi"40)).place(x=200, y=20)        tk.Label(login, text='管理员姓名:', font=("Arial"9)).place(x=80, y=120)        tk.Label(login, text='管理员编号:', font=('Arial'9)).place(x=80, y=150)        entry1 = tk.Entry(login, font=("Arial, 9"), width=46)        entry2 = tk.Entry(login, font=("Arial, 9"), width=46, show="*")        entry1.pack()        entry2.pack()        entry1.place(x=180, y=120, width=350, height=25)        entry2.place(x=180, y=150, width=350, height=25)defuser_check():            user_name = entry1.get()            user_code = entry2.get()            content = "SELECT * FROM user_info WHERE user_name = '%s';" % user_name            data = self.connect_DBS(database="vaccine_info", content=content)try:if user_name == data[1and user_code == data[2]:                    tkinter.messagebox.showinfo(title="信息", message="欢迎登录!")                    self.options()elif user_name != data[1]:                    tkinter.messagebox.showerror(title="错误", message="请注册后再进行登录!")elif user_name == data[1and user_code != data[2]:                    tkinter.messagebox.showerror(title="错误", message="密码错误!")except TypeError:                tkinter.messagebox.showerror(title="错误", message="请注册后再进行登录!")        tk.Button(login, text="登录", bg='white', font=("Arial,9"), width=12, height=0, command=user_check).place(x=250, y=250)

功能选项

功能区主界面

defoptions(self):        options = tk.Toplevel(app)        options.title('功能选项')        options.geometry("600x500")        tk.Label(options, text="欢迎使用!", font=("KaiTi"40)).place(x=180, y=15)        tk.Button(options, text='新建疫苗信息', bg='white', font=("Arial,12"), width=20, height=2,command=self.add_vacc_info).place(x=100, y=100)        tk.Button(options, text='新建疫苗分配信息', bg='white', font=("Arial,12"), width=20, height=2,command=self.add_vaccine_distr_info).place(x=100, y=160)        tk.Button(options, text='新建疫苗养护信息', bg='white', font=("Arial,12"), width=20, height=2,              command=self.add_vaccine_maintenance_info).place(x=100, y=220)        tk.Button(options, text='新建接种人员信息', bg='white', font=("Arial,12"), width=20, height=2,command=self.add_vaccination_person_info).place(x=100, y=280)        tk.Button(options, text='查询疫苗分配信息', bg='white', font=("Arial,12"), width=20, height=2,command=self.vaccine_distr_info_query).place(x=100, y=340)        tk.Button(options, text='查询疫苗养护信息', bg='white', font=("Arial,12"), width=20, height=2,           command=self.vaccination_maintenance_info_query).place(x=320, y=100)        tk.Button(options, text='查询接种人员信息', bg='white', font=("Arial,12"), width=20, height=2,command=self.vaccination_person_info_query).place(x=320, y=160)        tk.Button(options, text='查询疫苗信息', bg='white', font=("Arial,12"), width=20, height=2,command=self.vaccine_info_query).place(x=320, y=220)        tk.Button(options, text='修改疫苗信息', bg='white', font=("Arial,12"), width=20, height=2,command=self.modify_vaccine_info).place(x=320, y=280)        tk.Button(options, text='删除疫苗信息', bg='white', font=("Arial,12"), width=20, height=2,command=self.del_vaccine_info).place(x=320, y=340)

新建疫苗信息

defadd_vacc_info(self):        add_vacc_info = tk.Toplevel(app)        add_vacc_info.title('添加疫苗信息')        add_vacc_info.geometry("600x400")        tk.Label(add_vacc_info, text='疫苗批号:', font=("Arial"9)).place(x=80, y=60)        tk.Label(add_vacc_info, text='疫苗名称:', font=('Arial'9)).place(x=80, y=90)        tk.Label(add_vacc_info, text='企业名称:', font=('Arial'9)).place(x=80, y=120)        tk.Label(add_vacc_info, text='企业编号:', font=('Arial'9)).place(x=80, y=150)        tk.Label(add_vacc_info, text='    规格:', font=('Arial'9)).place(x=80, y=180)        tk.Label(add_vacc_info, text='    进价:', font=('Arial'9)).place(x=80, y=210)        tk.Label(add_vacc_info, text='  预售价:', font=('Arial'9)).place(x=80, y=240)        tk.Label(add_vacc_info, text='企业上限:', font=('Arial'9)).place(x=80, y=270)        tk.Label(add_vacc_info, text='企业下限:', font=('Arial'9)).place(x=80, y=300)        entry1 = tk.Entry(add_vacc_info, font=("Arial, 9"), width=46)        entry2 = tk.Entry(add_vacc_info, font=("Arial, 9"), width=46)        entry3 = tk.Entry(add_vacc_info, font=("Arial, 9"), width=46)        entry4 = tk.Entry(add_vacc_info, font=("Arial, 9"), width=46)        entry5 = tk.Entry(add_vacc_info, font=("Arial, 9"), width=46)        entry6 = tk.Entry(add_vacc_info, font=("Arial, 9"), width=46)        entry7 = tk.Entry(add_vacc_info, font=("Arial, 9"), width=46)        entry8 = tk.Entry(add_vacc_info, font=("Arial, 9"), width=46)        entry9 = tk.Entry(add_vacc_info, font=("Arial, 9"), width=46)        entry1.pack()        entry2.pack()        entry3.pack()        entry4.pack()        entry5.pack()        entry6.pack()        entry7.pack()        entry8.pack()        entry9.pack()        entry1.place(x=180, y=60, width=350)        entry2.place(x=180, y=90, width=350)        entry3.place(x=180, y=120, width=350)        entry4.place(x=180, y=150, width=350)        entry5.place(x=180, y=180, width=350)        entry6.place(x=180, y=210, width=350)        entry7.place(x=180, y=240, width=350)        entry8.place(x=180, y=270, width=350)        entry9.place(x=180, y=300, width=350)defadd():            text1 = entry1.get()            text2 = entry2.get()            text3 = entry3.get()            text4 = entry4.get()            text5 = entry5.get()            text6 = entry6.get()            text7 = entry7.get()            text8 = entry8.get()            text9 = entry9.get()            content = "INSERT INTO vaccine_info (" \"vaccine_num, vaccine_name, company_name, company_num, size, buy_price, pre_sale_price, limit_up, limit_down" \")" \" VALUES (%s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s');" % (                      text1, text2, text3, text4, text5, text6, text7, text8, text9)            self.connect_DBS(database="vaccine_info", content=content)            tkinter.messagebox.showinfo(title="信息", message="数据添加成功!")defclear():            entry1.delete(0"end")            entry2.delete(0"end")            entry3.delete(0"end")            entry4.delete(0"end")            entry5.delete(0"end")            tkinter.messagebox.showinfo(title="信息", message="数据已清空,请继续添加!")        tk.Button(add_vacc_info, text="添加", bg='white', font=("Arial,9"), width=9, height=0, command=add).place(x=400,                                                                                                       y=360)        tk.Button(add_vacc_info, text="清空", bg='white', font=("Arial,9"), width=9, height=0, command=clear).place(x=160,                                                                                                             y=360)

新建疫苗分配信息

defadd_vaccine_distr_info(self):        add_vaccine_distr_info = tk.Toplevel(app)        add_vaccine_distr_info.title('添加疫苗分配信息')        add_vaccine_distr_info.geometry("600x400")        tk.Label(add_vaccine_distr_info, text='疫苗分配单号:', font=("Arial"9)).place(x=80, y=60)        tk.Label(add_vaccine_distr_info, text='       日期:', font=('Arial'9)).place(x=80, y=90)        tk.Label(add_vaccine_distr_info, text='   疫苗批号:', font=('Arial'9)).place(x=80, y=120)        tk.Label(add_vaccine_distr_info, text='   疫苗名称:', font=('Arial'9)).place(x=80, y=150)        tk.Label(add_vaccine_distr_info, text='   企业编号:', font=('Arial'9)).place(x=80, y=180)        tk.Label(add_vaccine_distr_info, text=' 质检员编号:', font=('Arial'9)).place(x=80, y=210)        tk.Label(add_vaccine_distr_info, text='      数量:', font=('Arial'9)).place(x=80, y=240)        entry1 = tk.Entry(add_vaccine_distr_info, font=("Arial, 9"), width=46)        entry2 = tk.Entry(add_vaccine_distr_info, font=("Arial, 9"), width=46)        entry3 = tk.Entry(add_vaccine_distr_info, font=("Arial, 9"), width=46)        entry4 = tk.Entry(add_vaccine_distr_info, font=("Arial, 9"), width=46)        entry5 = tk.Entry(add_vaccine_distr_info, font=("Arial, 9"), width=46)        entry6 = tk.Entry(add_vaccine_distr_info, font=("Arial, 9"), width=46)        entry7 = tk.Entry(add_vaccine_distr_info, font=("Arial, 9"), width=46)        entry1.pack()        entry2.pack()        entry3.pack()        entry4.pack()        entry5.pack()        entry6.pack()        entry7.pack()        entry1.place(x=180, y=60, width=350)        entry2.place(x=180, y=90, width=350)        entry3.place(x=180, y=120, width=350)        entry4.place(x=180, y=150, width=350)        entry5.place(x=180, y=180, width=350)        entry6.place(x=180, y=210, width=350)        entry7.place(x=180, y=240, width=350)defadd():            text1 = entry1.get()            text2 = entry2.get()            text3 = entry3.get()            text4 = entry4.get()            text5 = entry5.get()            text6 = entry6.get()            text7 = entry7.get()            content = "INSERT INTO vaccine_distr_info (" \"vaccine_distr_num, date, vaccine_num, vaccine_name, company_num, operator_num, num" \")" \" VALUES (%s, '%s', '%s', '%s', '%s', '%s', '%s');" % (                          text1, text2, text3, text4, text5, text6, text7)            self.connect_DBS(database="vaccine_info", content=content)            tkinter.messagebox.showinfo(title="信息", message="数据添加成功!")defclear():            entry1.delete(0"end")            entry2.delete(0"end")            entry3.delete(0"end")            entry4.delete(0"end")            entry5.delete(0"end")            entry6.delete(0"end")            entry7.delete(0"end")            tkinter.messagebox.showinfo(title="信息", message="数据已清空,请继续添加!")        tk.Button(add_vaccine_distr_info, text="添加", bg='white', font=("Arial,9"), width=9, height=0,command=add).place(x=400,y=360)        tk.Button(add_vaccine_distr_info, text="清空", bg='white', font=("Arial,9"), width=9, height=0,command=clear).place(x=160,y=360)

新建疫苗养护信息

defadd_vaccine_maintenance_info(self):        vaccine_maintenance_info = tk.Toplevel(app)        vaccine_maintenance_info.title('添加疫苗养护信息')        vaccine_maintenance_info.geometry("600x400")        tk.Label(vaccine_maintenance_info, text='养护疫苗批号:', font=("Arial"9)).place(x=80, y=60)        tk.Label(vaccine_maintenance_info, text='养护疫苗名称:', font=('Arial'9)).place(x=80, y=90)        tk.Label(vaccine_maintenance_info, text=' 管理员编号:', font=('Arial'9)).place(x=80, y=120)        tk.Label(vaccine_maintenance_info, text=' 管理员姓名:', font=('Arial'9)).place(x=80, y=150)        tk.Label(vaccine_maintenance_info, text='   养护时间:', font=('Arial'9)).place(x=80, y=180)        tk.Label(vaccine_maintenance_info, text=' 冷藏室温度:', font=('Arial'9)).place(x=80, y=210)        tk.Label(vaccine_maintenance_info, text=' 冷冻室温度:', font=('Arial'9)).place(x=80, y=240)        tk.Label(vaccine_maintenance_info, text='设备运转情况:', font=('Arial'9)).place(x=80, y=270)        tk.Label(vaccine_maintenance_info, text='    是否报警:', font=('Arial'9)).place(x=80, y=300)        entry1 = tk.Entry(vaccine_maintenance_info, font=("Arial, 9"), width=46)        entry2 = tk.Entry(vaccine_maintenance_info, font=("Arial, 9"), width=46)        entry3 = tk.Entry(vaccine_maintenance_info, font=("Arial, 9"), width=46)        entry4 = tk.Entry(vaccine_maintenance_info, font=("Arial, 9"), width=46)        entry5 = tk.Entry(vaccine_maintenance_info, font=("Arial, 9"), width=46)        entry6 = tk.Entry(vaccine_maintenance_info, font=("Arial, 9"), width=46)        entry7 = tk.Entry(vaccine_maintenance_info, font=("Arial, 9"), width=46)        entry8 = tk.Entry(vaccine_maintenance_info, font=("Arial, 9"), width=46)        entry9 = tk.Entry(vaccine_maintenance_info, font=("Arial, 9"), width=46)        entry1.pack()        entry2.pack()        entry3.pack()        entry4.pack()        entry5.pack()        entry6.pack()        entry7.pack()        entry8.pack()        entry9.pack()        entry1.place(x=180, y=60, width=350)        entry2.place(x=180, y=90, width=350)        entry3.place(x=180, y=120, width=350)        entry4.place(x=180, y=150, width=350)        entry5.place(x=180, y=180, width=350)        entry6.place(x=180, y=210, width=350)        entry7.place(x=180, y=240, width=350)        entry8.place(x=180, y=270, width=350)        entry9.place(x=180, y=300, width=350)defadd():            text1 = entry1.get()            text2 = entry2.get()            text3 = entry3.get()            text4 = entry4.get()            text5 = entry5.get()            text6 = entry6.get()            text7 = entry7.get()            text8 = entry8.get()            text9 = entry9.get()            content = "INSERT INTO vaccine_maintenance_info (" \"vaccine_maintenance_num, vaccine_maintenance_name, admin_num, admin_name, maintenance_time, cold_storage_temp, freezer_temp, equipment_operation, alter_info" \")" \" VALUES (%s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s');" % (                          text1, text2, text3, text4, text5, text6, text7, text8, text9)            self.connect_DBS(database="vaccine_info", content=content)            tkinter.messagebox.showinfo(title="信息", message="数据添加成功!")defclear():            entry1.delete(0"end")            entry2.delete(0"end")            entry3.delete(0"end")            entry4.delete(0"end")            entry5.delete(0"end")            entry6.delete(0"end")            entry7.delete(0"end")            entry8.delete(0"end")            entry9.delete(0"end")            tkinter.messagebox.showinfo(title="信息", message="数据已清空,请继续添加!")        tk.Button(vaccine_maintenance_info, text="添加", bg='white', font=("Arial,9"), width=9, height=0,command=add).place(x=400,y=360)        tk.Button(vaccine_maintenance_info, text="清空", bg='white', font=("Arial,9"), width=9, height=0,command=clear).place(x=160,y=360)

新建接种人员信息

defadd_vaccination_person_info(self):        add_vaccination_person_info = tk.Toplevel(app)        add_vaccination_person_info.title('添加接种人员信息')        add_vaccination_person_info.geometry("600x400")        tk.Label(add_vaccination_person_info, text='姓名:', font=("Arial"9)).place(x=80, y=60)        tk.Label(add_vaccination_person_info, text='性别:', font=('Arial'9)).place(x=80, y=90)        tk.Label(add_vaccination_person_info, text='年龄:', font=('Arial'9)).place(x=80, y=120)        tk.Label(add_vaccination_person_info, text='身份证号:', font=('Arial'9)).place(x=80, y=150)        tk.Label(add_vaccination_person_info, text='家庭住址:', font=('Arial'9)).place(x=80, y=180)        tk.Label(add_vaccination_person_info, text='是否过敏:', font=('Arial'9)).place(x=80, y=210)        tk.Label(add_vaccination_person_info, text='接种时间:', font=('Arial'9)).place(x=80, y=240)        entry1 = tk.Entry(add_vaccination_person_info, font=("Arial, 9"), width=46)        entry2 = tk.Entry(add_vaccination_person_info, font=("Arial, 9"), width=46)        entry3 = tk.Entry(add_vaccination_person_info, font=("Arial, 9"), width=46)        entry4 = tk.Entry(add_vaccination_person_info, font=("Arial, 9"), width=46)        entry5 = tk.Entry(add_vaccination_person_info, font=("Arial, 9"), width=46)        entry6 = tk.Entry(add_vaccination_person_info, font=("Arial, 9"), width=46)        entry7 = tk.Entry(add_vaccination_person_info, font=("Arial, 9"), width=46)        entry1.pack()        entry2.pack()        entry3.pack()        entry4.pack()        entry5.pack()        entry6.pack()        entry7.pack()        entry1.place(x=180, y=60, width=350)        entry2.place(x=180, y=90, width=350)        entry3.place(x=180, y=120, width=350)        entry4.place(x=180, y=150, width=350)        entry5.place(x=180, y=180, width=350)        entry6.place(x=180, y=210, width=350)        entry7.place(x=180, y=240, width=350)defadd():            text1 = entry1.get()            text2 = entry2.get()            text3 = entry3.get()            text4 = entry4.get()            text5 = entry5.get()            text6 = entry6.get()            text7 = entry7.get()            content = "INSERT INTO vaccination_person_info (" \"name, sexy, age, ID_num, address, allergy, date" \")" \" VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s');" % (                          text1, text2, text3, text4, text5, text6, text7)            self.connect_DBS(database="vaccine_info", content=content)            tkinter.messagebox.showinfo(title="信息", message="数据添加成功!")defclear():            entry1.delete(0"end")            entry2.delete(0"end")            entry3.delete(0"end")            entry4.delete(0"end")            entry5.delete(0"end")            entry6.delete(0"end")            entry7.delete(0"end")            tkinter.messagebox.showinfo(title="信息", message="数据已清空,请继续添加!")        tk.Button(add_vaccination_person_info, text="添加", bg='white', font=("Arial,9"), width=9, height=0,command=add).place(x=400, y=360)        tk.Button(add_vaccination_person_info, text="清空", bg='white', font=("Arial,9"), width=9, height=0,command=clear).place(x=160, y=360)

查询疫苗分配信息

defvaccine_distr_info_query(self):        query = tk.Toplevel(app)        query.title('信息查询')        query.geometry("600x400")        entry = tk.Entry(query, width=30)        entry.pack()        entry.place(x=200, y=80)        tk.Label(query, text="请输入疫苗分配单号:", font=("Arial"9)).place(x=50, y=80)        tk.Label(query, text='查询结果:', font=('Arial'9)).place(x=50, y=120)        text1 = tk.Text(query, width=50, height=20)        text1.pack()        text1.place(x=150, y=120)defbase_query():            vaccine_distr_num = entry.get()            print(vaccine_distr_num)            content = "SELECT * FROM vaccine_distr_info WHERE vaccine_distr_num = %s;" % vaccine_distr_num            data = self.connect_DBS(database="vaccine_info", content=content)            text1.delete(1.0"end")            text1.insert(chars="{}".format(data), index="insert")        tk.Button(query, text='查询', bg='white', font=("Arial,12"), width=9, height=0, command=base_query).place(x=450,                                                                                                                y=75)

查询疫苗养护信息

defvaccination_maintenance_info_query(self):        query = tk.Toplevel(app)        query.title('疫苗养护信息查询')        query.geometry("600x400")        entry = tk.Entry(query, width=30)        entry.pack()        entry.place(x=200, y=80)        tk.Label(query, text="请输入疫苗养护批号:", font=("Arial"9)).place(x=50, y=80)        tk.Label(query, text='查询结果:', font=('Arial'9)).place(x=50, y=120)        text1 = tk.Text(query, width=50, height=20)        text1.pack()        text1.place(x=150, y=120)defbase_query():            vaccine_maintenance_num = entry.get()            print(vaccine_maintenance_num)            content = "SELECT * FROM vaccine_maintenance_info WHERE vaccine_maintenance_num = %s;" % vaccine_maintenance_num            data = self.connect_DBS(database="vaccine_info", content=content)            text1.delete(1.0"end")            text1.insert(chars="{}".format(data), index="insert")        tk.Button(query, text='查询', bg='white', font=("Arial,12"), width=9, height=0, command=base_query).place(x=450,                                                                                                                y=75)defvaccine_distr_info_query(self):        query = tk.Toplevel(app)        query.title('信息查询')        query.geometry("600x400")        entry = tk.Entry(query, width=30)        entry.pack()        entry.place(x=200, y=80)        tk.Label(query, text="请输入疫苗分配单号:", font=("Arial"9)).place(x=50, y=80)        tk.Label(query, text='查询结果:', font=('Arial'9)).place(x=50, y=120)        text1 = tk.Text(query, width=50, height=20)        text1.pack()        text1.place(x=150, y=120)defbase_query():            vaccine_distr_num = entry.get()            print(vaccine_distr_num)            content = "SELECT * FROM vaccine_distr_info WHERE vaccine_distr_num = %s;" % vaccine_distr_num            data = self.connect_DBS(database="vaccine_info", content=content)            text1.delete(1.0"end")            text1.insert(chars="{}".format(data), index="insert")        tk.Button(query, text='查询', bg='white', font=("Arial,12"), width=9, height=0, command=base_query).place(x=450,                                                                                                                y=75)

查询接种人员信息

defvaccination_person_info_query(self):        query = tk.Toplevel(app)        query.title('接种人员信息查询')        query.geometry("600x400")        entry = tk.Entry(query, width=30)        entry.pack()        entry.place(x=200, y=80)        tk.Label(query, text="请输入接种人员身份证号:", font=("Arial"9)).place(x=50, y=80)        tk.Label(query, text='查询结果:', font=('Arial'9)).place(x=50, y=120)        text1 = tk.Text(query, width=50, height=20)        text1.pack()        text1.place(x=150, y=120)defbase_query():            ID_num = entry.get()            content = "SELECT * FROM vaccination_person_info WHERE ID_num = %s;" % ID_num            data = self.connect_DBS(database="vaccine_info", content=content)            text1.delete(1.0"end")            text1.insert(chars="{}".format(data), index="insert")        tk.Button(query, text='查询', bg='white', font=("Arial,12"), width=9, height=0, command=base_query).place(x=450,                                                                                                          y=75)

查询疫苗信息

defvaccine_info_query(self):        query = tk.Toplevel(app)        query.title('疫苗信息查询')        query.geometry("600x400")        entry = tk.Entry(query, width=30)        entry.pack()        entry.place(x=200, y=80)        tk.Label(query, text="请输入疫苗批号:", font=("Arial"9)).place(x=50, y=80)        tk.Label(query, text='查询结果:', font=('Arial'9)).place(x=50, y=120)        text1 = tk.Text(query, width=50, height=20)        text1.pack()        text1.place(x=150, y=120)defbase_query():            vaccine_num = entry.get()            content = "SELECT * FROM vaccine_info WHERE vaccine_num = %s;" % vaccine_num            data = self.connect_DBS(database="vaccine_info", content=content)            text1.delete(1.0"end")            text1.insert(chars="{}".format(data), index="insert")        tk.Button(query, text='查询', bg='white', font=("Arial,12"), width=9, height=0, command=base_query).place(x=450,                                                                                                          y=75)

修改疫苗信息

defmodify_vaccine_info(self):        modify_info = tk.Toplevel(app)        modify_info.title('疫苗信息修改')        modify_info.geometry("600x400")        entry = tk.Entry(modify_info, width=30)        entry.pack()        entry.place(x=200, y=60)        tk.Label(modify_info, text="请输入疫苗分配单号:", font=("Arial"9)).place(x=50, y=60)        tk.Label(modify_info, text='疫苗批号:', font=("Arial"9)).place(x=80, y=100)        tk.Label(modify_info, text='疫苗名称:', font=('Arial'9)).place(x=80, y=130)        tk.Label(modify_info, text='企业名称:', font=('Arial'9)).place(x=80, y=160)        tk.Label(modify_info, text='企业编号:', font=('Arial'9)).place(x=80, y=190)        tk.Label(modify_info, text='    规格:', font=('Arial'9)).place(x=80, y=220)        tk.Label(modify_info, text='    进价:', font=('Arial'9)).place(x=80, y=250)        tk.Label(modify_info, text='  预售价:', font=('Arial'9)).place(x=80, y=280)        tk.Label(modify_info, text='企业上限:', font=('Arial'9)).place(x=80, y=310)        tk.Label(modify_info, text='企业下限:', font=('Arial'9)).place(x=80, y=340)        text1 = tk.Text(modify_info, width=50, height=1)        text2 = tk.Text(modify_info, width=50, height=1)        text3 = tk.Text(modify_info, width=50, height=1)        text4 = tk.Text(modify_info, width=50, height=1)        text5 = tk.Text(modify_info, width=50, height=1)        text6 = tk.Text(modify_info, width=50, height=1)        text7 = tk.Text(modify_info, width=50, height=1)        text8 = tk.Text(modify_info, width=50, height=1)        text9 = tk.Text(modify_info, width=50, height=1)        text1.pack()        text2.pack()        text3.pack()        text4.pack()        text5.pack()        text6.pack()        text7.pack()        text8.pack()        text9.pack()        text1.place(x=150, y=100)        text2.place(x=150, y=130)        text3.place(x=150, y=160)        text4.place(x=150, y=190)        text5.place(x=150, y=220)        text6.place(x=150, y=250)        text7.place(x=150, y=280)        text8.place(x=150, y=310)        text9.place(x=150, y=340)defbase_query():            vaccine_modify_num = entry.get()            content = "SELECT * FROM vaccine_info WHERE vaccine_num = %s;" % vaccine_modify_num            data = self.connect_DBS(database="vaccine_info", content=content)            text1.delete(1.0"end")            text2.delete(1.0"end")            text3.delete(1.0"end")            text4.delete(1.0"end")            text5.delete(1.0"end")            text6.delete(1.0"end")            text7.delete(1.0"end")            text8.delete(1.0"end")            text9.delete(1.0"end")            text1.insert(chars="{}".format(data[0]), index="insert")            text2.insert(chars="{}".format(data[1]), index="insert")            text3.insert(chars="{}".format(data[2]), index="insert")            text4.insert(chars="{}".format(data[3]), index="insert")            text5.insert(chars="{}".format(data[4]), index="insert")            text6.insert(chars="{}".format(data[5]), index="insert")            text7.insert(chars="{}".format(data[6]), index="insert")            text8.insert(chars="{}".format(data[7]), index="insert")            text9.insert(chars="{}".format(data[8]), index="insert")defupdate_info():            vaccine_del_num = entry.get()            str_ls = [text1.get("1.0""end")[0:-1], text2.get("1.0""end")[0:-1], text3.get("1.0""end")[0:-1],                      text4.get("1.0""end")[0:-1], text5.get("1.0""end")[0:-1], text6.get("1.0""end")[0:-1],                      text7.get("1.0""end")[0:-1], text8.get("1.0""end")[0:-1], text9.get("1.0""end")[0:-1]]            str_ls = [str(i) for i in str_ls]            content = "UPDATE vaccine_info  SET vaccine_num='%s', vaccine_name='%s', company_name='%s', vaccine_num='%s'" \", size='%s', buy_price='%s', pre_sale_price='%s', limit_up='%s', limit_down='%s' WHERE " \"vaccine_num = '%s';" % (                      str_ls[0], str_ls[1], str_ls[2], str_ls[3], str_ls[4], str_ls[5], str_ls[6], str_ls[7], str_ls[8],vaccine_del_num)            self.connect_DBS(database="vaccine_info", content=content)            tkinter.messagebox.showinfo(title="信息", message="疫苗分配单号:{}数据修改成功!".format(vaccine_modify_num)returnNone        tk.Button(modify_info, text='查询', bg='white', font=("Arial,12"), width=9, height=0, command=base_query).place(x=450,y=55)        tk.Button(modify_info, text='修改', bg='white', font=("Arial,12"), width=9, height=0, command=update_info).place(x=260,y=370)

删除疫苗信息

defdel_vaccine_info(self):        del_info = tk.Toplevel(app)        del_info.title('疫苗信息删除')        del_info.geometry("600x500")        entry = tk.Entry(del_info, width=30)        entry.pack()        entry.place(x=200, y=80)        tk.Label(del_info, text="请输入疫苗批号:", font=("Arial"9)).place(x=50, y=80)        tk.Label(del_info, text='查询结果:', font=('Arial'9)).place(x=50, y=120)        text1 = tk.Text(del_info, width=50, height=20)        text1.pack()        text1.place(x=150, y=120)defbase_query():            vaccine_del_num = entry.get()            print(vaccine_del_num)            content = "SELECT * FROM vaccine_info WHERE vaccine_num = %s;" % vaccine_del_num            data = self.connect_DBS(database="vaccine_info", content=content)            text1.delete(1.0"end")            text1.insert(chars="{}".format(data), index="insert")defdel_infor():            vaccine_del_num = entry.get()            print(vaccine_del_num)            content = "DELETE FROM vaccine_info  WHERE vaccine_num = %s;" % vaccine_del_num            data = self.connect_DBS(database="vaccine_info", content=content)            tkinter.messagebox.showinfo(title="信息", message="疫苗批号:{}数据已删除!".format(vaccine_del_num))returnNone        tk.Button(del_info, text='查询', bg='white', font=("Arial,12"), width=9, height=0, command=base_query).place(x=450,y=75)        tk.Button(del_info, text='删除', bg='white', font=("Arial,12"), width=9, height=0, command=del_infor).place(x=280,                                                                                                                  y=400)

数据库

create table vaccine_info(    vaccine_num    char(50not null primary key,    vaccine_name   char(50not null,    company_name   char(50not null,    company_num    char(50not null,    size           char(50) null,    buy_price      char(50not null,    pre_sale_price char(20not null,    limit_up       char(50not null,    limit_down     char(50not null);create table user_info( id int auto_increment primary key,    user_name char(50) NOT NULL ,    user_code char(50) NOT NULL);create table ifnot exists vaccine_distr_info (    vaccine_distr_num char(50) primary key,    date date not null ,    vaccine_num char(50not null ,    vaccine_name char(50not null ,    company_num char(50not null ,    operator_num char(50not null ,    num int not null );create table ifnot exists vaccine_maintenance_info (    vaccine_maintenance_num char(50) primary key ,    vaccine_maintenance_name char(50not null ,    admin_num char(50not null ,    admin_name char(50not null ,    maintenance_time date,    cold_storage_temp char(20not null ,    freezer_temp char(20not null ,    equipment_operation char(50not null ,    alter_info char(50not null );create table ifnot exists vaccination_person_info(    id int auto_increment primary key,    name char(20not null ,    sexy char(10not null ,    age char(10not null ,    ID_num char(50not null ,    address char(70not null ,    allergy char(10not null ,    date date);

了,就是这些内容,感兴趣的小伙伴,可以动手试一试。

如果本文对你有帮助的话,请不要吝啬你的赞,谢谢!

低价卡永久QQ绿钻黄钻超级会员会员,永久爱奇艺腾讯会员,网红商城-短视频加热助手、抖音快手大大提升上热门概率、空间人气、说说赞、QQ大会员、超级会员、全民K歌鲜花、QQ钻,

真人拼多多砍价,拆红包,现金大转盘等各种助力等。超多各种低价业务,欢迎收藏!500人帮砍!

自助下单地址:http://tj.dy13.love/l91gt

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-08 18:26:18 HTTP/2.0 GET : https://f.mffb.com.cn/a/474309.html
  2. 运行时间 : 0.105951s [ 吞吐率:9.44req/s ] 内存消耗:4,839.08kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=f7e11868e873e5f9d1310677831cdc5b
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000519s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000737s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000328s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000285s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000482s ]
  6. SELECT * FROM `set` [ RunTime:0.000186s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000556s ]
  8. SELECT * FROM `article` WHERE `id` = 474309 LIMIT 1 [ RunTime:0.000677s ]
  9. UPDATE `article` SET `lasttime` = 1770546378 WHERE `id` = 474309 [ RunTime:0.000995s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.002499s ]
  11. SELECT * FROM `article` WHERE `id` < 474309 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001690s ]
  12. SELECT * FROM `article` WHERE `id` > 474309 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000474s ]
  13. SELECT * FROM `article` WHERE `id` < 474309 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.007274s ]
  14. SELECT * FROM `article` WHERE `id` < 474309 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.012460s ]
  15. SELECT * FROM `article` WHERE `id` < 474309 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.007629s ]
0.107732s