• 大小: 9.04MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-24
  • 语言: 数据库
  • 标签: Web  北大青鸟  

资源简介

本项目是使用SSM技术,MySQL 5.5作为项目后台数据库,对于不同项目的审核批判。

资源截图

代码片段和文件信息

package cn.project.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.project.pojo.Project;
import cn.project.service.ProjectService;
import cn.project.tools.PageSupport;

@Controller
public class ProjectController {

@Resource
private ProjectService projectService;

/**
 * 主页
 * @param status
 * @param pageNo
 * @param model
 * @return
 */
@RequestMapping(“/index“)
public String index(String statusString pageNoModel model){
if (status == null || status.equals(““)) {
status=“-1“;
}
if (pageNo == null || pageNo.equals(““)) {
pageNo=“1“;
}

PageSupport support = new PageSupport();

support.setCurrentPageNo(Integer.parseInt(pageNo));
support.setPageSize(5);
support.setTotalCount(projectService.getCount(Integer.parseInt(status)));

List projects = projectService.getProjectList(Integer.parseInt(status) support.getCurrentPageNo()support.getPageSize());

model.addAttribute(“projectList“ projects);
model.addAttribute(“page“ support);
model.addAttribute(“status“ status);
return “index“;
}

/**
 * 查询详情信息
 * @param id
 * @param model
 * @return
 */
@RequestMapping(“/show“)
public String show(String idModel model){
Project project =new Project();
project = projectService.getShow(Integer.parseInt(id));
model.addAttribute(“project“ project);
return “upd“;
}

/**
 * 修改状态
 * @return
 */
@RequestMapping(“/upd“)
public String update(Project project){
if(projectService.modifyProject(project)){
return “redirect:index“;
}else{
return “redirect:show“;
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-27 17:19  ProjectMangement\
     文件        3687  2018-04-24 10:40  ProjectMangement\.classpath
     文件        1049  2018-04-24 09:58  ProjectMangement\.project
     目录           0  2018-04-27 17:19  ProjectMangement\.settings\
     文件         567  2018-04-24 09:58  ProjectMangement\.settings\.jsdtscope
     文件         364  2018-04-24 09:58  ProjectMangement\.settings\org.eclipse.jdt.core.prefs
     文件         579  2018-04-24 10:00  ProjectMangement\.settings\org.eclipse.wst.common.component
     文件         305  2018-04-24 09:58  ProjectMangement\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-04-24 09:58  ProjectMangement\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-04-24 09:58  ProjectMangement\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-04-27 17:19  ProjectMangement\WebContent\
     目录           0  2018-04-27 17:19  ProjectMangement\WebContent\meta-INF\
     文件          39  2018-04-24 09:58  ProjectMangement\WebContent\meta-INF\MANIFEST.MF
     文件        2341  2018-04-24 11:10  ProjectMangement\WebContent\NewFile.jsp
     目录           0  2018-04-27 17:19  ProjectMangement\WebContent\WEB-INF\
     目录           0  2018-04-27 17:19  ProjectMangement\WebContent\WEB-INF\lib\
     文件        4467  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\aopalliance-1.0.jar
     文件     1663623  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\aspectjweaver-1.6.9.jar
     文件      160519  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\commons-dbcp-1.4.jar
     文件       57779  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\commons-fileupload-1.2.1.jar
     文件       83613  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\commons-io.jar
     文件      284220  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\commons-lang-2.6.jar
     文件       61829  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\commons-logging-1.2.jar
     文件      111119  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\commons-pool-1.6.jar
     文件      392972  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\fastjson-1.2.13.jar
     文件      485279  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\hibernate-validator-4.3.2.Final.jar
     文件       60539  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\jboss-logging-3.1.0.CR2.jar
     文件       17809  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\jstl.jar
     文件      489883  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\log4j-1.2.17.jar
     文件      699823  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\mybatis-3.2.2.jar
     文件       48783  2018-04-24 10:07  ProjectMangement\WebContent\WEB-INF\lib\mybatis-spring-1.2.0.jar
............此处省略59个文件信息

评论

共有 条评论