After-sales service system | Realize product after-sales service system with Java EE technology

Table of contents

1 Introduction

2 System Analysis

2.1 System requirements analysis

2.2 Feasibility analysis

2.3 Key technologies used in this system

2.3.1 MyEclipse Development Tools

2.3.2 Database

2.3.3 JSP technology

3 System outline design

3.1 System Management Module

3.2 Service information management module

3.3 Product installation information management

3.4 Product Maintenance Information Management

3.5 Product return information management

3.6 User reply information management

3.7 Complaint information management

4 System detailed design

4.1 Background database design

4.2 System ER Diagram

4.3.2 Data addition process

4.3.3 Data modification process

4.3.4 Data deletion process

4.4 System module design

4.4.1 Management login

4.4.2 Classified management of after-sales service

4.4.3 After-sales service information management

4.4.4 Complaint information management

4.4.5 Product return visit management

5 System debugging and testing

5.1 Program debugging

5.2 Test Module

5.2.1 The role of testing

5.2.2 User login test

6 Conclusion

Through the design and development of the system, the following conclusions are drawn:


1 Introduction

Science and technology are primary productive forces. Time has entered the 21st century, and the development of science and technology has brought great changes to our production and life. Technology is no longer a distant and unfamiliar term, especially with the wide-scale popularization of the Internet, the application of science and technology has gradually changed from militarization and industrialization to more people-friendly, more convenient marketization, and daily use. Technology has begun to be widely used in daily life and production. middle. With the development of the Internet, a large amount of information is converging all the time and generating new data. People began to use computers to process these complicated data, in order to reduce the workload of manpower, achieve the purpose of reducing cost and saving time. The popularization of computers has made data processing no longer the privilege of large companies. Data processing has gradually shifted from large-scale, integrated data processing and analysis to more specific and detailed processing. For example, in the analysis of specific affairs, big data analysis can effectively help us; another example is the application of data analysis in workflow... . In recent years, with the rise of e-commerce, people's online consumption has become more and more frequent, accompanied by a huge lack of after-sales. 【1】

For after-sales, it is far from enough to rely solely on manual services. People are beginning to desire a method that can replace manual services and effectively solve after-sales services conveniently and quickly. Computers began to enter people's sight, and people began to use computers on a large scale to solve problems, simplify manual operations, and achieve more intelligent and efficient management. As a result, the application of large-scale transaction processing and workflow management in the background of computer-centered, Internet-linked, and database management system-based management information systems has emerged.

my country's information industry and enterprise after-sales service are developing rapidly, and the development of e-commerce is beyond everyone's imagination. At the same time, it has also brought many problems. The rapid development of transaction volume has brought about a large amount of GDP growth. However, behind the glamor is that countless customer service staff are rushing to serve customers every day. Traditional management methods require a lot of labor, time-consuming and labor-intensive, and have high costs, which are no longer suitable for the ever-changing pace of modern society. Under such national conditions, it is imperative to adopt new technologies, improve traditional production and operation models, improve service levels and quality, and enhance management capabilities. This is also a positive response to national development planning policies. The informatization of enterprise after-sales service management can effectively improve the efficiency of after-sales work, reduce labor loss, reduce enterprise costs, and achieve more profitable goals. In this way, the informatization of enterprise after-sales service management is imperative, and it is imperative to change the traditional management pattern.

    After-sales service is an important part of enterprise services, and it is the various service activities provided after the sale of goods. The quality of the after-sales service determines whether the customer will buy again. Good after-sales service can make you stand out among many enterprises and become one of the best, so that you will not be eliminated by the waves. After-sales service can also be used as a main service of the enterprise. After the reform and opening up, people's living materials are greatly enriched, and people have more spare money to spend on shopping. After comparing prices, customers prefer businesses with good after-sales service. People tend to choose famous brands when shopping, and the good after-sales service of famous brands is also a key factor. Now, as one of the most important parts of sales, after-sales service has become the key to maintaining or expanding market share (such as Shuda, Tmall, JD.com, etc.). The quality of after-sales service will affect customer satisfaction. In procurement, relevant regulations such as guaranteed goods and after-sales service will enable customers to get rid of doubts and swings, and decide to buy products. High-quality after-sales service is the product of brand economy. In today's fierce market competition, consumers' rights The continuous improvement of awareness, the continuous exposure of the 315 party, the change of consumption concepts, and good after-sales service are not only the quality of the company's products, but also the real and complete satisfaction of customers. Good after-sales service can not only effectively improve the corporate cultural image, but also a solemn commitment to customers and customers. By establishing an effective after-sales service for products, enterprises can not only fulfill their commitments to customers, but more importantly, enterprises can take advantage of this opportunity to complete the monitoring of enterprise products, know where their products are prone to problems, and make sure that This should be improved so that it is targeted and not blindly bumping into it. Under the condition of market economy, the competition is so fierce that many companies are established every day, and many companies are eliminated. If a company wants to gain a foothold in today's fierce competition, it must have its own characteristics, which can also be said to be its own corporate culture. Good after-sales service can be used as a good cultural point. For a company to be strong, the after-sales service of products is a very important link. Therefore, the company can make a brand and form a brand effect.

