完成序列号生成功能

This commit is contained in:
AlanScipio
2024-02-19 13:50:33 +08:00
parent 7a257eb264
commit a327ff26ba
46 changed files with 2163 additions and 200 deletions

View File

@@ -82,6 +82,12 @@
<artifactId>ruoyi-common-log</artifactId>
</dependency>
<!-- RuoYi Common Services -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-services</artifactId>
</dependency>
<!-- RuoYi Common Swagger -->
<dependency>
<groupId>com.ruoyi</groupId>

View File

@@ -1,125 +1,125 @@
package com.ruoyi.system.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.system.domain.SysMenu;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 菜单表 数据层
*
*
* @author ruoyi
*/
public interface SysMenuMapper
{
public interface SysMenuMapper {
/**
* 查询系统菜单列表
*
*
* @param menu 菜单信息
* @return 菜单列表
*/
public List<SysMenu> selectMenuList(SysMenu menu);
List<SysMenu> selectMenuList(SysMenu menu);
/**
* 根据用户所有权限
*
*
* @return 权限列表
*/
public List<String> selectMenuPerms();
List<String> selectMenuPerms();
/**
* 根据用户查询系统菜单列表
*
*
* @param menu 菜单信息
* @return 菜单列表
*/
public List<SysMenu> selectMenuListByUserId(SysMenu menu);
List<SysMenu> selectMenuListByUserId(SysMenu menu);
/**
* 根据角色ID查询权限
*
*
* @param roleId 角色ID
* @return 权限列表
*/
public List<String> selectMenuPermsByRoleId(Long roleId);
List<String> selectMenuPermsByRoleId(Long roleId);
/**
* 根据用户ID查询权限
*
*
* @param userId 用户ID
* @return 权限列表
*/
public List<String> selectMenuPermsByUserId(Long userId);
List<String> selectMenuPermsByUserId(Long userId);
/**
* 根据用户ID查询菜单
*
*
* @return 菜单列表
*/
public List<SysMenu> selectMenuTreeAll();
List<SysMenu> selectMenuTreeAll();
/**
* 根据用户ID查询菜单
*
*
* @param userId 用户ID
* @return 菜单列表
*/
public List<SysMenu> selectMenuTreeByUserId(Long userId);
List<SysMenu> selectMenuTreeByUserId(Long userId);
/**
* 根据角色ID查询菜单树信息
*
* @param roleId 角色ID
*
* @param roleId 角色ID
* @param menuCheckStrictly 菜单树选择项是否关联显示
* @return 选中菜单列表
*/
public List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
/**
* 根据菜单ID查询信息
*
*
* @param menuId 菜单ID
* @return 菜单信息
*/
public SysMenu selectMenuById(Long menuId);
SysMenu selectMenuById(Long menuId);
/**
* 是否存在菜单子节点
*
*
* @param menuId 菜单ID
* @return 结果
*/
public int hasChildByMenuId(Long menuId);
int hasChildByMenuId(Long menuId);
/**
* 新增菜单信息
*
*
* @param menu 菜单信息
* @return 结果
*/
public int insertMenu(SysMenu menu);
int insertMenu(SysMenu menu);
/**
* 修改菜单信息
*
*
* @param menu 菜单信息
* @return 结果
*/
public int updateMenu(SysMenu menu);
int updateMenu(SysMenu menu);
/**
* 删除菜单管理信息
*
*
* @param menuId 菜单ID
* @return 结果
*/
public int deleteMenuById(Long menuId);
int deleteMenuById(Long menuId);
/**
* 校验菜单名称是否唯一
*
*
* @param menuName 菜单名称
* @param parentId 父菜单ID
* @return 结果
*/
public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
}

View File

@@ -1,60 +1,60 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.SysNotice;
import java.util.List;
/**
* 通知公告表 数据层
*
*
* @author ruoyi
*/
public interface SysNoticeMapper
{
public interface SysNoticeMapper {
/**
* 查询公告信息
*
*
* @param noticeId 公告ID
* @return 公告信息
*/
public SysNotice selectNoticeById(Long noticeId);
SysNotice selectNoticeById(Long noticeId);
/**
* 查询公告列表
*
*
* @param notice 公告信息
* @return 公告集合
*/
public List<SysNotice> selectNoticeList(SysNotice notice);
List<SysNotice> selectNoticeList(SysNotice notice);
/**
* 新增公告
*
*
* @param notice 公告信息
* @return 结果
*/
public int insertNotice(SysNotice notice);
int insertNotice(SysNotice notice);
/**
* 修改公告
*
*
* @param notice 公告信息
* @return 结果
*/
public int updateNotice(SysNotice notice);
int updateNotice(SysNotice notice);
/**
* 批量删除公告
*
*
* @param noticeId 公告ID
* @return 结果
*/
public int deleteNoticeById(Long noticeId);
int deleteNoticeById(Long noticeId);
/**
* 批量删除公告信息
*
*
* @param noticeIds 需要删除的公告ID
* @return 结果
*/
public int deleteNoticeByIds(Long[] noticeIds);
int deleteNoticeByIds(Long[] noticeIds);
}

View File

@@ -1,48 +1,48 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.api.domain.SysOperLog;
import java.util.List;
/**
* 操作日志 数据层
*
*
* @author ruoyi
*/
public interface SysOperLogMapper
{
public interface SysOperLogMapper {
/**
* 新增操作日志
*
*
* @param operLog 操作日志对象
*/
public int insertOperlog(SysOperLog operLog);
int insertOperlog(SysOperLog operLog);
/**
* 查询系统操作日志集合
*
*
* @param operLog 操作日志对象
* @return 操作日志集合
*/
public List<SysOperLog> selectOperLogList(SysOperLog operLog);
List<SysOperLog> selectOperLogList(SysOperLog operLog);
/**
* 批量删除系统操作日志
*
*
* @param operIds 需要删除的操作日志ID
* @return 结果
*/
public int deleteOperLogByIds(Long[] operIds);
int deleteOperLogByIds(Long[] operIds);
/**
* 查询操作日志详细
*
*
* @param operId 操作ID
* @return 操作日志对象
*/
public SysOperLog selectOperLogById(Long operId);
SysOperLog selectOperLogById(Long operId);
/**
* 清空操作日志
*/
public void cleanOperLog();
void cleanOperLog();
}