Ventilation equipment has become a part of people's life with the increase of smog and people's attention to air quality.However,ventilation equipment is different from ordinary goods,it has several steps after sales including site reconnaissance and installation.Also,it distinguishs ordinary electrical appliances from way of installation.Installation tasks are delivered to outer installation team,which results in various installation quality.Meanwhile,the company needs to think about how to make customers sense the effect of the device better.In order to meet the demands of the company,it is necessary to build an efficient and customized management system.This thesis proposes a set of solutions for the management system after studying the characteristic of the company.Referring to the popular microservice construction solution,this system uses Spring Cloud framework to implement the construction.Spring Boot framework is used to build the instance of microservice.This system uses a framework based on OAuth2 protocol to manage the security and authority.Considering that the installation team cannot carry computer with them,mobile phone is used for them to give the installation feedback.When it comes to data persistence,the system uses MyBatis middleware framework for the readability of the code.In order to improve the user experience and the system s performance,the Redis database is used.The system is split into several modules according to the function of each module.Each module will become a microservice,which improves the development efficiency while reduces the coupling degree of the whole system.This system mainly has several modules,including an order module,an installation module,a SSO(single sign on)module,a module for crawling data,a picture management module and a module for generating ids.Order module is used for sales staffs to operate order records.In installation module,installation staffs upload the installation feedback and admin users are responsible for tracing the installation progress.The SSO module is designed for authentication and authority management.Also,the system has a crawler module for crawling outdoor air quality.There are several non-functional modules including a picture management module and a module for generating unique ids in distributed environment.The system has been put into use currently.The application of this system reduces the workload of the sales staffs and improves their work efficiency.Meanwhile,the admin users can trace the process of the machine installation mission and see the situation of the installation.This system greatly improves the management efficiency and the information level of the enterprise. |