The overall task of system development is to complete the systematization, standardization, automation and intelligence of enterprise after-sales service management, so as to achieve the purpose of improving the efficiency of information management.

   The application of computers has become more and more common in China. After the reform and opening up, China has continuously improved the application level of computer users, especially the application of Internet, communication, multimedia and other fields, and achieved good results. From the initial military scientific research and application to various fields of society, its application field has formed a large-scale computer industry. Therefore, the progress of world technology has led to a profound social change. Computers have been used in ordinary schools, enterprises, etc. Public institutions have entered the homes of ordinary people and become an indispensable tool in the information society. 【2】

    At present, the management level of after-sales service of enterprises in our country is still relatively backward, and a good management system has not been formed. Management relies on labor rather than systems. After thousands of years of history, such a mechanism has been proved to be no longer suitable for today's society. It wastes a lot of manpower and material resources, and fails to make the best use of manpower and material resources. Although our country is a populous country, but for the cumbersome things, leaving it to the computer can free up more manpower and material resources to invest in the construction of new China. In the information age, the popularity of computers and the Internet makes this traditional management method inevitably replaced by computer-based information management. This is the inevitable result of the development of the times. Fortunately, more managements in our country have seen this and have made more changes.

   In modern life, the scope of after-sales management is getting wider and wider. Because customers have higher and higher requirements for their own quality of life, the after-sales management industry must change with the improvement of people's living standards. With the continuous expansion of shopping scale, various after-sales feedbacks, complaints, and requirements for after-sales will become more and more complicated, and the management workload of the after-sales management system will also increase. Manual services cannot respond in a timely and effective manner, and make correct responses and preservation. A system is urgently needed to solve these problems. The starting point of this project is to solve this difficulty! 【3】

We want to build an after-sales management system that will be able to:

   (1) Establish an after-sales management system with a concise interface and easy operation;

   (2) It can provide a more convenient and efficient after-sales management method;

   (3) Realize the storage of customer information;

   (4) Realize the instant storage and feedback of customers' feedback;

   (5) Realize the standardized management of after-sales service;

   (6) The system can embody humanized management methods and design concepts.

The main task of this system is to establish an enterprise design for the after-sales service management system based on JavaEE technology and SQL Server database. The main technical requirements include: mastering the technologies required for web development, including HTML and JSP dynamic web page programming technology, SQL Server database knowledge, and so on. It mainly realizes adding, deleting, modifying and checking of after-sales service information of enterprises, adding, deleting, changing and checking of customer information, timely feedback and saving of customer message information, adding, deleting and logging in of administrator accounts, etc. The system can also facilitate manufacturers to track product quality and service and management, as well as buyers' proposal submissions to enterprises.
 

2 System Analysis

2.1 System requirements analysis

In recent years, with the rise of e-commerce, people's online consumption has become more and more frequent, accompanied by a huge lack of after-sales. For after-sales, it is far from enough to rely solely on manual services. People are beginning to desire a method that can replace manual services and effectively solve after-sales services conveniently and quickly. my country's information industry and enterprise after-sales service are developing rapidly, and the development of e-commerce is beyond everyone's imagination. At the same time, it has also brought many problems. The rapid development of transaction volume has brought about a large amount of GDP growth. However, behind the glamor is that countless customer service staff are rushing to serve customers every day. Traditional management methods require a lot of labor, time-consuming and labor-intensive, and have high costs, which are no longer suitable for the ever-changing pace of modern society. After-sales service is an important part of enterprise services, and it is the various service activities provided after the sale of goods. The quality of the after-sales service determines whether the customer will buy again. Good after-sales service can make you stand out among many enterprises and become one of the best, so that you will not be eliminated by the waves. After-sales service can also be used as a main service of the enterprise. After the reform and opening up, people's living materials are greatly enriched, and people have more spare money to spend on shopping. After comparing prices, customers prefer businesses with good after-sales service.

People tend to choose famous brands when shopping, and the good after-sales service of famous brands is also a key factor. Now, as one of the most important parts of sales, after-sales service has become the key to maintaining or expanding market share (such as Shuda, Tmall, JD.com, etc.). The quality of after-sales service will affect customer satisfaction. In procurement, relevant regulations such as guaranteed goods and after-sales service will enable customers to get rid of doubts and swings, and decide to buy products. High-quality after-sales service is the product of brand economy. In today's fierce market competition, consumers' rights The continuous improvement of awareness, the continuous exposure of the 315 party, the change of consumption concepts, and good after-sales service are not only the quality of the company's products, but also the real and complete satisfaction of customers. Good after-sales service can not only effectively improve the corporate cultural image, but also a solemn commitment to customers and customers. By establishing an effective after-sales service for products, enterprises can not only fulfill their commitments to customers, but more importantly, enterprises can take advantage of this opportunity to complete the monitoring of enterprise products, know where their products are prone to problems, and make sure that This should be improved so that it is targeted and not blindly bumping into it. Under the condition of market economy, the competition is so fierce that many companies are established every day, and many companies are eliminated. If a company wants to gain a foothold in today's fierce competition, it must have its own characteristics, which can also be said to be its own corporate culture. Good after-sales service can be used as a good cultural point. For a company to be strong, the after-sales service of products is a very important link. Therefore, the company can make a brand and form a brand effect. 【4】

