中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁 > news >正文

免費電商網(wǎng)站建設(shè)中國培訓(xùn)網(wǎng)官網(wǎng)

免費電商網(wǎng)站建設(shè),中國培訓(xùn)網(wǎng)官網(wǎng),北京金山辦公軟件股份有限公司招聘,網(wǎng)站標(biāo)簽布局目錄 前言 一、技術(shù)棧 二、系統(tǒng)功能介紹 競賽題庫管理 競賽信息管理 晉級名單管理 往年成績管理 參賽申請管理 三、核心代碼 1、登錄模塊 2、文件上傳模塊 3、代碼封裝 前言 隨著信息技術(shù)在管理上越來越深入而廣泛的應(yīng)用,管理信息系統(tǒng)的實施在技術(shù)上已逐步…

目錄

前言

?一、技術(shù)棧

二、系統(tǒng)功能介紹

競賽題庫管理

競賽信息管理

晉級名單管理

往年成績管理

參賽申請管理

三、核心代碼

1、登錄模塊

?2、文件上傳模塊

3、代碼封裝


前言

隨著信息技術(shù)在管理上越來越深入而廣泛的應(yīng)用,管理信息系統(tǒng)的實施在技術(shù)上已逐步成熟。本文介紹了高校學(xué)科競賽平臺的開發(fā)全過程。通過分析高校學(xué)科競賽平臺管理的不足,創(chuàng)建了一個計算機管理高校學(xué)科競賽平臺的方案。文章介紹了高校學(xué)科競賽平臺的系統(tǒng)分析部分,包括可行性分析等,系統(tǒng)設(shè)計部分主要介紹了系統(tǒng)功能設(shè)計和數(shù)據(jù)庫設(shè)計。

本高校學(xué)科競賽平臺有管理員,學(xué)生,領(lǐng)隊老師,教師,管理員功能有個人中心,教師管理,學(xué)生管理,領(lǐng)隊教師管理,競賽類型管理,競賽信息管理,學(xué)院管理,專業(yè)管理,獲獎情況管理,系統(tǒng)管理等。

教師功能有個人中心,題目類型管理,競賽題庫管理,競賽類型管理,競賽信息管理,報名信息管理,競賽評分管理,參賽名單管理,晉級名單管理,獲獎名單管理,競賽總結(jié)管理,報銷清單管理,成績申訴管理,參賽信息管理,參賽信息管理,往年成績管理,獲獎情況管理。

領(lǐng)隊老師功能有個人中心,題目類型管理,競賽題庫管理,競賽類型管理,競賽信息管理,報名信息管理,競賽評分管理,參賽名單管理,晉級名單管理,獲獎名單管理,競賽總結(jié)管理,報銷清單管理,成績申訴管理,參賽信息管理,參賽信息管理,往年成績管理,獲獎情況管理。

學(xué)生功能有個人中心,競賽題庫管理,競賽類型管理,競賽信息管理,報名信息管理,競賽評分管理,參賽名單管理,晉級名單管理,獲獎名單管理,競賽總結(jié)管理,報銷清單管理,成績申訴管理,參賽信息管理,參賽信息管理,往年成績管理,獲獎情況管理。因而具有一定的實用性。

本站是一個B/S模式系統(tǒng),采用SSM框架,MYSQL數(shù)據(jù)庫設(shè)計開發(fā),充分保證系統(tǒng)的穩(wěn)定性。系統(tǒng)具有界面清晰、操作簡單,功能齊全的特點,使得高校學(xué)科競賽平臺管理工作系統(tǒng)化、規(guī)范化。本系統(tǒng)的使用使管理人員從繁重的工作中解脫出來,實現(xiàn)無紙化辦公,能夠有效的提高高校學(xué)科競賽平臺管理效率。

?一、技術(shù)棧

末尾獲取源碼
SpringBoot+Vue+JS+?jQuery+Ajax...

二、系統(tǒng)功能介紹

競賽題庫管理

高校學(xué)科競賽平臺的系統(tǒng)管理員可以管理競賽題庫,可以對競賽題庫信息添加修改刪除以及查詢操作。

競賽信息管理

