大屏项目初始化

This commit is contained in:
2026-03-08 23:38:37 +08:00
parent 2c81b1478c
commit 03c61b4501
25 changed files with 1333 additions and 205 deletions

View File

@@ -0,0 +1,53 @@
package com.mini.mybigscreen.Auth.Home;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mini.mybigscreen.Model.Result;
import com.mini.mybigscreen.biz.domain.Notes;
import com.mini.mybigscreen.biz.domain.QuickLogin;
import com.mini.mybigscreen.biz.domain.WarningAlert;
import com.mini.mybigscreen.biz.service.NotesService;
import com.mini.mybigscreen.biz.service.QuickLoginService;
import com.mini.mybigscreen.biz.service.WarningAlertService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/biz/homeDesktop")
public class desktopController {
@Resource
private NotesService notesService;
@Resource
private QuickLoginService loginService;
@Resource
private WarningAlertService alertService;
@GetMapping("alertList")
public Result<?> getAlertList() {
LambdaQueryWrapper<WarningAlert> query = new LambdaQueryWrapper<WarningAlert>()
.eq(WarningAlert::getAlertStatus, "0")
.orderByDesc(WarningAlert::getCreateTime);
return Result.success(alertService.list(query));
}
@GetMapping("noteList")
public Result<?> getNoteList() {
LambdaQueryWrapper<Notes> query = new LambdaQueryWrapper<Notes>()
.notIn(Notes::getUstatus, "done")
.orderByDesc(Notes::getCreateUser);
return Result.success(notesService.list(query));
}
@GetMapping("quickList")
public Result<?> getQuickList() {
LambdaQueryWrapper<QuickLogin> query = new LambdaQueryWrapper<QuickLogin>()
.eq(QuickLogin::getSystemType, "2")
.orderByDesc(QuickLogin::getCreateTime);
return Result.success(loginService.list(query));
}
}

View File

@@ -0,0 +1,18 @@
package com.mini.mybigscreen.biz.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 便签管理表 前端控制器
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
@RestController
@RequestMapping("/biz/notes")
public class NotesController {
}

View File

@@ -0,0 +1,18 @@
package com.mini.mybigscreen.biz.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 快捷登录系统信息表 前端控制器
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
@RestController
@RequestMapping("/biz/quickLogin")
public class QuickLoginController {
}

View File

@@ -0,0 +1,18 @@
package com.mini.mybigscreen.biz.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 预警提示表 前端控制器
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
@RestController
@RequestMapping("/biz/warningAlert")
public class WarningAlertController {
}

View File

@@ -0,0 +1,98 @@
package com.mini.mybigscreen.biz.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 便签管理表
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
@Getter
@Setter
@TableName("biz_notes")
public class Notes implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 创建时间
*/
@TableField("create_time")
private String createTime;
/**
* 便签唯一标识
*/
@TableId(value = "id", type = IdType.AUTO)
private String id;
/**
* 标题
*/
@TableField("title")
private String title;
/**
* 便签内容
*/
@TableField("content")
private String content;
/**
* 级别
*/
@TableField("priority")
private String priority;
/**
* 便签状态todo-待开始doing-进行中done-已完成
*/
@TableField("ustatus")
private String ustatus;
/**
* 开始时间
*/
@TableField("start_time")
private String startTime;
/**
* 结束时间
*/
@TableField("end_time")
private String endTime;
/**
* 类型
*/
@TableField("type")
private String type;
/**
* 截至时间
*/
@TableField("deadline")
private String deadline;
/**
* 更新时间
*/
@TableField("update_time")
private String updateTime;
/**
* 创建用户
*/
@TableField("create_user")
private String createUser;
}

View File

@@ -0,0 +1,122 @@
package com.mini.mybigscreen.biz.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 快捷登录系统信息表
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
@Getter
@Setter
@TableName("biz_quick_login")
public class QuickLogin implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 创建时间
*/
@TableField("create_time")
private String createTime;
/**
* 自增主键
*/
@TableId(value = "id", type = IdType.AUTO)
private String id;
/**
* 系统名称
*/
@TableField("system_name")
private String systemName;
/**
* 系统类型
*/
@TableField("system_type")
private String systemType;
/**
* 首页地址
*/
@TableField("homepage_url")
private String homepageUrl;
/**
* 图标地址
*/
@TableField("icon_class")
private String iconClass;
/**
* 图标颜色(关联Tailwind配置)
*/
@TableField("icon_color")
private String iconColor;
/**
* 排序序号(升序排列)
*/
@TableField("sort_order")
private Integer sortOrder;
/**
* 图标背景色
*/
@TableField("bg_color")
private String bgColor;
/**
* 悬浮遮罩色
*/
@TableField("mask_color")
private String maskColor;
/**
* 是否启用(1:启用 0:禁用)
*/
@TableField("is_enabled")
private Integer isEnabled;
/**
* 更新时间
*/
@TableField("update_time")
private LocalDateTime updateTime;
/**
* 租户id
*/
@TableField("f_tenant_id")
private String fTenantId;
/**
* 流程id
*/
@TableField("f_flow_id")
private String fFlowId;
/**
* 流程任务主键
*/
@TableField("f_flow_task_id")
private String fFlowTaskId;
/**
* 流程任务状态
*/
@TableField("f_flow_state")
private Integer fFlowState;
}

