国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

課程設(shè)計(jì)——基于SSM的校園服務(wù)幫助系統(tǒng)(SSM課程設(shè)計(jì))(JavaWeb課程設(shè)計(jì)源碼)

zhongmeizhi / 2160人閱讀

摘要:項(xiàng)目類型項(xiàng)目架構(gòu)項(xiàng)目名稱基于的校園服務(wù)幫助系統(tǒng)用戶類型個(gè)角色管理員學(xué)生系統(tǒng)類型后臺(tái)管理系統(tǒng)設(shè)計(jì)模式界面外觀開(kāi)發(fā)工具也可以使用數(shù)據(jù)庫(kù)數(shù)據(jù)庫(kù)表張適用軟件工程計(jì)算機(jī)科學(xué)與技術(shù)等課程的實(shí)驗(yàn)或課程設(shè)計(jì)作者介紹計(jì)科學(xué)長(zhǎng),可以免費(fèi)指導(dǎo)降低查重,定期發(fā)布

項(xiàng)目類型:JAVA WEB項(xiàng)目(B/S架構(gòu))

項(xiàng)目名稱:基于SSM的校園服務(wù)幫助系統(tǒng)

用戶類型:2個(gè)角色(管理員+學(xué)生)
系統(tǒng)類型:后臺(tái)管理系統(tǒng)
設(shè)計(jì)模式:SSM

界面外觀:layui
開(kāi)發(fā)工具:Eclipse(Idea也可以使用)
數(shù)據(jù)庫(kù):Mysql+Navicat
數(shù)據(jù)庫(kù)表:4張
適用:軟件工程、計(jì)算機(jī)科學(xué)與技術(shù)等課程的實(shí)驗(yàn)或課程設(shè)計(jì)

?作者介紹:計(jì)科學(xué)長(zhǎng),可以免費(fèi)指導(dǎo)降低查重,定期發(fā)布高質(zhì)量手工開(kāi)發(fā)源碼,提供課程設(shè)計(jì)和畢業(yè)設(shè)計(jì)的指導(dǎo)!雙1流高校剛畢業(yè)的學(xué)長(zhǎng),曾經(jīng)也是個(gè)小白!

關(guān)注回復(fù)? ?學(xué)生? ?免費(fèi)get? ?一套JavaWeb源碼

關(guān)注回復(fù)? ?ppt? ? ?免費(fèi)get? 367套畢設(shè)答辯ppt模板

關(guān)注回復(fù)? 簡(jiǎn)歷? ? 免費(fèi)get? 200套程序猿簡(jiǎn)歷模板

關(guān)注獲取地址:其他項(xiàng)目以及項(xiàng)目來(lái)源

課程設(shè)計(jì)推薦鏈接

畢業(yè)設(shè)計(jì)推薦鏈接

?免費(fèi)ppt資源:??

免費(fèi)簡(jiǎn)歷資源:??? ?? ?? ?

?

學(xué)生用戶端功能介紹

注冊(cè)頁(yè)面

登錄頁(yè)面

任務(wù)中心(幫助別人解決問(wèn)題)

接受任務(wù)

任務(wù)管理(接受任務(wù)后可取消、完成任務(wù)后可以獲得獎(jiǎng)勵(lì))

任務(wù)確認(rèn)完成,之后接受者可以獲得金幣獎(jiǎng)勵(lì)

個(gè)人資料修改

管理員端功能介紹

院校管理

錄入院校

任務(wù)管理(可以取消任務(wù),也可以查看發(fā)布者信息、查看接受的人信息)

用戶管理

用戶信息修改

添加子管理員

項(xiàng)目結(jié)構(gòu)

數(shù)據(jù)庫(kù)設(shè)計(jì)

部分代碼展示(以管理員端的Controller為例)