Since entering the modern society, all parts of the world have become closer and closer, and cultural and economic exchanges have become more frequent, which has brought about an explosive growth of information. In recent years, with the rapid development of the information superhighway, everyone can visit any corner of the world, The amount of information to be obtained has increased significantly, and the external environment has changed rapidly, making it very impractical to record information completely artificially. How to collect enough information, process information promptly and quickly, store and edit information quickly, the development of information technology has become a common problem in modern society. Computers solve the problem of appearance. Large amounts of information can be collected, edited or investigated with ease of use and quick editing, computer and fast processing. At the same time, the development of computer hardware has gradually adapted to the rapid increase in the amount of information in modern society, the rapid update of information, and the trend of changing demand anytime and anywhere. It can be foreseen that the development of information systems in the future is not just simple data processing, but also draws tool conclusions, which can filter, sort, and analyze from all available information according to different conditions, and provide users with a final conclusion, such as now in The development of the experimental treatment system includes the simple development process and small data processing results, and the report system has further developed into a support system for the final decision-making expert system, and even has become a strategic information system in some fields, which can support the competitive strategy at the leadership level. This is the future trend of computer development.

At present, in China, the after-sales system architecture is mainly divided into two types: B/S and C/S. B/S browses relevant information through a browser and performs a series of related operations. Because of the fast and frequent updates of information in modern society, and high requirements for information security, most of the internal systems of various companies adopt this model. What I want to do is to complain for customers and provide after-sales service. , should be open to the society, so a more stable C/S model should be adopted.

The system adopts a three-tier structure, which is completed by the client and the user through the browser, and the expression logic of the browser is in charge of the JSP page.

 

Figure 2-1 System Mode Diagram

2.2 Feasibility analysis

The data related to the development system can take advantage of existing resources to collect related systems, and the information integration of the Internet provides us with a lot of convenience. The software required by the system can be found in the open source download path on the Internet, and the hardware only needs a computer and the Internet. Therefore, in terms of development costs, the system is very low cost. Compared with the traditional management mode, this system can save a lot of manpower and solve time, so as to achieve the final effect of cost saving. Therefore, from an economic point of view, the system is worth developing and has a good prospect.

Technical feasibility means that the system adopts the existing relatively mature JAVAEE system, and the various environments required for the development environment have been configured and deployed, and basically there will be no problems. The knowledge learned in school can also solve the problems involved. The current computer hardware configuration can fully run the required working environment, tools, and software. Many of the existing software are open source and can be downloaded for free on the Internet. Operational feasibility refers to the impact of the organizational structure, availability of existing personnel and institutions, and the suitability of the system and environment for personnel training and replenishment programs. The current information technology is relatively popular, and the level of operators is relatively high, so the operation is feasible. 【5】

Social feasibility means that in the current situation, people need such a system to reduce people's workload. In modern life, the scope of after-sales management is getting wider and wider. Because customers have higher and higher requirements for their own quality of life, the after-sales management industry must change with the improvement of people's living standards. With the continuous expansion of shopping scale, various after-sales feedbacks, complaints, and requirements for after-sales will become more and more complicated, and the management workload of the after-sales management system will also increase. Manual services cannot respond in a timely and effective manner, and make correct responses and preservation. A system is urgently needed to solve these problems. Traditional manual services are inefficient, and new technologies with computers as the core must be adopted to cope with the ever-changing society.

Legal feasibility means that the development of the system does not violate the existing laws of our country. my country's existing "Intellectual Property Law" and "Computer Software Protection Regulations" do not affect my system development.

2.3 Key technologies used in this system

2.3.1 MyEclipse Development Tools

    The MyEclipse enterprise-level work platform is MyEclipse Enterprise Workbench, which is referred to as MyEclipse in Chinese . Compared with Eclipse, Myeclipse is more powerful in terms of functions, and has many plug-ins, which are widely circulated. We are mainly used to develop JAVA, J2EE, database. Using it, we can greatly improve work efficiency in development and integration. Its scalability is very strong, and it can be easily adapted in the development of a new language through the different language environments installed in the components. Extensive support for JAVAScript,

JSF, JDBC and other tools. It itself is the most basic framework platform, you can use different plug-ins to achieve different functions, but too many plug-ins also make it difficult to have the stability of other relatively fixed language development environments, some specific details The functions will be lacking, and the experience may not be very good for deepin developers. Therefore, many language development vendors have developed integrated development environments suitable for their respective language development based on eclipse. However, eclipse is still the most widely used, most basic development environment, and very convenient to use. Eclipse was initially unified by IBM and OTI in April 1999. Here, IBM began to launch the core code of Eclipse, including the development of two IDE products of the platform, JDT and PDE. Eclipse is an open source project. Its original purpose was to replace Visual Age for Java. The interface at the beginning was similar to that of Visual Age for Java. However, due to its openness, more people participated, and everyone can use it for free. Download and use it as a tool to develop the plug-ins you need, so it has been constantly concerned and favored by people, and has been widely promoted and used. Due to the widespread use of Eclipse, major companies and developers also joined in. With the original IBM as the center, everyone formed an extensive development alliance and cooperated to develop many famous tool plug-ins, including Borland (C++ plug-in), Rational Software (design and development tools), Red Hat (virtual server) and Sybase (database), etc. Subsequently, many large companies such as Oracle also participated in the development and maintenance of the project, continuously improving its scalability and practicality, so that it can finally become an integrated development that can use different plug-ins for any language development The environment has a relatively balanced flexibility and stability, better promotes computer languages, and lays a good foundation for the development of informatization and digitization.

In 2006, many companies participating in the eclipse project established the eclipse foundation, which is dedicated to the release, promotion and maintenance of eclipse. The release of the annual version is generally in June, and the update of the current version is carried out in September of the same year and February of the following year, and the SR1 and SR2 versions are released.

