-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
3,718 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
RuoYi-Vue/ruoyi-admin/src/main/resources/com/ruoyi/RuoYiApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.ruoyi; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | ||
|
||
/** | ||
* 启动程序 | ||
* | ||
* @author ruoyi | ||
*/ | ||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) | ||
public class RuoYiApplication | ||
{ | ||
public static void main(String[] args) | ||
{ | ||
// System.setProperty("spring.devtools.restart.enabled", "false"); | ||
SpringApplication.run(RuoYiApplication.class, args); | ||
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" + | ||
" .-------. ____ __ \n" + | ||
" | _ _ \\ \\ \\ / / \n" + | ||
" | ( ' ) | \\ _. / ' \n" + | ||
" |(_ o _) / _( )_ .' \n" + | ||
" | (_,_).' __ ___(_ o _)' \n" + | ||
" | |\\ \\ | || |(_,_)' \n" + | ||
" | | \\ `' /| `-' / \n" + | ||
" | | \\ / \\ / \n" + | ||
" ''-' `'-' `-..-' "); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
RuoYi-Vue/ruoyi-admin/src/main/resources/com/ruoyi/RuoYiServletInitializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.ruoyi; | ||
|
||
import org.springframework.boot.builder.SpringApplicationBuilder; | ||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; | ||
|
||
/** | ||
* web容器中进行部署 | ||
* | ||
* @author ruoyi | ||
*/ | ||
public class RuoYiServletInitializer extends SpringBootServletInitializer | ||
{ | ||
@Override | ||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) | ||
{ | ||
return application.sources(RuoYiApplication.class); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
RuoYi-Vue/ruoyi-admin/src/main/resources/com/ruoyi/system/cons/Constant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.ruoyi.system.cons; | ||
|
||
public class Constant { | ||
|
||
public static final long RoleId = 2; //默认注册为普通用户 | ||
} |
14 changes: 14 additions & 0 deletions
14
RuoYi-Vue/ruoyi-admin/src/main/resources/com/ruoyi/system/controller/CameraController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.ruoyi.system.controller; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.servlet.ModelAndView; | ||
|
||
@Controller | ||
public class CameraController { | ||
@RequestMapping("/Camera/pullCount") | ||
public ModelAndView home() { | ||
|
||
return new ModelAndView("/index"); | ||
} | ||
} |
113 changes: 113 additions & 0 deletions
113
...i-Vue/ruoyi-admin/src/main/resources/com/ruoyi/system/controller/TraGradesController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
package com.ruoyi.system.controller; | ||
|
||
import java.util.List; | ||
import javax.servlet.http.HttpServletResponse; | ||
import org.springframework.security.access.prepost.PreAuthorize; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.PutMapping; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
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.RestController; | ||
import com.ruoyi.common.annotation.Log; | ||
import com.ruoyi.common.core.controller.BaseController; | ||
import com.ruoyi.common.core.domain.AjaxResult; | ||
import com.ruoyi.common.enums.BusinessType; | ||
import com.ruoyi.system.domain.TraGrades; | ||
import com.ruoyi.system.service.ITraGradesService; | ||
import com.ruoyi.common.utils.poi.ExcelUtil; | ||
import com.ruoyi.common.core.page.TableDataInfo; | ||
|
||
/** | ||
* 训练成绩Controller | ||
* | ||
* @author ldu | ||
* @date 2023-06-27 | ||
*/ | ||
@RestController | ||
@RequestMapping("/system/traGrades") | ||
public class TraGradesController extends BaseController | ||
{ | ||
@Autowired | ||
private ITraGradesService traGradesService; | ||
|
||
|
||
/** | ||
* 查询训练成绩列表 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traGrades:list')") | ||
@GetMapping("/list") | ||
public TableDataInfo list(TraGrades traGrades) | ||
{ | ||
startPage(); | ||
List<TraGrades> list = traGradesService.selectTraGradesList(traGrades); | ||
return getDataTable(list); | ||
} | ||
|
||
/** | ||
* 导出训练成绩列表 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traGrades:export')") | ||
@Log(title = "训练成绩", businessType = BusinessType.EXPORT) | ||
@PostMapping("/export") | ||
public void export(HttpServletResponse response, TraGrades traGrades) | ||
{ | ||
List<TraGrades> list = traGradesService.selectTraGradesList(traGrades); | ||
ExcelUtil<TraGrades> util = new ExcelUtil<TraGrades>(TraGrades.class); | ||
util.exportExcel(response, list, "训练成绩数据"); | ||
} | ||
|
||
/** | ||
* 获取训练成绩详细信息 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traGrades:query')") | ||
@GetMapping(value = "/{id}") | ||
public AjaxResult getInfo(@PathVariable("id") Long id) | ||
{ | ||
return success(traGradesService.selectTraGradesById(id)); | ||
} | ||
|
||
/** | ||
* 新增训练成绩 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traGrades:add')") | ||
@Log(title = "训练成绩", businessType = BusinessType.INSERT) | ||
@PostMapping | ||
public AjaxResult add(@RequestBody TraGrades traGrades) | ||
{ | ||
return toAjax(traGradesService.insertTraGrades(traGrades)); | ||
} | ||
|
||
// 无安全验证 | ||
@Log(title = "训练成绩", businessType = BusinessType.INSERT) | ||
@PostMapping("/save") | ||
public AjaxResult save(@RequestBody TraGrades traGrades) | ||
{ | ||
return toAjax(traGradesService.insertTraGrades(traGrades)); | ||
} | ||
|
||
/** | ||
* 修改训练成绩 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traGrades:edit')") | ||
@Log(title = "训练成绩", businessType = BusinessType.UPDATE) | ||
@PutMapping | ||
public AjaxResult edit(@RequestBody TraGrades traGrades) | ||
{ | ||
return toAjax(traGradesService.updateTraGrades(traGrades)); | ||
} | ||
|
||
/** | ||
* 删除训练成绩 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traGrades:remove')") | ||
@Log(title = "训练成绩", businessType = BusinessType.DELETE) | ||
@DeleteMapping("/{ids}") | ||
public AjaxResult remove(@PathVariable Long[] ids) | ||
{ | ||
return toAjax(traGradesService.deleteTraGradesByIds(ids)); | ||
} | ||
} |
104 changes: 104 additions & 0 deletions
104
RuoYi-Vue/ruoyi-admin/src/main/resources/com/ruoyi/system/controller/TraInfoController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
package com.ruoyi.system.controller; | ||
|
||
import java.util.List; | ||
import javax.servlet.http.HttpServletResponse; | ||
import org.springframework.security.access.prepost.PreAuthorize; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.PutMapping; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
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.RestController; | ||
import com.ruoyi.common.annotation.Log; | ||
import com.ruoyi.common.core.controller.BaseController; | ||
import com.ruoyi.common.core.domain.AjaxResult; | ||
import com.ruoyi.common.enums.BusinessType; | ||
import com.ruoyi.system.domain.TraInfo; | ||
import com.ruoyi.system.service.ITraInfoService; | ||
import com.ruoyi.common.utils.poi.ExcelUtil; | ||
import com.ruoyi.common.core.page.TableDataInfo; | ||
|
||
/** | ||
* 训练成员信息Controller | ||
* | ||
* @author ldu | ||
* @date 2023-06-26 | ||
*/ | ||
@RestController | ||
@RequestMapping("/system/traInfo") | ||
public class TraInfoController extends BaseController | ||
{ | ||
@Autowired | ||
private ITraInfoService traInfoService; | ||
|
||
/** | ||
* 查询训练成员信息列表 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traInfo:list')") | ||
@GetMapping("/list") | ||
public TableDataInfo list(TraInfo traInfo) | ||
{ | ||
startPage(); | ||
List<TraInfo> list = traInfoService.selectTraInfoList(traInfo); | ||
return getDataTable(list); | ||
} | ||
|
||
/** | ||
* 导出训练成员信息列表 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traInfo:export')") | ||
@Log(title = "训练成员信息", businessType = BusinessType.EXPORT) | ||
@PostMapping("/export") | ||
public void export(HttpServletResponse response, TraInfo traInfo) | ||
{ | ||
List<TraInfo> list = traInfoService.selectTraInfoList(traInfo); | ||
ExcelUtil<TraInfo> util = new ExcelUtil<TraInfo>(TraInfo.class); | ||
util.exportExcel(response, list, "训练成员信息数据"); | ||
} | ||
|
||
/** | ||
* 获取训练成员信息详细信息 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traInfo:query')") | ||
@GetMapping(value = "/{id}") | ||
public AjaxResult getInfo(@PathVariable("id") Long id) | ||
{ | ||
return success(traInfoService.selectTraInfoById(id)); | ||
} | ||
|
||
/** | ||
* 新增训练成员信息 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traInfo:add')") | ||
@Log(title = "训练成员信息", businessType = BusinessType.INSERT) | ||
@PostMapping | ||
public AjaxResult add(@RequestBody TraInfo traInfo) | ||
{ | ||
return toAjax(traInfoService.insertTraInfo(traInfo)); | ||
} | ||
|
||
/** | ||
* 修改训练成员信息 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traInfo:edit')") | ||
@Log(title = "训练成员信息", businessType = BusinessType.UPDATE) | ||
@PutMapping | ||
public AjaxResult edit(@RequestBody TraInfo traInfo) | ||
{ | ||
return toAjax(traInfoService.updateTraInfo(traInfo)); | ||
} | ||
|
||
/** | ||
* 删除训练成员信息 | ||
*/ | ||
@PreAuthorize("@ss.hasPermi('system:traInfo:remove')") | ||
@Log(title = "训练成员信息", businessType = BusinessType.DELETE) | ||
@DeleteMapping("/{ids}") | ||
public AjaxResult remove(@PathVariable Long[] ids) | ||
{ | ||
return toAjax(traInfoService.deleteTraInfoByIds(ids)); | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
RuoYi-Vue/ruoyi-admin/src/main/resources/com/ruoyi/system/domain/TraGrades.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
package com.ruoyi.system.domain; | ||
|
||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
import com.ruoyi.common.annotation.Excel; | ||
import com.ruoyi.common.core.domain.BaseEntity; | ||
|
||
/** | ||
* 训练成绩对象 tra_grades | ||
* | ||
* @author ldu | ||
* @date 2023-06-27 | ||
*/ | ||
public class TraGrades extends BaseEntity | ||
{ | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** 成绩id */ | ||
private Long id; | ||
|
||
/** 训练姓名 */ | ||
@Excel(name = "训练姓名") | ||
private String traName; | ||
|
||
/** 计数 */ | ||
@Excel(name = "计数") | ||
private Long traCount; | ||
|
||
/** 登录账号 */ | ||
@Excel(name = "登录账号") | ||
private String userName; | ||
|
||
public void setId(Long id) | ||
{ | ||
this.id = id; | ||
} | ||
|
||
public Long getId() | ||
{ | ||
return id; | ||
} | ||
public void setTraName(String traName) | ||
{ | ||
this.traName = traName; | ||
} | ||
|
||
public String getTraName() | ||
{ | ||
return traName; | ||
} | ||
public void setTraCount(Long traCount) | ||
{ | ||
this.traCount = traCount; | ||
} | ||
|
||
public Long getTraCount() | ||
{ | ||
return traCount; | ||
} | ||
public void setUserName(String userName) | ||
{ | ||
this.userName = userName; | ||
} | ||
|
||
public String getUserName() | ||
{ | ||
return userName; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||
.append("id", getId()) | ||
.append("traName", getTraName()) | ||
.append("traCount", getTraCount()) | ||
.append("createTime", getCreateTime()) | ||
.append("userName", getUserName()) | ||
.toString(); | ||
} | ||
} |
Oops, something went wrong.