系統(tǒng)管理員可以查看競賽信息進行添加,修改,刪除以及查詢操作。

?

晉級名單管理

管理員可以對晉級名單信息進行修改,刪除以及查詢操作。

往年成績管理

教師可以對往年成績信息進行修改操作,還可以對往年成績信息進行查詢。

?

參賽申請管理

教師可以對學(xué)生提交的參賽申請進行審核。

三、核心代碼

1、登錄模塊

 
package com.controller;import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.TokenEntity;
import com.entity.UserEntity;
import com.service.TokenService;
import com.service.UserService;
import com.utils.CommonUtil;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;/*** 登錄相關(guān)*/
@RequestMapping("users")
@RestController
public class UserController{@Autowiredprivate UserService userService;@Autowiredprivate TokenService tokenService;/*** 登錄*/@IgnoreAuth@PostMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null || !user.getPassword().equals(password)) {return R.error("賬號或密碼不正確");}String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());return R.ok().put("token", token);}/*** 注冊*/@IgnoreAuth@PostMapping(value = "/register")public R register(@RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用戶已存在");}userService.insert(user);return R.ok();}/*** 退出*/@GetMapping(value = "logout")public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok("退出成功");}/*** 密碼重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null) {return R.error("賬號不存在");}user.setPassword("123456");userService.update(user,null);return R.ok("密碼已重置為:123456");}/*** 列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/list")public R list( UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();ew.allEq(MPUtil.allEQMapPre( user, "user")); return R.ok().put("data", userService.selectListView(ew));}/*** 信息*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") String id){UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 獲取用戶的session用戶信息*/@RequestMapping("/session")public R getCurrUser(HttpServletRequest request){Long id = (Long)request.getSession().getAttribute("userId");UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 保存*/@PostMapping("/save")public R save(@RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用戶已存在");}userService.insert(user);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody UserEntity user){
//        ValidatorUtils.validateEntity(user);userService.updateById(user);//全部更新return R.ok();}/*** 刪除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();}
}

?2、文件上傳模塊

package com.controller;import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.UUID;import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.util.ResourceUtils;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.ConfigEntity;
import com.entity.EIException;
import com.service.ConfigService;
import com.utils.R;/*** 上傳文件映射表*/
@RestController
@RequestMapping("file")
@SuppressWarnings({"unchecked","rawtypes"})
public class FileController{@Autowiredprivate ConfigService configService;/*** 上傳文件*/@RequestMapping("/upload")public R upload(@RequestParam("file") MultipartFile file,String type) throws Exception {if (file.isEmpty()) {throw new EIException("上傳文件不能為空");}String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);File path = new File(ResourceUtils.getURL("classpath:static").getPath());if(!path.exists()) {path = new File("");}File upload = new File(path.getAbsolutePath(),"/upload/");if(!upload.exists()) {upload.mkdirs();}String fileName = new Date().getTime()+"."+fileExt;File dest = new File(upload.getAbsolutePath()+"/"+fileName);file.transferTo(dest);FileUtils.copyFile(dest, new File("C:\\Users\\Desktop\\jiadian\\springbootl7own\\src\\main\\resources\\static\\upload"+"/"+fileName));if(StringUtils.isNotBlank(type) && type.equals("1")) {ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));if(configEntity==null) {configEntity = new ConfigEntity();configEntity.setName("faceFile");configEntity.setValue(fileName);} else {configEntity.setValue(fileName);}configService.insertOrUpdate(configEntity);}return R.ok().put("file", fileName);}/*** 下載文件*/@IgnoreAuth@RequestMapping("/download")public ResponseEntity<byte[]> download(@RequestParam String fileName) {try {File path = new File(ResourceUtils.getURL("classpath:static").getPath());if(!path.exists()) {path = new File("");}File upload = new File(path.getAbsolutePath(),"/upload/");if(!upload.exists()) {upload.mkdirs();}File file = new File(upload.getAbsolutePath()+"/"+fileName);if(file.exists()){/*if(!fileService.canRead(file, SessionManager.getSessionUser())){getResponse().sendError(403);}*/HttpHeaders headers = new HttpHeaders();headers.setContentType(MediaType.APPLICATION_OCTET_STREAM);    headers.setContentDispositionFormData("attachment", fileName);    return new ResponseEntity<byte[]>(FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);}} catch (IOException e) {e.printStackTrace();}return new ResponseEntity<byte[]>(HttpStatus.INTERNAL_SERVER_ERROR);}}

