First assesment _832201229蔡绍恩

832201229 蔡绍恩 832201229 蔡绍恩 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

https://github.com/Noimp137/front

https://github.com/Noimp137/back

1.3 My PSP Table

ModulesTask DescriptionEstimated TimeActual Time
Demand AnalysisDetermine the requirements of the web page and the functions that can be achieved3 hour3 hour
Database DesignDesign database schema, including contact information25 hours25 hours
Backend DevelopmentCreate a Spring Boot application and write an interface20 hours30 hours
Front-end DevelopmentPage design, front-end development using Vue20 hours30 hours
TestTest whether the web page meets expectations10 hours10 hours
DeployDeploy the application to the server10 hours15 hours
Total 88 hours113 hours

 .1  Archive

This system uses MYSQL open source database, the main reason for using it is because MYSQL data is small, fast, easy to connect, and will not contain high cost, but also open source, in the general small and medium-sized enterprises, they will choose MYSQL database as the website database MySQL. Will optimize the SQL query algorithm, effectively improve the query speed, and add, delete, modify and check. It can also provide support for multiple languages.

2.2  J2EE

The core of J2EE is reflected in the standardization of technology and architecture, which includes various components, service architectures and technical levels, because they all have the same standards and specifications, and all programs that comply with the J2EE architecture have good compatibility between different platforms.

2.3 JSP technology features

(1) Generate components that can be reused multiple times

Most JSP pages rely on reusable cross-platform components, such as JavaBeans components, to implement the more complex processing required by the application.

(2) Adopt identification to simplify development

You can build specific features, such as recognition. This will greatly improve the efficiency of development, but also can quickly build the dynamic web page developers need.

(3) Adaptation platform

Because JSP technology can adapt to a variety of development environments, but also written in JAVA language, it will have all the advantages of JAVA technology.

(4) The data link is JDBC technology

Because almost all developers now use ODBC to connect to the database, and in this way to connect to the database is simple and not locked, while connecting with other frameworks is not difficult

3.1 Overall Functional modules
The textbook management system developed can run normally on the specified software platform. The current textbook management system can run on a normal laptop computer, the operating system is Windows 10. There are no restrictions on the database, but based on the size of the database, processing speed and security, it is recommended to use a relational database.

The teaching material management system is mainly divided into two user roles: system administrator and teacher. As shown in Figure 3.1

Figure 3.1 Functional requirement analysis

3

2 Function modules of the system administrator
(1) Class information management: Complete the information entry of the department, major, class name, and number of students of the class, and can delete the graduated class.

(2) Course information management: The academic administration personnel shall enter the name of the course, the credits and hours of the course, and strictly introduce the course.

(3) Teacher information management: the system administrator enters the teacher's job number, name, gender, age, and mobile phone number.

(4) Textbook information management: input relevant textbook number, textbook introduction, publishing house, author, unit price, textbook category, textbook cover and textbook name.

(5) Selected textbooks to be assessed: determine the audit through the teaching materials requested by the teacher user.

(6) Selected textbooks query: query the textbooks that have been rejected and passed, and query the detailed information output.

(7) Order teaching materials: According to the application of teacher users, the purchase of teaching materials.

(8) Ordering management of teaching materials: the number of ordered teaching materials and textbooks.

(9) Textbook storage: the amount of textbook information that has been stored.

(10) Textbook inventory management: check the number of textbooks that have been stored.

(11) Textbooks to be collected: In this function, you can view the textbooks that are already available for collection.

(12) Collection record: record whether the textbook has been collected. As shown in Figure 3.2

Figure 3.2 System Administrator functions

3

.3 Teacher function module
The functions of the teacher are shown in Figure 3.3

(1) Select course materials: This function is completed to view the input and select the class, the material information according to the class size to buy materials.

(2) My selected textbook: Check my purchase record, and judge whether it can be put forward from the warehouse according to the approval of the audit.

(3) Collection record: The collection record of teaching materials under the teacher user. As shown in Figure 3.3.

Figure 3.3 Teacher function diagram

 

4.1 SSM Framework
SSM framework is based on Spring MVC, Spring, Mybatis three combination framework abbreviation. The integration and collaborative use of the three frameworks can effectively improve the efficiency of the code, so that the development time of the program can be more effectively shortened, and the development cost of our system can be reduced.

4.2  Mybatis configuration file

Configuring database connections

<beanid="dataSource"class="org.apache.commons.dbcp.BasicDataSource"destroy-method="close">

<property name="driverClassName"value="#{jdbc.driver}"/>

<property name= "url" value="#{jdbc.url}"/>

<property name="username"value="#{jdbc.user}"/>

<property name="password"value="#{jdbc.password}"/>

<property name="maxActive"value="#{jdbc.maxActive}"></property></bean>