2.3.2 Database

    The system's database is based on a database management system, the source of all information systems that are directly integral to the user experience. In recent years, database technology is one of the fastest-growing and fastest-growing technologies in computer technology. The database is used to store all the information required by the entire system, and can directly affect the performance of the system under the same hardware configuration. The main criteria for assessing the quality of the system. As the cornerstone of the system, the design of the entire system depends entirely on the design of the database. Therefore, in this section, we explain the database used by this system. A database is a collection of information organized so that it can be easily accessed, managed and updated.

Computer databases often contain aggregations of data records or files, such as sales transactions, product catalogs and inventories, and customer profiles. 【6】   

Typically, the database manager provides the user with the ability to control read/write access, specify report generation and use for analysis. Some databases provide ACID (Atomicity, Consistency, Isolation and Durability) compliance to ensure data consistency and transactional integrity.

    Databases are prevalent on mainframe systems, but also exist on smaller distributed workstations and midrange systems such as IBM's AS/400 and personal computers.

    Databases have evolved since their inception in the 1960s, starting with hierarchical and network databases, to object-oriented databases in the 1980s, and to SQL and NoSQL databases and cloud databases.

In one view, databases can be categorized by content type: bibliographic, full-text, digital and image. In computing, databases are sometimes classified according to how they are organized. There are many different types of databases, from the most popular approaches, relational databases, distributed databases, cloud databases or NoSQL databases. Data is organized into rows, columns, and tables, and it is indexed to make it easier to find relevant information. Data is updated, extended and deleted as new information is added. Databases handle the workload to create and update themselves, query the data they contain, and run applications.

    Invented by EF Codd at IBM in 1970, a relational database is a tabular database in which data is defined so that it can be reorganized and accessed in many different ways.

    A relational database consists of a set of tables with data that fits into predefined categories. Each table has at least one data category in a column, and each row has some data instances for the category defined in the column.

Structured Query Language (SQL) is the standard user and application program interface for relational databases. Relational databases are easily extensible, and new data categories can be added after the original database has been created without modifying all existing applications.

    A distributed database is a database in which part of the database is stored in multiple physical locations and in which processing is dispersed or replicated between different points in a network.

Distributed databases can be homogeneous or heterogeneous. All physical locations in a uniformly distributed database system have the same underlying hardware and run the same operating system and database applications. The hardware, operating system, or database application in a heterogeneous distributed database may be different at each location.

    The Oracle database system is a group of software products provided by Oracle Corporation ( Oracle ) in the United States, with a distributed database as the core and using the most popular client/server (CLIENT/SERVER) or B/S architecture . It is currently the most popular in the world. , one of the most widely used large databases. The database is the basic condition for information storage. For example, SilverStream is a widely used middleware based on the database.

    A cloud database is a database that has been optimized or built for a virtualized environment in a hybrid cloud, public cloud, or private cloud. Cloud databases offer benefits such as the ability to pay for storage capacity and bandwidth on a per-use basis, and they provide on-demand scalability along with high availability.

Cloud databases also give businesses the opportunity to support business applications in software-as-a-service deployments.

    NoSQL databases are useful for large distributed datasets. NoSQL databases are ineffective for big data performance issues that relational databases cannot solve. They are most effective when organizations have to analyze large amounts of unstructured data or data stored in the cloud across multiple virtual servers.

    Items created using object-oriented programming languages ​​are often stored in relational databases, but object-oriented databases are ideal for these items. Object-oriented databases revolve around objects rather than actions, data rather than logic. For example, multimedia records in a relational database can be definable data objects rather than alphanumeric values.

    A graph database or graph database is a type of NoSQL database that uses graph theory to store, map and query relations. A graph database is basically a collection of nodes and edges, where each node represents an entity and each edge represents a connection between nodes. Graph databases are gaining popularity for analyzing interconnections. For example, a company might use a graph database to mine customer data from social media.

    A database management system (DBMS) is a software that allows you to define, manipulate, retrieve and manage data stored in a database. A relational database management system (RDBMS), a database management software developed in the 1970s based on the relational model, is still the most popular way of managing databases.

    Microsoft SQL Server, Oracle Database, IBM DB2, and MySQL are the top RDBMS offerings for business users. Database management system technology began in the 1960s to support hierarchical databases, including IBM's Information Management System and CA's Integrated Database Management System.

Oracle database management system is currently the most widely used database management system . As a common database system for all products, it has complete and comprehensive data management functions; as a relational database, it is a product with complete relations; It implements all the functions of distributed processing with the database as the core . Oracle is easy to use, easy to learn, and widely used. As long as you learn Oracle knowledge on any type of machine, you can use it on various types of machines.

2.3.3 JSP technology

    The full name of JSP is java server page, and the Chinese name is java server page. The root is a simplified Servlet design. JSP technology is similar to ASP technology, it is a traditional HTML web page (a subset of the Standard General Markup Language) file. Thermal media, *. HTML) into java programs (scripts) and JSP tags (tags) to form a JSP file with a suffix of (JSP). Web applications developed using JSP are cross-platform, running on Linux and running on other operating systems. It implements Java extensions in HTML syntax. Like servlets, jsp is executed on the server side. Usually returned to the client is an HTML text, so as long as the browser is available, the client can browse. JSP technology uses tags and scriptlets XML written in the java programming language to encapsulate the processing logic for generating dynamic web pages. The web page also uses tags and scriptlets to access application logic that resides on the server side. JSPS separates web logic from web design and supports reusable component-based design, enabling fast and easy development of web-based applications. JavaServer Pages is a dynamic web technology whose main purpose is to separate the presentation logic from Servlets.

