This commit is contained in:
menxipeng
2025-10-27 23:46:03 +08:00
parent 0f692d6595
commit 8a62709759
39 changed files with 1438 additions and 204 deletions

View File

@@ -1,7 +1,6 @@
package com.ruoyi.system.mapper;
import com.ruoyi.common.core.domain.entity.CategoryInfo;
import com.ruoyi.common.core.domain.entity.MusicInfo;
import org.apache.ibatis.annotations.Param;
import java.util.List;

View File

@@ -1,7 +1,6 @@
package com.ruoyi.system.mapper;
import com.ruoyi.common.core.domain.entity.MusicCollect;
import com.ruoyi.common.core.domain.entity.UserCollect;
import java.util.List;

View File

@@ -2,15 +2,13 @@ package com.ruoyi.system.mapper;
import com.ruoyi.common.core.domain.entity.MusicSceneRelate;
import java.util.List;
/**
* 【请填写功能名称】Mapper接口
*
*
* @author ruoyi
* @date 2025-07-15
*/
public interface MusicSceneRelateMapper
public interface MusicSceneRelateMapper
{
int insertMusicSceneRelate(MusicSceneRelate musicSceneRelate);

View File

@@ -6,15 +6,15 @@ import java.util.List;
/**
* 【请填写功能名称】Mapper接口
*
*
* @author ruoyi
* @date 2025-08-23
*/
public interface NotificationsMapper
public interface NotificationsMapper
{
/**
* 查询【请填写功能名称】
*
*
* @param id 【请填写功能名称】主键
* @return 【请填写功能名称】
*/
@@ -22,7 +22,7 @@ public interface NotificationsMapper
/**
* 查询【请填写功能名称】列表
*
*
* @param notifications 【请填写功能名称】
* @return 【请填写功能名称】集合
*/
@@ -30,7 +30,7 @@ public interface NotificationsMapper
/**
* 新增【请填写功能名称】
*
*
* @param notifications 【请填写功能名称】
* @return 结果
*/
@@ -38,7 +38,7 @@ public interface NotificationsMapper
/**
* 修改【请填写功能名称】
*
*
* @param notifications 【请填写功能名称】
* @return 结果
*/
@@ -46,7 +46,7 @@ public interface NotificationsMapper
/**
* 删除【请填写功能名称】
*
*
* @param id 【请填写功能名称】主键
* @return 结果
*/
@@ -54,9 +54,11 @@ public interface NotificationsMapper
/**
* 批量删除【请填写功能名称】
*
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteNotificationsByIds(Long[] ids);
List<Notifications> selectNotificationsByUserId(Long userId);
}

View File

@@ -0,0 +1,62 @@
package com.ruoyi.system.mapper;
import com.ruoyi.common.core.domain.entity.Product;
import java.util.List;
/**
* 商品Mapper接口
*
* @author ruoyi
* @date 2025-10-27
*/
public interface ProductMapper
{
/**
* 查询商品
*
* @param id 商品主键
* @return 商品
*/
public Product selectProductById(String id);
/**
* 查询商品列表
*
* @param product 商品
* @return 商品集合
*/
public List<Product> selectProductList(Product product);
/**
* 新增商品
*
* @param product 商品
* @return 结果
*/
public int insertProduct(Product product);
/**
* 修改商品
*
* @param product 商品
* @return 结果
*/
public int updateProduct(Product product);
/**
* 删除商品
*
* @param id 商品主键
* @return 结果
*/
public int deleteProductById(String id);
/**
* 批量删除商品
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteProductByIds(String[] ids);
}

View File

@@ -1,6 +1,5 @@
package com.ruoyi.system.mapper;
import com.ruoyi.common.core.domain.entity.MusicRecommend;
import com.ruoyi.common.core.domain.entity.RecommendInfo;
import org.apache.ibatis.annotations.Param;
@@ -8,15 +7,15 @@ import java.util.List;
/**
* 推荐Mapper接口
*
*
* @author ruoyi
* @date 2025-07-15
*/
public interface RecommendInfoMapper
public interface RecommendInfoMapper
{
/**
* 查询推荐
*
*
* @param id 推荐主键
* @return 推荐
*/
@@ -24,7 +23,7 @@ public interface RecommendInfoMapper
/**
* 查询推荐列表
*
*
* @param recommendInfo 推荐
* @return 推荐集合
*/
@@ -32,7 +31,7 @@ public interface RecommendInfoMapper
/**
* 新增推荐
*
*
* @param recommendInfo 推荐
* @return 结果
*/
@@ -40,7 +39,7 @@ public interface RecommendInfoMapper
/**
* 修改推荐
*
*
* @param recommendInfo 推荐
* @return 结果
*/
@@ -48,7 +47,7 @@ public interface RecommendInfoMapper
/**
* 删除推荐
*
*
* @param id 推荐主键
* @return 结果
*/
@@ -56,7 +55,7 @@ public interface RecommendInfoMapper
/**
* 批量删除推荐
*
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/

View File

@@ -4,7 +4,6 @@ import com.ruoyi.common.core.domain.entity.ShopUser;
import com.ruoyi.common.core.domain.entity.ShopUserResq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

View File

@@ -1,18 +1,19 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.SysConfig;
import java.util.List;
/**
* 参数配置 数据层
*
*
* @author ruoyi
*/
public interface SysConfigMapper
{
/**
* 查询参数配置信息
*
*
* @param config 参数配置信息
* @return 参数配置信息
*/
@@ -20,7 +21,7 @@ public interface SysConfigMapper
/**
* 通过ID查询配置
*
*
* @param configId 参数ID
* @return 参数配置信息
*/
@@ -28,7 +29,7 @@ public interface SysConfigMapper
/**
* 查询参数配置列表
*
*
* @param config 参数配置信息
* @return 参数配置集合
*/
@@ -36,7 +37,7 @@ public interface SysConfigMapper
/**
* 根据键名查询参数配置信息
*
*
* @param configKey 参数键名
* @return 参数配置信息
*/
@@ -44,7 +45,7 @@ public interface SysConfigMapper
/**
* 新增参数配置
*
*
* @param config 参数配置信息
* @return 结果
*/
@@ -52,7 +53,7 @@ public interface SysConfigMapper
/**
* 修改参数配置
*
*
* @param config 参数配置信息
* @return 结果
*/
@@ -60,7 +61,7 @@ public interface SysConfigMapper
/**
* 删除参数配置
*
*
* @param configId 参数ID
* @return 结果
*/
@@ -68,7 +69,7 @@ public interface SysConfigMapper
/**
* 批量删除参数信息
*
*
* @param configIds 需要删除的参数ID
* @return 结果
*/

View File

@@ -1,19 +1,20 @@
package com.ruoyi.system.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 部门管理 数据层
*
*
* @author ruoyi
*/
public interface SysDeptMapper
{
/**
* 查询部门管理数据
*
*
* @param dept 部门信息
* @return 部门信息集合
*/
@@ -21,7 +22,7 @@ public interface SysDeptMapper
/**
* 根据角色ID查询部门树信息
*
*
* @param roleId 角色ID
* @param deptCheckStrictly 部门树选择项是否关联显示
* @return 选中部门列表
@@ -30,7 +31,7 @@ public interface SysDeptMapper
/**
* 根据部门ID查询信息
*
*
* @param deptId 部门ID
* @return 部门信息
*/
@@ -38,7 +39,7 @@ public interface SysDeptMapper
/**
* 根据ID查询所有子部门
*
*
* @param deptId 部门ID
* @return 部门列表
*/
@@ -46,7 +47,7 @@ public interface SysDeptMapper
/**
* 根据ID查询所有子部门正常状态
*
*
* @param deptId 部门ID
* @return 子部门数
*/
@@ -54,7 +55,7 @@ public interface SysDeptMapper
/**
* 是否存在子节点
*
*
* @param deptId 部门ID
* @return 结果
*/
@@ -62,7 +63,7 @@ public interface SysDeptMapper
/**
* 查询部门是否存在用户
*
*
* @param deptId 部门ID
* @return 结果
*/
@@ -70,7 +71,7 @@ public interface SysDeptMapper
/**
* 校验部门名称是否唯一
*
*
* @param deptName 部门名称
* @param parentId 父部门ID
* @return 结果
@@ -79,7 +80,7 @@ public interface SysDeptMapper
/**
* 新增部门信息
*
*
* @param dept 部门信息
* @return 结果
*/
@@ -87,7 +88,7 @@ public interface SysDeptMapper
/**
* 修改部门信息
*
*
* @param dept 部门信息
* @return 结果
*/
@@ -95,14 +96,14 @@ public interface SysDeptMapper
/**
* 修改所在部门正常状态
*
*
* @param deptIds 部门ID组
*/
public void updateDeptStatusNormal(Long[] deptIds);
/**
* 修改子元素关系
*
*
* @param depts 子元素
* @return 结果
*/
@@ -110,7 +111,7 @@ public interface SysDeptMapper
/**
* 删除部门管理信息
*
*
* @param deptId 部门ID
* @return 结果
*/

View File

@@ -1,19 +1,20 @@
package com.ruoyi.system.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.common.core.domain.entity.SysDictData;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 字典表 数据层
*
*
* @author ruoyi
*/
public interface SysDictDataMapper
{
/**
* 根据条件分页查询字典数据
*
*
* @param dictData 字典数据信息
* @return 字典数据集合信息
*/
@@ -21,7 +22,7 @@ public interface SysDictDataMapper
/**
* 根据字典类型查询字典数据
*
*
* @param dictType 字典类型
* @return 字典数据集合信息
*/
@@ -29,7 +30,7 @@ public interface SysDictDataMapper
/**
* 根据字典类型和字典键值查询字典数据信息
*
*
* @param dictType 字典类型
* @param dictValue 字典键值
* @return 字典标签
@@ -38,7 +39,7 @@ public interface SysDictDataMapper
/**
* 根据字典数据ID查询信息
*
*
* @param dictCode 字典数据ID
* @return 字典数据
*/
@@ -46,7 +47,7 @@ public interface SysDictDataMapper
/**
* 查询字典数据
*
*
* @param dictType 字典类型
* @return 字典数据
*/
@@ -54,7 +55,7 @@ public interface SysDictDataMapper
/**
* 通过字典ID删除字典数据信息
*
*
* @param dictCode 字典数据ID
* @return 结果
*/
@@ -62,7 +63,7 @@ public interface SysDictDataMapper
/**
* 批量删除字典数据信息
*
*
* @param dictCodes 需要删除的字典数据ID
* @return 结果
*/
@@ -70,7 +71,7 @@ public interface SysDictDataMapper
/**
* 新增字典数据信息
*
*
* @param dictData 字典数据信息
* @return 结果
*/
@@ -78,7 +79,7 @@ public interface SysDictDataMapper
/**
* 修改字典数据信息
*
*
* @param dictData 字典数据信息
* @return 结果
*/
@@ -86,7 +87,7 @@ public interface SysDictDataMapper
/**
* 同步修改字典类型
*
*
* @param oldDictType 旧字典类型
* @param newDictType 新旧字典类型
* @return 结果

View File

@@ -1,18 +1,19 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.common.core.domain.entity.SysDictType;
import java.util.List;
/**
* 字典表 数据层
*
*
* @author ruoyi
*/
public interface SysDictTypeMapper
{
/**
* 根据条件分页查询字典类型
*
*
* @param dictType 字典类型信息
* @return 字典类型集合信息
*/
@@ -20,14 +21,14 @@ public interface SysDictTypeMapper
/**
* 根据所有字典类型
*
*
* @return 字典类型集合信息
*/
public List<SysDictType> selectDictTypeAll();
/**
* 根据字典类型ID查询信息
*
*
* @param dictId 字典类型ID
* @return 字典类型
*/
@@ -35,7 +36,7 @@ public interface SysDictTypeMapper
/**
* 根据字典类型查询信息
*
*
* @param dictType 字典类型
* @return 字典类型
*/
@@ -43,7 +44,7 @@ public interface SysDictTypeMapper
/**
* 通过字典ID删除字典信息
*
*
* @param dictId 字典ID
* @return 结果
*/
@@ -51,7 +52,7 @@ public interface SysDictTypeMapper
/**
* 批量删除字典类型信息
*
*
* @param dictIds 需要删除的字典ID
* @return 结果
*/
@@ -59,7 +60,7 @@ public interface SysDictTypeMapper
/**
* 新增字典类型信息
*
*
* @param dictType 字典类型信息
* @return 结果
*/
@@ -67,7 +68,7 @@ public interface SysDictTypeMapper
/**
* 修改字典类型信息
*
*
* @param dictType 字典类型信息
* @return 结果
*/
@@ -75,7 +76,7 @@ public interface SysDictTypeMapper
/**
* 校验字典类型称是否唯一
*
*
* @param dictType 字典类型
* @return 结果
*/

View File

@@ -1,25 +1,26 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.SysLogininfor;
import java.util.List;
/**
* 系统访问日志情况信息 数据层
*
*
* @author ruoyi
*/
public interface SysLogininforMapper
{
/**
* 新增系统登录日志
*
*
* @param logininfor 访问日志对象
*/
public void insertLogininfor(SysLogininfor logininfor);
/**
* 查询系统登录日志集合
*
*
* @param logininfor 访问日志对象
* @return 登录记录集合
*/
@@ -27,7 +28,7 @@ public interface SysLogininforMapper
/**
* 批量删除系统登录日志
*
*
* @param infoIds 需要删除的登录日志ID
* @return 结果
*/
@@ -35,7 +36,7 @@ public interface SysLogininforMapper
/**
* 清空系统登录日志
*
*
* @return 结果
*/
public int cleanLogininfor();

View File

@@ -1,8 +1,9 @@
package com.ruoyi.system.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.common.core.domain.entity.SysMenu;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 菜单表 数据层
@@ -36,7 +37,7 @@ public interface SysMenuMapper
/**
* 根据角色ID查询权限
*
*
* @param roleId 角色ID
* @return 权限列表
*/
@@ -67,7 +68,7 @@ public interface SysMenuMapper
/**
* 根据角色ID查询菜单树信息
*
*
* @param roleId 角色ID
* @param menuCheckStrictly 菜单树选择项是否关联显示
* @return 选中菜单列表

View File

@@ -1,18 +1,19 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.SysNotice;
import java.util.List;
/**
* 通知公告表 数据层
*
*
* @author ruoyi
*/
public interface SysNoticeMapper
{
/**
* 查询公告信息
*
*
* @param noticeId 公告ID
* @return 公告信息
*/
@@ -20,7 +21,7 @@ public interface SysNoticeMapper
/**
* 查询公告列表
*
*
* @param notice 公告信息
* @return 公告集合
*/
@@ -28,7 +29,7 @@ public interface SysNoticeMapper
/**
* 新增公告
*
*
* @param notice 公告信息
* @return 结果
*/
@@ -36,7 +37,7 @@ public interface SysNoticeMapper
/**
* 修改公告
*
*
* @param notice 公告信息
* @return 结果
*/
@@ -44,7 +45,7 @@ public interface SysNoticeMapper
/**
* 批量删除公告
*
*
* @param noticeId 公告ID
* @return 结果
*/
@@ -52,7 +53,7 @@ public interface SysNoticeMapper
/**
* 批量删除公告信息
*
*
* @param noticeIds 需要删除的公告ID
* @return 结果
*/

View File

@@ -1,25 +1,26 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.SysOperLog;
import java.util.List;
/**
* 操作日志 数据层
*
*
* @author ruoyi
*/
public interface SysOperLogMapper
{
/**
* 新增操作日志
*
*
* @param operLog 操作日志对象
*/
public void insertOperlog(SysOperLog operLog);
/**
* 查询系统操作日志集合
*
*
* @param operLog 操作日志对象
* @return 操作日志集合
*/
@@ -27,7 +28,7 @@ public interface SysOperLogMapper
/**
* 批量删除系统操作日志
*
*
* @param operIds 需要删除的操作日志ID
* @return 结果
*/
@@ -35,7 +36,7 @@ public interface SysOperLogMapper
/**
* 查询操作日志详细
*
*
* @param operId 操作ID
* @return 操作日志对象
*/

View File

@@ -1,18 +1,19 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.SysPost;
import java.util.List;
/**
* 岗位信息 数据层
*
*
* @author ruoyi
*/
public interface SysPostMapper
{
/**
* 查询岗位数据集合
*
*
* @param post 岗位信息
* @return 岗位数据集合
*/
@@ -20,14 +21,14 @@ public interface SysPostMapper
/**
* 查询所有岗位
*
*
* @return 岗位列表
*/
public List<SysPost> selectPostAll();
/**
* 通过岗位ID查询岗位信息
*
*
* @param postId 岗位ID
* @return 角色对象信息
*/
@@ -35,7 +36,7 @@ public interface SysPostMapper
/**
* 根据用户ID获取岗位选择框列表
*
*
* @param userId 用户ID
* @return 选中岗位ID列表
*/
@@ -43,7 +44,7 @@ public interface SysPostMapper
/**
* 查询用户所属岗位组
*
*
* @param userName 用户名
* @return 结果
*/
@@ -51,7 +52,7 @@ public interface SysPostMapper
/**
* 删除岗位信息
*
*
* @param postId 岗位ID
* @return 结果
*/
@@ -59,7 +60,7 @@ public interface SysPostMapper
/**
* 批量删除岗位信息
*
*
* @param postIds 需要删除的岗位ID
* @return 结果
*/
@@ -67,7 +68,7 @@ public interface SysPostMapper
/**
* 修改岗位信息
*
*
* @param post 岗位信息
* @return 结果
*/
@@ -75,7 +76,7 @@ public interface SysPostMapper
/**
* 新增岗位信息
*
*
* @param post 岗位信息
* @return 结果
*/
@@ -83,7 +84,7 @@ public interface SysPostMapper
/**
* 校验岗位名称
*
*
* @param postName 岗位名称
* @return 结果
*/
@@ -91,7 +92,7 @@ public interface SysPostMapper
/**
* 校验岗位编码
*
*
* @param postCode 岗位编码
* @return 结果
*/

View File

@@ -1,18 +1,19 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.SysRoleDept;
import java.util.List;
/**
* 角色与部门关联表 数据层
*
*
* @author ruoyi
*/
public interface SysRoleDeptMapper
{
/**
* 通过角色ID删除角色和部门关联
*
*
* @param roleId 角色ID
* @return 结果
*/
@@ -20,7 +21,7 @@ public interface SysRoleDeptMapper
/**
* 批量删除角色部门关联信息
*
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@@ -28,7 +29,7 @@ public interface SysRoleDeptMapper
/**
* 查询部门使用数量
*
*
* @param deptId 部门ID
* @return 结果
*/
@@ -36,7 +37,7 @@ public interface SysRoleDeptMapper
/**
* 批量新增角色部门信息
*
*
* @param roleDeptList 角色部门列表
* @return 结果
*/

View File

@@ -1,18 +1,19 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.common.core.domain.entity.SysRole;
import java.util.List;
/**
* 角色表 数据层
*
*
* @author ruoyi
*/
public interface SysRoleMapper
{
/**
* 根据条件分页查询角色数据
*
*
* @param role 角色信息
* @return 角色数据集合信息
*/
@@ -20,7 +21,7 @@ public interface SysRoleMapper
/**
* 根据用户ID查询角色
*
*
* @param userId 用户ID
* @return 角色列表
*/
@@ -28,14 +29,14 @@ public interface SysRoleMapper
/**
* 查询所有角色
*
*
* @return 角色列表
*/
public List<SysRole> selectRoleAll();
/**
* 根据用户ID获取角色选择框列表
*
*
* @param userId 用户ID
* @return 选中角色ID列表
*/
@@ -43,7 +44,7 @@ public interface SysRoleMapper
/**
* 通过角色ID查询角色
*
*
* @param roleId 角色ID
* @return 角色对象信息
*/
@@ -51,7 +52,7 @@ public interface SysRoleMapper
/**
* 根据用户ID查询角色
*
*
* @param userName 用户名
* @return 角色列表
*/
@@ -59,7 +60,7 @@ public interface SysRoleMapper
/**
* 校验角色名称是否唯一
*
*
* @param roleName 角色名称
* @return 角色信息
*/
@@ -67,7 +68,7 @@ public interface SysRoleMapper
/**
* 校验角色权限是否唯一
*
*
* @param roleKey 角色权限
* @return 角色信息
*/
@@ -75,7 +76,7 @@ public interface SysRoleMapper
/**
* 修改角色信息
*
*
* @param role 角色信息
* @return 结果
*/
@@ -83,7 +84,7 @@ public interface SysRoleMapper
/**
* 新增角色信息
*
*
* @param role 角色信息
* @return 结果
*/
@@ -91,7 +92,7 @@ public interface SysRoleMapper
/**
* 通过角色ID删除角色
*
*
* @param roleId 角色ID
* @return 结果
*/
@@ -99,7 +100,7 @@ public interface SysRoleMapper
/**
* 批量删除角色信息
*
*
* @param roleIds 需要删除的角色ID
* @return 结果
*/

View File

@@ -1,18 +1,19 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.SysRoleMenu;
import java.util.List;
/**
* 角色与菜单关联表 数据层
*
*
* @author ruoyi
*/
public interface SysRoleMenuMapper
{
/**
* 查询菜单使用数量
*
*
* @param menuId 菜单ID
* @return 结果
*/
@@ -20,7 +21,7 @@ public interface SysRoleMenuMapper
/**
* 通过角色ID删除角色和菜单关联
*
*
* @param roleId 角色ID
* @return 结果
*/
@@ -28,7 +29,7 @@ public interface SysRoleMenuMapper
/**
* 批量删除角色菜单关联信息
*
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@@ -36,7 +37,7 @@ public interface SysRoleMenuMapper
/**
* 批量新增角色菜单信息
*
*
* @param roleMenuList 角色菜单列表
* @return 结果
*/

View File

@@ -1,19 +1,20 @@
package com.ruoyi.system.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 用户表 数据层
*
*
* @author ruoyi
*/
public interface SysUserMapper
{
/**
* 根据条件分页查询用户列表
*
*
* @param sysUser 用户信息
* @return 用户信息集合信息
*/
@@ -21,7 +22,7 @@ public interface SysUserMapper
/**
* 根据条件分页查询已配用户角色列表
*
*
* @param user 用户信息
* @return 用户信息集合信息
*/
@@ -29,7 +30,7 @@ public interface SysUserMapper
/**
* 根据条件分页查询未分配用户角色列表
*
*
* @param user 用户信息
* @return 用户信息集合信息
*/
@@ -37,7 +38,7 @@ public interface SysUserMapper
/**
* 通过用户名查询用户
*
*
* @param userName 用户名
* @return 用户对象信息
*/
@@ -45,7 +46,7 @@ public interface SysUserMapper
/**
* 通过用户ID查询用户
*
*
* @param userId 用户ID
* @return 用户对象信息
*/
@@ -53,7 +54,7 @@ public interface SysUserMapper
/**
* 新增用户信息
*
*
* @param user 用户信息
* @return 结果
*/
@@ -61,7 +62,7 @@ public interface SysUserMapper
/**
* 修改用户信息
*
*
* @param user 用户信息
* @return 结果
*/
@@ -69,7 +70,7 @@ public interface SysUserMapper
/**
* 修改用户头像
*
*
* @param userId 用户ID
* @param avatar 头像地址
* @return 结果
@@ -78,7 +79,7 @@ public interface SysUserMapper
/**
* 重置用户密码
*
*
* @param userId 用户ID
* @param password 密码
* @return 结果
@@ -87,7 +88,7 @@ public interface SysUserMapper
/**
* 通过用户ID删除用户
*
*
* @param userId 用户ID
* @return 结果
*/
@@ -95,7 +96,7 @@ public interface SysUserMapper
/**
* 批量删除用户信息
*
*
* @param userIds 需要删除的用户ID
* @return 结果
*/
@@ -103,7 +104,7 @@ public interface SysUserMapper
/**
* 校验用户名称是否唯一
*
*
* @param userName 用户名称
* @return 结果
*/

View File

@@ -1,20 +1,20 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.SysUserPost;
import java.util.List;
/**
* 用户与岗位关联表 数据层
*
*
* @author ruoyi
*/
public interface SysUserPostMapper
{
/**
* 通过用户ID删除用户和岗位关联
*
*
* @param userId 用户ID
* @return 结果
*/
@@ -22,7 +22,7 @@ public interface SysUserPostMapper
/**
* 通过岗位ID查询岗位使用数量
*
*
* @param postId 岗位ID
* @return 结果
*/
@@ -30,7 +30,7 @@ public interface SysUserPostMapper
/**
* 批量删除用户和岗位关联
*
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@@ -38,7 +38,7 @@ public interface SysUserPostMapper
/**
* 批量新增用户岗位信息
*
*
* @param userPostList 用户岗位列表
* @return 结果
*/

View File

@@ -1,19 +1,20 @@
package com.ruoyi.system.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.system.domain.SysUserRole;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 用户与角色关联表 数据层
*
*
* @author ruoyi
*/
public interface SysUserRoleMapper
{
/**
* 通过用户ID删除用户和角色关联
*
*
* @param userId 用户ID
* @return 结果
*/
@@ -21,7 +22,7 @@ public interface SysUserRoleMapper
/**
* 批量删除用户和角色关联
*
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@@ -29,7 +30,7 @@ public interface SysUserRoleMapper
/**
* 通过角色ID查询角色使用数量
*
*
* @param roleId 角色ID
* @return 结果
*/
@@ -37,7 +38,7 @@ public interface SysUserRoleMapper
/**
* 批量新增用户角色信息
*
*
* @param userRoleList 用户角色列表
* @return 结果
*/
@@ -45,7 +46,7 @@ public interface SysUserRoleMapper
/**
* 删除用户和角色关联信息
*
*
* @param userRole 用户和角色关联信息
* @return 结果
*/
@@ -53,7 +54,7 @@ public interface SysUserRoleMapper
/**
* 批量取消授权用户角色
*
*
* @param roleId 角色ID
* @param userIds 需要删除的用户数据ID
* @return 结果

View File

@@ -70,4 +70,6 @@ public interface INotificationsService
public AjaxResult publishNotification(Long id);
AjaxResult publishSendAll(Long id);
List<Notifications> selectNotificationsByUserId(Long userId);
}

View File

@@ -0,0 +1,62 @@
package com.ruoyi.system.service;
import com.ruoyi.common.core.domain.entity.Product;
import java.util.List;
/**
* 商品Service接口
*
* @author ruoyi
* @date 2025-10-27
*/
public interface IProductService
{
/**
* 查询商品
*
* @param id 商品主键
* @return 商品
*/
public Product selectProductById(String id);
/**
* 查询商品列表
*
* @param product 商品
* @return 商品集合
*/
public List<Product> selectProductList(Product product);
/**
* 新增商品
*
* @param product 商品
* @return 结果
*/
public int insertProduct(Product product);
/**
* 修改商品
*
* @param product 商品
* @return 结果
*/
public int updateProduct(Product product);
/**
* 批量删除商品
*
* @param ids 需要删除的商品主键集合
* @return 结果
*/
public int deleteProductByIds(String[] ids);
/**
* 删除商品信息
*
* @param id 商品主键
* @return 结果
*/
public int deleteProductById(String id);
}

View File

@@ -49,9 +49,12 @@ public class CShopUserServiceImpl implements ShopUserService {
}
case "2":
// 验证码
//String code = redisCache.getCacheObject("sms_code:"+shopUser.getPhone());
String code = redisCache.getCacheObject("sms_code:"+shopUser.getPhone());
if (code == null){
code = "9527";
}
// TODO:写死
String code="9527";
//String code="9527";
String reqCode = shopUser.getCode();
if (code != null && code.equals(reqCode)){
// 登录
@@ -70,8 +73,14 @@ public class CShopUserServiceImpl implements ShopUserService {
UmResp resp = umengConfig.send(uMtoken, deviceTypeUp);
if (resp != null && resp.isSuccess()){
String phone = (String) resp.getData().get("mobile");
shopUser.setPhone(phone);
return loginAndRegis(shopUser);
if (phone != null) {
shopUser.setPhone(phone);
return loginAndRegis(shopUser);
}else {
ShopUser msg = new ShopUser();
msg.setMsg("手机号获取失败");
return msg;
}
}
break;
}
@@ -132,7 +141,6 @@ public class CShopUserServiceImpl implements ShopUserService {
member.setVip(2L);
member.setRegisterTime(new Date());
member.setPassword(IdUtil.fastUUID());
member.setUsername(shopUser.getUsername());
member.setDeviceId(shopUser.getDeviceId());
member.setDeviceType(shopUser.getDeviceType());
member.setHeadImg("/file/download/user/head.jpg");

View File

@@ -215,6 +215,11 @@ public class NotificationsServiceImpl implements INotificationsService
return AjaxResult.success("通知发布完成");
}
@Override
public List<Notifications> selectNotificationsByUserId(Long userId) {
return notificationsMapper.selectNotificationsByUserId(userId);
}
private void sendAllToThirdParty(Notifications notification) {
PushMsgInfo pushMsgInfo = new PushMsgInfo();
pushMsgInfo.setTitle(notification.getTitle());

View File

@@ -0,0 +1,94 @@
package com.ruoyi.system.service.impl;
import com.ruoyi.common.core.domain.entity.Product;
import com.ruoyi.system.mapper.ProductMapper;
import com.ruoyi.system.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 商品Service业务层处理
*
* @author ruoyi
* @date 2025-10-27
*/
@Service
public class ProductServiceImpl implements IProductService
{
@Autowired
private ProductMapper productMapper;
/**
* 查询商品
*
* @param id 商品主键
* @return 商品
*/
@Override
public Product selectProductById(String id)
{
return productMapper.selectProductById(id);
}
/**
* 查询商品列表
*
* @param product 商品
* @return 商品
*/
@Override
public List<Product> selectProductList(Product product)
{
return productMapper.selectProductList(product);
}
/**
* 新增商品
*
* @param product 商品
* @return 结果
*/
@Override
public int insertProduct(Product product)
{
return productMapper.insertProduct(product);
}
/**
* 修改商品
*
* @param product 商品
* @return 结果
*/
@Override
public int updateProduct(Product product)
{
return productMapper.updateProduct(product);
}
/**
* 批量删除商品
*
* @param ids 需要删除的商品主键
* @return 结果
*/
@Override
public int deleteProductByIds(String[] ids)
{
return productMapper.deleteProductByIds(ids);
}
/**
* 删除商品信息
*
* @param id 商品主键
* @return 结果
*/
@Override
public int deleteProductById(String id)
{
return productMapper.deleteProductById(id);
}
}

View File

@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.NotificationsMapper">
<resultMap type="Notifications" id="NotificationsResult">
<result property="id" column="id" />
<result property="title" column="title" />
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectNotificationsList" parameterType="Notifications" resultMap="NotificationsResult">
<include refid="selectNotificationsVo"/>
<where>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="notificationType != null and notificationType != ''"> and notification_type = #{notificationType}</if>
@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectNotificationsById" parameterType="Long" resultMap="NotificationsResult">
<include refid="selectNotificationsVo"/>
where id = #{id}
@@ -84,9 +84,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteNotificationsByIds" parameterType="String">
delete from notifications where id in
delete from notifications where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
<select id="selectNotificationsByUserId" resultMap="NotificationsResult">
SELECT n.* FROM notifications n LEFT JOIN notification_records sr on n.id = sr.notification_id
WHERE sr.user_id=#{userId}
</select>
</mapper>

View File

@@ -0,0 +1,121 @@
<?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.ruoyi.system.mapper.ProductMapper">
<resultMap type="Product" id="ProductResult">
<result property="id" column="id" />
<result property="productId" column="product_id" />
<result property="name" column="name" />
<result property="description" column="description" />
<result property="categoryId" column="category_id" />
<result property="productType" column="product_type" />
<result property="status" column="status" />
<result property="originalPrice" column="original_price" />
<result property="currentPrice" column="current_price" />
<result property="monthlyDuration" column="monthly_duration" />
<result property="quarterlyDuration" column="quarterly_duration" />
<result property="stock" column="stock" />
<result property="sales" column="sales" />
<result property="createdAt" column="created_at" />
<result property="updatedAt" column="updated_at" />
</resultMap>
<sql id="selectProductVo">
select id, product_id, name, description, category_id, product_type, status, original_price, current_price, monthly_duration, quarterly_duration, stock, sales, created_at, updated_at from product
</sql>
<select id="selectProductList" parameterType="Product" resultMap="ProductResult">
<include refid="selectProductVo"/>
<where>
<if test="productId != null "> and product_id = #{productId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="categoryId != null "> and category_id = #{categoryId}</if>
<if test="productType != null "> and product_type = #{productType}</if>
<if test="status != null "> and status = #{status}</if>
<if test="originalPrice != null "> and original_price = #{originalPrice}</if>
<if test="currentPrice != null "> and current_price = #{currentPrice}</if>
<if test="monthlyDuration != null "> and monthly_duration = #{monthlyDuration}</if>
<if test="quarterlyDuration != null "> and quarterly_duration = #{quarterlyDuration}</if>
<if test="stock != null "> and stock = #{stock}</if>
<if test="sales != null "> and sales = #{sales}</if>
<if test="createdAt != null "> and created_at = #{createdAt}</if>
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
</where>
</select>
<select id="selectProductById" parameterType="String" resultMap="ProductResult">
<include refid="selectProductVo"/>
where id = #{id}
</select>
<insert id="insertProduct" parameterType="Product" useGeneratedKeys="true" keyProperty="id">
insert into product
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">product_id,</if>
<if test="name != null and name != ''">name,</if>
<if test="description != null">description,</if>
<if test="categoryId != null">category_id,</if>
<if test="productType != null">product_type,</if>
<if test="status != null">status,</if>
<if test="originalPrice != null">original_price,</if>
<if test="currentPrice != null">current_price,</if>
<if test="monthlyDuration != null">monthly_duration,</if>
<if test="quarterlyDuration != null">quarterly_duration,</if>
<if test="stock != null">stock,</if>
<if test="sales != null">sales,</if>
<if test="createdAt != null">created_at,</if>
<if test="updatedAt != null">updated_at,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">#{productId},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="description != null">#{description},</if>
<if test="categoryId != null">#{categoryId},</if>
<if test="productType != null">#{productType},</if>
<if test="status != null">#{status},</if>
<if test="originalPrice != null">#{originalPrice},</if>
<if test="currentPrice != null">#{currentPrice},</if>
<if test="monthlyDuration != null">#{monthlyDuration},</if>
<if test="quarterlyDuration != null">#{quarterlyDuration},</if>
<if test="stock != null">#{stock},</if>
<if test="sales != null">#{sales},</if>
<if test="createdAt != null">#{createdAt},</if>
<if test="updatedAt != null">#{updatedAt},</if>
</trim>
</insert>
<update id="updateProduct" parameterType="Product">
update product
<trim prefix="SET" suffixOverrides=",">
<if test="productId != null">product_id = #{productId},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="description != null">description = #{description},</if>
<if test="categoryId != null">category_id = #{categoryId},</if>
<if test="productType != null">product_type = #{productType},</if>
<if test="status != null">status = #{status},</if>
<if test="originalPrice != null">original_price = #{originalPrice},</if>
<if test="currentPrice != null">current_price = #{currentPrice},</if>
<if test="monthlyDuration != null">monthly_duration = #{monthlyDuration},</if>
<if test="quarterlyDuration != null">quarterly_duration = #{quarterlyDuration},</if>
<if test="stock != null">stock = #{stock},</if>
<if test="sales != null">sales = #{sales},</if>
<if test="createdAt != null">created_at = #{createdAt},</if>
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteProductById" parameterType="String">
delete from product where id = #{id}
</delete>
<delete id="deleteProductByIds" parameterType="String">
delete from product where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.RecommendInfoMapper">
<resultMap type="RecommendInfo" id="RecommendInfoResult">
<result property="id" column="id" />
<result property="name" column="name" />
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectRecommendInfoList" parameterType="RecommendInfo" resultMap="RecommendInfoResult">
<include refid="selectRecommendInfoVo"/>
<where>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="creator != null and creator != ''"> and creator = #{creator}</if>
<if test="modify != null and modify != ''"> and modify = #{modify}</if>
@@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
order by id desc
</select>
<select id="selectRecommendInfoById" parameterType="Long" resultMap="RecommendInfoResult">
<include refid="selectRecommendInfoVo"/>
where id = #{id}
@@ -72,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="desc != null">desc = #{desc},</if>
<if test="desc != null">`desc` = #{desc},</if>
<if test="backImg != null">back_img = #{backImg},</if>
</trim>
where id = #{id}
@@ -83,7 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteRecommendInfoByIds" parameterType="String">
delete from recommend_info where id in
delete from recommend_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
@@ -103,4 +103,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<delete id="deleteRecommendInfoByReId">
DELETE FROM music_recommend where recommend_id=#{reId}
</delete>
</mapper>
</mapper>

View File

@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.ShareInfoMapper">
<resultMap type="ShareInfo" id="ShareInfoResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectShareInfoList" parameterType="ShareInfo" resultMap="ShareInfoResult">
<include refid="selectShareInfoVo"/>
<where>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="shareDecs != null and shareDecs != ''"> and share_decs = #{shareDecs}</if>
<if test="musicId != null "> and music_id = #{musicId}</if>
@@ -34,12 +34,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="review != null "> and review = #{review}</if>
</where>
</select>
<select id="selectShareInfoById" parameterType="String" resultMap="ShareInfoResult">
<include refid="selectShareInfoVo"/>
where id = #{id}
</select>
<select id="selectShareInfoByMusicId" parameterType="String" resultMap="ShareInfoResult">
<include refid="selectShareInfoVo"/>
where music_id = #{musicId} limit 1
@@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteShareInfoByIds" parameterType="String">
delete from share_info where id in
delete from share_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
@@ -116,6 +116,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM share_info si
left join shop_user su on si.user_id = su.user_id
LEFT JOIN music_info mi on si.music_id = mi.music_id
WHERE mi.is_del=0
WHERE mi.is_del=0 order by si.update_time desc
</select>
</mapper>
</mapper>