Configure the information for a data source, that is, the connection information for the database, then configure the information for the sessionFactory, and finally pass

<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">

<property name="basePackage" value="com.dao"/>

</bean>This configuration statement scans all configured mybatis configuration file information

4.3  SpringMVC配置文件

Scan configuration components

<context:component-scan base-package="com.controller"/>

<! -- Configuring MVC Annotation Scanning -->

<mvc:annotation-driven />

<beanid="multipartResolver"  class="org.springframework.web.multipart.commons.CommonsMultipartResolver">

<!-- one of the properties available; the maximum file size in bytes -->

    <property name="maxUploadSize" value="10000000"/>

    <property name="defaultEncoding"value="UTF-8"/></bean>

This is the configuration file of Spring MVC. The main function of this file is to scan all the resource information of all the com.controller layer.

This chapter details the main features of the system and describes the functionality of each feature in code. And in each function module, how to complete this module

4.3 Login Page
This feature page determines whether the user is a superuser or a non-superuser based on the account entered by the user, as shown in Figure 6.1.

Figure 6.1 System login page

The main code of this page is: // login

@RequestMapping("/login.do")

public void login(HttpServletRequest request,HttpServletResponse response,String username,String password,String role){

PrintWriter writer = this.getPrintWriter(response);

User user = userService.userlogin(username, password,role);

if(user==null){

writer.print("<script language=javascript>alert('The user name or password is incorrect');window.location.href='login.jsp';</script>");

}else{HttpSession session = request.getSession();

session.setAttribute("manage", user);

writer.print("<script language=javascript>alert('Login successful');window.location.href='index.jsp';</script>");}}

This code is the teacher User login code, will be through the user user=userService.userlogin(username, password,role); To call the value of the database to determine whether the user exists, if the verification is successful, the login is successful, and jump to the index.jsp page.

4.3 Class information management page
To add, delete, change, and check classes, and query by class name, as shown in Figure 6.2 Class Information Management

Figure 6.2 Class information management

4.4 Course information management
Add, delete, revise and check the teaching materials, and inquire the required teaching materials. Query by teacherService. SelectBeanList approach to interaction calls, to find qualified record. The records that meet the query criteria are transmitted to the displayed page using the request.setAttribute method. Also by returning "teacherlist.jsp"; Specify a specific JSP page, as shown in Figure 6.3 Course Information Management

Figure 6.3 Course information management

4.5 Teacher information management
This function can be added through the super user account, so this is also a vulnerability, can not register ordinary users, only through the super user to add. The added common user will successfully log in to the teacher user interface according to the password to purchase textbooks, as shown in Figure 6.4 Teacher information management.

Figure 6.4 Teacher information management

主要代码://教师信息列表

@RequestMapping("/teacherlist.do")

public String teacherlist(HttpServletRequest request,String pagenum,String classname,String jobno,String cname){

…….

if (pagenum != null) {

currentpage = Integer.parseInt(pagenum);}//组装查询的sql语句

StringBuffer sb = new StringBuffer();

sb.append(" select * from t_teacher where  ");//查询条件返回页面

if (jobno != null && !"".equals(jobno)) {

sb.append(" jobno like '%"+jobno+"%' ");

sb.append(" and ");

request.setAttribute("jobno", jobno);}

if (cname != null && !"".equals(cname)) {

sb.append(" cname like '%"+cname+"%' ");

sb.append(" and ");

request.setAttribute("cname", cname);}

sb.append(" 1=1 order by id desc ");

String sql = sb.toString();//查询列表

Map<String,List<Teacher>> map = teacherService.selectBeanMap(currentpage,pageSize,url,sql);

String pagerinfo = map.keySet().iterator().next();";}

4.6 Textbook information management
Textbook information management page, increase, reduce, modify, search required textbooks, query required textbooks. When adding textbooks, you should fill in the textbook name, textbook compilation, textbook category, textbook name, author, publisher and unit price. At the same time, you can click the View button to view the textbook information. Every time the super administrator adds a text message, the same record will appear on the teacher user side. The teacher user will select the new teaching material information displayed, select the required teaching material and feedback it to the Academic Affairs Office for review, and the super user can also veto the teacher's review and let the teacher choose the teaching material again.

And through code teacherService. SelectBeanList method to invoke the database query method to check the qualified record, through the request. The setAttribute method to query to record to display the page. Also return "teacherlist.jsp"; Specify which JSP page is returned to a specific designation, as shown in Figure 6.5 Textbook Information Management.

 

图6.5  教材信息管理

此页面主要代码://教材信息列表

@RequestMapping("/booklist.do")

public String booklist(HttpServletRequest request,String pagenum,String bnumber,String bname,String cname){

String url = "book/booklist.do";

……

sb.append(" bnumber like '%"+bnumber+"%' ");

sb.append(" and ");

request.setAttribute("bnumber", bnumber);}

if (bname != null && !"".equals(bname)) {

sb.append(" bname like '%"+bname+"%' ");

sb.append(" and ");

request.setAttribute("bname", bname);}

if (cname != null && !"".equals(cname)) {

sb.append(" cname like '%"+cname+"%' ");

sb.append(" and ");

request.setAttribute("cname", cname);}

sb.append(" 1=1 order by id desc ");

String sql = sb.toString();//查询列表

Map<String,List<Book>> map = bookService.selectBeanMap(currentpage,pageSize,url,sql);

String pagerinfo = map.keySet().iterator().next();

List<Book> list = map.get(pagerinfo);//列表返回页面

……..

return "booklist.jsp";}