View File

@@ -0,0 +1,110 @@
package com.mini.mybigscreen.biz.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
/**
* <p>
* 预警提示表
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
@Getter
@Setter
@TableName("biz_warning_alert")
public class WarningAlert implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 创建时间
*/
@TableField("create_time")
private String createTime;
/**
* 预警标识
*/
@TableId(value = "id", type = IdType.AUTO)
private String id;
/**
* 预警编码
*/
@TableField("alert_code")
private String alertCode;
/**
* 预警类型
*/
@TableField("alert_type")
private String alertType;
/**
* 预警级别1-紧急 2-高 3-中 4-低)
*/
@TableField("alert_level")
private Byte alertLevel;
/**
* 预警标题
*/
@TableField("alert_title")
private String alertTitle;
/**
* 预警详细内容
*/
@TableField("alert_content")
private String alertContent;
/**
* 预警触发时间
*/
@TableField("trigger_time")
private LocalDateTime triggerTime;
/**
* 来源系统(如:订单系统、监控平台、支付系统)
*/
@TableField("source_system")
private String sourceSystem;
/**
* 预警状态0-未处理 1-处理中 2-已解决 3-已忽略 4-已关闭)
*/
@TableField("alert_status")
private String alertStatus;
/**
* 处理人员
*/
@TableField("handler_user")
private String handlerUser;
/**
* 处理时间
*/
@TableField("handle_time")
private LocalDateTime handleTime;
/**
* 处理备注
*/
@TableField("handle_note")
private String handleNote;
/**
* 更新时间
*/
@TableField("update_time")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,16 @@
package com.mini.mybigscreen.biz.mapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.mini.mybigscreen.biz.domain.Notes;
/**
* <p>
* 便签管理表 Mapper 接口
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
public interface NotesMapper extends MPJBaseMapper<Notes> {
}

View File

@@ -0,0 +1,17 @@
package com.mini.mybigscreen.biz.mapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.mini.mybigscreen.biz.domain.QuickLogin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 快捷登录系统信息表 Mapper 接口
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
public interface QuickLoginMapper extends MPJBaseMapper<QuickLogin> {
}

View File

@@ -0,0 +1,16 @@
package com.mini.mybigscreen.biz.mapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.mini.mybigscreen.biz.domain.WarningAlert;
/**
* <p>
* 预警提示表 Mapper 接口
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
public interface WarningAlertMapper extends MPJBaseMapper<WarningAlert> {
}

View File

@@ -0,0 +1,16 @@
package com.mini.mybigscreen.biz.service;
import com.mini.mybigscreen.biz.domain.Notes;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 便签管理表 服务类
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
public interface NotesService extends IService<Notes> {
}

View File

@@ -0,0 +1,16 @@
package com.mini.mybigscreen.biz.service;
import com.mini.mybigscreen.biz.domain.QuickLogin;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 快捷登录系统信息表 服务类
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
public interface QuickLoginService extends IService<QuickLogin> {
}

View File

@@ -0,0 +1,16 @@
package com.mini.mybigscreen.biz.service;
import com.mini.mybigscreen.biz.domain.WarningAlert;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 预警提示表 服务类
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
public interface WarningAlertService extends IService<WarningAlert> {
}

View File

@@ -0,0 +1,20 @@
package com.mini.mybigscreen.biz.service.impl;
import com.mini.mybigscreen.biz.domain.Notes;
import com.mini.mybigscreen.biz.mapper.NotesMapper;
import com.mini.mybigscreen.biz.service.NotesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 便签管理表 服务实现类
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
@Service
public class NotesServiceImpl extends ServiceImpl<NotesMapper, Notes> implements NotesService {
}

View File

@@ -0,0 +1,20 @@
package com.mini.mybigscreen.biz.service.impl;
import com.mini.mybigscreen.biz.domain.QuickLogin;
import com.mini.mybigscreen.biz.mapper.QuickLoginMapper;
import com.mini.mybigscreen.biz.service.QuickLoginService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 快捷登录系统信息表 服务实现类
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
@Service
public class QuickLoginServiceImpl extends ServiceImpl<QuickLoginMapper, QuickLogin> implements QuickLoginService {
}

View File

@@ -0,0 +1,20 @@
package com.mini.mybigscreen.biz.service.impl;
import com.mini.mybigscreen.biz.domain.WarningAlert;
import com.mini.mybigscreen.biz.mapper.WarningAlertMapper;
import com.mini.mybigscreen.biz.service.WarningAlertService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 预警提示表 服务实现类
* </p>
*
* @author gaoxq
* @since 2026-03-08
*/
@Service
public class WarningAlertServiceImpl extends ServiceImpl<WarningAlertMapper, WarningAlert> implements WarningAlertService {
}