3 System Outline Design

According to the functional requirements analysis of the system, the system is divided into the following major modules:

 

Figure 3-1 System Analysis General Module Diagram

3.1 System Management Module

    This module is mainly used to manage the system, including setting system permissions, adding and deleting system administrators, changing passwords, and managing users.

    System privileges are prerequisites for system operation. The design system must classify the people who use the system. Different people can use different permissions. Administrator permissions cannot be granted arbitrarily, and can only be used by the company's senior management. Ordinary users use ordinary permissions. They can only modify and query their own information, and cannot query and modify other people's information, otherwise the information will be leaked and the company will become a mess.

3.2 Service information management module

    This module is mainly to manage and maintain consumer information, and build data files for customer information, including adding, deleting and modifying after-sales service information. After the customer purchases, they can log in the customer information into the system, and then provide follow-up service to the customer. The customer can comment on the service and make suggestions. The company can issue questionnaires to customers from time to time and conduct satisfaction surveys.

3.3 Product installation information management

    This module is mainly responsible for registering and deleting product installation information. Ensure that the service is in place and be responsible to customers. Customers can check the installation information and progress of the products they purchased.

3.4 Product Maintenance Information Management

    Register the addition, deletion and modification of product maintenance information (including maintenance time, maintenance content, maintenance amount, etc.). .

3.5 Product return information management

    It mainly includes the addition, deletion and modification of product return information (including return date, reason for change, etc.);

3.6 User reply information management

    This includes the addition, deletion and modification of user reply records, so as to understand the needs of users.

3.7 Complaint information management

    It mainly includes product complaint information at the front desk, administrator review, reply, etc.

4 System detailed design

4.1 Background database design

    In the more than ten years since the database was launched, the database management system has developed rapidly. It has developed from a single application program to a system software with its own exclusive language, specialized theory, and professional researchers. Through the database management system, the data in the database becomes clear in structure, clear in relationship, low in redundancy, high in program independence, easy to increase or decrease, clear in order, and easy to be called by related systems or programs. Therefore, no matter Both large-scale system software and small-scale application software are built on the basis of the database, which greatly reduces the difficulty of data storage and enables the widespread promotion of computing technology. Big data analysis, which has become increasingly popular in recent years, is also based on databases to analyze massive amounts of data. With the widespread promotion of computer software, the performance requirements of the database are getting higher and higher, which in turn promotes the development of database technology. Databases designed by different design methods have different advantages and disadvantages in various aspects. For example: in a large data processing system, not only the stability of the database is extremely high, but also the performance cannot be too bad, which requires a balance between stability and high performance; however, in a microcomputer system, The data scale is not large, and what is needed is to be able to respond to user-related operations in a timely manner, so there are extremely high requirements for performance. As the research on the database becomes more and more formalized and scientific, and the investment continues to increase, the current database system has changed from the previous simple processing and processing data to the center around the shared database. This database change, It is more convenient for the centralized management of data, and effectively digs out richer information contained in the data, which is conducive to the call of the application program to the data, and also facilitates the development and maintenance of the program itself. By integrating the same data, it not only saves The database space is increased, and the connection between the data itself is clearer and clearer.

    At the same time, the relevant data in the database are all abstracted from real life. Through the abstraction of the physical model in the real world, the various attributes of the physical model are quantified into specific numbers. Different data show the difference of the physical model, and the similar appreciation of the same data shows the difference between the physical model. similarities between. Therefore, by designing different databases, different tables, views, rows, and columns, the entity model can be converted into a database model. Therefore, the quality of the database design also directly affects whether the characteristics of an entity model can be fully displayed and the differences between entity models can be highlighted.

    To sum up, database design is the core of the database, the core task of the database management system, the main criterion for evaluating the quality of a system, whether it can directly show the relationship between data, whether it can be compared with The main means of perfect integration with the real world. If the database design is not good, it will affect the smooth operation of a certain functional module in the system if it is small, or it will cause the entire system to fail to meet the requirements, causing huge losses. If the database design is not good, all other methods and means to improve the performance of the database will have little effect. In the process of continuous development of database design, people gradually put forward a series of standards and methods to standardize the design of database. In the current popular relational data, these standards and methods are called paradigms. In other words, a paradigm is a collection of certain relationships. Most people now follow the third normal form, that is, a database table cannot contain non-primary keywords in other tables. The adoption of this paradigm reduces data redundancy, clarifies the relationship between tables, and improves the performance of database-related operations.

(1) Administrator Information Form

       1. Administrator username

       2. Admin name

       3. Password

       4. Login time

       5. Permissions

(2) Customer Information Form

       1. Customer name

       2. Gender

       3. Purchase product name

       4. Price

       5. Time to buy

       6. Commodity order number

       7. Maintenance records

       8. Return record

    (3) Return visit information form

           1. name

           2. Gender

           3. age

           4. Document number

           5. Date time

           6. leave a message

           7. Contact number

           8. Reply

    (4) Maintenance information sheet

           1. Product number

           2. Customer name

           3. Gender

           4. age

           5. Document number

           6. Reason for maintenance

           7. Phone number

           8. Maintenance status

    (5) Return Information Form

           1. Product number

           2. Customer name

           3. Time to buy

           4. Reasons for return

           5. Whether to return or exchange

 

