| In recent years,smart campus has realized the intelligent and digital development of colleges and universities.With the continuous improvement of campus network system construction,campus card system is widely popular in smart campus.According to the specific functions of campus one card,this paper designs an application system with one card function.The front end of the system can be applied to mobile phones,which is convenient for students to carry,and the back end can be applied to computers,which is convenient for school management.By processing the data in the database,the purpose of data analysis is achieved.The front end of the system is designed with wechat applet,which can connect users and services.The two threads in the wechat applet web page do not affect each other,so that the front-end page can always be connected with the server to respond and request data at any time.The front-end page includes four functions: code scanning,menu browsing,telephone consultation and online consultation.In the wechat applet,wechat payment can be called directly.In the payment process,the pre payment transaction form will be generated in the background of wechat payment service,then the payment information with signature will be generated in the background of merchant system,and finally the commodity payment function will be completed through authorization.The back end of the system is designed based on the mainstream technology stacks springboot,thymeleaf,mybatisplus and Shiro.The framework has integrated the complete authority structure and basic modules: user rights management,canteen management,commodity management and shop management.The back end of the system has the granularity control of node buttons,which not only realizes the request of micro message applet,but also realizes a series of functions such as the allocation of authority of the manager.The data analysis module extracts and saves the data in MySQL database as a CSV file.First,it uses the functions in pandas to convert the data into a dataframe.Then use the cleaning function to clean the data.The processed data can be used to establish SARIMAX model to predict the quantity of food sales,and C4.5Classification algorithm can also be used for data analysis.Finally,use Matplotlib drawing tool to show the data to the page.Through the data processing,managers can understand the daily sales curve,monthly total sales,annual total sales of goods,so as to take corresponding measures to make the school more effective operation and management. |