From 54e0b93cde8a5358ae57aee2d3b3ff1c68c1a86c Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 22 十一月 2024 16:18:52 +0800 Subject: [PATCH] 1 --- se-modules/se-system/src/main/java/com/se/system/mapper/SysWarnMapper.java | 61 se-modules/se-system/src/main/java/com/se/system/domain/SysCfg.java | 112 + se-modules/se-system/src/main/java/com/se/system/service/ISysCfgService.java | 61 se-modules/se-system/src/main/java/com/se/system/domain/SysWarn.java | 126 + se-modules/se-system/src/main/java/com/se/system/controller/SysWarnController.java | 104 + se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleResMapper.java | 61 se-modules/se-system/src/main/java/com/se/system/service/ISysRoleCtrlService.java | 61 se-modules/se-system/src/main/java/com/se/system/service/impl/SysCfgServiceImpl.java | 96 + se-modules/se-system/src/main/java/com/se/system/service/impl/SysInteServiceImpl.java | 96 + se-modules/se-system/src/main/java/com/se/system/domain/SysCtrlLog.java | 188 ++ se-modules/se-system/src/main/java/com/se/system/controller/SysInteController.java | 104 + se-modules/se-system/src/main/java/com/se/system/domain/SysRes.java | 112 + se-modules/se-system/src/main/java/com/se/system/service/impl/SysHardServiceImpl.java | 96 + se-modules/se-system/src/main/java/com/se/system/domain/SysInte.java | 140 + se-modules/se-system/src/main/java/com/se/system/service/ISysWarnService.java | 61 se-modules/se-system/src/main/java/com/se/system/mapper/SysCfgMapper.java | 61 se-modules/se-system/src/main/resources/mapper/system/SysSoftMapper.xml | 101 + se-modules/se-system/src/main/java/com/se/system/service/ISysCtrlService.java | 61 se-modules/se-system/src/main/java/com/se/system/service/ISysInteService.java | 61 se-modules/se-system/src/main/java/com/se/system/service/ISysResService.java | 61 se-modules/se-system/src/main/java/com/se/system/domain/SysRoleInte.java | 50 se-modules/se-gen/src/main/resources/bootstrap.yml | 2 se-modules/se-system/src/main/java/com/se/system/controller/SysCtrlLogController.java | 104 + se-modules/se-system/src/main/java/com/se/system/mapper/SysInteMapper.java | 61 se-modules/se-system/src/main/java/com/se/system/mapper/SysCtrlLogMapper.java | 61 se-modules/se-system/src/main/java/com/se/system/service/ISysHardService.java | 61 se-modules/se-system/src/main/java/com/se/system/controller/SysCfgController.java | 104 + se-modules/se-system/src/main/java/com/se/system/service/ISysRoleResService.java | 61 se-modules/se-system/src/main/java/com/se/system/mapper/SysSoftMapper.java | 61 se-modules/se-system/src/main/java/com/se/system/controller/SysResController.java | 104 + se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java | 104 + se-modules/se-system/src/main/resources/mapper/system/SysWarnMapper.xml | 101 + se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleCtrlMapper.java | 61 se-modules/se-system/src/main/java/com/se/system/service/ISysCtrlLogService.java | 61 se-modules/se-system/src/main/java/com/se/system/mapper/SysHardMapper.java | 61 docker-compose/mysql/initdb/se_cloud_20240629.sql | 2 se-modules/se-system/src/main/java/com/se/system/service/impl/SysCtrlLogServiceImpl.java | 93 + se-modules/se-system/src/main/java/com/se/system/service/impl/SysCtrlServiceImpl.java | 96 + se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleCtrlServiceImpl.java | 93 + se-modules/se-system/src/main/java/com/se/system/service/impl/SysSoftServiceImpl.java | 96 + se-modules/se-system/src/main/java/com/se/system/service/ISysSoftService.java | 61 se-modules/se-system/src/main/resources/mapper/system/SysCfgMapper.xml | 96 + se-modules/se-system/src/main/java/com/se/system/domain/SysRoleRes.java | 50 se-modules/se-system/src/main/java/com/se/system/domain/SysSoft.java | 126 + se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleInteServiceImpl.java | 93 + se-modules/se-system/src/main/java/com/se/system/controller/SysCtrlController.java | 104 + se-modules/se-system/src/main/java/com/se/system/mapper/SysResMapper.java | 61 se-modules/se-system/src/main/java/com/se/system/domain/SysRoleCtrl.java | 50 se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleResServiceImpl.java | 93 + se-modules/se-system/src/main/resources/mapper/system/SysRoleInteMapper.xml | 57 se-modules/se-system/src/main/java/com/se/system/service/impl/SysWarnServiceImpl.java | 96 + se-modules/se-system/src/main/resources/mapper/system/SysCtrlLogMapper.xml | 100 + se-modules/se-system/src/main/resources/mapper/system/SysInteMapper.xml | 106 + se-modules/se-system/src/main/resources/mapper/system/SysHardMapper.xml | 111 + se-modules/se-system/src/main/java/com/se/system/domain/SysCtrl.java | 126 + se-modules/se-system/src/main/java/com/se/system/service/ISysRoleInteService.java | 61 se-modules/se-system/src/main/resources/mapper/system/SysResMapper.xml | 96 + se-modules/se-system/src/main/java/com/se/system/controller/SysHardController.java | 104 + se-modules/se-system/src/main/resources/mapper/system/SysRoleCtrlMapper.xml | 57 se-modules/se-system/src/main/java/com/se/system/service/impl/SysResServiceImpl.java | 96 + se-modules/se-system/src/main/java/com/se/system/mapper/SysCtrlMapper.java | 61 se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleInteMapper.java | 61 se-modules/se-system/src/main/java/com/se/system/domain/SysHard.java | 154 + se-modules/se-system/src/main/resources/mapper/system/SysCtrlMapper.xml | 101 + se-modules/se-system/src/main/resources/mapper/system/SysRoleResMapper.xml | 57 65 files changed, 5,438 insertions(+), 1 deletions(-) diff --git a/docker-compose/mysql/initdb/se_cloud_20240629.sql b/docker-compose/mysql/initdb/se_cloud_20240629.sql index 19cf1fe..5538e84 100644 --- a/docker-compose/mysql/initdb/se_cloud_20240629.sql +++ b/docker-compose/mysql/initdb/se_cloud_20240629.sql @@ -272,7 +272,7 @@ alter table sys_menu add column mark varchar(20) comment '鑿滃崟鏍囪瘑'; update sys_menu set mark = 'sys' where menu_id < 1070; --- select * from sys_menu; +-- select * from sys_menu order by menu_id; -- ---------------------------- diff --git a/se-modules/se-gen/src/main/resources/bootstrap.yml b/se-modules/se-gen/src/main/resources/bootstrap.yml index 7349ae3..d041ebe 100644 --- a/se-modules/se-gen/src/main/resources/bootstrap.yml +++ b/se-modules/se-gen/src/main/resources/bootstrap.yml @@ -12,6 +12,8 @@ active: dev cloud: nacos: + username: nacos + password: nAcos_!9#_admIn discovery: # 鏈嶅姟娉ㄥ唽鍦板潃 server-addr: 127.0.0.1:8848 diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysCfgController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysCfgController.java new file mode 100644 index 0000000..9c0a8fe --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysCfgController.java @@ -0,0 +1,104 @@ +package com.se.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +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.se.common.log.annotation.Log; +import com.se.common.log.enums.BusinessType; +import com.se.common.security.annotation.RequiresPermissions; +import com.se.system.domain.SysCfg; +import com.se.system.service.ISysCfgService; +import com.se.common.core.web.controller.BaseController; +import com.se.common.core.web.domain.AjaxResult; +import com.se.common.core.utils.poi.ExcelUtil; +import com.se.common.core.web.page.TableDataInfo; + +/** + * 閰嶇疆Controller + * + * @author se + * @date 2024-11-22 + */ +@RestController +@RequestMapping("/cfg") +public class SysCfgController extends BaseController +{ + @Autowired + private ISysCfgService sysCfgService; + + /** + * 鏌ヨ閰嶇疆鍒楄〃 + */ + @RequiresPermissions("system:cfg:list") + @GetMapping("/list") + public TableDataInfo list(SysCfg sysCfg) + { + startPage(); + List<SysCfg> list = sysCfgService.selectSysCfgList(sysCfg); + return getDataTable(list); + } + + /** + * 瀵煎嚭閰嶇疆鍒楄〃 + */ + @RequiresPermissions("system:cfg:export") + @Log(title = "閰嶇疆", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysCfg sysCfg) + { + List<SysCfg> list = sysCfgService.selectSysCfgList(sysCfg); + ExcelUtil<SysCfg> util = new ExcelUtil<SysCfg>(SysCfg.class); + util.exportExcel(response, list, "閰嶇疆鏁版嵁"); + } + + /** + * 鑾峰彇閰嶇疆璇︾粏淇℃伅 + */ + @RequiresPermissions("system:cfg:query") + @GetMapping(value = "/{cfgId}") + public AjaxResult getInfo(@PathVariable("cfgId") Long cfgId) + { + return success(sysCfgService.selectSysCfgByCfgId(cfgId)); + } + + /** + * 鏂板閰嶇疆 + */ + @RequiresPermissions("system:cfg:add") + @Log(title = "閰嶇疆", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysCfg sysCfg) + { + return toAjax(sysCfgService.insertSysCfg(sysCfg)); + } + + /** + * 淇敼閰嶇疆 + */ + @RequiresPermissions("system:cfg:edit") + @Log(title = "閰嶇疆", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysCfg sysCfg) + { + return toAjax(sysCfgService.updateSysCfg(sysCfg)); + } + + /** + * 鍒犻櫎閰嶇疆 + */ + @RequiresPermissions("system:cfg:remove") + @Log(title = "閰嶇疆", businessType = BusinessType.DELETE) + @DeleteMapping("/{cfgIds}") + public AjaxResult remove(@PathVariable Long[] cfgIds) + { + return toAjax(sysCfgService.deleteSysCfgByCfgIds(cfgIds)); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysCtrlController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysCtrlController.java new file mode 100644 index 0000000..cc91f74 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysCtrlController.java @@ -0,0 +1,104 @@ +package com.se.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +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.se.common.log.annotation.Log; +import com.se.common.log.enums.BusinessType; +import com.se.common.security.annotation.RequiresPermissions; +import com.se.system.domain.SysCtrl; +import com.se.system.service.ISysCtrlService; +import com.se.common.core.web.controller.BaseController; +import com.se.common.core.web.domain.AjaxResult; +import com.se.common.core.utils.poi.ExcelUtil; +import com.se.common.core.web.page.TableDataInfo; + +/** + * 鎺у埗Controller + * + * @author se + * @date 2024-11-22 + */ +@RestController +@RequestMapping("/ctrl") +public class SysCtrlController extends BaseController +{ + @Autowired + private ISysCtrlService sysCtrlService; + + /** + * 鏌ヨ鎺у埗鍒楄〃 + */ + @RequiresPermissions("system:ctrl:list") + @GetMapping("/list") + public TableDataInfo list(SysCtrl sysCtrl) + { + startPage(); + List<SysCtrl> list = sysCtrlService.selectSysCtrlList(sysCtrl); + return getDataTable(list); + } + + /** + * 瀵煎嚭鎺у埗鍒楄〃 + */ + @RequiresPermissions("system:ctrl:export") + @Log(title = "鎺у埗", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysCtrl sysCtrl) + { + List<SysCtrl> list = sysCtrlService.selectSysCtrlList(sysCtrl); + ExcelUtil<SysCtrl> util = new ExcelUtil<SysCtrl>(SysCtrl.class); + util.exportExcel(response, list, "鎺у埗鏁版嵁"); + } + + /** + * 鑾峰彇鎺у埗璇︾粏淇℃伅 + */ + @RequiresPermissions("system:ctrl:query") + @GetMapping(value = "/{ctrlId}") + public AjaxResult getInfo(@PathVariable("ctrlId") Long ctrlId) + { + return success(sysCtrlService.selectSysCtrlByCtrlId(ctrlId)); + } + + /** + * 鏂板鎺у埗 + */ + @RequiresPermissions("system:ctrl:add") + @Log(title = "鎺у埗", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysCtrl sysCtrl) + { + return toAjax(sysCtrlService.insertSysCtrl(sysCtrl)); + } + + /** + * 淇敼鎺у埗 + */ + @RequiresPermissions("system:ctrl:edit") + @Log(title = "鎺у埗", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysCtrl sysCtrl) + { + return toAjax(sysCtrlService.updateSysCtrl(sysCtrl)); + } + + /** + * 鍒犻櫎鎺у埗 + */ + @RequiresPermissions("system:ctrl:remove") + @Log(title = "鎺у埗", businessType = BusinessType.DELETE) + @DeleteMapping("/{ctrlIds}") + public AjaxResult remove(@PathVariable Long[] ctrlIds) + { + return toAjax(sysCtrlService.deleteSysCtrlByCtrlIds(ctrlIds)); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysCtrlLogController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysCtrlLogController.java new file mode 100644 index 0000000..6c8770a --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysCtrlLogController.java @@ -0,0 +1,104 @@ +package com.se.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +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.se.common.log.annotation.Log; +import com.se.common.log.enums.BusinessType; +import com.se.common.security.annotation.RequiresPermissions; +import com.se.system.domain.SysCtrlLog; +import com.se.system.service.ISysCtrlLogService; +import com.se.common.core.web.controller.BaseController; +import com.se.common.core.web.domain.AjaxResult; +import com.se.common.core.utils.poi.ExcelUtil; +import com.se.common.core.web.page.TableDataInfo; + +/** + * 鎺у埗鏃ュ織Controller + * + * @author se + * @date 2024-11-22 + */ +@RestController +@RequestMapping("/log") +public class SysCtrlLogController extends BaseController +{ + @Autowired + private ISysCtrlLogService sysCtrlLogService; + + /** + * 鏌ヨ鎺у埗鏃ュ織鍒楄〃 + */ + @RequiresPermissions("system:log:list") + @GetMapping("/list") + public TableDataInfo list(SysCtrlLog sysCtrlLog) + { + startPage(); + List<SysCtrlLog> list = sysCtrlLogService.selectSysCtrlLogList(sysCtrlLog); + return getDataTable(list); + } + + /** + * 瀵煎嚭鎺у埗鏃ュ織鍒楄〃 + */ + @RequiresPermissions("system:log:export") + @Log(title = "鎺у埗鏃ュ織", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysCtrlLog sysCtrlLog) + { + List<SysCtrlLog> list = sysCtrlLogService.selectSysCtrlLogList(sysCtrlLog); + ExcelUtil<SysCtrlLog> util = new ExcelUtil<SysCtrlLog>(SysCtrlLog.class); + util.exportExcel(response, list, "鎺у埗鏃ュ織鏁版嵁"); + } + + /** + * 鑾峰彇鎺у埗鏃ュ織璇︾粏淇℃伅 + */ + @RequiresPermissions("system:log:query") + @GetMapping(value = "/{logId}") + public AjaxResult getInfo(@PathVariable("logId") Long logId) + { + return success(sysCtrlLogService.selectSysCtrlLogByLogId(logId)); + } + + /** + * 鏂板鎺у埗鏃ュ織 + */ + @RequiresPermissions("system:log:add") + @Log(title = "鎺у埗鏃ュ織", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysCtrlLog sysCtrlLog) + { + return toAjax(sysCtrlLogService.insertSysCtrlLog(sysCtrlLog)); + } + + /** + * 淇敼鎺у埗鏃ュ織 + */ + @RequiresPermissions("system:log:edit") + @Log(title = "鎺у埗鏃ュ織", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysCtrlLog sysCtrlLog) + { + return toAjax(sysCtrlLogService.updateSysCtrlLog(sysCtrlLog)); + } + + /** + * 鍒犻櫎鎺у埗鏃ュ織 + */ + @RequiresPermissions("system:log:remove") + @Log(title = "鎺у埗鏃ュ織", businessType = BusinessType.DELETE) + @DeleteMapping("/{logIds}") + public AjaxResult remove(@PathVariable Long[] logIds) + { + return toAjax(sysCtrlLogService.deleteSysCtrlLogByLogIds(logIds)); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysHardController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysHardController.java new file mode 100644 index 0000000..29eca7b --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysHardController.java @@ -0,0 +1,104 @@ +package com.se.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +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.se.common.log.annotation.Log; +import com.se.common.log.enums.BusinessType; +import com.se.common.security.annotation.RequiresPermissions; +import com.se.system.domain.SysHard; +import com.se.system.service.ISysHardService; +import com.se.common.core.web.controller.BaseController; +import com.se.common.core.web.domain.AjaxResult; +import com.se.common.core.utils.poi.ExcelUtil; +import com.se.common.core.web.page.TableDataInfo; + +/** + * 纭欢Controller + * + * @author se + * @date 2024-11-22 + */ +@RestController +@RequestMapping("/hard") +public class SysHardController extends BaseController +{ + @Autowired + private ISysHardService sysHardService; + + /** + * 鏌ヨ纭欢鍒楄〃 + */ + @RequiresPermissions("system:hard:list") + @GetMapping("/list") + public TableDataInfo list(SysHard sysHard) + { + startPage(); + List<SysHard> list = sysHardService.selectSysHardList(sysHard); + return getDataTable(list); + } + + /** + * 瀵煎嚭纭欢鍒楄〃 + */ + @RequiresPermissions("system:hard:export") + @Log(title = "纭欢", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysHard sysHard) + { + List<SysHard> list = sysHardService.selectSysHardList(sysHard); + ExcelUtil<SysHard> util = new ExcelUtil<SysHard>(SysHard.class); + util.exportExcel(response, list, "纭欢鏁版嵁"); + } + + /** + * 鑾峰彇纭欢璇︾粏淇℃伅 + */ + @RequiresPermissions("system:hard:query") + @GetMapping(value = "/{hardId}") + public AjaxResult getInfo(@PathVariable("hardId") Long hardId) + { + return success(sysHardService.selectSysHardByHardId(hardId)); + } + + /** + * 鏂板纭欢 + */ + @RequiresPermissions("system:hard:add") + @Log(title = "纭欢", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysHard sysHard) + { + return toAjax(sysHardService.insertSysHard(sysHard)); + } + + /** + * 淇敼纭欢 + */ + @RequiresPermissions("system:hard:edit") + @Log(title = "纭欢", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysHard sysHard) + { + return toAjax(sysHardService.updateSysHard(sysHard)); + } + + /** + * 鍒犻櫎纭欢 + */ + @RequiresPermissions("system:hard:remove") + @Log(title = "纭欢", businessType = BusinessType.DELETE) + @DeleteMapping("/{hardIds}") + public AjaxResult remove(@PathVariable Long[] hardIds) + { + return toAjax(sysHardService.deleteSysHardByHardIds(hardIds)); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysInteController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysInteController.java new file mode 100644 index 0000000..c9c950a --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysInteController.java @@ -0,0 +1,104 @@ +package com.se.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +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.se.common.log.annotation.Log; +import com.se.common.log.enums.BusinessType; +import com.se.common.security.annotation.RequiresPermissions; +import com.se.system.domain.SysInte; +import com.se.system.service.ISysInteService; +import com.se.common.core.web.controller.BaseController; +import com.se.common.core.web.domain.AjaxResult; +import com.se.common.core.utils.poi.ExcelUtil; +import com.se.common.core.web.page.TableDataInfo; + +/** + * 鎺ュ彛Controller + * + * @author se + * @date 2024-11-22 + */ +@RestController +@RequestMapping("/inte") +public class SysInteController extends BaseController +{ + @Autowired + private ISysInteService sysInteService; + + /** + * 鏌ヨ鎺ュ彛鍒楄〃 + */ + @RequiresPermissions("system:inte:list") + @GetMapping("/list") + public TableDataInfo list(SysInte sysInte) + { + startPage(); + List<SysInte> list = sysInteService.selectSysInteList(sysInte); + return getDataTable(list); + } + + /** + * 瀵煎嚭鎺ュ彛鍒楄〃 + */ + @RequiresPermissions("system:inte:export") + @Log(title = "鎺ュ彛", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysInte sysInte) + { + List<SysInte> list = sysInteService.selectSysInteList(sysInte); + ExcelUtil<SysInte> util = new ExcelUtil<SysInte>(SysInte.class); + util.exportExcel(response, list, "鎺ュ彛鏁版嵁"); + } + + /** + * 鑾峰彇鎺ュ彛璇︾粏淇℃伅 + */ + @RequiresPermissions("system:inte:query") + @GetMapping(value = "/{inteId}") + public AjaxResult getInfo(@PathVariable("inteId") Long inteId) + { + return success(sysInteService.selectSysInteByInteId(inteId)); + } + + /** + * 鏂板鎺ュ彛 + */ + @RequiresPermissions("system:inte:add") + @Log(title = "鎺ュ彛", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysInte sysInte) + { + return toAjax(sysInteService.insertSysInte(sysInte)); + } + + /** + * 淇敼鎺ュ彛 + */ + @RequiresPermissions("system:inte:edit") + @Log(title = "鎺ュ彛", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysInte sysInte) + { + return toAjax(sysInteService.updateSysInte(sysInte)); + } + + /** + * 鍒犻櫎鎺ュ彛 + */ + @RequiresPermissions("system:inte:remove") + @Log(title = "鎺ュ彛", businessType = BusinessType.DELETE) + @DeleteMapping("/{inteIds}") + public AjaxResult remove(@PathVariable Long[] inteIds) + { + return toAjax(sysInteService.deleteSysInteByInteIds(inteIds)); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysResController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysResController.java new file mode 100644 index 0000000..fd6f310 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysResController.java @@ -0,0 +1,104 @@ +package com.se.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +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.se.common.log.annotation.Log; +import com.se.common.log.enums.BusinessType; +import com.se.common.security.annotation.RequiresPermissions; +import com.se.system.domain.SysRes; +import com.se.system.service.ISysResService; +import com.se.common.core.web.controller.BaseController; +import com.se.common.core.web.domain.AjaxResult; +import com.se.common.core.utils.poi.ExcelUtil; +import com.se.common.core.web.page.TableDataInfo; + +/** + * 璧勬簮Controller + * + * @author se + * @date 2024-11-22 + */ +@RestController +@RequestMapping("/res") +public class SysResController extends BaseController +{ + @Autowired + private ISysResService sysResService; + + /** + * 鏌ヨ璧勬簮鍒楄〃 + */ + @RequiresPermissions("system:res:list") + @GetMapping("/list") + public TableDataInfo list(SysRes sysRes) + { + startPage(); + List<SysRes> list = sysResService.selectSysResList(sysRes); + return getDataTable(list); + } + + /** + * 瀵煎嚭璧勬簮鍒楄〃 + */ + @RequiresPermissions("system:res:export") + @Log(title = "璧勬簮", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysRes sysRes) + { + List<SysRes> list = sysResService.selectSysResList(sysRes); + ExcelUtil<SysRes> util = new ExcelUtil<SysRes>(SysRes.class); + util.exportExcel(response, list, "璧勬簮鏁版嵁"); + } + + /** + * 鑾峰彇璧勬簮璇︾粏淇℃伅 + */ + @RequiresPermissions("system:res:query") + @GetMapping(value = "/{resId}") + public AjaxResult getInfo(@PathVariable("resId") Long resId) + { + return success(sysResService.selectSysResByResId(resId)); + } + + /** + * 鏂板璧勬簮 + */ + @RequiresPermissions("system:res:add") + @Log(title = "璧勬簮", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysRes sysRes) + { + return toAjax(sysResService.insertSysRes(sysRes)); + } + + /** + * 淇敼璧勬簮 + */ + @RequiresPermissions("system:res:edit") + @Log(title = "璧勬簮", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysRes sysRes) + { + return toAjax(sysResService.updateSysRes(sysRes)); + } + + /** + * 鍒犻櫎璧勬簮 + */ + @RequiresPermissions("system:res:remove") + @Log(title = "璧勬簮", businessType = BusinessType.DELETE) + @DeleteMapping("/{resIds}") + public AjaxResult remove(@PathVariable Long[] resIds) + { + return toAjax(sysResService.deleteSysResByResIds(resIds)); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java new file mode 100644 index 0000000..7e940d2 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java @@ -0,0 +1,104 @@ +package com.se.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +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.se.common.log.annotation.Log; +import com.se.common.log.enums.BusinessType; +import com.se.common.security.annotation.RequiresPermissions; +import com.se.system.domain.SysSoft; +import com.se.system.service.ISysSoftService; +import com.se.common.core.web.controller.BaseController; +import com.se.common.core.web.domain.AjaxResult; +import com.se.common.core.utils.poi.ExcelUtil; +import com.se.common.core.web.page.TableDataInfo; + +/** + * 杞欢Controller + * + * @author se + * @date 2024-11-22 + */ +@RestController +@RequestMapping("/soft") +public class SysSoftController extends BaseController +{ + @Autowired + private ISysSoftService sysSoftService; + + /** + * 鏌ヨ杞欢鍒楄〃 + */ + @RequiresPermissions("system:soft:list") + @GetMapping("/list") + public TableDataInfo list(SysSoft sysSoft) + { + startPage(); + List<SysSoft> list = sysSoftService.selectSysSoftList(sysSoft); + return getDataTable(list); + } + + /** + * 瀵煎嚭杞欢鍒楄〃 + */ + @RequiresPermissions("system:soft:export") + @Log(title = "杞欢", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysSoft sysSoft) + { + List<SysSoft> list = sysSoftService.selectSysSoftList(sysSoft); + ExcelUtil<SysSoft> util = new ExcelUtil<SysSoft>(SysSoft.class); + util.exportExcel(response, list, "杞欢鏁版嵁"); + } + + /** + * 鑾峰彇杞欢璇︾粏淇℃伅 + */ + @RequiresPermissions("system:soft:query") + @GetMapping(value = "/{softId}") + public AjaxResult getInfo(@PathVariable("softId") Long softId) + { + return success(sysSoftService.selectSysSoftBySoftId(softId)); + } + + /** + * 鏂板杞欢 + */ + @RequiresPermissions("system:soft:add") + @Log(title = "杞欢", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysSoft sysSoft) + { + return toAjax(sysSoftService.insertSysSoft(sysSoft)); + } + + /** + * 淇敼杞欢 + */ + @RequiresPermissions("system:soft:edit") + @Log(title = "杞欢", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysSoft sysSoft) + { + return toAjax(sysSoftService.updateSysSoft(sysSoft)); + } + + /** + * 鍒犻櫎杞欢 + */ + @RequiresPermissions("system:soft:remove") + @Log(title = "杞欢", businessType = BusinessType.DELETE) + @DeleteMapping("/{softIds}") + public AjaxResult remove(@PathVariable Long[] softIds) + { + return toAjax(sysSoftService.deleteSysSoftBySoftIds(softIds)); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysWarnController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysWarnController.java new file mode 100644 index 0000000..3896576 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysWarnController.java @@ -0,0 +1,104 @@ +package com.se.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +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.se.common.log.annotation.Log; +import com.se.common.log.enums.BusinessType; +import com.se.common.security.annotation.RequiresPermissions; +import com.se.system.domain.SysWarn; +import com.se.system.service.ISysWarnService; +import com.se.common.core.web.controller.BaseController; +import com.se.common.core.web.domain.AjaxResult; +import com.se.common.core.utils.poi.ExcelUtil; +import com.se.common.core.web.page.TableDataInfo; + +/** + * 鍛婅Controller + * + * @author se + * @date 2024-11-22 + */ +@RestController +@RequestMapping("/warn") +public class SysWarnController extends BaseController +{ + @Autowired + private ISysWarnService sysWarnService; + + /** + * 鏌ヨ鍛婅鍒楄〃 + */ + @RequiresPermissions("system:warn:list") + @GetMapping("/list") + public TableDataInfo list(SysWarn sysWarn) + { + startPage(); + List<SysWarn> list = sysWarnService.selectSysWarnList(sysWarn); + return getDataTable(list); + } + + /** + * 瀵煎嚭鍛婅鍒楄〃 + */ + @RequiresPermissions("system:warn:export") + @Log(title = "鍛婅", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysWarn sysWarn) + { + List<SysWarn> list = sysWarnService.selectSysWarnList(sysWarn); + ExcelUtil<SysWarn> util = new ExcelUtil<SysWarn>(SysWarn.class); + util.exportExcel(response, list, "鍛婅鏁版嵁"); + } + + /** + * 鑾峰彇鍛婅璇︾粏淇℃伅 + */ + @RequiresPermissions("system:warn:query") + @GetMapping(value = "/{warnId}") + public AjaxResult getInfo(@PathVariable("warnId") Long warnId) + { + return success(sysWarnService.selectSysWarnByWarnId(warnId)); + } + + /** + * 鏂板鍛婅 + */ + @RequiresPermissions("system:warn:add") + @Log(title = "鍛婅", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysWarn sysWarn) + { + return toAjax(sysWarnService.insertSysWarn(sysWarn)); + } + + /** + * 淇敼鍛婅 + */ + @RequiresPermissions("system:warn:edit") + @Log(title = "鍛婅", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysWarn sysWarn) + { + return toAjax(sysWarnService.updateSysWarn(sysWarn)); + } + + /** + * 鍒犻櫎鍛婅 + */ + @RequiresPermissions("system:warn:remove") + @Log(title = "鍛婅", businessType = BusinessType.DELETE) + @DeleteMapping("/{warnIds}") + public AjaxResult remove(@PathVariable Long[] warnIds) + { + return toAjax(sysWarnService.deleteSysWarnByWarnIds(warnIds)); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysCfg.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysCfg.java new file mode 100644 index 0000000..3c5e600 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysCfg.java @@ -0,0 +1,112 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 閰嶇疆瀵硅薄 sys_cfg + * + * @author se + * @date 2024-11-22 + */ +public class SysCfg extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 閰嶇疆ID */ + private Long cfgId; + + /** 鍚嶇О */ + @Excel(name = "鍚嶇О") + private String name; + + /** 纭欢 */ + @Excel(name = "纭欢") + private String hard; + + /** 杞欢 */ + @Excel(name = "杞欢") + private String soft; + + /** 鍙傛暟 */ + @Excel(name = "鍙傛暟") + private String args; + + /** 鐘舵�侊紙0姝e父 1鍋滅敤锛� */ + @Excel(name = "鐘舵��", readConverterExp = "0=姝e父,1=鍋滅敤") + private String status; + + public void setCfgId(Long cfgId) + { + this.cfgId = cfgId; + } + + public Long getCfgId() + { + return cfgId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setHard(String hard) + { + this.hard = hard; + } + + public String getHard() + { + return hard; + } + public void setSoft(String soft) + { + this.soft = soft; + } + + public String getSoft() + { + return soft; + } + public void setArgs(String args) + { + this.args = args; + } + + public String getArgs() + { + return args; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("cfgId", getCfgId()) + .append("name", getName()) + .append("hard", getHard()) + .append("soft", getSoft()) + .append("args", getArgs()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysCtrl.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysCtrl.java new file mode 100644 index 0000000..ffe02ca --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysCtrl.java @@ -0,0 +1,126 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 鎺у埗瀵硅薄 sys_ctrl + * + * @author se + * @date 2024-11-22 + */ +public class SysCtrl extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 鎺у埗ID */ + private Long ctrlId; + + /** 鍚嶇О */ + @Excel(name = "鍚嶇О") + private String name; + + /** 绫诲瀷 */ + @Excel(name = "绫诲瀷") + private String type; + + /** 鎻忚堪 */ + @Excel(name = "鎻忚堪") + private String descr; + + /** 鏁版嵁 */ + @Excel(name = "鏁版嵁") + private String data; + + /** 鍙傛暟 */ + @Excel(name = "鍙傛暟") + private String args; + + /** 鐘舵�侊紙0姝e父 1鍋滅敤锛� */ + @Excel(name = "鐘舵��", readConverterExp = "0=姝e父,1=鍋滅敤") + private String status; + + public void setCtrlId(Long ctrlId) + { + this.ctrlId = ctrlId; + } + + public Long getCtrlId() + { + return ctrlId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setType(String type) + { + this.type = type; + } + + public String getType() + { + return type; + } + public void setDescr(String descr) + { + this.descr = descr; + } + + public String getDescr() + { + return descr; + } + public void setData(String data) + { + this.data = data; + } + + public String getData() + { + return data; + } + public void setArgs(String args) + { + this.args = args; + } + + public String getArgs() + { + return args; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("ctrlId", getCtrlId()) + .append("name", getName()) + .append("type", getType()) + .append("descr", getDescr()) + .append("data", getData()) + .append("args", getArgs()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysCtrlLog.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysCtrlLog.java new file mode 100644 index 0000000..837004f --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysCtrlLog.java @@ -0,0 +1,188 @@ +package com.se.system.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 鎺у埗鏃ュ織瀵硅薄 sys_ctrl_log + * + * @author se + * @date 2024-11-22 + */ +public class SysCtrlLog { + private static final long serialVersionUID = 1L; + + /** + * 鏃ュ織ID + */ + private Long logId; + + /** + * 鏍囬 + */ + @Excel(name = "鏍囬") + private String title; + + /** + * 绫诲瀷 + */ + @Excel(name = "绫诲瀷") + private String type; + + /** + * IP + */ + @Excel(name = "IP") + private String ip; + + /** + * URL + */ + @Excel(name = "URL") + private String url; + + /** + * 鏂规硶 + */ + @Excel(name = "鏂规硶") + private String method; + + /** + * 鍙傛暟 + */ + @Excel(name = "鍙傛暟") + private String args; + + /** + * 娑堟伅 + */ + @Excel(name = "娑堟伅") + private String msg; + + /** + * 鎿嶄綔鍛� + */ + @Excel(name = "鎿嶄綔鍛�") + private String oper; + + /** + * 鎿嶄綔鏃堕棿 + */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "鎿嶄綔鏃堕棿", width = 30, dateFormat = "yyyy-MM-dd") + private Date time; + + /** + * 澶囨敞 + */ + private String remark; + + public void setLogId(Long logId) { + this.logId = logId; + } + + public Long getLogId() { + return logId; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getTitle() { + return title; + } + + public void setType(String type) { + this.type = type; + } + + public String getType() { + return type; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public String getIp() { + return ip; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getUrl() { + return url; + } + + public void setMethod(String method) { + this.method = method; + } + + public String getMethod() { + return method; + } + + public void setArgs(String args) { + this.args = args; + } + + public String getArgs() { + return args; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public String getMsg() { + return msg; + } + + public void setOper(String oper) { + this.oper = oper; + } + + public String getOper() { + return oper; + } + + public void setTime(Date time) { + this.time = time; + } + + public Date getTime() { + return time; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("logId", getLogId()) + .append("title", getTitle()) + .append("type", getType()) + .append("ip", getIp()) + .append("url", getUrl()) + .append("method", getMethod()) + .append("args", getArgs()) + .append("msg", getMsg()) + .append("oper", getOper()) + .append("time", getTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysHard.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysHard.java new file mode 100644 index 0000000..7c3d7ee --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysHard.java @@ -0,0 +1,154 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 纭欢瀵硅薄 sys_hard + * + * @author se + * @date 2024-11-22 + */ +public class SysHard extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 纭欢ID */ + private Long hardId; + + /** 鍚嶇О */ + @Excel(name = "鍚嶇О") + private String name; + + /** CPU */ + @Excel(name = "CPU") + private String cpu; + + /** 鍐呭瓨 */ + @Excel(name = "鍐呭瓨") + private String mem; + + /** 纭洏 */ + @Excel(name = "纭洏") + private String disk; + + /** 缃戠粶 */ + @Excel(name = "缃戠粶") + private String net; + + /** 鎻忚堪 */ + @Excel(name = "鎻忚堪") + private String descr; + + /** 鍙傛暟 */ + @Excel(name = "鍙傛暟") + private String args; + + /** 鐘舵�侊紙0姝e父 1鍋滅敤锛� */ + @Excel(name = "鐘舵��", readConverterExp = "0=姝e父,1=鍋滅敤") + private String status; + + public void setHardId(Long hardId) + { + this.hardId = hardId; + } + + public Long getHardId() + { + return hardId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setCpu(String cpu) + { + this.cpu = cpu; + } + + public String getCpu() + { + return cpu; + } + public void setMem(String mem) + { + this.mem = mem; + } + + public String getMem() + { + return mem; + } + public void setDisk(String disk) + { + this.disk = disk; + } + + public String getDisk() + { + return disk; + } + public void setNet(String net) + { + this.net = net; + } + + public String getNet() + { + return net; + } + public void setDescr(String descr) + { + this.descr = descr; + } + + public String getDescr() + { + return descr; + } + public void setArgs(String args) + { + this.args = args; + } + + public String getArgs() + { + return args; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("hardId", getHardId()) + .append("name", getName()) + .append("cpu", getCpu()) + .append("mem", getMem()) + .append("disk", getDisk()) + .append("net", getNet()) + .append("descr", getDescr()) + .append("args", getArgs()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysInte.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysInte.java new file mode 100644 index 0000000..bf9f7a5 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysInte.java @@ -0,0 +1,140 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 鎺ュ彛瀵硅薄 sys_inte + * + * @author se + * @date 2024-11-22 + */ +public class SysInte extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 鎺ュ彛ID */ + private Long inteId; + + /** 鍚嶇О */ + @Excel(name = "鍚嶇О") + private String name; + + /** 绫诲瀷 */ + @Excel(name = "绫诲瀷") + private String type; + + /** 鎻忚堪 */ + @Excel(name = "鎻忚堪") + private String descr; + + /** URL */ + @Excel(name = "URL") + private String url; + + /** 鏁版嵁 */ + @Excel(name = "鏁版嵁") + private String data; + + /** 鍙傛暟 */ + @Excel(name = "鍙傛暟") + private String args; + + /** 鐘舵�侊紙0姝e父 1鍋滅敤锛� */ + @Excel(name = "鐘舵��", readConverterExp = "0=姝e父,1=鍋滅敤") + private String status; + + public void setInteId(Long inteId) + { + this.inteId = inteId; + } + + public Long getInteId() + { + return inteId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setType(String type) + { + this.type = type; + } + + public String getType() + { + return type; + } + public void setDescr(String descr) + { + this.descr = descr; + } + + public String getDescr() + { + return descr; + } + public void setUrl(String url) + { + this.url = url; + } + + public String getUrl() + { + return url; + } + public void setData(String data) + { + this.data = data; + } + + public String getData() + { + return data; + } + public void setArgs(String args) + { + this.args = args; + } + + public String getArgs() + { + return args; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("inteId", getInteId()) + .append("name", getName()) + .append("type", getType()) + .append("descr", getDescr()) + .append("url", getUrl()) + .append("data", getData()) + .append("args", getArgs()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysRes.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysRes.java new file mode 100644 index 0000000..f589bc4 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysRes.java @@ -0,0 +1,112 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 璧勬簮瀵硅薄 sys_res + * + * @author se + * @date 2024-11-22 + */ +public class SysRes extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 璧勬簮ID */ + private Long resId; + + /** 鍚嶇О */ + @Excel(name = "鍚嶇О") + private String name; + + /** 绫诲瀷锛�0-鍏跺畠锛�1-IP锛�2-鏁版嵁搴擄紝3-娑堟伅涓棿浠讹紝4-鍏变韩鏂囦欢锛�5-鍒嗙郴缁熻蒋浠讹紝6-寮曟搸锛� */ + @Excel(name = "绫诲瀷", readConverterExp = "0=-鍏跺畠锛�1-IP锛�2-鏁版嵁搴擄紝3-娑堟伅涓棿浠讹紝4-鍏变韩鏂囦欢锛�5-鍒嗙郴缁熻蒋浠讹紝6-寮曟搸") + private String type; + + /** 鎻忚堪 */ + @Excel(name = "鎻忚堪") + private String descr; + + /** 鍙傛暟 */ + @Excel(name = "鍙傛暟") + private String args; + + /** 鐘舵�侊紙0姝e父 1鍋滅敤锛� */ + @Excel(name = "鐘舵��", readConverterExp = "0=姝e父,1=鍋滅敤") + private String status; + + public void setResId(Long resId) + { + this.resId = resId; + } + + public Long getResId() + { + return resId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setType(String type) + { + this.type = type; + } + + public String getType() + { + return type; + } + public void setDescr(String descr) + { + this.descr = descr; + } + + public String getDescr() + { + return descr; + } + public void setArgs(String args) + { + this.args = args; + } + + public String getArgs() + { + return args; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("resId", getResId()) + .append("name", getName()) + .append("type", getType()) + .append("descr", getDescr()) + .append("args", getArgs()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysRoleCtrl.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysRoleCtrl.java new file mode 100644 index 0000000..9afc1ef --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysRoleCtrl.java @@ -0,0 +1,50 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 瑙掕壊鎺у埗瀵硅薄 sys_role_ctrl + * + * @author se + * @date 2024-11-22 + */ +public class SysRoleCtrl +{ + private static final long serialVersionUID = 1L; + + /** 瑙掕壊ID */ + private Long roleId; + + /** 鎺у埗ID */ + private Long ctrlId; + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + public Long getRoleId() + { + return roleId; + } + public void setCtrlId(Long ctrlId) + { + this.ctrlId = ctrlId; + } + + public Long getCtrlId() + { + return ctrlId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("roleId", getRoleId()) + .append("ctrlId", getCtrlId()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysRoleInte.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysRoleInte.java new file mode 100644 index 0000000..577e7dd --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysRoleInte.java @@ -0,0 +1,50 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 瑙掕壊鎺ュ彛瀵硅薄 sys_role_inte + * + * @author se + * @date 2024-11-22 + */ +public class SysRoleInte +{ + private static final long serialVersionUID = 1L; + + /** 瑙掕壊ID */ + private Long roleId; + + /** 鎺ュ彛ID */ + private Long inteId; + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + public Long getRoleId() + { + return roleId; + } + public void setInteId(Long inteId) + { + this.inteId = inteId; + } + + public Long getInteId() + { + return inteId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("roleId", getRoleId()) + .append("inteId", getInteId()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysRoleRes.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysRoleRes.java new file mode 100644 index 0000000..62479e4 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysRoleRes.java @@ -0,0 +1,50 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 瑙掕壊璧勬簮瀵硅薄 sys_role_res + * + * @author se + * @date 2024-11-22 + */ +public class SysRoleRes +{ + private static final long serialVersionUID = 1L; + + /** 瑙掕壊ID */ + private Long roleId; + + /** 璧勬簮ID */ + private Long resId; + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + public Long getRoleId() + { + return roleId; + } + public void setResId(Long resId) + { + this.resId = resId; + } + + public Long getResId() + { + return resId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("roleId", getRoleId()) + .append("resId", getResId()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysSoft.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysSoft.java new file mode 100644 index 0000000..44d4381 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysSoft.java @@ -0,0 +1,126 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 杞欢瀵硅薄 sys_soft + * + * @author se + * @date 2024-11-22 + */ +public class SysSoft extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 杞欢ID */ + private Long softId; + + /** 鍚嶇О */ + @Excel(name = "鍚嶇О") + private String name; + + /** 绫诲瀷锛�0-搴旂敤杞欢锛�1-鏁版嵁搴擄紝2-涓棿浠讹紝3-鎿嶄綔绯荤粺锛� */ + @Excel(name = "绫诲瀷", readConverterExp = "0=-搴旂敤杞欢锛�1-鏁版嵁搴擄紝2-涓棿浠讹紝3-鎿嶄綔绯荤粺") + private String type; + + /** 璁稿彲 */ + @Excel(name = "璁稿彲") + private String lic; + + /** 鎻忚堪 */ + @Excel(name = "鎻忚堪") + private String descr; + + /** 鍙傛暟 */ + @Excel(name = "鍙傛暟") + private String args; + + /** 鐘舵�侊紙0姝e父 1鍋滅敤锛� */ + @Excel(name = "鐘舵��", readConverterExp = "0=姝e父,1=鍋滅敤") + private String status; + + public void setSoftId(Long softId) + { + this.softId = softId; + } + + public Long getSoftId() + { + return softId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setType(String type) + { + this.type = type; + } + + public String getType() + { + return type; + } + public void setLic(String lic) + { + this.lic = lic; + } + + public String getLic() + { + return lic; + } + public void setDescr(String descr) + { + this.descr = descr; + } + + public String getDescr() + { + return descr; + } + public void setArgs(String args) + { + this.args = args; + } + + public String getArgs() + { + return args; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("softId", getSoftId()) + .append("name", getName()) + .append("type", getType()) + .append("lic", getLic()) + .append("descr", getDescr()) + .append("args", getArgs()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/domain/SysWarn.java b/se-modules/se-system/src/main/java/com/se/system/domain/SysWarn.java new file mode 100644 index 0000000..0714235 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/domain/SysWarn.java @@ -0,0 +1,126 @@ +package com.se.system.domain; + +import com.se.common.core.annotation.Excel; +import com.se.common.core.web.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 鍛婅瀵硅薄 sys_warn + * + * @author se + * @date 2024-11-22 + */ +public class SysWarn extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 鍛婅ID */ + private Long warnId; + + /** 鍚嶇О */ + @Excel(name = "鍚嶇О") + private String name; + + /** 绫诲瀷 */ + @Excel(name = "绫诲瀷") + private String type; + + /** 鎻忚堪 */ + @Excel(name = "鎻忚堪") + private String descr; + + /** 鏁版嵁 */ + @Excel(name = "鏁版嵁") + private String data; + + /** 鍙傛暟 */ + @Excel(name = "鍙傛暟") + private String args; + + /** 鐘舵�侊紙0姝e父 1鍋滅敤锛� */ + @Excel(name = "鐘舵��", readConverterExp = "0=姝e父,1=鍋滅敤") + private String status; + + public void setWarnId(Long warnId) + { + this.warnId = warnId; + } + + public Long getWarnId() + { + return warnId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setType(String type) + { + this.type = type; + } + + public String getType() + { + return type; + } + public void setDescr(String descr) + { + this.descr = descr; + } + + public String getDescr() + { + return descr; + } + public void setData(String data) + { + this.data = data; + } + + public String getData() + { + return data; + } + public void setArgs(String args) + { + this.args = args; + } + + public String getArgs() + { + return args; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("warnId", getWarnId()) + .append("name", getName()) + .append("type", getType()) + .append("descr", getDescr()) + .append("data", getData()) + .append("args", getArgs()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysCfgMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysCfgMapper.java new file mode 100644 index 0000000..d17a3ce --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysCfgMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysCfg; + +/** + * 閰嶇疆Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysCfgMapper +{ + /** + * 鏌ヨ閰嶇疆 + * + * @param cfgId 閰嶇疆涓婚敭 + * @return 閰嶇疆 + */ + public SysCfg selectSysCfgByCfgId(Long cfgId); + + /** + * 鏌ヨ閰嶇疆鍒楄〃 + * + * @param sysCfg 閰嶇疆 + * @return 閰嶇疆闆嗗悎 + */ + public List<SysCfg> selectSysCfgList(SysCfg sysCfg); + + /** + * 鏂板閰嶇疆 + * + * @param sysCfg 閰嶇疆 + * @return 缁撴灉 + */ + public int insertSysCfg(SysCfg sysCfg); + + /** + * 淇敼閰嶇疆 + * + * @param sysCfg 閰嶇疆 + * @return 缁撴灉 + */ + public int updateSysCfg(SysCfg sysCfg); + + /** + * 鍒犻櫎閰嶇疆 + * + * @param cfgId 閰嶇疆涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysCfgByCfgId(Long cfgId); + + /** + * 鎵归噺鍒犻櫎閰嶇疆 + * + * @param cfgIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysCfgByCfgIds(Long[] cfgIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysCtrlLogMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysCtrlLogMapper.java new file mode 100644 index 0000000..9c0ba4a --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysCtrlLogMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysCtrlLog; + +/** + * 鎺у埗鏃ュ織Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysCtrlLogMapper +{ + /** + * 鏌ヨ鎺у埗鏃ュ織 + * + * @param logId 鎺у埗鏃ュ織涓婚敭 + * @return 鎺у埗鏃ュ織 + */ + public SysCtrlLog selectSysCtrlLogByLogId(Long logId); + + /** + * 鏌ヨ鎺у埗鏃ュ織鍒楄〃 + * + * @param sysCtrlLog 鎺у埗鏃ュ織 + * @return 鎺у埗鏃ュ織闆嗗悎 + */ + public List<SysCtrlLog> selectSysCtrlLogList(SysCtrlLog sysCtrlLog); + + /** + * 鏂板鎺у埗鏃ュ織 + * + * @param sysCtrlLog 鎺у埗鏃ュ織 + * @return 缁撴灉 + */ + public int insertSysCtrlLog(SysCtrlLog sysCtrlLog); + + /** + * 淇敼鎺у埗鏃ュ織 + * + * @param sysCtrlLog 鎺у埗鏃ュ織 + * @return 缁撴灉 + */ + public int updateSysCtrlLog(SysCtrlLog sysCtrlLog); + + /** + * 鍒犻櫎鎺у埗鏃ュ織 + * + * @param logId 鎺у埗鏃ュ織涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysCtrlLogByLogId(Long logId); + + /** + * 鎵归噺鍒犻櫎鎺у埗鏃ュ織 + * + * @param logIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysCtrlLogByLogIds(Long[] logIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysCtrlMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysCtrlMapper.java new file mode 100644 index 0000000..238bb8e --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysCtrlMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysCtrl; + +/** + * 鎺у埗Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysCtrlMapper +{ + /** + * 鏌ヨ鎺у埗 + * + * @param ctrlId 鎺у埗涓婚敭 + * @return 鎺у埗 + */ + public SysCtrl selectSysCtrlByCtrlId(Long ctrlId); + + /** + * 鏌ヨ鎺у埗鍒楄〃 + * + * @param sysCtrl 鎺у埗 + * @return 鎺у埗闆嗗悎 + */ + public List<SysCtrl> selectSysCtrlList(SysCtrl sysCtrl); + + /** + * 鏂板鎺у埗 + * + * @param sysCtrl 鎺у埗 + * @return 缁撴灉 + */ + public int insertSysCtrl(SysCtrl sysCtrl); + + /** + * 淇敼鎺у埗 + * + * @param sysCtrl 鎺у埗 + * @return 缁撴灉 + */ + public int updateSysCtrl(SysCtrl sysCtrl); + + /** + * 鍒犻櫎鎺у埗 + * + * @param ctrlId 鎺у埗涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysCtrlByCtrlId(Long ctrlId); + + /** + * 鎵归噺鍒犻櫎鎺у埗 + * + * @param ctrlIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysCtrlByCtrlIds(Long[] ctrlIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysHardMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysHardMapper.java new file mode 100644 index 0000000..b12109d --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysHardMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysHard; + +/** + * 纭欢Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysHardMapper +{ + /** + * 鏌ヨ纭欢 + * + * @param hardId 纭欢涓婚敭 + * @return 纭欢 + */ + public SysHard selectSysHardByHardId(Long hardId); + + /** + * 鏌ヨ纭欢鍒楄〃 + * + * @param sysHard 纭欢 + * @return 纭欢闆嗗悎 + */ + public List<SysHard> selectSysHardList(SysHard sysHard); + + /** + * 鏂板纭欢 + * + * @param sysHard 纭欢 + * @return 缁撴灉 + */ + public int insertSysHard(SysHard sysHard); + + /** + * 淇敼纭欢 + * + * @param sysHard 纭欢 + * @return 缁撴灉 + */ + public int updateSysHard(SysHard sysHard); + + /** + * 鍒犻櫎纭欢 + * + * @param hardId 纭欢涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysHardByHardId(Long hardId); + + /** + * 鎵归噺鍒犻櫎纭欢 + * + * @param hardIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysHardByHardIds(Long[] hardIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysInteMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysInteMapper.java new file mode 100644 index 0000000..29aec9c --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysInteMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysInte; + +/** + * 鎺ュ彛Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysInteMapper +{ + /** + * 鏌ヨ鎺ュ彛 + * + * @param inteId 鎺ュ彛涓婚敭 + * @return 鎺ュ彛 + */ + public SysInte selectSysInteByInteId(Long inteId); + + /** + * 鏌ヨ鎺ュ彛鍒楄〃 + * + * @param sysInte 鎺ュ彛 + * @return 鎺ュ彛闆嗗悎 + */ + public List<SysInte> selectSysInteList(SysInte sysInte); + + /** + * 鏂板鎺ュ彛 + * + * @param sysInte 鎺ュ彛 + * @return 缁撴灉 + */ + public int insertSysInte(SysInte sysInte); + + /** + * 淇敼鎺ュ彛 + * + * @param sysInte 鎺ュ彛 + * @return 缁撴灉 + */ + public int updateSysInte(SysInte sysInte); + + /** + * 鍒犻櫎鎺ュ彛 + * + * @param inteId 鎺ュ彛涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysInteByInteId(Long inteId); + + /** + * 鎵归噺鍒犻櫎鎺ュ彛 + * + * @param inteIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysInteByInteIds(Long[] inteIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysResMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysResMapper.java new file mode 100644 index 0000000..3b14d40 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysResMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysRes; + +/** + * 璧勬簮Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysResMapper +{ + /** + * 鏌ヨ璧勬簮 + * + * @param resId 璧勬簮涓婚敭 + * @return 璧勬簮 + */ + public SysRes selectSysResByResId(Long resId); + + /** + * 鏌ヨ璧勬簮鍒楄〃 + * + * @param sysRes 璧勬簮 + * @return 璧勬簮闆嗗悎 + */ + public List<SysRes> selectSysResList(SysRes sysRes); + + /** + * 鏂板璧勬簮 + * + * @param sysRes 璧勬簮 + * @return 缁撴灉 + */ + public int insertSysRes(SysRes sysRes); + + /** + * 淇敼璧勬簮 + * + * @param sysRes 璧勬簮 + * @return 缁撴灉 + */ + public int updateSysRes(SysRes sysRes); + + /** + * 鍒犻櫎璧勬簮 + * + * @param resId 璧勬簮涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysResByResId(Long resId); + + /** + * 鎵归噺鍒犻櫎璧勬簮 + * + * @param resIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysResByResIds(Long[] resIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleCtrlMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleCtrlMapper.java new file mode 100644 index 0000000..6318751 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleCtrlMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysRoleCtrl; + +/** + * 瑙掕壊鎺у埗Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysRoleCtrlMapper +{ + /** + * 鏌ヨ瑙掕壊鎺у埗 + * + * @param roleId 瑙掕壊鎺у埗涓婚敭 + * @return 瑙掕壊鎺у埗 + */ + public SysRoleCtrl selectSysRoleCtrlByRoleId(Long roleId); + + /** + * 鏌ヨ瑙掕壊鎺у埗鍒楄〃 + * + * @param sysRoleCtrl 瑙掕壊鎺у埗 + * @return 瑙掕壊鎺у埗闆嗗悎 + */ + public List<SysRoleCtrl> selectSysRoleCtrlList(SysRoleCtrl sysRoleCtrl); + + /** + * 鏂板瑙掕壊鎺у埗 + * + * @param sysRoleCtrl 瑙掕壊鎺у埗 + * @return 缁撴灉 + */ + public int insertSysRoleCtrl(SysRoleCtrl sysRoleCtrl); + + /** + * 淇敼瑙掕壊鎺у埗 + * + * @param sysRoleCtrl 瑙掕壊鎺у埗 + * @return 缁撴灉 + */ + public int updateSysRoleCtrl(SysRoleCtrl sysRoleCtrl); + + /** + * 鍒犻櫎瑙掕壊鎺у埗 + * + * @param roleId 瑙掕壊鎺у埗涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysRoleCtrlByRoleId(Long roleId); + + /** + * 鎵归噺鍒犻櫎瑙掕壊鎺у埗 + * + * @param roleIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysRoleCtrlByRoleIds(Long[] roleIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleInteMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleInteMapper.java new file mode 100644 index 0000000..58e0640 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleInteMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysRoleInte; + +/** + * 瑙掕壊鎺ュ彛Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysRoleInteMapper +{ + /** + * 鏌ヨ瑙掕壊鎺ュ彛 + * + * @param roleId 瑙掕壊鎺ュ彛涓婚敭 + * @return 瑙掕壊鎺ュ彛 + */ + public SysRoleInte selectSysRoleInteByRoleId(Long roleId); + + /** + * 鏌ヨ瑙掕壊鎺ュ彛鍒楄〃 + * + * @param sysRoleInte 瑙掕壊鎺ュ彛 + * @return 瑙掕壊鎺ュ彛闆嗗悎 + */ + public List<SysRoleInte> selectSysRoleInteList(SysRoleInte sysRoleInte); + + /** + * 鏂板瑙掕壊鎺ュ彛 + * + * @param sysRoleInte 瑙掕壊鎺ュ彛 + * @return 缁撴灉 + */ + public int insertSysRoleInte(SysRoleInte sysRoleInte); + + /** + * 淇敼瑙掕壊鎺ュ彛 + * + * @param sysRoleInte 瑙掕壊鎺ュ彛 + * @return 缁撴灉 + */ + public int updateSysRoleInte(SysRoleInte sysRoleInte); + + /** + * 鍒犻櫎瑙掕壊鎺ュ彛 + * + * @param roleId 瑙掕壊鎺ュ彛涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysRoleInteByRoleId(Long roleId); + + /** + * 鎵归噺鍒犻櫎瑙掕壊鎺ュ彛 + * + * @param roleIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysRoleInteByRoleIds(Long[] roleIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleResMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleResMapper.java new file mode 100644 index 0000000..0eb3e11 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysRoleResMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysRoleRes; + +/** + * 瑙掕壊璧勬簮Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysRoleResMapper +{ + /** + * 鏌ヨ瑙掕壊璧勬簮 + * + * @param roleId 瑙掕壊璧勬簮涓婚敭 + * @return 瑙掕壊璧勬簮 + */ + public SysRoleRes selectSysRoleResByRoleId(Long roleId); + + /** + * 鏌ヨ瑙掕壊璧勬簮鍒楄〃 + * + * @param sysRoleRes 瑙掕壊璧勬簮 + * @return 瑙掕壊璧勬簮闆嗗悎 + */ + public List<SysRoleRes> selectSysRoleResList(SysRoleRes sysRoleRes); + + /** + * 鏂板瑙掕壊璧勬簮 + * + * @param sysRoleRes 瑙掕壊璧勬簮 + * @return 缁撴灉 + */ + public int insertSysRoleRes(SysRoleRes sysRoleRes); + + /** + * 淇敼瑙掕壊璧勬簮 + * + * @param sysRoleRes 瑙掕壊璧勬簮 + * @return 缁撴灉 + */ + public int updateSysRoleRes(SysRoleRes sysRoleRes); + + /** + * 鍒犻櫎瑙掕壊璧勬簮 + * + * @param roleId 瑙掕壊璧勬簮涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysRoleResByRoleId(Long roleId); + + /** + * 鎵归噺鍒犻櫎瑙掕壊璧勬簮 + * + * @param roleIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysRoleResByRoleIds(Long[] roleIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysSoftMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysSoftMapper.java new file mode 100644 index 0000000..9c28126 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysSoftMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysSoft; + +/** + * 杞欢Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysSoftMapper +{ + /** + * 鏌ヨ杞欢 + * + * @param softId 杞欢涓婚敭 + * @return 杞欢 + */ + public SysSoft selectSysSoftBySoftId(Long softId); + + /** + * 鏌ヨ杞欢鍒楄〃 + * + * @param sysSoft 杞欢 + * @return 杞欢闆嗗悎 + */ + public List<SysSoft> selectSysSoftList(SysSoft sysSoft); + + /** + * 鏂板杞欢 + * + * @param sysSoft 杞欢 + * @return 缁撴灉 + */ + public int insertSysSoft(SysSoft sysSoft); + + /** + * 淇敼杞欢 + * + * @param sysSoft 杞欢 + * @return 缁撴灉 + */ + public int updateSysSoft(SysSoft sysSoft); + + /** + * 鍒犻櫎杞欢 + * + * @param softId 杞欢涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysSoftBySoftId(Long softId); + + /** + * 鎵归噺鍒犻櫎杞欢 + * + * @param softIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysSoftBySoftIds(Long[] softIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/mapper/SysWarnMapper.java b/se-modules/se-system/src/main/java/com/se/system/mapper/SysWarnMapper.java new file mode 100644 index 0000000..5f605de --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/mapper/SysWarnMapper.java @@ -0,0 +1,61 @@ +package com.se.system.mapper; + +import java.util.List; +import com.se.system.domain.SysWarn; + +/** + * 鍛婅Mapper鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface SysWarnMapper +{ + /** + * 鏌ヨ鍛婅 + * + * @param warnId 鍛婅涓婚敭 + * @return 鍛婅 + */ + public SysWarn selectSysWarnByWarnId(Long warnId); + + /** + * 鏌ヨ鍛婅鍒楄〃 + * + * @param sysWarn 鍛婅 + * @return 鍛婅闆嗗悎 + */ + public List<SysWarn> selectSysWarnList(SysWarn sysWarn); + + /** + * 鏂板鍛婅 + * + * @param sysWarn 鍛婅 + * @return 缁撴灉 + */ + public int insertSysWarn(SysWarn sysWarn); + + /** + * 淇敼鍛婅 + * + * @param sysWarn 鍛婅 + * @return 缁撴灉 + */ + public int updateSysWarn(SysWarn sysWarn); + + /** + * 鍒犻櫎鍛婅 + * + * @param warnId 鍛婅涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysWarnByWarnId(Long warnId); + + /** + * 鎵归噺鍒犻櫎鍛婅 + * + * @param warnIds 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysWarnByWarnIds(Long[] warnIds); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysCfgService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysCfgService.java new file mode 100644 index 0000000..0c4642c --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysCfgService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysCfg; + +/** + * 閰嶇疆Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysCfgService +{ + /** + * 鏌ヨ閰嶇疆 + * + * @param cfgId 閰嶇疆涓婚敭 + * @return 閰嶇疆 + */ + public SysCfg selectSysCfgByCfgId(Long cfgId); + + /** + * 鏌ヨ閰嶇疆鍒楄〃 + * + * @param sysCfg 閰嶇疆 + * @return 閰嶇疆闆嗗悎 + */ + public List<SysCfg> selectSysCfgList(SysCfg sysCfg); + + /** + * 鏂板閰嶇疆 + * + * @param sysCfg 閰嶇疆 + * @return 缁撴灉 + */ + public int insertSysCfg(SysCfg sysCfg); + + /** + * 淇敼閰嶇疆 + * + * @param sysCfg 閰嶇疆 + * @return 缁撴灉 + */ + public int updateSysCfg(SysCfg sysCfg); + + /** + * 鎵归噺鍒犻櫎閰嶇疆 + * + * @param cfgIds 闇�瑕佸垹闄ょ殑閰嶇疆涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysCfgByCfgIds(Long[] cfgIds); + + /** + * 鍒犻櫎閰嶇疆淇℃伅 + * + * @param cfgId 閰嶇疆涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysCfgByCfgId(Long cfgId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysCtrlLogService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysCtrlLogService.java new file mode 100644 index 0000000..42533cb --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysCtrlLogService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysCtrlLog; + +/** + * 鎺у埗鏃ュ織Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysCtrlLogService +{ + /** + * 鏌ヨ鎺у埗鏃ュ織 + * + * @param logId 鎺у埗鏃ュ織涓婚敭 + * @return 鎺у埗鏃ュ織 + */ + public SysCtrlLog selectSysCtrlLogByLogId(Long logId); + + /** + * 鏌ヨ鎺у埗鏃ュ織鍒楄〃 + * + * @param sysCtrlLog 鎺у埗鏃ュ織 + * @return 鎺у埗鏃ュ織闆嗗悎 + */ + public List<SysCtrlLog> selectSysCtrlLogList(SysCtrlLog sysCtrlLog); + + /** + * 鏂板鎺у埗鏃ュ織 + * + * @param sysCtrlLog 鎺у埗鏃ュ織 + * @return 缁撴灉 + */ + public int insertSysCtrlLog(SysCtrlLog sysCtrlLog); + + /** + * 淇敼鎺у埗鏃ュ織 + * + * @param sysCtrlLog 鎺у埗鏃ュ織 + * @return 缁撴灉 + */ + public int updateSysCtrlLog(SysCtrlLog sysCtrlLog); + + /** + * 鎵归噺鍒犻櫎鎺у埗鏃ュ織 + * + * @param logIds 闇�瑕佸垹闄ょ殑鎺у埗鏃ュ織涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysCtrlLogByLogIds(Long[] logIds); + + /** + * 鍒犻櫎鎺у埗鏃ュ織淇℃伅 + * + * @param logId 鎺у埗鏃ュ織涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysCtrlLogByLogId(Long logId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysCtrlService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysCtrlService.java new file mode 100644 index 0000000..fd5597a --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysCtrlService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysCtrl; + +/** + * 鎺у埗Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysCtrlService +{ + /** + * 鏌ヨ鎺у埗 + * + * @param ctrlId 鎺у埗涓婚敭 + * @return 鎺у埗 + */ + public SysCtrl selectSysCtrlByCtrlId(Long ctrlId); + + /** + * 鏌ヨ鎺у埗鍒楄〃 + * + * @param sysCtrl 鎺у埗 + * @return 鎺у埗闆嗗悎 + */ + public List<SysCtrl> selectSysCtrlList(SysCtrl sysCtrl); + + /** + * 鏂板鎺у埗 + * + * @param sysCtrl 鎺у埗 + * @return 缁撴灉 + */ + public int insertSysCtrl(SysCtrl sysCtrl); + + /** + * 淇敼鎺у埗 + * + * @param sysCtrl 鎺у埗 + * @return 缁撴灉 + */ + public int updateSysCtrl(SysCtrl sysCtrl); + + /** + * 鎵归噺鍒犻櫎鎺у埗 + * + * @param ctrlIds 闇�瑕佸垹闄ょ殑鎺у埗涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysCtrlByCtrlIds(Long[] ctrlIds); + + /** + * 鍒犻櫎鎺у埗淇℃伅 + * + * @param ctrlId 鎺у埗涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysCtrlByCtrlId(Long ctrlId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysHardService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysHardService.java new file mode 100644 index 0000000..a330e6c --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysHardService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysHard; + +/** + * 纭欢Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysHardService +{ + /** + * 鏌ヨ纭欢 + * + * @param hardId 纭欢涓婚敭 + * @return 纭欢 + */ + public SysHard selectSysHardByHardId(Long hardId); + + /** + * 鏌ヨ纭欢鍒楄〃 + * + * @param sysHard 纭欢 + * @return 纭欢闆嗗悎 + */ + public List<SysHard> selectSysHardList(SysHard sysHard); + + /** + * 鏂板纭欢 + * + * @param sysHard 纭欢 + * @return 缁撴灉 + */ + public int insertSysHard(SysHard sysHard); + + /** + * 淇敼纭欢 + * + * @param sysHard 纭欢 + * @return 缁撴灉 + */ + public int updateSysHard(SysHard sysHard); + + /** + * 鎵归噺鍒犻櫎纭欢 + * + * @param hardIds 闇�瑕佸垹闄ょ殑纭欢涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysHardByHardIds(Long[] hardIds); + + /** + * 鍒犻櫎纭欢淇℃伅 + * + * @param hardId 纭欢涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysHardByHardId(Long hardId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysInteService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysInteService.java new file mode 100644 index 0000000..e4e6039 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysInteService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysInte; + +/** + * 鎺ュ彛Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysInteService +{ + /** + * 鏌ヨ鎺ュ彛 + * + * @param inteId 鎺ュ彛涓婚敭 + * @return 鎺ュ彛 + */ + public SysInte selectSysInteByInteId(Long inteId); + + /** + * 鏌ヨ鎺ュ彛鍒楄〃 + * + * @param sysInte 鎺ュ彛 + * @return 鎺ュ彛闆嗗悎 + */ + public List<SysInte> selectSysInteList(SysInte sysInte); + + /** + * 鏂板鎺ュ彛 + * + * @param sysInte 鎺ュ彛 + * @return 缁撴灉 + */ + public int insertSysInte(SysInte sysInte); + + /** + * 淇敼鎺ュ彛 + * + * @param sysInte 鎺ュ彛 + * @return 缁撴灉 + */ + public int updateSysInte(SysInte sysInte); + + /** + * 鎵归噺鍒犻櫎鎺ュ彛 + * + * @param inteIds 闇�瑕佸垹闄ょ殑鎺ュ彛涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysInteByInteIds(Long[] inteIds); + + /** + * 鍒犻櫎鎺ュ彛淇℃伅 + * + * @param inteId 鎺ュ彛涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysInteByInteId(Long inteId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysResService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysResService.java new file mode 100644 index 0000000..9946ba2 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysResService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysRes; + +/** + * 璧勬簮Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysResService +{ + /** + * 鏌ヨ璧勬簮 + * + * @param resId 璧勬簮涓婚敭 + * @return 璧勬簮 + */ + public SysRes selectSysResByResId(Long resId); + + /** + * 鏌ヨ璧勬簮鍒楄〃 + * + * @param sysRes 璧勬簮 + * @return 璧勬簮闆嗗悎 + */ + public List<SysRes> selectSysResList(SysRes sysRes); + + /** + * 鏂板璧勬簮 + * + * @param sysRes 璧勬簮 + * @return 缁撴灉 + */ + public int insertSysRes(SysRes sysRes); + + /** + * 淇敼璧勬簮 + * + * @param sysRes 璧勬簮 + * @return 缁撴灉 + */ + public int updateSysRes(SysRes sysRes); + + /** + * 鎵归噺鍒犻櫎璧勬簮 + * + * @param resIds 闇�瑕佸垹闄ょ殑璧勬簮涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysResByResIds(Long[] resIds); + + /** + * 鍒犻櫎璧勬簮淇℃伅 + * + * @param resId 璧勬簮涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysResByResId(Long resId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysRoleCtrlService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysRoleCtrlService.java new file mode 100644 index 0000000..39733e1 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysRoleCtrlService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysRoleCtrl; + +/** + * 瑙掕壊鎺у埗Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysRoleCtrlService +{ + /** + * 鏌ヨ瑙掕壊鎺у埗 + * + * @param roleId 瑙掕壊鎺у埗涓婚敭 + * @return 瑙掕壊鎺у埗 + */ + public SysRoleCtrl selectSysRoleCtrlByRoleId(Long roleId); + + /** + * 鏌ヨ瑙掕壊鎺у埗鍒楄〃 + * + * @param sysRoleCtrl 瑙掕壊鎺у埗 + * @return 瑙掕壊鎺у埗闆嗗悎 + */ + public List<SysRoleCtrl> selectSysRoleCtrlList(SysRoleCtrl sysRoleCtrl); + + /** + * 鏂板瑙掕壊鎺у埗 + * + * @param sysRoleCtrl 瑙掕壊鎺у埗 + * @return 缁撴灉 + */ + public int insertSysRoleCtrl(SysRoleCtrl sysRoleCtrl); + + /** + * 淇敼瑙掕壊鎺у埗 + * + * @param sysRoleCtrl 瑙掕壊鎺у埗 + * @return 缁撴灉 + */ + public int updateSysRoleCtrl(SysRoleCtrl sysRoleCtrl); + + /** + * 鎵归噺鍒犻櫎瑙掕壊鎺у埗 + * + * @param roleIds 闇�瑕佸垹闄ょ殑瑙掕壊鎺у埗涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysRoleCtrlByRoleIds(Long[] roleIds); + + /** + * 鍒犻櫎瑙掕壊鎺у埗淇℃伅 + * + * @param roleId 瑙掕壊鎺у埗涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysRoleCtrlByRoleId(Long roleId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysRoleInteService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysRoleInteService.java new file mode 100644 index 0000000..0417fc9 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysRoleInteService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysRoleInte; + +/** + * 瑙掕壊鎺ュ彛Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysRoleInteService +{ + /** + * 鏌ヨ瑙掕壊鎺ュ彛 + * + * @param roleId 瑙掕壊鎺ュ彛涓婚敭 + * @return 瑙掕壊鎺ュ彛 + */ + public SysRoleInte selectSysRoleInteByRoleId(Long roleId); + + /** + * 鏌ヨ瑙掕壊鎺ュ彛鍒楄〃 + * + * @param sysRoleInte 瑙掕壊鎺ュ彛 + * @return 瑙掕壊鎺ュ彛闆嗗悎 + */ + public List<SysRoleInte> selectSysRoleInteList(SysRoleInte sysRoleInte); + + /** + * 鏂板瑙掕壊鎺ュ彛 + * + * @param sysRoleInte 瑙掕壊鎺ュ彛 + * @return 缁撴灉 + */ + public int insertSysRoleInte(SysRoleInte sysRoleInte); + + /** + * 淇敼瑙掕壊鎺ュ彛 + * + * @param sysRoleInte 瑙掕壊鎺ュ彛 + * @return 缁撴灉 + */ + public int updateSysRoleInte(SysRoleInte sysRoleInte); + + /** + * 鎵归噺鍒犻櫎瑙掕壊鎺ュ彛 + * + * @param roleIds 闇�瑕佸垹闄ょ殑瑙掕壊鎺ュ彛涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysRoleInteByRoleIds(Long[] roleIds); + + /** + * 鍒犻櫎瑙掕壊鎺ュ彛淇℃伅 + * + * @param roleId 瑙掕壊鎺ュ彛涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysRoleInteByRoleId(Long roleId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysRoleResService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysRoleResService.java new file mode 100644 index 0000000..ac894be --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysRoleResService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysRoleRes; + +/** + * 瑙掕壊璧勬簮Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysRoleResService +{ + /** + * 鏌ヨ瑙掕壊璧勬簮 + * + * @param roleId 瑙掕壊璧勬簮涓婚敭 + * @return 瑙掕壊璧勬簮 + */ + public SysRoleRes selectSysRoleResByRoleId(Long roleId); + + /** + * 鏌ヨ瑙掕壊璧勬簮鍒楄〃 + * + * @param sysRoleRes 瑙掕壊璧勬簮 + * @return 瑙掕壊璧勬簮闆嗗悎 + */ + public List<SysRoleRes> selectSysRoleResList(SysRoleRes sysRoleRes); + + /** + * 鏂板瑙掕壊璧勬簮 + * + * @param sysRoleRes 瑙掕壊璧勬簮 + * @return 缁撴灉 + */ + public int insertSysRoleRes(SysRoleRes sysRoleRes); + + /** + * 淇敼瑙掕壊璧勬簮 + * + * @param sysRoleRes 瑙掕壊璧勬簮 + * @return 缁撴灉 + */ + public int updateSysRoleRes(SysRoleRes sysRoleRes); + + /** + * 鎵归噺鍒犻櫎瑙掕壊璧勬簮 + * + * @param roleIds 闇�瑕佸垹闄ょ殑瑙掕壊璧勬簮涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysRoleResByRoleIds(Long[] roleIds); + + /** + * 鍒犻櫎瑙掕壊璧勬簮淇℃伅 + * + * @param roleId 瑙掕壊璧勬簮涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysRoleResByRoleId(Long roleId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysSoftService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysSoftService.java new file mode 100644 index 0000000..7fb968a --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysSoftService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysSoft; + +/** + * 杞欢Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysSoftService +{ + /** + * 鏌ヨ杞欢 + * + * @param softId 杞欢涓婚敭 + * @return 杞欢 + */ + public SysSoft selectSysSoftBySoftId(Long softId); + + /** + * 鏌ヨ杞欢鍒楄〃 + * + * @param sysSoft 杞欢 + * @return 杞欢闆嗗悎 + */ + public List<SysSoft> selectSysSoftList(SysSoft sysSoft); + + /** + * 鏂板杞欢 + * + * @param sysSoft 杞欢 + * @return 缁撴灉 + */ + public int insertSysSoft(SysSoft sysSoft); + + /** + * 淇敼杞欢 + * + * @param sysSoft 杞欢 + * @return 缁撴灉 + */ + public int updateSysSoft(SysSoft sysSoft); + + /** + * 鎵归噺鍒犻櫎杞欢 + * + * @param softIds 闇�瑕佸垹闄ょ殑杞欢涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysSoftBySoftIds(Long[] softIds); + + /** + * 鍒犻櫎杞欢淇℃伅 + * + * @param softId 杞欢涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysSoftBySoftId(Long softId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/ISysWarnService.java b/se-modules/se-system/src/main/java/com/se/system/service/ISysWarnService.java new file mode 100644 index 0000000..0650a60 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/ISysWarnService.java @@ -0,0 +1,61 @@ +package com.se.system.service; + +import java.util.List; +import com.se.system.domain.SysWarn; + +/** + * 鍛婅Service鎺ュ彛 + * + * @author se + * @date 2024-11-22 + */ +public interface ISysWarnService +{ + /** + * 鏌ヨ鍛婅 + * + * @param warnId 鍛婅涓婚敭 + * @return 鍛婅 + */ + public SysWarn selectSysWarnByWarnId(Long warnId); + + /** + * 鏌ヨ鍛婅鍒楄〃 + * + * @param sysWarn 鍛婅 + * @return 鍛婅闆嗗悎 + */ + public List<SysWarn> selectSysWarnList(SysWarn sysWarn); + + /** + * 鏂板鍛婅 + * + * @param sysWarn 鍛婅 + * @return 缁撴灉 + */ + public int insertSysWarn(SysWarn sysWarn); + + /** + * 淇敼鍛婅 + * + * @param sysWarn 鍛婅 + * @return 缁撴灉 + */ + public int updateSysWarn(SysWarn sysWarn); + + /** + * 鎵归噺鍒犻櫎鍛婅 + * + * @param warnIds 闇�瑕佸垹闄ょ殑鍛婅涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteSysWarnByWarnIds(Long[] warnIds); + + /** + * 鍒犻櫎鍛婅淇℃伅 + * + * @param warnId 鍛婅涓婚敭 + * @return 缁撴灉 + */ + public int deleteSysWarnByWarnId(Long warnId); +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysCfgServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysCfgServiceImpl.java new file mode 100644 index 0000000..bf436b4 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysCfgServiceImpl.java @@ -0,0 +1,96 @@ +package com.se.system.service.impl; + +import java.util.List; +import com.se.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysCfgMapper; +import com.se.system.domain.SysCfg; +import com.se.system.service.ISysCfgService; + +/** + * 閰嶇疆Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysCfgServiceImpl implements ISysCfgService +{ + @Autowired + private SysCfgMapper sysCfgMapper; + + /** + * 鏌ヨ閰嶇疆 + * + * @param cfgId 閰嶇疆涓婚敭 + * @return 閰嶇疆 + */ + @Override + public SysCfg selectSysCfgByCfgId(Long cfgId) + { + return sysCfgMapper.selectSysCfgByCfgId(cfgId); + } + + /** + * 鏌ヨ閰嶇疆鍒楄〃 + * + * @param sysCfg 閰嶇疆 + * @return 閰嶇疆 + */ + @Override + public List<SysCfg> selectSysCfgList(SysCfg sysCfg) + { + return sysCfgMapper.selectSysCfgList(sysCfg); + } + + /** + * 鏂板閰嶇疆 + * + * @param sysCfg 閰嶇疆 + * @return 缁撴灉 + */ + @Override + public int insertSysCfg(SysCfg sysCfg) + { + sysCfg.setCreateTime(DateUtils.getNowDate()); + return sysCfgMapper.insertSysCfg(sysCfg); + } + + /** + * 淇敼閰嶇疆 + * + * @param sysCfg 閰嶇疆 + * @return 缁撴灉 + */ + @Override + public int updateSysCfg(SysCfg sysCfg) + { + sysCfg.setUpdateTime(DateUtils.getNowDate()); + return sysCfgMapper.updateSysCfg(sysCfg); + } + + /** + * 鎵归噺鍒犻櫎閰嶇疆 + * + * @param cfgIds 闇�瑕佸垹闄ょ殑閰嶇疆涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysCfgByCfgIds(Long[] cfgIds) + { + return sysCfgMapper.deleteSysCfgByCfgIds(cfgIds); + } + + /** + * 鍒犻櫎閰嶇疆淇℃伅 + * + * @param cfgId 閰嶇疆涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysCfgByCfgId(Long cfgId) + { + return sysCfgMapper.deleteSysCfgByCfgId(cfgId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysCtrlLogServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysCtrlLogServiceImpl.java new file mode 100644 index 0000000..acf220a --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysCtrlLogServiceImpl.java @@ -0,0 +1,93 @@ +package com.se.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysCtrlLogMapper; +import com.se.system.domain.SysCtrlLog; +import com.se.system.service.ISysCtrlLogService; + +/** + * 鎺у埗鏃ュ織Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysCtrlLogServiceImpl implements ISysCtrlLogService +{ + @Autowired + private SysCtrlLogMapper sysCtrlLogMapper; + + /** + * 鏌ヨ鎺у埗鏃ュ織 + * + * @param logId 鎺у埗鏃ュ織涓婚敭 + * @return 鎺у埗鏃ュ織 + */ + @Override + public SysCtrlLog selectSysCtrlLogByLogId(Long logId) + { + return sysCtrlLogMapper.selectSysCtrlLogByLogId(logId); + } + + /** + * 鏌ヨ鎺у埗鏃ュ織鍒楄〃 + * + * @param sysCtrlLog 鎺у埗鏃ュ織 + * @return 鎺у埗鏃ュ織 + */ + @Override + public List<SysCtrlLog> selectSysCtrlLogList(SysCtrlLog sysCtrlLog) + { + return sysCtrlLogMapper.selectSysCtrlLogList(sysCtrlLog); + } + + /** + * 鏂板鎺у埗鏃ュ織 + * + * @param sysCtrlLog 鎺у埗鏃ュ織 + * @return 缁撴灉 + */ + @Override + public int insertSysCtrlLog(SysCtrlLog sysCtrlLog) + { + return sysCtrlLogMapper.insertSysCtrlLog(sysCtrlLog); + } + + /** + * 淇敼鎺у埗鏃ュ織 + * + * @param sysCtrlLog 鎺у埗鏃ュ織 + * @return 缁撴灉 + */ + @Override + public int updateSysCtrlLog(SysCtrlLog sysCtrlLog) + { + return sysCtrlLogMapper.updateSysCtrlLog(sysCtrlLog); + } + + /** + * 鎵归噺鍒犻櫎鎺у埗鏃ュ織 + * + * @param logIds 闇�瑕佸垹闄ょ殑鎺у埗鏃ュ織涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysCtrlLogByLogIds(Long[] logIds) + { + return sysCtrlLogMapper.deleteSysCtrlLogByLogIds(logIds); + } + + /** + * 鍒犻櫎鎺у埗鏃ュ織淇℃伅 + * + * @param logId 鎺у埗鏃ュ織涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysCtrlLogByLogId(Long logId) + { + return sysCtrlLogMapper.deleteSysCtrlLogByLogId(logId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysCtrlServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysCtrlServiceImpl.java new file mode 100644 index 0000000..6c59dc7 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysCtrlServiceImpl.java @@ -0,0 +1,96 @@ +package com.se.system.service.impl; + +import java.util.List; +import com.se.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysCtrlMapper; +import com.se.system.domain.SysCtrl; +import com.se.system.service.ISysCtrlService; + +/** + * 鎺у埗Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysCtrlServiceImpl implements ISysCtrlService +{ + @Autowired + private SysCtrlMapper sysCtrlMapper; + + /** + * 鏌ヨ鎺у埗 + * + * @param ctrlId 鎺у埗涓婚敭 + * @return 鎺у埗 + */ + @Override + public SysCtrl selectSysCtrlByCtrlId(Long ctrlId) + { + return sysCtrlMapper.selectSysCtrlByCtrlId(ctrlId); + } + + /** + * 鏌ヨ鎺у埗鍒楄〃 + * + * @param sysCtrl 鎺у埗 + * @return 鎺у埗 + */ + @Override + public List<SysCtrl> selectSysCtrlList(SysCtrl sysCtrl) + { + return sysCtrlMapper.selectSysCtrlList(sysCtrl); + } + + /** + * 鏂板鎺у埗 + * + * @param sysCtrl 鎺у埗 + * @return 缁撴灉 + */ + @Override + public int insertSysCtrl(SysCtrl sysCtrl) + { + sysCtrl.setCreateTime(DateUtils.getNowDate()); + return sysCtrlMapper.insertSysCtrl(sysCtrl); + } + + /** + * 淇敼鎺у埗 + * + * @param sysCtrl 鎺у埗 + * @return 缁撴灉 + */ + @Override + public int updateSysCtrl(SysCtrl sysCtrl) + { + sysCtrl.setUpdateTime(DateUtils.getNowDate()); + return sysCtrlMapper.updateSysCtrl(sysCtrl); + } + + /** + * 鎵归噺鍒犻櫎鎺у埗 + * + * @param ctrlIds 闇�瑕佸垹闄ょ殑鎺у埗涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysCtrlByCtrlIds(Long[] ctrlIds) + { + return sysCtrlMapper.deleteSysCtrlByCtrlIds(ctrlIds); + } + + /** + * 鍒犻櫎鎺у埗淇℃伅 + * + * @param ctrlId 鎺у埗涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysCtrlByCtrlId(Long ctrlId) + { + return sysCtrlMapper.deleteSysCtrlByCtrlId(ctrlId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysHardServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysHardServiceImpl.java new file mode 100644 index 0000000..6be8ed4 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysHardServiceImpl.java @@ -0,0 +1,96 @@ +package com.se.system.service.impl; + +import java.util.List; +import com.se.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysHardMapper; +import com.se.system.domain.SysHard; +import com.se.system.service.ISysHardService; + +/** + * 纭欢Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysHardServiceImpl implements ISysHardService +{ + @Autowired + private SysHardMapper sysHardMapper; + + /** + * 鏌ヨ纭欢 + * + * @param hardId 纭欢涓婚敭 + * @return 纭欢 + */ + @Override + public SysHard selectSysHardByHardId(Long hardId) + { + return sysHardMapper.selectSysHardByHardId(hardId); + } + + /** + * 鏌ヨ纭欢鍒楄〃 + * + * @param sysHard 纭欢 + * @return 纭欢 + */ + @Override + public List<SysHard> selectSysHardList(SysHard sysHard) + { + return sysHardMapper.selectSysHardList(sysHard); + } + + /** + * 鏂板纭欢 + * + * @param sysHard 纭欢 + * @return 缁撴灉 + */ + @Override + public int insertSysHard(SysHard sysHard) + { + sysHard.setCreateTime(DateUtils.getNowDate()); + return sysHardMapper.insertSysHard(sysHard); + } + + /** + * 淇敼纭欢 + * + * @param sysHard 纭欢 + * @return 缁撴灉 + */ + @Override + public int updateSysHard(SysHard sysHard) + { + sysHard.setUpdateTime(DateUtils.getNowDate()); + return sysHardMapper.updateSysHard(sysHard); + } + + /** + * 鎵归噺鍒犻櫎纭欢 + * + * @param hardIds 闇�瑕佸垹闄ょ殑纭欢涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysHardByHardIds(Long[] hardIds) + { + return sysHardMapper.deleteSysHardByHardIds(hardIds); + } + + /** + * 鍒犻櫎纭欢淇℃伅 + * + * @param hardId 纭欢涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysHardByHardId(Long hardId) + { + return sysHardMapper.deleteSysHardByHardId(hardId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysInteServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysInteServiceImpl.java new file mode 100644 index 0000000..c825b8d --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysInteServiceImpl.java @@ -0,0 +1,96 @@ +package com.se.system.service.impl; + +import java.util.List; +import com.se.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysInteMapper; +import com.se.system.domain.SysInte; +import com.se.system.service.ISysInteService; + +/** + * 鎺ュ彛Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysInteServiceImpl implements ISysInteService +{ + @Autowired + private SysInteMapper sysInteMapper; + + /** + * 鏌ヨ鎺ュ彛 + * + * @param inteId 鎺ュ彛涓婚敭 + * @return 鎺ュ彛 + */ + @Override + public SysInte selectSysInteByInteId(Long inteId) + { + return sysInteMapper.selectSysInteByInteId(inteId); + } + + /** + * 鏌ヨ鎺ュ彛鍒楄〃 + * + * @param sysInte 鎺ュ彛 + * @return 鎺ュ彛 + */ + @Override + public List<SysInte> selectSysInteList(SysInte sysInte) + { + return sysInteMapper.selectSysInteList(sysInte); + } + + /** + * 鏂板鎺ュ彛 + * + * @param sysInte 鎺ュ彛 + * @return 缁撴灉 + */ + @Override + public int insertSysInte(SysInte sysInte) + { + sysInte.setCreateTime(DateUtils.getNowDate()); + return sysInteMapper.insertSysInte(sysInte); + } + + /** + * 淇敼鎺ュ彛 + * + * @param sysInte 鎺ュ彛 + * @return 缁撴灉 + */ + @Override + public int updateSysInte(SysInte sysInte) + { + sysInte.setUpdateTime(DateUtils.getNowDate()); + return sysInteMapper.updateSysInte(sysInte); + } + + /** + * 鎵归噺鍒犻櫎鎺ュ彛 + * + * @param inteIds 闇�瑕佸垹闄ょ殑鎺ュ彛涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysInteByInteIds(Long[] inteIds) + { + return sysInteMapper.deleteSysInteByInteIds(inteIds); + } + + /** + * 鍒犻櫎鎺ュ彛淇℃伅 + * + * @param inteId 鎺ュ彛涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysInteByInteId(Long inteId) + { + return sysInteMapper.deleteSysInteByInteId(inteId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysResServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysResServiceImpl.java new file mode 100644 index 0000000..43c80c6 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysResServiceImpl.java @@ -0,0 +1,96 @@ +package com.se.system.service.impl; + +import java.util.List; +import com.se.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysResMapper; +import com.se.system.domain.SysRes; +import com.se.system.service.ISysResService; + +/** + * 璧勬簮Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysResServiceImpl implements ISysResService +{ + @Autowired + private SysResMapper sysResMapper; + + /** + * 鏌ヨ璧勬簮 + * + * @param resId 璧勬簮涓婚敭 + * @return 璧勬簮 + */ + @Override + public SysRes selectSysResByResId(Long resId) + { + return sysResMapper.selectSysResByResId(resId); + } + + /** + * 鏌ヨ璧勬簮鍒楄〃 + * + * @param sysRes 璧勬簮 + * @return 璧勬簮 + */ + @Override + public List<SysRes> selectSysResList(SysRes sysRes) + { + return sysResMapper.selectSysResList(sysRes); + } + + /** + * 鏂板璧勬簮 + * + * @param sysRes 璧勬簮 + * @return 缁撴灉 + */ + @Override + public int insertSysRes(SysRes sysRes) + { + sysRes.setCreateTime(DateUtils.getNowDate()); + return sysResMapper.insertSysRes(sysRes); + } + + /** + * 淇敼璧勬簮 + * + * @param sysRes 璧勬簮 + * @return 缁撴灉 + */ + @Override + public int updateSysRes(SysRes sysRes) + { + sysRes.setUpdateTime(DateUtils.getNowDate()); + return sysResMapper.updateSysRes(sysRes); + } + + /** + * 鎵归噺鍒犻櫎璧勬簮 + * + * @param resIds 闇�瑕佸垹闄ょ殑璧勬簮涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysResByResIds(Long[] resIds) + { + return sysResMapper.deleteSysResByResIds(resIds); + } + + /** + * 鍒犻櫎璧勬簮淇℃伅 + * + * @param resId 璧勬簮涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysResByResId(Long resId) + { + return sysResMapper.deleteSysResByResId(resId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleCtrlServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleCtrlServiceImpl.java new file mode 100644 index 0000000..cd6ea91 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleCtrlServiceImpl.java @@ -0,0 +1,93 @@ +package com.se.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysRoleCtrlMapper; +import com.se.system.domain.SysRoleCtrl; +import com.se.system.service.ISysRoleCtrlService; + +/** + * 瑙掕壊鎺у埗Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysRoleCtrlServiceImpl implements ISysRoleCtrlService +{ + @Autowired + private SysRoleCtrlMapper sysRoleCtrlMapper; + + /** + * 鏌ヨ瑙掕壊鎺у埗 + * + * @param roleId 瑙掕壊鎺у埗涓婚敭 + * @return 瑙掕壊鎺у埗 + */ + @Override + public SysRoleCtrl selectSysRoleCtrlByRoleId(Long roleId) + { + return sysRoleCtrlMapper.selectSysRoleCtrlByRoleId(roleId); + } + + /** + * 鏌ヨ瑙掕壊鎺у埗鍒楄〃 + * + * @param sysRoleCtrl 瑙掕壊鎺у埗 + * @return 瑙掕壊鎺у埗 + */ + @Override + public List<SysRoleCtrl> selectSysRoleCtrlList(SysRoleCtrl sysRoleCtrl) + { + return sysRoleCtrlMapper.selectSysRoleCtrlList(sysRoleCtrl); + } + + /** + * 鏂板瑙掕壊鎺у埗 + * + * @param sysRoleCtrl 瑙掕壊鎺у埗 + * @return 缁撴灉 + */ + @Override + public int insertSysRoleCtrl(SysRoleCtrl sysRoleCtrl) + { + return sysRoleCtrlMapper.insertSysRoleCtrl(sysRoleCtrl); + } + + /** + * 淇敼瑙掕壊鎺у埗 + * + * @param sysRoleCtrl 瑙掕壊鎺у埗 + * @return 缁撴灉 + */ + @Override + public int updateSysRoleCtrl(SysRoleCtrl sysRoleCtrl) + { + return sysRoleCtrlMapper.updateSysRoleCtrl(sysRoleCtrl); + } + + /** + * 鎵归噺鍒犻櫎瑙掕壊鎺у埗 + * + * @param roleIds 闇�瑕佸垹闄ょ殑瑙掕壊鎺у埗涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysRoleCtrlByRoleIds(Long[] roleIds) + { + return sysRoleCtrlMapper.deleteSysRoleCtrlByRoleIds(roleIds); + } + + /** + * 鍒犻櫎瑙掕壊鎺у埗淇℃伅 + * + * @param roleId 瑙掕壊鎺у埗涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysRoleCtrlByRoleId(Long roleId) + { + return sysRoleCtrlMapper.deleteSysRoleCtrlByRoleId(roleId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleInteServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleInteServiceImpl.java new file mode 100644 index 0000000..b70c535 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleInteServiceImpl.java @@ -0,0 +1,93 @@ +package com.se.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysRoleInteMapper; +import com.se.system.domain.SysRoleInte; +import com.se.system.service.ISysRoleInteService; + +/** + * 瑙掕壊鎺ュ彛Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysRoleInteServiceImpl implements ISysRoleInteService +{ + @Autowired + private SysRoleInteMapper sysRoleInteMapper; + + /** + * 鏌ヨ瑙掕壊鎺ュ彛 + * + * @param roleId 瑙掕壊鎺ュ彛涓婚敭 + * @return 瑙掕壊鎺ュ彛 + */ + @Override + public SysRoleInte selectSysRoleInteByRoleId(Long roleId) + { + return sysRoleInteMapper.selectSysRoleInteByRoleId(roleId); + } + + /** + * 鏌ヨ瑙掕壊鎺ュ彛鍒楄〃 + * + * @param sysRoleInte 瑙掕壊鎺ュ彛 + * @return 瑙掕壊鎺ュ彛 + */ + @Override + public List<SysRoleInte> selectSysRoleInteList(SysRoleInte sysRoleInte) + { + return sysRoleInteMapper.selectSysRoleInteList(sysRoleInte); + } + + /** + * 鏂板瑙掕壊鎺ュ彛 + * + * @param sysRoleInte 瑙掕壊鎺ュ彛 + * @return 缁撴灉 + */ + @Override + public int insertSysRoleInte(SysRoleInte sysRoleInte) + { + return sysRoleInteMapper.insertSysRoleInte(sysRoleInte); + } + + /** + * 淇敼瑙掕壊鎺ュ彛 + * + * @param sysRoleInte 瑙掕壊鎺ュ彛 + * @return 缁撴灉 + */ + @Override + public int updateSysRoleInte(SysRoleInte sysRoleInte) + { + return sysRoleInteMapper.updateSysRoleInte(sysRoleInte); + } + + /** + * 鎵归噺鍒犻櫎瑙掕壊鎺ュ彛 + * + * @param roleIds 闇�瑕佸垹闄ょ殑瑙掕壊鎺ュ彛涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysRoleInteByRoleIds(Long[] roleIds) + { + return sysRoleInteMapper.deleteSysRoleInteByRoleIds(roleIds); + } + + /** + * 鍒犻櫎瑙掕壊鎺ュ彛淇℃伅 + * + * @param roleId 瑙掕壊鎺ュ彛涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysRoleInteByRoleId(Long roleId) + { + return sysRoleInteMapper.deleteSysRoleInteByRoleId(roleId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleResServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleResServiceImpl.java new file mode 100644 index 0000000..57a8c1a --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysRoleResServiceImpl.java @@ -0,0 +1,93 @@ +package com.se.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysRoleResMapper; +import com.se.system.domain.SysRoleRes; +import com.se.system.service.ISysRoleResService; + +/** + * 瑙掕壊璧勬簮Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysRoleResServiceImpl implements ISysRoleResService +{ + @Autowired + private SysRoleResMapper sysRoleResMapper; + + /** + * 鏌ヨ瑙掕壊璧勬簮 + * + * @param roleId 瑙掕壊璧勬簮涓婚敭 + * @return 瑙掕壊璧勬簮 + */ + @Override + public SysRoleRes selectSysRoleResByRoleId(Long roleId) + { + return sysRoleResMapper.selectSysRoleResByRoleId(roleId); + } + + /** + * 鏌ヨ瑙掕壊璧勬簮鍒楄〃 + * + * @param sysRoleRes 瑙掕壊璧勬簮 + * @return 瑙掕壊璧勬簮 + */ + @Override + public List<SysRoleRes> selectSysRoleResList(SysRoleRes sysRoleRes) + { + return sysRoleResMapper.selectSysRoleResList(sysRoleRes); + } + + /** + * 鏂板瑙掕壊璧勬簮 + * + * @param sysRoleRes 瑙掕壊璧勬簮 + * @return 缁撴灉 + */ + @Override + public int insertSysRoleRes(SysRoleRes sysRoleRes) + { + return sysRoleResMapper.insertSysRoleRes(sysRoleRes); + } + + /** + * 淇敼瑙掕壊璧勬簮 + * + * @param sysRoleRes 瑙掕壊璧勬簮 + * @return 缁撴灉 + */ + @Override + public int updateSysRoleRes(SysRoleRes sysRoleRes) + { + return sysRoleResMapper.updateSysRoleRes(sysRoleRes); + } + + /** + * 鎵归噺鍒犻櫎瑙掕壊璧勬簮 + * + * @param roleIds 闇�瑕佸垹闄ょ殑瑙掕壊璧勬簮涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysRoleResByRoleIds(Long[] roleIds) + { + return sysRoleResMapper.deleteSysRoleResByRoleIds(roleIds); + } + + /** + * 鍒犻櫎瑙掕壊璧勬簮淇℃伅 + * + * @param roleId 瑙掕壊璧勬簮涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysRoleResByRoleId(Long roleId) + { + return sysRoleResMapper.deleteSysRoleResByRoleId(roleId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysSoftServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysSoftServiceImpl.java new file mode 100644 index 0000000..3d9271b --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysSoftServiceImpl.java @@ -0,0 +1,96 @@ +package com.se.system.service.impl; + +import java.util.List; +import com.se.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysSoftMapper; +import com.se.system.domain.SysSoft; +import com.se.system.service.ISysSoftService; + +/** + * 杞欢Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysSoftServiceImpl implements ISysSoftService +{ + @Autowired + private SysSoftMapper sysSoftMapper; + + /** + * 鏌ヨ杞欢 + * + * @param softId 杞欢涓婚敭 + * @return 杞欢 + */ + @Override + public SysSoft selectSysSoftBySoftId(Long softId) + { + return sysSoftMapper.selectSysSoftBySoftId(softId); + } + + /** + * 鏌ヨ杞欢鍒楄〃 + * + * @param sysSoft 杞欢 + * @return 杞欢 + */ + @Override + public List<SysSoft> selectSysSoftList(SysSoft sysSoft) + { + return sysSoftMapper.selectSysSoftList(sysSoft); + } + + /** + * 鏂板杞欢 + * + * @param sysSoft 杞欢 + * @return 缁撴灉 + */ + @Override + public int insertSysSoft(SysSoft sysSoft) + { + sysSoft.setCreateTime(DateUtils.getNowDate()); + return sysSoftMapper.insertSysSoft(sysSoft); + } + + /** + * 淇敼杞欢 + * + * @param sysSoft 杞欢 + * @return 缁撴灉 + */ + @Override + public int updateSysSoft(SysSoft sysSoft) + { + sysSoft.setUpdateTime(DateUtils.getNowDate()); + return sysSoftMapper.updateSysSoft(sysSoft); + } + + /** + * 鎵归噺鍒犻櫎杞欢 + * + * @param softIds 闇�瑕佸垹闄ょ殑杞欢涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysSoftBySoftIds(Long[] softIds) + { + return sysSoftMapper.deleteSysSoftBySoftIds(softIds); + } + + /** + * 鍒犻櫎杞欢淇℃伅 + * + * @param softId 杞欢涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysSoftBySoftId(Long softId) + { + return sysSoftMapper.deleteSysSoftBySoftId(softId); + } +} diff --git a/se-modules/se-system/src/main/java/com/se/system/service/impl/SysWarnServiceImpl.java b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysWarnServiceImpl.java new file mode 100644 index 0000000..c574169 --- /dev/null +++ b/se-modules/se-system/src/main/java/com/se/system/service/impl/SysWarnServiceImpl.java @@ -0,0 +1,96 @@ +package com.se.system.service.impl; + +import java.util.List; +import com.se.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.se.system.mapper.SysWarnMapper; +import com.se.system.domain.SysWarn; +import com.se.system.service.ISysWarnService; + +/** + * 鍛婅Service涓氬姟灞傚鐞� + * + * @author se + * @date 2024-11-22 + */ +@Service +public class SysWarnServiceImpl implements ISysWarnService +{ + @Autowired + private SysWarnMapper sysWarnMapper; + + /** + * 鏌ヨ鍛婅 + * + * @param warnId 鍛婅涓婚敭 + * @return 鍛婅 + */ + @Override + public SysWarn selectSysWarnByWarnId(Long warnId) + { + return sysWarnMapper.selectSysWarnByWarnId(warnId); + } + + /** + * 鏌ヨ鍛婅鍒楄〃 + * + * @param sysWarn 鍛婅 + * @return 鍛婅 + */ + @Override + public List<SysWarn> selectSysWarnList(SysWarn sysWarn) + { + return sysWarnMapper.selectSysWarnList(sysWarn); + } + + /** + * 鏂板鍛婅 + * + * @param sysWarn 鍛婅 + * @return 缁撴灉 + */ + @Override + public int insertSysWarn(SysWarn sysWarn) + { + sysWarn.setCreateTime(DateUtils.getNowDate()); + return sysWarnMapper.insertSysWarn(sysWarn); + } + + /** + * 淇敼鍛婅 + * + * @param sysWarn 鍛婅 + * @return 缁撴灉 + */ + @Override + public int updateSysWarn(SysWarn sysWarn) + { + sysWarn.setUpdateTime(DateUtils.getNowDate()); + return sysWarnMapper.updateSysWarn(sysWarn); + } + + /** + * 鎵归噺鍒犻櫎鍛婅 + * + * @param warnIds 闇�瑕佸垹闄ょ殑鍛婅涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysWarnByWarnIds(Long[] warnIds) + { + return sysWarnMapper.deleteSysWarnByWarnIds(warnIds); + } + + /** + * 鍒犻櫎鍛婅淇℃伅 + * + * @param warnId 鍛婅涓婚敭 + * @return 缁撴灉 + */ + @Override + public int deleteSysWarnByWarnId(Long warnId) + { + return sysWarnMapper.deleteSysWarnByWarnId(warnId); + } +} diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysCfgMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysCfgMapper.xml new file mode 100644 index 0000000..d2197c4 --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysCfgMapper.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysCfgMapper"> + + <resultMap type="SysCfg" id="SysCfgResult"> + <result property="cfgId" column="cfg_id" /> + <result property="name" column="name" /> + <result property="hard" column="hard" /> + <result property="soft" column="soft" /> + <result property="args" column="args" /> + <result property="status" column="status" /> + <result property="createBy" column="create_by" /> + <result property="createTime" column="create_time" /> + <result property="updateBy" column="update_by" /> + <result property="updateTime" column="update_time" /> + <result property="remark" column="remark" /> + </resultMap> + + <sql id="selectSysCfgVo"> + select cfg_id, name, hard, soft, args, status, create_by, create_time, update_by, update_time, remark from sys_cfg + </sql> + + <select id="selectSysCfgList" parameterType="SysCfg" resultMap="SysCfgResult"> + <include refid="selectSysCfgVo"/> + <where> + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> + <if test="hard != null and hard != ''"> and hard = #{hard}</if> + <if test="soft != null and soft != ''"> and soft = #{soft}</if> + <if test="args != null and args != ''"> and args = #{args}</if> + <if test="status != null and status != ''"> and status = #{status}</if> + </where> + </select> + + <select id="selectSysCfgByCfgId" parameterType="Long" resultMap="SysCfgResult"> + <include refid="selectSysCfgVo"/> + where cfg_id = #{cfgId} + </select> + + <insert id="insertSysCfg" parameterType="SysCfg" useGeneratedKeys="true" keyProperty="cfgId"> + insert into sys_cfg + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">name,</if> + <if test="hard != null">hard,</if> + <if test="soft != null">soft,</if> + <if test="args != null">args,</if> + <if test="status != null">status,</if> + <if test="createBy != null">create_by,</if> + <if test="createTime != null">create_time,</if> + <if test="updateBy != null">update_by,</if> + <if test="updateTime != null">update_time,</if> + <if test="remark != null">remark,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">#{name},</if> + <if test="hard != null">#{hard},</if> + <if test="soft != null">#{soft},</if> + <if test="args != null">#{args},</if> + <if test="status != null">#{status},</if> + <if test="createBy != null">#{createBy},</if> + <if test="createTime != null">#{createTime},</if> + <if test="updateBy != null">#{updateBy},</if> + <if test="updateTime != null">#{updateTime},</if> + <if test="remark != null">#{remark},</if> + </trim> + </insert> + + <update id="updateSysCfg" parameterType="SysCfg"> + update sys_cfg + <trim prefix="SET" suffixOverrides=","> + <if test="name != null and name != ''">name = #{name},</if> + <if test="hard != null">hard = #{hard},</if> + <if test="soft != null">soft = #{soft},</if> + <if test="args != null">args = #{args},</if> + <if test="status != null">status = #{status},</if> + <if test="createBy != null">create_by = #{createBy},</if> + <if test="createTime != null">create_time = #{createTime},</if> + <if test="updateBy != null">update_by = #{updateBy},</if> + <if test="updateTime != null">update_time = #{updateTime},</if> + <if test="remark != null">remark = #{remark},</if> + </trim> + where cfg_id = #{cfgId} + </update> + + <delete id="deleteSysCfgByCfgId" parameterType="Long"> + delete from sys_cfg where cfg_id = #{cfgId} + </delete> + + <delete id="deleteSysCfgByCfgIds" parameterType="String"> + delete from sys_cfg where cfg_id in + <foreach item="cfgId" collection="array" open="(" separator="," close=")"> + #{cfgId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysCtrlLogMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysCtrlLogMapper.xml new file mode 100644 index 0000000..8a9e2e2 --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysCtrlLogMapper.xml @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysCtrlLogMapper"> + + <resultMap type="SysCtrlLog" id="SysCtrlLogResult"> + <result property="logId" column="log_id" /> + <result property="title" column="title" /> + <result property="type" column="type" /> + <result property="ip" column="ip" /> + <result property="url" column="url" /> + <result property="method" column="method" /> + <result property="args" column="args" /> + <result property="msg" column="msg" /> + <result property="oper" column="oper" /> + <result property="time" column="time" /> + <result property="remark" column="remark" /> + </resultMap> + + <sql id="selectSysCtrlLogVo"> + select log_id, title, type, ip, url, method, args, msg, oper, time, remark from sys_ctrl_log + </sql> + + <select id="selectSysCtrlLogList" parameterType="SysCtrlLog" resultMap="SysCtrlLogResult"> + <include refid="selectSysCtrlLogVo"/> + <where> + <if test="title != null and title != ''"> and title = #{title}</if> + <if test="type != null and type != ''"> and type = #{type}</if> + <if test="ip != null and ip != ''"> and ip = #{ip}</if> + <if test="url != null and url != ''"> and url = #{url}</if> + <if test="method != null and method != ''"> and method = #{method}</if> + <if test="args != null and args != ''"> and args = #{args}</if> + <if test="msg != null and msg != ''"> and msg = #{msg}</if> + <if test="oper != null and oper != ''"> and oper = #{oper}</if> + <if test="time != null "> and time = #{time}</if> + </where> + </select> + + <select id="selectSysCtrlLogByLogId" parameterType="Long" resultMap="SysCtrlLogResult"> + <include refid="selectSysCtrlLogVo"/> + where log_id = #{logId} + </select> + + <insert id="insertSysCtrlLog" parameterType="SysCtrlLog" useGeneratedKeys="true" keyProperty="logId"> + insert into sys_ctrl_log + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="title != null and title != ''">title,</if> + <if test="type != null">type,</if> + <if test="ip != null">ip,</if> + <if test="url != null">url,</if> + <if test="method != null">method,</if> + <if test="args != null">args,</if> + <if test="msg != null">msg,</if> + <if test="oper != null">oper,</if> + <if test="time != null">time,</if> + <if test="remark != null">remark,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="title != null and title != ''">#{title},</if> + <if test="type != null">#{type},</if> + <if test="ip != null">#{ip},</if> + <if test="url != null">#{url},</if> + <if test="method != null">#{method},</if> + <if test="args != null">#{args},</if> + <if test="msg != null">#{msg},</if> + <if test="oper != null">#{oper},</if> + <if test="time != null">#{time},</if> + <if test="remark != null">#{remark},</if> + </trim> + </insert> + + <update id="updateSysCtrlLog" parameterType="SysCtrlLog"> + update sys_ctrl_log + <trim prefix="SET" suffixOverrides=","> + <if test="title != null and title != ''">title = #{title},</if> + <if test="type != null">type = #{type},</if> + <if test="ip != null">ip = #{ip},</if> + <if test="url != null">url = #{url},</if> + <if test="method != null">method = #{method},</if> + <if test="args != null">args = #{args},</if> + <if test="msg != null">msg = #{msg},</if> + <if test="oper != null">oper = #{oper},</if> + <if test="time != null">time = #{time},</if> + <if test="remark != null">remark = #{remark},</if> + </trim> + where log_id = #{logId} + </update> + + <delete id="deleteSysCtrlLogByLogId" parameterType="Long"> + delete from sys_ctrl_log where log_id = #{logId} + </delete> + + <delete id="deleteSysCtrlLogByLogIds" parameterType="String"> + delete from sys_ctrl_log where log_id in + <foreach item="logId" collection="array" open="(" separator="," close=")"> + #{logId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysCtrlMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysCtrlMapper.xml new file mode 100644 index 0000000..05d19b4 --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysCtrlMapper.xml @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysCtrlMapper"> + + <resultMap type="SysCtrl" id="SysCtrlResult"> + <result property="ctrlId" column="ctrl_id" /> + <result property="name" column="name" /> + <result property="type" column="type" /> + <result property="descr" column="descr" /> + <result property="data" column="data" /> + <result property="args" column="args" /> + <result property="status" column="status" /> + <result property="createBy" column="create_by" /> + <result property="createTime" column="create_time" /> + <result property="updateBy" column="update_by" /> + <result property="updateTime" column="update_time" /> + <result property="remark" column="remark" /> + </resultMap> + + <sql id="selectSysCtrlVo"> + select ctrl_id, name, type, descr, data, args, status, create_by, create_time, update_by, update_time, remark from sys_ctrl + </sql> + + <select id="selectSysCtrlList" parameterType="SysCtrl" resultMap="SysCtrlResult"> + <include refid="selectSysCtrlVo"/> + <where> + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> + <if test="type != null and type != ''"> and type = #{type}</if> + <if test="descr != null and descr != ''"> and descr = #{descr}</if> + <if test="data != null and data != ''"> and data = #{data}</if> + <if test="args != null and args != ''"> and args = #{args}</if> + <if test="status != null and status != ''"> and status = #{status}</if> + </where> + </select> + + <select id="selectSysCtrlByCtrlId" parameterType="Long" resultMap="SysCtrlResult"> + <include refid="selectSysCtrlVo"/> + where ctrl_id = #{ctrlId} + </select> + + <insert id="insertSysCtrl" parameterType="SysCtrl" useGeneratedKeys="true" keyProperty="ctrlId"> + insert into sys_ctrl + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">name,</if> + <if test="type != null">type,</if> + <if test="descr != null">descr,</if> + <if test="data != null">data,</if> + <if test="args != null">args,</if> + <if test="status != null">status,</if> + <if test="createBy != null">create_by,</if> + <if test="createTime != null">create_time,</if> + <if test="updateBy != null">update_by,</if> + <if test="updateTime != null">update_time,</if> + <if test="remark != null">remark,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">#{name},</if> + <if test="type != null">#{type},</if> + <if test="descr != null">#{descr},</if> + <if test="data != null">#{data},</if> + <if test="args != null">#{args},</if> + <if test="status != null">#{status},</if> + <if test="createBy != null">#{createBy},</if> + <if test="createTime != null">#{createTime},</if> + <if test="updateBy != null">#{updateBy},</if> + <if test="updateTime != null">#{updateTime},</if> + <if test="remark != null">#{remark},</if> + </trim> + </insert> + + <update id="updateSysCtrl" parameterType="SysCtrl"> + update sys_ctrl + <trim prefix="SET" suffixOverrides=","> + <if test="name != null and name != ''">name = #{name},</if> + <if test="type != null">type = #{type},</if> + <if test="descr != null">descr = #{descr},</if> + <if test="data != null">data = #{data},</if> + <if test="args != null">args = #{args},</if> + <if test="status != null">status = #{status},</if> + <if test="createBy != null">create_by = #{createBy},</if> + <if test="createTime != null">create_time = #{createTime},</if> + <if test="updateBy != null">update_by = #{updateBy},</if> + <if test="updateTime != null">update_time = #{updateTime},</if> + <if test="remark != null">remark = #{remark},</if> + </trim> + where ctrl_id = #{ctrlId} + </update> + + <delete id="deleteSysCtrlByCtrlId" parameterType="Long"> + delete from sys_ctrl where ctrl_id = #{ctrlId} + </delete> + + <delete id="deleteSysCtrlByCtrlIds" parameterType="String"> + delete from sys_ctrl where ctrl_id in + <foreach item="ctrlId" collection="array" open="(" separator="," close=")"> + #{ctrlId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysHardMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysHardMapper.xml new file mode 100644 index 0000000..42f490c --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysHardMapper.xml @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysHardMapper"> + + <resultMap type="SysHard" id="SysHardResult"> + <result property="hardId" column="hard_id" /> + <result property="name" column="name" /> + <result property="cpu" column="cpu" /> + <result property="mem" column="mem" /> + <result property="disk" column="disk" /> + <result property="net" column="net" /> + <result property="descr" column="descr" /> + <result property="args" column="args" /> + <result property="status" column="status" /> + <result property="createBy" column="create_by" /> + <result property="createTime" column="create_time" /> + <result property="updateBy" column="update_by" /> + <result property="updateTime" column="update_time" /> + <result property="remark" column="remark" /> + </resultMap> + + <sql id="selectSysHardVo"> + select hard_id, name, cpu, mem, disk, net, descr, args, status, create_by, create_time, update_by, update_time, remark from sys_hard + </sql> + + <select id="selectSysHardList" parameterType="SysHard" resultMap="SysHardResult"> + <include refid="selectSysHardVo"/> + <where> + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> + <if test="cpu != null and cpu != ''"> and cpu = #{cpu}</if> + <if test="mem != null and mem != ''"> and mem = #{mem}</if> + <if test="disk != null and disk != ''"> and disk = #{disk}</if> + <if test="net != null and net != ''"> and net = #{net}</if> + <if test="descr != null and descr != ''"> and descr = #{descr}</if> + <if test="args != null and args != ''"> and args = #{args}</if> + <if test="status != null and status != ''"> and status = #{status}</if> + </where> + </select> + + <select id="selectSysHardByHardId" parameterType="Long" resultMap="SysHardResult"> + <include refid="selectSysHardVo"/> + where hard_id = #{hardId} + </select> + + <insert id="insertSysHard" parameterType="SysHard" useGeneratedKeys="true" keyProperty="hardId"> + insert into sys_hard + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">name,</if> + <if test="cpu != null">cpu,</if> + <if test="mem != null">mem,</if> + <if test="disk != null">disk,</if> + <if test="net != null">net,</if> + <if test="descr != null">descr,</if> + <if test="args != null">args,</if> + <if test="status != null">status,</if> + <if test="createBy != null">create_by,</if> + <if test="createTime != null">create_time,</if> + <if test="updateBy != null">update_by,</if> + <if test="updateTime != null">update_time,</if> + <if test="remark != null">remark,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">#{name},</if> + <if test="cpu != null">#{cpu},</if> + <if test="mem != null">#{mem},</if> + <if test="disk != null">#{disk},</if> + <if test="net != null">#{net},</if> + <if test="descr != null">#{descr},</if> + <if test="args != null">#{args},</if> + <if test="status != null">#{status},</if> + <if test="createBy != null">#{createBy},</if> + <if test="createTime != null">#{createTime},</if> + <if test="updateBy != null">#{updateBy},</if> + <if test="updateTime != null">#{updateTime},</if> + <if test="remark != null">#{remark},</if> + </trim> + </insert> + + <update id="updateSysHard" parameterType="SysHard"> + update sys_hard + <trim prefix="SET" suffixOverrides=","> + <if test="name != null and name != ''">name = #{name},</if> + <if test="cpu != null">cpu = #{cpu},</if> + <if test="mem != null">mem = #{mem},</if> + <if test="disk != null">disk = #{disk},</if> + <if test="net != null">net = #{net},</if> + <if test="descr != null">descr = #{descr},</if> + <if test="args != null">args = #{args},</if> + <if test="status != null">status = #{status},</if> + <if test="createBy != null">create_by = #{createBy},</if> + <if test="createTime != null">create_time = #{createTime},</if> + <if test="updateBy != null">update_by = #{updateBy},</if> + <if test="updateTime != null">update_time = #{updateTime},</if> + <if test="remark != null">remark = #{remark},</if> + </trim> + where hard_id = #{hardId} + </update> + + <delete id="deleteSysHardByHardId" parameterType="Long"> + delete from sys_hard where hard_id = #{hardId} + </delete> + + <delete id="deleteSysHardByHardIds" parameterType="String"> + delete from sys_hard where hard_id in + <foreach item="hardId" collection="array" open="(" separator="," close=")"> + #{hardId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysInteMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysInteMapper.xml new file mode 100644 index 0000000..18206dd --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysInteMapper.xml @@ -0,0 +1,106 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysInteMapper"> + + <resultMap type="SysInte" id="SysInteResult"> + <result property="inteId" column="inte_id" /> + <result property="name" column="name" /> + <result property="type" column="type" /> + <result property="descr" column="descr" /> + <result property="url" column="url" /> + <result property="data" column="data" /> + <result property="args" column="args" /> + <result property="status" column="status" /> + <result property="createBy" column="create_by" /> + <result property="createTime" column="create_time" /> + <result property="updateBy" column="update_by" /> + <result property="updateTime" column="update_time" /> + <result property="remark" column="remark" /> + </resultMap> + + <sql id="selectSysInteVo"> + select inte_id, name, type, descr, url, data, args, status, create_by, create_time, update_by, update_time, remark from sys_inte + </sql> + + <select id="selectSysInteList" parameterType="SysInte" resultMap="SysInteResult"> + <include refid="selectSysInteVo"/> + <where> + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> + <if test="type != null and type != ''"> and type = #{type}</if> + <if test="descr != null and descr != ''"> and descr = #{descr}</if> + <if test="url != null and url != ''"> and url = #{url}</if> + <if test="data != null and data != ''"> and data = #{data}</if> + <if test="args != null and args != ''"> and args = #{args}</if> + <if test="status != null and status != ''"> and status = #{status}</if> + </where> + </select> + + <select id="selectSysInteByInteId" parameterType="Long" resultMap="SysInteResult"> + <include refid="selectSysInteVo"/> + where inte_id = #{inteId} + </select> + + <insert id="insertSysInte" parameterType="SysInte" useGeneratedKeys="true" keyProperty="inteId"> + insert into sys_inte + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">name,</if> + <if test="type != null">type,</if> + <if test="descr != null">descr,</if> + <if test="url != null">url,</if> + <if test="data != null">data,</if> + <if test="args != null">args,</if> + <if test="status != null">status,</if> + <if test="createBy != null">create_by,</if> + <if test="createTime != null">create_time,</if> + <if test="updateBy != null">update_by,</if> + <if test="updateTime != null">update_time,</if> + <if test="remark != null">remark,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">#{name},</if> + <if test="type != null">#{type},</if> + <if test="descr != null">#{descr},</if> + <if test="url != null">#{url},</if> + <if test="data != null">#{data},</if> + <if test="args != null">#{args},</if> + <if test="status != null">#{status},</if> + <if test="createBy != null">#{createBy},</if> + <if test="createTime != null">#{createTime},</if> + <if test="updateBy != null">#{updateBy},</if> + <if test="updateTime != null">#{updateTime},</if> + <if test="remark != null">#{remark},</if> + </trim> + </insert> + + <update id="updateSysInte" parameterType="SysInte"> + update sys_inte + <trim prefix="SET" suffixOverrides=","> + <if test="name != null and name != ''">name = #{name},</if> + <if test="type != null">type = #{type},</if> + <if test="descr != null">descr = #{descr},</if> + <if test="url != null">url = #{url},</if> + <if test="data != null">data = #{data},</if> + <if test="args != null">args = #{args},</if> + <if test="status != null">status = #{status},</if> + <if test="createBy != null">create_by = #{createBy},</if> + <if test="createTime != null">create_time = #{createTime},</if> + <if test="updateBy != null">update_by = #{updateBy},</if> + <if test="updateTime != null">update_time = #{updateTime},</if> + <if test="remark != null">remark = #{remark},</if> + </trim> + where inte_id = #{inteId} + </update> + + <delete id="deleteSysInteByInteId" parameterType="Long"> + delete from sys_inte where inte_id = #{inteId} + </delete> + + <delete id="deleteSysInteByInteIds" parameterType="String"> + delete from sys_inte where inte_id in + <foreach item="inteId" collection="array" open="(" separator="," close=")"> + #{inteId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysResMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysResMapper.xml new file mode 100644 index 0000000..33587fc --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysResMapper.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysResMapper"> + + <resultMap type="SysRes" id="SysResResult"> + <result property="resId" column="res_id" /> + <result property="name" column="name" /> + <result property="type" column="type" /> + <result property="descr" column="descr" /> + <result property="args" column="args" /> + <result property="status" column="status" /> + <result property="createBy" column="create_by" /> + <result property="createTime" column="create_time" /> + <result property="updateBy" column="update_by" /> + <result property="updateTime" column="update_time" /> + <result property="remark" column="remark" /> + </resultMap> + + <sql id="selectSysResVo"> + select res_id, name, type, descr, args, status, create_by, create_time, update_by, update_time, remark from sys_res + </sql> + + <select id="selectSysResList" parameterType="SysRes" resultMap="SysResResult"> + <include refid="selectSysResVo"/> + <where> + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> + <if test="type != null and type != ''"> and type = #{type}</if> + <if test="descr != null and descr != ''"> and descr = #{descr}</if> + <if test="args != null and args != ''"> and args = #{args}</if> + <if test="status != null and status != ''"> and status = #{status}</if> + </where> + </select> + + <select id="selectSysResByResId" parameterType="Long" resultMap="SysResResult"> + <include refid="selectSysResVo"/> + where res_id = #{resId} + </select> + + <insert id="insertSysRes" parameterType="SysRes" useGeneratedKeys="true" keyProperty="resId"> + insert into sys_res + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">name,</if> + <if test="type != null">type,</if> + <if test="descr != null">descr,</if> + <if test="args != null">args,</if> + <if test="status != null">status,</if> + <if test="createBy != null">create_by,</if> + <if test="createTime != null">create_time,</if> + <if test="updateBy != null">update_by,</if> + <if test="updateTime != null">update_time,</if> + <if test="remark != null">remark,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">#{name},</if> + <if test="type != null">#{type},</if> + <if test="descr != null">#{descr},</if> + <if test="args != null">#{args},</if> + <if test="status != null">#{status},</if> + <if test="createBy != null">#{createBy},</if> + <if test="createTime != null">#{createTime},</if> + <if test="updateBy != null">#{updateBy},</if> + <if test="updateTime != null">#{updateTime},</if> + <if test="remark != null">#{remark},</if> + </trim> + </insert> + + <update id="updateSysRes" parameterType="SysRes"> + update sys_res + <trim prefix="SET" suffixOverrides=","> + <if test="name != null and name != ''">name = #{name},</if> + <if test="type != null">type = #{type},</if> + <if test="descr != null">descr = #{descr},</if> + <if test="args != null">args = #{args},</if> + <if test="status != null">status = #{status},</if> + <if test="createBy != null">create_by = #{createBy},</if> + <if test="createTime != null">create_time = #{createTime},</if> + <if test="updateBy != null">update_by = #{updateBy},</if> + <if test="updateTime != null">update_time = #{updateTime},</if> + <if test="remark != null">remark = #{remark},</if> + </trim> + where res_id = #{resId} + </update> + + <delete id="deleteSysResByResId" parameterType="Long"> + delete from sys_res where res_id = #{resId} + </delete> + + <delete id="deleteSysResByResIds" parameterType="String"> + delete from sys_res where res_id in + <foreach item="resId" collection="array" open="(" separator="," close=")"> + #{resId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysRoleCtrlMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysRoleCtrlMapper.xml new file mode 100644 index 0000000..ad0aa0e --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysRoleCtrlMapper.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysRoleCtrlMapper"> + + <resultMap type="SysRoleCtrl" id="SysRoleCtrlResult"> + <result property="roleId" column="role_id" /> + <result property="ctrlId" column="ctrl_id" /> + </resultMap> + + <sql id="selectSysRoleCtrlVo"> + select role_id, ctrl_id from sys_role_ctrl + </sql> + + <select id="selectSysRoleCtrlList" parameterType="SysRoleCtrl" resultMap="SysRoleCtrlResult"> + <include refid="selectSysRoleCtrlVo"/> + <where> + </where> + </select> + + <select id="selectSysRoleCtrlByRoleId" parameterType="Long" resultMap="SysRoleCtrlResult"> + <include refid="selectSysRoleCtrlVo"/> + where role_id = #{roleId} + </select> + + <insert id="insertSysRoleCtrl" parameterType="SysRoleCtrl"> + insert into sys_role_ctrl + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="roleId != null">role_id,</if> + <if test="ctrlId != null">ctrl_id,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="roleId != null">#{roleId},</if> + <if test="ctrlId != null">#{ctrlId},</if> + </trim> + </insert> + + <update id="updateSysRoleCtrl" parameterType="SysRoleCtrl"> + update sys_role_ctrl + <trim prefix="SET" suffixOverrides=","> + <if test="ctrlId != null">ctrl_id = #{ctrlId},</if> + </trim> + where role_id = #{roleId} + </update> + + <delete id="deleteSysRoleCtrlByRoleId" parameterType="Long"> + delete from sys_role_ctrl where role_id = #{roleId} + </delete> + + <delete id="deleteSysRoleCtrlByRoleIds" parameterType="String"> + delete from sys_role_ctrl where role_id in + <foreach item="roleId" collection="array" open="(" separator="," close=")"> + #{roleId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysRoleInteMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysRoleInteMapper.xml new file mode 100644 index 0000000..8bbb9fb --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysRoleInteMapper.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysRoleInteMapper"> + + <resultMap type="SysRoleInte" id="SysRoleInteResult"> + <result property="roleId" column="role_id" /> + <result property="inteId" column="inte_id" /> + </resultMap> + + <sql id="selectSysRoleInteVo"> + select role_id, inte_id from sys_role_inte + </sql> + + <select id="selectSysRoleInteList" parameterType="SysRoleInte" resultMap="SysRoleInteResult"> + <include refid="selectSysRoleInteVo"/> + <where> + </where> + </select> + + <select id="selectSysRoleInteByRoleId" parameterType="Long" resultMap="SysRoleInteResult"> + <include refid="selectSysRoleInteVo"/> + where role_id = #{roleId} + </select> + + <insert id="insertSysRoleInte" parameterType="SysRoleInte"> + insert into sys_role_inte + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="roleId != null">role_id,</if> + <if test="inteId != null">inte_id,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="roleId != null">#{roleId},</if> + <if test="inteId != null">#{inteId},</if> + </trim> + </insert> + + <update id="updateSysRoleInte" parameterType="SysRoleInte"> + update sys_role_inte + <trim prefix="SET" suffixOverrides=","> + <if test="inteId != null">inte_id = #{inteId},</if> + </trim> + where role_id = #{roleId} + </update> + + <delete id="deleteSysRoleInteByRoleId" parameterType="Long"> + delete from sys_role_inte where role_id = #{roleId} + </delete> + + <delete id="deleteSysRoleInteByRoleIds" parameterType="String"> + delete from sys_role_inte where role_id in + <foreach item="roleId" collection="array" open="(" separator="," close=")"> + #{roleId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysRoleResMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysRoleResMapper.xml new file mode 100644 index 0000000..72b08c7 --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysRoleResMapper.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysRoleResMapper"> + + <resultMap type="SysRoleRes" id="SysRoleResResult"> + <result property="roleId" column="role_id" /> + <result property="resId" column="res_id" /> + </resultMap> + + <sql id="selectSysRoleResVo"> + select role_id, res_id from sys_role_res + </sql> + + <select id="selectSysRoleResList" parameterType="SysRoleRes" resultMap="SysRoleResResult"> + <include refid="selectSysRoleResVo"/> + <where> + </where> + </select> + + <select id="selectSysRoleResByRoleId" parameterType="Long" resultMap="SysRoleResResult"> + <include refid="selectSysRoleResVo"/> + where role_id = #{roleId} + </select> + + <insert id="insertSysRoleRes" parameterType="SysRoleRes"> + insert into sys_role_res + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="roleId != null">role_id,</if> + <if test="resId != null">res_id,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="roleId != null">#{roleId},</if> + <if test="resId != null">#{resId},</if> + </trim> + </insert> + + <update id="updateSysRoleRes" parameterType="SysRoleRes"> + update sys_role_res + <trim prefix="SET" suffixOverrides=","> + <if test="resId != null">res_id = #{resId},</if> + </trim> + where role_id = #{roleId} + </update> + + <delete id="deleteSysRoleResByRoleId" parameterType="Long"> + delete from sys_role_res where role_id = #{roleId} + </delete> + + <delete id="deleteSysRoleResByRoleIds" parameterType="String"> + delete from sys_role_res where role_id in + <foreach item="roleId" collection="array" open="(" separator="," close=")"> + #{roleId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysSoftMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysSoftMapper.xml new file mode 100644 index 0000000..8a18aca --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysSoftMapper.xml @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysSoftMapper"> + + <resultMap type="SysSoft" id="SysSoftResult"> + <result property="softId" column="soft_id" /> + <result property="name" column="name" /> + <result property="type" column="type" /> + <result property="lic" column="lic" /> + <result property="descr" column="descr" /> + <result property="args" column="args" /> + <result property="status" column="status" /> + <result property="createBy" column="create_by" /> + <result property="createTime" column="create_time" /> + <result property="updateBy" column="update_by" /> + <result property="updateTime" column="update_time" /> + <result property="remark" column="remark" /> + </resultMap> + + <sql id="selectSysSoftVo"> + select soft_id, name, type, lic, descr, args, status, create_by, create_time, update_by, update_time, remark from sys_soft + </sql> + + <select id="selectSysSoftList" parameterType="SysSoft" resultMap="SysSoftResult"> + <include refid="selectSysSoftVo"/> + <where> + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> + <if test="type != null and type != ''"> and type = #{type}</if> + <if test="lic != null and lic != ''"> and lic = #{lic}</if> + <if test="descr != null and descr != ''"> and descr = #{descr}</if> + <if test="args != null and args != ''"> and args = #{args}</if> + <if test="status != null and status != ''"> and status = #{status}</if> + </where> + </select> + + <select id="selectSysSoftBySoftId" parameterType="Long" resultMap="SysSoftResult"> + <include refid="selectSysSoftVo"/> + where soft_id = #{softId} + </select> + + <insert id="insertSysSoft" parameterType="SysSoft" useGeneratedKeys="true" keyProperty="softId"> + insert into sys_soft + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">name,</if> + <if test="type != null">type,</if> + <if test="lic != null">lic,</if> + <if test="descr != null">descr,</if> + <if test="args != null">args,</if> + <if test="status != null">status,</if> + <if test="createBy != null">create_by,</if> + <if test="createTime != null">create_time,</if> + <if test="updateBy != null">update_by,</if> + <if test="updateTime != null">update_time,</if> + <if test="remark != null">remark,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">#{name},</if> + <if test="type != null">#{type},</if> + <if test="lic != null">#{lic},</if> + <if test="descr != null">#{descr},</if> + <if test="args != null">#{args},</if> + <if test="status != null">#{status},</if> + <if test="createBy != null">#{createBy},</if> + <if test="createTime != null">#{createTime},</if> + <if test="updateBy != null">#{updateBy},</if> + <if test="updateTime != null">#{updateTime},</if> + <if test="remark != null">#{remark},</if> + </trim> + </insert> + + <update id="updateSysSoft" parameterType="SysSoft"> + update sys_soft + <trim prefix="SET" suffixOverrides=","> + <if test="name != null and name != ''">name = #{name},</if> + <if test="type != null">type = #{type},</if> + <if test="lic != null">lic = #{lic},</if> + <if test="descr != null">descr = #{descr},</if> + <if test="args != null">args = #{args},</if> + <if test="status != null">status = #{status},</if> + <if test="createBy != null">create_by = #{createBy},</if> + <if test="createTime != null">create_time = #{createTime},</if> + <if test="updateBy != null">update_by = #{updateBy},</if> + <if test="updateTime != null">update_time = #{updateTime},</if> + <if test="remark != null">remark = #{remark},</if> + </trim> + where soft_id = #{softId} + </update> + + <delete id="deleteSysSoftBySoftId" parameterType="Long"> + delete from sys_soft where soft_id = #{softId} + </delete> + + <delete id="deleteSysSoftBySoftIds" parameterType="String"> + delete from sys_soft where soft_id in + <foreach item="softId" collection="array" open="(" separator="," close=")"> + #{softId} + </foreach> + </delete> +</mapper> \ No newline at end of file diff --git a/se-modules/se-system/src/main/resources/mapper/system/SysWarnMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/SysWarnMapper.xml new file mode 100644 index 0000000..4126433 --- /dev/null +++ b/se-modules/se-system/src/main/resources/mapper/system/SysWarnMapper.xml @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.se.system.mapper.SysWarnMapper"> + + <resultMap type="SysWarn" id="SysWarnResult"> + <result property="warnId" column="warn_id" /> + <result property="name" column="name" /> + <result property="type" column="type" /> + <result property="descr" column="descr" /> + <result property="data" column="data" /> + <result property="args" column="args" /> + <result property="status" column="status" /> + <result property="createBy" column="create_by" /> + <result property="createTime" column="create_time" /> + <result property="updateBy" column="update_by" /> + <result property="updateTime" column="update_time" /> + <result property="remark" column="remark" /> + </resultMap> + + <sql id="selectSysWarnVo"> + select warn_id, name, type, descr, data, args, status, create_by, create_time, update_by, update_time, remark from sys_warn + </sql> + + <select id="selectSysWarnList" parameterType="SysWarn" resultMap="SysWarnResult"> + <include refid="selectSysWarnVo"/> + <where> + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> + <if test="type != null and type != ''"> and type = #{type}</if> + <if test="descr != null and descr != ''"> and descr = #{descr}</if> + <if test="data != null and data != ''"> and data = #{data}</if> + <if test="args != null and args != ''"> and args = #{args}</if> + <if test="status != null and status != ''"> and status = #{status}</if> + </where> + </select> + + <select id="selectSysWarnByWarnId" parameterType="Long" resultMap="SysWarnResult"> + <include refid="selectSysWarnVo"/> + where warn_id = #{warnId} + </select> + + <insert id="insertSysWarn" parameterType="SysWarn" useGeneratedKeys="true" keyProperty="warnId"> + insert into sys_warn + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">name,</if> + <if test="type != null">type,</if> + <if test="descr != null">descr,</if> + <if test="data != null">data,</if> + <if test="args != null">args,</if> + <if test="status != null">status,</if> + <if test="createBy != null">create_by,</if> + <if test="createTime != null">create_time,</if> + <if test="updateBy != null">update_by,</if> + <if test="updateTime != null">update_time,</if> + <if test="remark != null">remark,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="name != null and name != ''">#{name},</if> + <if test="type != null">#{type},</if> + <if test="descr != null">#{descr},</if> + <if test="data != null">#{data},</if> + <if test="args != null">#{args},</if> + <if test="status != null">#{status},</if> + <if test="createBy != null">#{createBy},</if> + <if test="createTime != null">#{createTime},</if> + <if test="updateBy != null">#{updateBy},</if> + <if test="updateTime != null">#{updateTime},</if> + <if test="remark != null">#{remark},</if> + </trim> + </insert> + + <update id="updateSysWarn" parameterType="SysWarn"> + update sys_warn + <trim prefix="SET" suffixOverrides=","> + <if test="name != null and name != ''">name = #{name},</if> + <if test="type != null">type = #{type},</if> + <if test="descr != null">descr = #{descr},</if> + <if test="data != null">data = #{data},</if> + <if test="args != null">args = #{args},</if> + <if test="status != null">status = #{status},</if> + <if test="createBy != null">create_by = #{createBy},</if> + <if test="createTime != null">create_time = #{createTime},</if> + <if test="updateBy != null">update_by = #{updateBy},</if> + <if test="updateTime != null">update_time = #{updateTime},</if> + <if test="remark != null">remark = #{remark},</if> + </trim> + where warn_id = #{warnId} + </update> + + <delete id="deleteSysWarnByWarnId" parameterType="Long"> + delete from sys_warn where warn_id = #{warnId} + </delete> + + <delete id="deleteSysWarnByWarnIds" parameterType="String"> + delete from sys_warn where warn_id in + <foreach item="warnId" collection="array" open="(" separator="," close=")"> + #{warnId} + </foreach> + </delete> +</mapper> \ No newline at end of file -- Gitblit v1.9.3