Figure 4-1 admin table

Figure 4-2 System permission table

 Figure 4-3 Design table "attend"

Other tabulations

4.2 System ER Diagram

 

Figure 4-8 System ER Diagram

4.3 Processing flow design

4.3.1 System operation process

Figure 4-8 System operation flow

4.3.2 Data addition process

    When adding data, the data will automatically generate a new number, and at the same time verify the legality of the data. After the verification is passed, the data will be imported into the database and the data addition will be completed. If it fails, it will not be added and needs to be re-entered.

 

Figure 4-9 Flowchart of adding data

 

4.3.3 Data modification process

    When modifying information, select the information that needs to be modified, and then modify it. After the modification, the legality of the data needs to be verified again. The process is similar to that of adding. If the verification is passed, it will be added to the warehouse, and if it is not qualified, it will not be pre-storage.

 

Figure 4-10 Data modification flow chart

4.3.4 Data deletion process

When the user selects a record and clicks the delete button, the user will be prompted whether to confirm the deletion, and then delete the relevant content of the database. The flow chart of data deletion is shown in the figure.

 

Figure 4-11 Data deletion flow chart

 

4.4 System module design

4.4.1 Management login

When the system logs in, a user login interface appears first, mainly to maintain the security and integrity of the system. As shown below:

 

Figure 4-12 System main page

The main code is as follows:

define a form

           setTitle("After-sales management system login");

           label.setText("Username:");

           label_1.setText("Password:");

           login.setText("login");

    reset.setText("Reset");

    panel_1.add(reset);

generate verification code

public String getCheckCode(){

       Random random = new Random();

       String sRand="";

       for (int i=0;i<4;i++){

        String rand=String.valueOf(random.nextInt(10));

        sRand+=rand;

       }

        return sRand;

    }

4.4.2 Classified management of after-sales service

Administrators can classify after-sales services, including operations such as adding, deleting, and modifying after-sales service categories. The interface is shown in the figure below:

 

Figure 4-13 System management interface

The main code is as follows:

x= new x();

       x.open();

       try{

           int i = x.executeUpdate(sql);

           if(i == 1)

              return Constant.SUCCESS;

           else

              return Constant.SYSTEM_ERROR;

       }catch(Exception e){

           e.printStackTrace();

           return Constant.SYSTEM_ERROR;

       }finally{

           x.close();

       }

4.4.3 After-sales service information management

The system is divided into administrators and ordinary users. Administrators have higher authority and can manage after-sales service information, including operations such as adding, deleting, and repairing. The following figure shows the relevant interface:

Increase

public int addEmp(String name,String sex,String bir,String departs,String zhiwu,String tel,String address,String remark){

       String sql="insert into emp(name,sex,bir,departs,zhiwu,tel,address,remark,addtime) " +

           "values('"+name+"','"+sex+"','"+bir+"','"+departs+"','"+zhiwu+"','"+tel+"','"+address+"','"+remark+"','"+date+"') ";

       DBO dbo = new DBO();

       dbo.open();

       try{

           int i = dbo.executeUpdate(sql);

           if(i == 1)

              return Constant.SUCCESS;

           else

              return Constant.SYSTEM_ERROR;

       }catch(Exception e){

           e.printStackTrace();

           return Constant.SYSTEM_ERROR;

       }finally{

           dbo.close();

       }

}

Revise

public int upEmp(String id,String name,String sex,String bir,String departs,String zhiwu,String tel,String address,String remark){

       String sql="update emp set name='"+name+"',sex='"+sex+"',bir='"+bir+"',departs='"+departs+"',zhiwu='"+zhiwu+"',"+"tel='"+tel+"',address='"+address+"',remark='"+remark+"'  where id='"+id+"' ";

       DBO dbo = new DBO();

       dbo.open();

       try{

           int i = dbo.executeUpdate(sql);

           if(i == 1)

              return Constant.SUCCESS;

           else

              return Constant.SYSTEM_ERROR;

       }catch(Exception e){

           e.printStackTrace();

           return Constant.SYSTEM_ERROR;

       }finally{

           dbo.close();

       }

   }  

 

Figure 4-14 After-sales service information management

4.4.4 Complaint information management

The administrator can also reply or delete the complaint information left by the customer. The relevant interface is as follows:

delete message

    public int delGuestBook(int id[]){

       DBO dbo=new DBO();

       dbo.open();

       try{

           for(int i = 0;i<id.length;i++){

  dbo.executeUpdate("delete from  guestbook  where  id = '"+id[i]+"'");  

    dbo.executeUpdate("delete from  replay  where  mid = '"+id[i]+"'");

           }

           return Constant.SUCCESS;

       }catch(Exception e){

           e.printStackTrace();

           return Constant.SYSTEM_ERROR;

       }finally{

           dbo.close();

       }

    }

Respond to voicemail

    public int reGuestBook(int mid ,String replay,String replayer){

       String sql = "insert into replay (mid,replay,replayer,replaytime)" +

    " values ('"+mid+"','"+replay+"','"+replayer+"','"+date+"') ";

    String sql2 = "update guestbook set replay='1' where id='"+mid+"' ";

       DBO dbo = new DBO();

       dbo.open();

       try{

           int i = dbo.executeUpdate(sql);

           int j = dbo.executeUpdate(sql2);

           if(i == j && i== 1)

              return Constant.SUCCESS;

           else

              return Constant.SYSTEM_ERROR;

       }catch(Exception e){

           e.printStackTrace();

           return Constant.SYSTEM_ERROR;

       }finally{

           dbo.close();

       }

    }

 

