| | |
| | | |
| | | 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; |
| | | |
| | | |
| | | -- ---------------------------- |
| | |
| | | active: dev |
| | | cloud: |
| | | nacos: |
| | | username: nacos |
| | | password: nAcos_!9#_admIn |
| | | discovery: |
| | | # æå¡æ³¨åå°å |
| | | server-addr: 127.0.0.1:8848 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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æ£å¸¸ 1åç¨ï¼ */ |
| | | @Excel(name = "ç¶æ", readConverterExp = "0=æ£å¸¸,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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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æ£å¸¸ 1åç¨ï¼ */ |
| | | @Excel(name = "ç¶æ", readConverterExp = "0=æ£å¸¸,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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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æ£å¸¸ 1åç¨ï¼ */ |
| | | @Excel(name = "ç¶æ", readConverterExp = "0=æ£å¸¸,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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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æ£å¸¸ 1åç¨ï¼ */ |
| | | @Excel(name = "ç¶æ", readConverterExp = "0=æ£å¸¸,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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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æ£å¸¸ 1åç¨ï¼ */ |
| | | @Excel(name = "ç¶æ", readConverterExp = "0=æ£å¸¸,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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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æ£å¸¸ 1åç¨ï¼ */ |
| | | @Excel(name = "ç¶æ", readConverterExp = "0=æ£å¸¸,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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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æ£å¸¸ 1åç¨ï¼ */ |
| | | @Excel(name = "ç¶æ", readConverterExp = "0=æ£å¸¸,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(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |