




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
第Java實(shí)戰(zhàn)范例之員工管理系統(tǒng)的實(shí)現(xiàn)一、項(xiàng)目簡(jiǎn)述
本系統(tǒng)功能包括:分為前端翻后端部分,包括用戶,區(qū)分晉通用戶以及譽(yù)里員用戶,包括首頁展示,部門管理,人事管理,員工管理三個(gè)模塊等等。
二、項(xiàng)目運(yùn)行
環(huán)境配置:Jdkl.8+Tomcats.5+Mysql+HBuilderX(Webstorm也行)+Eclispe(IntelliJIDEA,Eclispe,MyEclispe,Sts都支持)。
項(xiàng)目技術(shù):html+css+js+vue+v一charts+electron+springboot+mybatis+Mysql+Maven等等。
員工操作代碼:
*@authoryy
@RestController
@RequestMapping("/employee")
@CrossOrigin
@Slf4j
publicclassEmployeeController{
@Autowired
privateEmployeeServiceemployeeService;
@Autowired
privateDepartmentServicedepartmentService;
@Autowired
privateJobServicejobService;
@Autowired
privateEduLevelMappereduLevelMapper;
@Autowired
privateEmployeeMapperemployeeMapper;
*搜索接口
@GetMapping("/search")
publicResultsearch(@RequestParam(name="name",required=false,defaultValue="")Stringname,
@RequestParam(name="current",required=false,defaultValue="1")Integercurrent,
@RequestParam(name="size",required=false,defaultValue="10")Integersize){
returnemployeeService.list(current,size,name);
*分頁查詢接口
*@paramcurrent
*@paramsize
*@return
@GetMapping("/list")
publicResultlist(@RequestParam(name="current",required=false,defaultValue="1")Integercurrent,
@RequestParam(name="size",required=false,defaultValue="10")Integersize){
returnemployeeService.list(current,size,null);
*根據(jù)id獲取員工具體信息
*@paramid
*@return
@GetMapping("/getUserById")
publicEmployeeDTOgetUserAllInfoById(@RequestParam(name="id")Integerid){
returnemployeeService.getUserById(id);
*根據(jù)員工獲取信息
*@paramid
*@return
@GetMapping("/getEmployeeById")
publicEmployeegetUserById(@RequestParam(name="id")Integerid){
returnemployeeMapper.selectById(id);
*增加員工接口
*@paramemployee
*@return
@PostMapping("/add")
publicMapString,ObjectaddUser(@RequestBodyEmployeeemployee){
(employee.toString());
returnemployeeService.add(employee);
*更新用戶
*@paramemployee
*@return
@PostMapping("/update")
publicMapString,ObjectupdateUser(@RequestBodyEmployeeemployee){
(employee.toString());
returnemployeeService.update(employee);
*刪除用戶
*@paramid
*@return
@GetMapping("/delete")
publicResultdeleteEmployeeById(@RequestParam(name="id")Integerid){
returnemployeeService.deleteEmployeeById(id);
*辭退員工
*@paramid
*@return
@GetMapping("/dismiss")
publicMapString,ObjectdismissEmployeeById(@RequestParam(name="id")Integerid){
returnemployeeService.dismissEmployeeById(id);
*得到所以工作,部門,學(xué)歷信息
*@return
@GetMapping("/otherInfo")
publicResultgetAllOtherInfo(){
MapString,Objectinfo=newHashMap();
info.put("departments",departmentService.selectAll());
info.put("jobs",jobService.selectAll());
info.put("eduLevels",eduLevelMapper.selectList(null));
returnResult.success(
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- GB/T 45826-2025光刻用摻鈦石英玻璃
- 2025年行政能力測(cè)驗(yàn)考試真題及答案
- 2025年小學(xué)語文教師資格考試卷及答案
- 2025年文化遺產(chǎn)保護(hù)師資格考試試題及答案
- 2025年數(shù)據(jù)科學(xué)專業(yè)畢業(yè)生考試題及答案
- 2025年市場(chǎng)營(yíng)銷戰(zhàn)略考試試卷及答案
- 2025年社會(huì)福利與社會(huì)保障基礎(chǔ)知識(shí)考試試題及答案
- 2025年流行病學(xué)與公共衛(wèi)生政策考試試卷及答案
- 2025年法學(xué)與社會(huì)學(xué)交叉理論考試卷及答案
- 家鄉(xiāng)的小河美麗的自然景觀描寫5篇范文
- 預(yù)應(yīng)力混凝土方樁施工方案
- 2024年新人教版五年級(jí)數(shù)學(xué)下冊(cè)《教材練習(xí)27練習(xí)二十七附答案》教學(xué)課件
- 《剪映專業(yè)版:短視頻創(chuàng)作案例教程(全彩慕課版)》 課件 第6章 創(chuàng)作生活Vlog
- 人工智能與信息社會(huì)學(xué)習(xí)通超星期末考試答案章節(jié)答案2024年
- 臨建集裝箱項(xiàng)目施工部署方案
- 11ZJ311地下室防水圖集
- 土地整治實(shí)施操作手冊(cè)
- 深圳市引導(dǎo)基金管理辦法
- 10以內(nèi)連加練習(xí)題完整版51
- 機(jī)場(chǎng)建造行業(yè)投資機(jī)會(huì)與風(fēng)險(xiǎn)識(shí)別及應(yīng)對(duì)策略報(bào)告
- 統(tǒng)編版語文一年級(jí)下冊(cè)第四單元整體解讀
評(píng)論
0/150
提交評(píng)論