Figure 4-15 Complaint information management

4.4.5 Product return visit management

You can add, modify or delete the return visit information, the interface is as shown in the figure below:

 

Figure 4-16 Product return visit management

System debugging and testing

5.1 Program debugging

In the process of system design, there will inevitably be problems of one kind or another. For simple errors, such as grammatical errors in statements, the system will automatically prompt when the program is running and then make corresponding corrections. But another type of error is the result of an operator error or a logical error in the calculation of some data. This type of error is so cryptic, it happens sometimes and sometimes it doesn't, so it takes a lot of effort to fix this type of dynamic error.


5.2 Test Module

5.2.1 The role of testing

(1) Why test

    Testing is a work carried out before the product is released. It can ensure that the software can work normally before delivery, which minimizes the possibility of using professional technology to solve problems, and largely prevents the software from being sold. After going out, various problems brought about the loss of human, material and financial resources. For example, after the software is sold, if there is a problem, the user needs to be compensated for the loss, and at the same time, the system needs to be maintained, which consumes a lot of manpower, material and financial resources.

    After entering the information age, most enterprises use computers and the Internet for daily office and management. Reasonable use of computers can make work more orderly, efficient and accurate. Software applications are the work through which software is used to obtain the desired results.

Software testing can not only find out whether there are loopholes in the system, so as to avoid losses caused by loopholes, but also detect whether the system requirements required by users are completed. Constantly communicate with customers, gradually solve new problems, gradually add new requirements, and finally get the final system that can be delivered. This can minimize the cost of later maintenance. As a small module in the system development process, software testing is very important, like a nail on a horseshoe.

    In practice, software testing is often very difficult. One is that testing itself is a very difficult task. In the face of a large amount of code, it is often impossible to start. Programmers and testers are not and cannot be one person, which creates differences in the understanding of the code. Some people do not write comments during programming, and testers cannot understand what programmers mean. Also, testing does not require programming, and it is a job that can get results quickly. After the programming is completed and a function is implemented, you will have a great sense of satisfaction, while testing means that you may continue to fall into the complicated and redundant code and cannot get out. Your job is just to find that bug. This psychological gap is also one of the reasons why the difficulty of testing continues to increase. In addition, some companies do not pay enough attention to testing, which is also the reason for hindering the development of testing.

2 ) Purpose of the test

    The purpose of testing is not only to find more errors, but also to better correct the software. If it is only to find more errors, targeted testing should be used. Test for places where errors are prone to occur, so that errors can be found more easily. The method of testing is generally to run the program and correct the problems that arise. The purpose of software testing is first and foremost to confirm the quality of the software, on the one hand to make sure that the software does what you want it to do, and on the other hand to make sure that the software does it in the right way. The second is to provide feedback to the developer or project manager and prepare risk assessment information. The third software testing is not only in testing the software, the software product itself, but also the software development process. If a software product is developed, many problems are found, which indicates that the software development process may be flawed. Therefore, the third goal of software testing is to ensure the high quality of the entire software development process.

5.2.2 User login test

Table 5-1 User login test

Test object

Test Case

expected outcome

actual results

whether to pass

User login

Username: sdaf

Password: empty

Verification code: correct

please enter user name

Pop up please enter username

pass

User login

Username: empty

Password: 1

Verification code: correct

please enter password

pop up please enter password

pass

User login

Username: sdasf

Password: 111

Verification code: correct

Report an error, prompting that the user name or password is wrong

Report an error, prompting that the user name or password is wrong

pass

User login

Username: admin

Password: 024admin

Verification code: correct

Landed successfully

Landed successfully

pass

User login

Username: admin

Password: 024admin

Verification code error

Login failed, verification code error

Verification code error pops up

pass

The flow chart of user login is as follows:

 

Figure 5-1 User login flowchart

5.2.2 Partial testing of other functions

    Based on the principle of non-exhaustive test cases and selection of representativeness, this system only selects some key functions for testing, which saves development time, facilitates early delivery, and enables customers to use the system as soon as possible; secondly, saves development Cost, because the manpower and material resources spent in the later stage of the test are not directly proportional to the number of bugs tested, so there is no need for such a waste.

     Except that the user login module is closely related to permissions and requires higher security and priority, the rest adopts the method of combining white box and black box to conduct unit tests on one or several modules of each major module, and then select several modules for observation Whether the integrated jump function of the software meets the requirements, set the relevant cases and numbers, as shown in the following page table.

Table 5-2 Other functional tests

Test object

Test Case

expected outcome

actual results

whether to pass

administrator settings

Click the "Admin Settings" button

Jump to admin settings

Jump to admin settings

pass

After-sales service classification

Click the "After-sales service classification" button

Jump to the after-sales service category page

Jump to the after-sales service category page

pass

After-sales service information

Click the "After-sales service information" button

Jump to the after-sales service information page

Jump to the after-sales service information page

pass

After-sales service inquiry

Click the "After-sales Service Inquiry" button

Jump to the after-sales service inquiry page

Jump to the after-sales service inquiry page

pass

Product Installation Information

Click the "Product Installation Information" button

Jump to the product installation information page