3、代碼封裝

package com.utils;import java.util.HashMap;
import java.util.Map;/*** 返回數(shù)據(jù)*/
public class R extends HashMap<String, Object> {private static final long serialVersionUID = 1L;public R() {put("code", 0);}public static R error() {return error(500, "未知異常,請聯(lián)系管理員");}public static R error(String msg) {return error(500, msg);}public static R error(int code, String msg) {R r = new R();r.put("code", code);r.put("msg", msg);return r;}public static R ok(String msg) {R r = new R();r.put("msg", msg);return r;}public static R ok(Map<String, Object> map) {R r = new R();r.putAll(map);return r;}public static R ok() {return new R();}public R put(String key, Object value) {super.put(key, value);return this;}
}

http://www.risenshineclean.com/news/5033.html

相關(guān)文章:

  • 建設(shè)網(wǎng)站的公司興田德潤怎么聯(lián)系北京企業(yè)網(wǎng)站seo平臺
  • 濰坊網(wǎng)站建設(shè)聯(lián)系方式東莞網(wǎng)站seo公司哪家大
  • 網(wǎng)頁源代碼快捷鍵湘潭seo優(yōu)化
  • 做援交的網(wǎng)站100個常用的關(guān)鍵詞
  • php仿百度網(wǎng)站源碼關(guān)鍵詞的分類和優(yōu)化
  • 西安做網(wǎng)站找騰帆最近一周的新聞大事10條
  • 國產(chǎn)一級a做爰片免費網(wǎng)站網(wǎng)頁設(shè)計與制作項目教程
  • 網(wǎng)站前臺功能模塊設(shè)計品牌營銷策略四種類型
  • shanxi建設(shè)銀行網(wǎng)站首頁seo全國最好的公司
  • 展示網(wǎng)站多少錢一個網(wǎng)站熱度查詢
  • 個人音樂網(wǎng)站建設(shè)武漢seo主管
  • 網(wǎng)站模板 帶數(shù)據(jù)庫抖音seo
  • 網(wǎng)絡(luò)營銷計劃的七個步驟鄭州seo實戰(zhàn)培訓(xùn)
  • 天津西青區(qū)離哪個火車站近線上推廣
  • 做視頻網(wǎng)站服務(wù)器怎么選擇圖片搜索圖片識別
  • 雙語網(wǎng)站管理系統(tǒng) div css百度seo關(guān)鍵詞優(yōu)化排名
  • 替別人做網(wǎng)站管理員河源今日頭條新聞最新
  • 網(wǎng)站建設(shè)公司巨頭今日頭條官網(wǎng)首頁
  • 男孩子怎么做網(wǎng)站賺錢百度推廣售后服務(wù)電話
  • 給企業(yè)做網(wǎng)站的業(yè)務(wù)員免費注冊個人網(wǎng)站
  • 做網(wǎng)站需要用socket嗎網(wǎng)頁設(shè)計代碼
  • 天城建設(shè)網(wǎng)站免費創(chuàng)建屬于自己的網(wǎng)站
  • 如何在網(wǎng)站上做淘寶客推廣蘭州網(wǎng)站seo優(yōu)化
  • 網(wǎng)站建設(shè)價格是多少直通車推廣技巧
  • 網(wǎng)站建設(shè)視頻vsseo網(wǎng)站優(yōu)化培訓(xùn)價格
  • 做網(wǎng)站好的框架昆明seo外包
  • 網(wǎng)站建設(shè)業(yè)務(wù)拓展思路北海seo快速排名
  • 外貿(mào)網(wǎng)站 建站上海搜索seo
  • 做展廳 參考什么網(wǎng)站備案域名出售平臺
  • 石家莊科技網(wǎng)站建設(shè)安徽seo推廣公司