package com.ssm.controller;import java.text.SimpleDateFormat;import java.util.Date;import java.util.List;import javax.annotation.Resource;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.propertyeditors.CustomDateEditor;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.ServletRequestDataBinder;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestParam;import org.springframework.web.bind.annotation.SessionAttributes;import com.ssm.po.Admin;import com.ssm.po.School;import com.ssm.po.Task;import com.ssm.po.User;import com.ssm.service.AdminService;import com.ssm.service.SchoolService;import com.ssm.service.TaskService;import com.ssm.service.UserService;/** * ****管理員功能****  * -------  * 管理員登錄 .  * 管理員個(gè)人信息更新 .  * 密碼更新 .  * 添加管理員 .  * ------  * 獲取任務(wù)列表 . * 關(guān)閉待解決任務(wù).  * ------  * 獲取用戶列表 .  * 讀取一個(gè)用戶.  * 添加用戶余額.  * 解除用戶限制 .  * 添加用戶限制 .  * ----------  * 獲取學(xué)校列表. * 讀取單個(gè)學(xué)校信息 .  * 更新學(xué)校信息 .  * 添加院校. *  * @author * */@Controller@SessionAttributes({ "nowadmin" })@RequestMapping(value = "admin/")public class AdminController {	@Resource(name = "adminService")	public AdminService adminService;	@Resource(name = "schoolService")	public SchoolService schoolService;	@Resource(name = "taskService")	public TaskService taskService;	@Resource(name = "userService")	public UserService userService;	// 登錄	@RequestMapping("adminlogin.do")	public String adminlogin(String account, String password, Model model) {		Admin admin = null;		admin = adminService.login(account);		if (admin == null) {			model.addAttribute("msg", "登錄賬號(hào)不存在");//			return "login";		}		if (password.equals(admin.getPassword())) {			model.addAttribute("nowadmin", admin);			return "adminIndex";		} else {			model.addAttribute("msg", "密碼驗(yàn)證錯(cuò)誤正確");			return "login";		}	}	// 更新	@RequestMapping("update.do")	public String update(HttpServletRequest request, Admin admin, Model model) {		int r = adminService.updateAdminInfo(admin);		if (r > 0) {			model.addAttribute("msg", "更新成功,請(qǐng)重新登錄");			request.getSession(false).removeAttribute("nowadmin");			return "login";		}		model.addAttribute("msg", "更新失敗");		return "adminUpdate";	}	// 更新	@RequestMapping("updatepwd.do")	public String updatepwd(HttpServletRequest request, String oldpassword, Admin admin, Model model) {		System.out.println("9999999999999");		Admin oldadmin = (Admin) request.getSession(false).getAttribute("nowadmin");		System.out.println("6666666666666");		System.out.println(oldadmin.getPassword());		System.out.println(oldpassword);		if (!oldadmin.getPassword().equals(oldpassword)) {			model.addAttribute("msg", "原密碼錯(cuò)誤");			return "adminPassword";		}		int r = adminService.updateAdminInfo(admin);		if (r > 0) {			model.addAttribute("msg", "修改成功,請(qǐng)重新登錄");			request.getSession(false).removeAttribute("nowadmin");			return "login";		}		model.addAttribute("msg", "修改失敗");		return "adminPassword";	}	@RequestMapping("getadmin.do")	public String getadmin(String aidstr, HttpServletRequest request, Model model) {		int aid = 0;		try {			aid = Integer.parseInt(aidstr);		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return "adminInfo";		}		if (aid == 0) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return "adminInfo";		}		/*		 * Admin admin = adminService.getByUid(stuid);		 * model.addAttribute("theuser", user);		 */		return "adminInfo";	}	@RequestMapping("addadmin.do")	public String addadmin(String account, HttpServletRequest request, Model model) {		// 檢查賬號(hào)重復(fù)		int countnum = adminService.getAccountCount(account);		if (countnum > 0) {			model.addAttribute("msg", account + "   該賬號(hào)已經(jīng)被使用");			return "adminAddAdmin";		}		Admin admin = new Admin(0, account, "123456", account, new Date(), 0);		int result = adminService.setAdmin(admin);		if (result <= 0) {			model.addAttribute("msg", "注冊(cè)失敗");			return "adminAddAdmin";		}		model.addAttribute("msg", "注冊(cè)成功,可以登錄。默認(rèn)密碼:123456");		return "adminAddAdmin";	}	@RequestMapping("gettasks.do")	public String gettasks(String words, @RequestParam(required = true, defaultValue = "-1") String schoolidstr,			Model model) {		model.addAttribute("words", words);		model.addAttribute("schoolidstr", schoolidstr);		int schoolid = -1;		if (!schoolidstr.equals("-1")) {			try {				schoolid = Integer.parseInt(schoolidstr);			} catch (Exception e) {				System.err.println("err");			}		}		if (words != null) {			words = "%" + words + "%";		} else {			words = "%%";		}		List list = taskService.getTaskByKeys(words, schoolid);		model.addAttribute("list", list);		return "adminTask";	}	// to1.管理員點(diǎn)擊關(guān)閉刪除取消	@RequestMapping("taskclose.do")	public String taskclose(String tidstr, String words,			@RequestParam(required = true, defaultValue = "-1") String schoolidstr, HttpServletRequest request,			Model model) {		int tid = 0;		try {			tid = Integer.parseInt(tidstr);		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return gettasks(words, schoolidstr, model);		}		if (tid == 0) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return gettasks(words, schoolidstr, model);		}		Admin admin = null;		try {			admin = (Admin) request.getSession(false).getAttribute("nowadmin");			int uid = 0;			uid = admin.getAid();			if (admin == null || uid == 0) {				model.addAttribute("msg", "請(qǐng)檢查登錄狀況");				return gettasks(words, schoolidstr, model);			}		} catch (Exception e) {			model.addAttribute("msg", "請(qǐng)檢查登錄狀況");			return "login";		}		Task theTask = taskService.getTask(tid);		theTask.setState(1);		int r = taskService.updateTask(theTask);		if (r > 0) {			model.addAttribute("msg", "成功");		} else {			model.addAttribute("msg", "失敗");		}		return gettasks(words, schoolidstr, model);	}	// 獲取用戶信息	@RequestMapping("getusers.do")	public String getusers(String userstr, Model model) {		model.addAttribute("keys", userstr);		if (userstr != null) {			userstr = "%" + userstr + "%";		} else {			userstr = "%%";		}		List list = userService.getByLikeNameAccount(userstr);		model.addAttribute("list", list);		return "adminUser";	}	// 讀取一個(gè)用戶,添加余額時(shí)使用	@RequestMapping("getuser.do")	public String getuser(String stuidstr, Model model) {		int stuid = 0;		try {			stuid = Integer.parseInt(stuidstr);		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return "userInfo";		}		if (stuid == 0) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return "userInfo";		}		User user = userService.getByUid(stuid);		model.addAttribute("theuser", user);		return "adminUserMoney";	}	// 添加用戶余額	@RequestMapping("addusermoney.do")	public String addusermoney(String moneystr, String stuidstr, Model model) {		double money = 0.00;		try {			money = Double.parseDouble(moneystr);		} catch (Exception e) {			model.addAttribute("msg", "金額出現(xiàn)錯(cuò)誤");			return getuser(stuidstr, model);		}		if (stuidstr == null) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return getuser(stuidstr, model);		} else {			if (stuidstr.length() == 0) {				model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");				return getuser(stuidstr, model);			}		}		int stuid = 0;		try {			stuid = Integer.parseInt(stuidstr);			if (stuid == 0) {				model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");				return getuser(stuidstr, model);			}		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return getuser(stuidstr, model);		}		User theUser = userService.getByUid(stuid);		theUser.setMoney(theUser.getMoney() + money);		int r = userService.updateUserInfo(theUser);		if (r > 0) {			model.addAttribute("msg", "修改成功");		} else {			model.addAttribute("msg", "修改失敗");		}		return getuser(stuidstr, model);	}	// 解除用戶限制	@RequestMapping("useropen.do")	public String useropen(String keys, String stuidstr, Model model) {		if (stuidstr == null) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return getusers(keys, model);		} else {			if (stuidstr.length() == 0) {				model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");				return getusers(keys, model);			}		}		int stuid = 0;		try {			stuid = Integer.parseInt(stuidstr);			if (stuid == 0) {				model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");				return getusers(keys, model);			}		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return getusers(keys, model);		}		User theUser = userService.getByUid(stuid);		theUser.setState(0);		int r = userService.updateUserInfo(theUser);		if (r > 0) {			model.addAttribute("msg", "修改成功");		} else {			model.addAttribute("msg", "修改失敗");		}		return getusers(keys, model);	}	// 限制用戶	@RequestMapping("userclose.do")	public String userclose(String keys, String stuidstr, Model model) {		if (stuidstr == null) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return getusers(keys, model);		} else {			if (stuidstr.length() == 0) {				model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");				return getusers(keys, model);			}		}		int stuid = 0;		try {			stuid = Integer.parseInt(stuidstr);			if (stuid == 0) {				model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");				return getusers(keys, model);			}		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return getusers(keys, model);		}		User theUser = userService.getByUid(stuid);		theUser.setState(1);		int r = userService.updateUserInfo(theUser);		if (r > 0) {			model.addAttribute("msg", "修改成功");		} else {			model.addAttribute("msg", "修改失敗");		}		return getusers(keys, model);	}	// 讀取全部院校	@RequestMapping("getschools.do")	public String getschools(Model model) {		List list = schoolService.getAllSchools();		model.addAttribute("list", list);		return "adminSchool";	}	// 讀取一個(gè)院校信息	@RequestMapping("getschool.do")	public String getschool(String schoolidstr, Model model) {		if (schoolidstr == null) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return "adminSchoolSetting";		} else {			if (schoolidstr.length() == 0) {				model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");				return "adminSchoolSetting";			}		}		int schoolid = 0;		try {			schoolid = Integer.parseInt(schoolidstr);			if (schoolid == 0) {				model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");				return "adminSchoolSetting";			}		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯(cuò)誤");			return getschools(model);		}		School theSchool = schoolService.getSchoolByID(schoolid);		if (theSchool != null) {			model.addAttribute("theSchool", theSchool);		} else {			model.addAttribute("msg", "讀取失敗");		}		return "adminSchoolSetting";	}	// 更新院校	@RequestMapping("updateschool.do")	public String updateschool(School school, Model model) {		int r = 0;		r = schoolService.updateSchool(school);		if (r > 0) {			model.addAttribute("msg", "修改成功-刷新頁(yè)面重新加載顯示");		} else {			model.addAttribute("msg", "修改失敗");		}		School theSchool = schoolService.getSchoolByID(school.getSchoolid());		model.addAttribute("theSchool", theSchool);		return "adminSchoolSetting";	}	// 更新院校	@RequestMapping("addschool.do")	public String addschool(String name, Model model) {		if (name == null) {			model.addAttribute("msg", "添加失敗");			return "adminSchoolAdd";		} else {			if (name.length() == 0) {				model.addAttribute("msg", "添加失敗");				return "adminSchoolAdd";			}		}		School theSchool = new School(0, name, new Date(), 0);		int r = 0;		r = schoolService.setSchool(theSchool);		if (r > 0) {			model.addAttribute("msg", "添加成功");			model.addAttribute("flag", "添加成功");			return "adminSchoolAdd";		} else {			model.addAttribute("msg", "添加失敗");			return "adminSchoolAdd";		}	}	@org.springframework.web.bind.annotation.InitBinder	public void InitBinder(ServletRequestDataBinder bin) {		bin.registerCustomEditor(Date.class, new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"), true));	}}

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://specialneedsforspecialkids.com/yun/122103.html

相關(guān)文章

  • 計(jì)算機(jī)畢業(yè)設(shè)計(jì)大學(xué)英語(yǔ)閱讀大賽管理系統(tǒng)ssm+vue前后端分離】代碼講解安裝調(diào)試

    摘要:作者計(jì)算機(jī)編程吉哥簡(jiǎn)介專業(yè)從事程序開(kāi)發(fā),微信小程序開(kāi)發(fā),定制化項(xiàng)目源碼代碼講解文檔撰寫(xiě)制作。做自己喜歡的事,生活就是快樂(lè)的。 ?作者:計(jì)算機(jī)編程-吉哥 ?簡(jiǎn)介:專業(yè)從事JavaWeb程序開(kāi)發(fā),微信小程序開(kāi)發(fā),定制化項(xiàng)目、源碼、代碼講解、文檔撰寫(xiě)、ppt制作。做自己喜歡的事,生活就是快樂(lè)...

    hss01248 評(píng)論0 收藏0
  • 基于SSM實(shí)現(xiàn)在線課程學(xué)習(xí)及作業(yè)提交系統(tǒng)

    摘要:項(xiàng)目編號(hào)后臺(tái)技術(shù)框架前端技術(shù)數(shù)據(jù)庫(kù)應(yīng)用服務(wù)器開(kāi)發(fā)工具項(xiàng)目說(shuō)明本項(xiàng)目基于框架實(shí)現(xiàn)了一個(gè)在線課程學(xué)習(xí)及作業(yè)提交系統(tǒng),項(xiàng)目整體功能完整,界面美觀大方,適合做畢業(yè)設(shè)計(jì)使用。 ?項(xiàng)目編號(hào):BS-XX-055 后臺(tái)技術(shù):SSM框架 前端技術(shù): Jquery+Layui+Ajax 數(shù)據(jù)庫(kù):Mysql5.7...

    lemon 評(píng)論0 收藏0
  • 基于SSM學(xué)生宿舍管理系統(tǒng)

    摘要:項(xiàng)目介紹本系統(tǒng)采用框架,數(shù)據(jù)層采用,數(shù)據(jù)庫(kù)使用,可以用作畢業(yè)設(shè)計(jì)課程設(shè)計(jì)等,適合選題高校宿舍宿舍員工宿舍等,下面是大概的功能,具體功能實(shí)現(xiàn)可以建議看下方的演示視頻,系統(tǒng)適合于基礎(chǔ)一般的同學(xué)使用。 項(xiàng)目介紹: 本系統(tǒng)采用SSM框架,數(shù)據(jù)層采用mybatis,數(shù)據(jù)庫(kù)使用mysql,可以用作畢業(yè)設(shè)...

    Backache 評(píng)論0 收藏0
  • 基于SSM+Idea+MySQL汽車(chē)租賃系統(tǒng)SSM畢業(yè)設(shè)計(jì)源碼

    摘要:每一種角色登錄以后可以有不同權(quán)限的功能。功能較多,展示主要功能。 項(xiàng)目類型:JAVA WEB畢業(yè)設(shè)計(jì)項(xiàng)目名稱:基于SSM的汽車(chē)租賃系統(tǒng) 用戶類型:多角色(角色可以自己添加并設(shè)置權(quán)限)系統(tǒng)類型:后臺(tái)管理系統(tǒng)設(shè)計(jì)模式:SSM+Layui開(kāi)發(fā)工具:Idea數(shù)據(jù)庫(kù):Mysql+Navicat數(shù)據(jù)庫(kù)表...

    Carl 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<