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

資訊專欄INFORMATION COLUMN

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

zhongmeizhi / 2171人閱讀

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

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

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

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

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

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

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

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

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

關(guān)注獲取地址:其他項目以及項目來源

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

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

?免費ppt資源:??

免費簡歷資源:??? ?? ?? ?

?

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

注冊頁面

登錄頁面

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

接受任務(wù)

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

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

個人資料修改

管理員端功能介紹

院校管理

錄入院校

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

用戶管理

用戶信息修改

添加子管理員

項目結(jié)構(gòu)

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

部分代碼展示(以管理員端的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;/** * ****管理員功能****  * -------  * 管理員登錄 .  * 管理員個人信息更新 .  * 密碼更新 .  * 添加管理員 .  * ------  * 獲取任務(wù)列表 . * 關(guān)閉待解決任務(wù).  * ------  * 獲取用戶列表 .  * 讀取一個用戶.  * 添加用戶余額.  * 解除用戶限制 .  * 添加用戶限制 .  * ----------  * 獲取學(xué)校列表. * 讀取單個學(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", "登錄賬號不存在");//			return "login";		}		if (password.equals(admin.getPassword())) {			model.addAttribute("nowadmin", admin);			return "adminIndex";		} else {			model.addAttribute("msg", "密碼驗證錯誤正確");			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", "更新成功,請重新登錄");			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", "原密碼錯誤");			return "adminPassword";		}		int r = adminService.updateAdminInfo(admin);		if (r > 0) {			model.addAttribute("msg", "修改成功,請重新登錄");			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)錯誤");			return "adminInfo";		}		if (aid == 0) {			model.addAttribute("msg", "出現(xiàn)錯誤");			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) {		// 檢查賬號重復(fù)		int countnum = adminService.getAccountCount(account);		if (countnum > 0) {			model.addAttribute("msg", account + "   該賬號已經(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", "注冊失敗");			return "adminAddAdmin";		}		model.addAttribute("msg", "注冊成功,可以登錄。默認(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.管理員點擊關(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)錯誤");			return gettasks(words, schoolidstr, model);		}		if (tid == 0) {			model.addAttribute("msg", "出現(xiàn)錯誤");			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", "請檢查登錄狀況");				return gettasks(words, schoolidstr, model);			}		} catch (Exception e) {			model.addAttribute("msg", "請檢查登錄狀況");			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";	}	// 讀取一個用戶,添加余額時使用	@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)錯誤");			return "userInfo";		}		if (stuid == 0) {			model.addAttribute("msg", "出現(xiàn)錯誤");			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)錯誤");			return getuser(stuidstr, model);		}		if (stuidstr == null) {			model.addAttribute("msg", "出現(xiàn)錯誤");			return getuser(stuidstr, model);		} else {			if (stuidstr.length() == 0) {				model.addAttribute("msg", "出現(xiàn)錯誤");				return getuser(stuidstr, model);			}		}		int stuid = 0;		try {			stuid = Integer.parseInt(stuidstr);			if (stuid == 0) {				model.addAttribute("msg", "出現(xiàn)錯誤");				return getuser(stuidstr, model);			}		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯誤");			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)錯誤");			return getusers(keys, model);		} else {			if (stuidstr.length() == 0) {				model.addAttribute("msg", "出現(xiàn)錯誤");				return getusers(keys, model);			}		}		int stuid = 0;		try {			stuid = Integer.parseInt(stuidstr);			if (stuid == 0) {				model.addAttribute("msg", "出現(xiàn)錯誤");				return getusers(keys, model);			}		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯誤");			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)錯誤");			return getusers(keys, model);		} else {			if (stuidstr.length() == 0) {				model.addAttribute("msg", "出現(xiàn)錯誤");				return getusers(keys, model);			}		}		int stuid = 0;		try {			stuid = Integer.parseInt(stuidstr);			if (stuid == 0) {				model.addAttribute("msg", "出現(xiàn)錯誤");				return getusers(keys, model);			}		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯誤");			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";	}	// 讀取一個院校信息	@RequestMapping("getschool.do")	public String getschool(String schoolidstr, Model model) {		if (schoolidstr == null) {			model.addAttribute("msg", "出現(xiàn)錯誤");			return "adminSchoolSetting";		} else {			if (schoolidstr.length() == 0) {				model.addAttribute("msg", "出現(xiàn)錯誤");				return "adminSchoolSetting";			}		}		int schoolid = 0;		try {			schoolid = Integer.parseInt(schoolidstr);			if (schoolid == 0) {				model.addAttribute("msg", "出現(xiàn)錯誤");				return "adminSchoolSetting";			}		} catch (Exception e) {			model.addAttribute("msg", "出現(xiàn)錯誤");			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", "修改成功-刷新頁面重新加載顯示");		} 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)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

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

相關(guān)文章

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

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

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

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

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

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

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

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

    Carl 評論0 收藏0

發(fā)表評論

0條評論

最新活動
閱讀需要支付1元查看
<