Jump to the product installation information page

pass

Installation Information Query

Click the "Installation Information Query" button

Jump to the installation information query page

Jump to the installation information query page

pass

Product Repair Information

Click the "Product Repair Information" button

Jump to product repair information page

Jump to product repair information page

pass

Maintenance Information Inquiry

Click the "Maintenance Information Query" button

Jump to the maintenance information query page

Jump to the maintenance information query page

pass

Return Information Inquiry

Click the "Return Information Inquiry" button

Jump to the return information inquiry page

Jump to the return information inquiry page

pass

Product return information

Click the "Product Return Visit Information" button

Jump to the product return visit information page

Jump to the product return visit information page

pass

Return visit information inquiry

Click the "Return Visit Information Inquiry" button

Jump to return visit information query page

Jump to return visit information query page

pass

Complaint information management

Click the "Complaint Information Management" button

Jump to the complaint information management page

Jump to the complaint information management page

pass

6 Conclusion

Through the design and development of the system, the following conclusions are drawn:

    (1)在日常生活中,要想灵活应用所学的知识,就必须将其与实践相结合。尤其是在学习一门新技术时,最重要的是实践,只有充分的实践才能掌握它。实践才是检验真理的唯一标准。在开发程序的过程中,许多以前上课时候学过的知识都被遗忘了,不得不重新打开书本查阅资料,观看视频来学习这些知识。如果当初能够做到及时复习巩固,这些知识肯定不会被遗忘到这种地步。这样,开发过程可以缩短时间,提高效率,把系统做的更好,而不是像现在这样马马虎虎。根本原因不仅是学习不认真,更重要的是缺乏将知识转变为实践的能力。知行不能做到合一,那知识就是纸上谈兵,不具有任何的作用。身为一个大学生,只会夸夸其谈,大概是无法成为一个合格的程序员。毕竟这门学科更注重的是实践,只有更多的实战操作才能让自己合格。一次次的编写代码修改,这才是我们应该做的,而不是仅仅停留在书本知识,处理日常考试。如何将书本知识转变为自己的能力,是今后的生活中应当注重的一点。

    (2)一个系统的开发,经验是非常重要的。没有经验,第一次做系统总是会手忙脚乱,无从下手。所幸的是学校安排的课程设计帮了大忙,让自己做系统时不至于不知从何做起。做这个系统参考了网上的很多资料,得益于互联网的高速发展,使得我们能够轻松的站在前人的肩膀上看世界。网上的诸多系统给了我很多的启发,一个人的思维有着很多的局限性,汇集诸多思维就能够逐步完善一个想法,并且逐渐把他变成实际。做系统,最重要的一点心得是要及时记录。你会偶然间想出一个好点子,这时要记得记录,因为你平常面对的是很小的简单系统。然而,现在我们面对的是一个庞大的系统,多个子系统组成的大系统、多功能模块下的子系统,功能模块、多功能页面、页面点、子函数和子系统的逻辑功能、功能模块和功能页面,功能是一个复杂的逻辑网络。这需要我们计划,分析,提炼,深思熟虑,并制定出一个编程计划。这时你必须通过笔记来记录整理,就像破案一样,在千头万缕的繁杂线索中,找到其中的关键。善学习别人的成绩,实现自己的功能,可以有效缩短开发时间,提高工作效率,是提高编程能力的最佳途径。网上有很多的论坛,帖子,博客,他们的代码是开源的,你可以从中找到自己所需要的功能模块。学习别人的工作不仅仅是复制别人的源代码,如果只是这样,你往往会因为系统的错误,无奈,到最后成了鸡肋和抱怨。看到别人的源码,应该首先分析,读懂别人的程序思想,取其精华弃其糟粕,使之成为你自己的思想,然后将这些功能和它们的功能块融合起来。如果有些事情是由他们自己简单地考虑出来的,那么它们可能是精心设计的,但在很短的时间内是不可能的。这个系统测试,它开始作为一个简单的复制的代码和粘贴它,造成许多错误。然后进一步讲解编程思想,首先学习数据库的关系和功能,并根据数据来预测字段与数据之间的关系,并了解各块代码函数之间的关系,最后再仔细敲打一遍。通过这样一个完整的过程,有一个更深入的了解的要求和应用程序的规定性,安全性和效率方面。这对新手程序员很好。

    (3) Timely, clear and complete work records are conducive to the rapid improvement of business level and the improvement of programming efficiency. Work notes are a sequence of pieces of stuff that happened at work. Written work notes such as set record events that fill in relevant factors, such as seemingly simple work records, but contain profound knowledge, what elements need to be included in work notes to complete the record, events that are clear at a glance? How do you record and classify your notes, So that we can learn more about the future? I made this node, recalling today’s task work before going to bed one day, what difficulties were encountered, how to solve them, and what opinions do you have, in the form of a table, by field elements: time, event, And difficulties, deadlock resolution, comments, and records are relatively complete, and can also be classified according to time, difficulty level, and experience to facilitate future learning.

    (4) After each function is completed, other complete function tests should be carried out in time, and then proceed to the next step. If you can easily find the link and the cause of the error, in testing, we call it "step-by-step", it can be very helpful/helpful for junior developers. For the programmer, every step is a little bit wrong, every function is a loop, a link, an interaction. If a link goes wrong, it will also have an immeasurable impact on the system.

Guess you like

Origin blog.csdn.net/whirlwind526/article/details/130851336