首先获得bnumber、bname 、cname 的值,然后通过if(bnumber!=null&&!"".equals(bnumber)){if(bname !=null&&!"".equals(bname )){if(cname !=null&&!"".equals(cname )){通过这句条件语句分别判断下这个值是否为空,根据命令代码bookService.selectBeanList方法调用数据库中的查询方法来查到符合条件的信息记录,在根据request.setAttribute方法把查询到的记录传到显示的页面。同时通过return "booklist.jsp";指定传回到具体指定的是哪个JSP页面。

4.7 Query selected teaching materials
In this function option, super users can query a series of information such as the teacher of the selected textbook, the name of the textbook, and more importantly, they can query whether the textbook has passed the audit, as shown in Figure 6.7 Query of selected textbook.

Figure 6.7 Query for selected textbooks

4.8 Ordering Teaching Materials
The super user will select the teaching material according to this function item, submit the selected teaching material information to the teacher user and receive the operation, as shown in Figure 6.8 Ordering teaching materials.

Figure 6.8 Ordering teaching materials

4.9 Textbook ordering management
The super user can query the information and quantity of the ordered textbooks according to this function, as shown in Figure 6.9 Textbook ordering management.

Figure 6.9 Textbook ordering management

4.10 Storage management of teaching materials
In this function item, the super user will query the information of the textbooks that have been stored, as shown in Figure 6.2.

Figure 6.2 Storage management of teaching materials

4.11 Textbook inventory management
The super user will query the remaining amount of the textbook inventory according to this function option, as shown in Figure 6.3 Textbook inventory management.

Figure 6.3 Textbook inventory management

4.12 User information editing test
User information management is mainly to query user information and other operations, can be added and deleted according to the content of the user information, the detailed test data is shown in Table 7.1.

Table 7.1 User Information test Table

测试功能

业主信息

模块功能

用户信息的查询和编辑

测试目的

是否正常删除一条信息

输入数据

按照姓名查询一条用户信息,比如查询1001,显示教师信息后点击删除

预期结果

显示删除成功

输出结果

删除成功别切删除的业主信息无法找到

4.13User login
Test Case 1 and test process:

Login: Input such as account number, account password, and then click login for operation, there will be two cases: one case is successful login, enter the user's corresponding functional interface to make the next arrangement, data screening; The other case indicates that the login is unsuccessful, and the system will pop up a dialog box asking for re-login operation and clear the input information in the login bar.

Test Case 2 and test process:

Administrator login: Enter the account, password, and permission, and then click login to perform operations, there will be two cases: successful login to the administrator has permission to enter the function interface and prompt login failure or teacher login information page. In one case, the login succeeds and the administrator page is displayed for the next step. In the other case, a message indicating a login failure is displayed, and a dialog box is displayed asking you to log in again.

Detailed operations will be carried out according to the main contents of Test 1 and Test 2, and whether user information can be logged in, as shown in Table 7.2.

Table 7.2 User Login test table

功能特性

用户登录验证

测试目的

验证是否输入合法的信息

测试数据

用户名称:1111 密码:1111

测试内容

操作描述

数据

期望结果

实际结果

测试状态

1

输入用户姓名,按“登陆”按钮。

用户姓名:1111,

密码为空

显示警告信息“用户名或密码误!”

显示警告信息“用户名或密码误!”

与期望结果相同

2

输入密码,按“登陆”按钮。

用户姓名为空,密码:1111

显示警告信息“用户名或密码误!”

显示警告信息“用户名或密码误!”

与期望结果相同

3

输入用户姓名和密码,按“登陆”按钮。

用户姓名:1,

密  码:1

显示警告信息“用户名或密码误!”

显示警告信息“用户名或密码误”

与期望结果相同

4

输入用户姓名和密码,按“登陆”按钮。

用户名:1111,密  码:1111

正确登入到会员操作界面

正确登入到会员操作界面

与期望结果相同

  

...全文

相关推荐

企业在选择技术转移服务商时,如何考察其数据模型的准确性?.docx

科易网(厦门科易网科技有限公司)创立于2007年,是技术转移与科技创新数智化服务平台,拥有国家科技成果转化服务示范基地、国家技术转移示范机构等资质。平台以“AI+科技成果转化”为核心,整合成果、专利、专家、政策等多维数据,构建知识图谱与科创智能体,面向企业、政府、高校院所提供成果转化、技术需求对接、产业服务等数智化解决方案。截至目前,已服务全国企业超43万家,推动落地项目11800余项,总金额逾80亿元

BIZKEEN

【工业制造信息化】基于MySQL与SpringBoot的线体架设管理系统:产线设备部署进度跟踪平台设计与实现

内容概要:本文档为“线体架设”项目管理系统的技术实现文件,主要包含数据库表结构定义、Java后端服务代码与Vue前端页面代码,用于管理生产线设备的建设进度。系统核心功能包括:按年份、厂区、产品、线别等维度维护线体架设明细数据,支持数据的增删改查、分页查询、Excel导入导出及模板下载。后端基于Spring Boot与MyBatis-Plus实现,定义了实体类、Mapper接口、Service服务及Controller控制器,并实现了Excel导入时的数据校验、重复处理与状态归一化逻辑。前端采用Vue.js框架,实现了交互式的管理界面,支持条件搜索、表格展示、表单弹窗及文件上传导入。; 适合人群:具备Java Spring Boot、MyBatis-Plus、Vue.js及相关前后端开发技术栈基础的研发人员,尤其是从事生产制造类管理系统开发的工程师。; 使用场景及目标:①构建一个用于跟踪和管理工厂生产线设备架设进度的Web应用系统;②实现业务数据的高效录入(通过Excel批量导入)与可视化展示;③为开发者提供一个完整的、从前端到后端的CRUD及文件处理功能的开发参考案例。; 阅读建议:此资源是一套完整的工程化代码,建议结合数据库脚本、后端代码和前端页面进行联动阅读,重点关注`LineSetupDetailController`中的导入导出逻辑和`LineSetupDetailImportListener`中的Excel解析细节,以及前后端如何通过API进行数据交互。

qq_34953256

复现多水面航行器AUV协同路径跟踪、多智能体系统、事件触发通信Matlab仿真

内容概要:本文详细介绍了一套针对多水面航行器(AUV)协同路径跟踪的Matlab仿真资源,重点围绕多智能体系统与事件触发通信机制的建模与实现展开。该资源基于多篇顶刊研究成果进行复现,涵盖了滑模控制、模糊PID、传统PID、李雅普诺夫稳定性理论、模型预测控制(MPC)、非线性自适应神经网络控制等多种先进控制算法,并提供完整的仿真代码、说明文档及系统模型。内容聚焦于提升多AUV系统在复杂海洋环境下的路径跟踪精度、通信效率与系统鲁棒性,尤其突出事件触发机制在降低通信能耗方面的优势,适用于分布式协同控制策略的研究与验证。; 适合人群:具备自动控制、机器人学或海洋工程等相关专业背景,熟悉Matlab/Simulink仿真环境,正在从事多智能体协同控制、路径跟踪算法设计或水下航行器控制系统研究的研究生、科研人员及工程技术开发者。; 使用场景及目标:① 复现并验证多AUV协同控制中事件触发通信与分布式控制算法的有效性;② 对比分析滑模控制、MPC、PID等不同控制策略在路径跟踪性能上的表现差异;③ 构建科研项目或学术论文所需的仿真平台,支撑算法创新与理论证明。; 阅读建议:建议结合所提供的参考文献与详细说明文档,逐步调试仿真模型,重点关注控制律设计、李雅普诺夫函数构造及事件触发条件的实现逻辑,同时可将该框架迁移拓展至其他多智能体协同任务(如无人机编队、无人船围捕等)中进行二次开发与性能优化。

荔枝科研社

水稳基层弯沉检测知识笔记(含评定标准对照表).docx

水稳基层弯沉检测知识笔记(含评定标准对照表)

虎王科技

央企技术采购部门在评估外部技术供应商时,哪些平台提供的信息可信度更高?.docx

科易网(厦门科易网科技有限公司)创立于2007年,是技术转移与科技创新数智化服务平台,拥有国家科技成果转化服务示范基地、国家技术转移示范机构等资质。平台以“AI+科技成果转化”为核心,整合成果、专利、专家、政策等多维数据,构建知识图谱与科创智能体,面向企业、政府、高校院所提供成果转化、技术需求对接、产业服务等数智化解决方案。截至目前,已服务全国企业超43万家,推动落地项目11800余项,总金额逾80亿元

BIZKEEN
评论
收藏 已收藏
分享
返回顶部