Merge remote-tracking branch 'origin/IOT' into IOT

IOT
夜笙歌 2 months ago
commit 18d9651d30

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

@ -23,7 +23,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
*
* @author zangch
* @date 2024-12-03
*/
@ -101,4 +101,18 @@ public class RecordBusbarAlarmController extends BaseController
{
return toAjax(recordBusbarAlarmService.deleteRecordBusbarAlarmByObjIds(objIds));
}
/**
*
* @param recordBusbarAlarm
* @return
*/
@PreAuthorize("@ss.hasPermi('record:recordBusbarAlarm:list')")
@PostMapping("/recordBusbarAlarmList")
public AjaxResult recordBusbarAlarmList(RecordBusbarAlarm recordBusbarAlarm)
{
List<RecordBusbarAlarm> list = recordBusbarAlarmService.selectRecordBusbarAlarmList(recordBusbarAlarm);
return success(list);
}
}

@ -119,43 +119,7 @@ public class RecordBusbarTempController extends BaseController
*/
@GetMapping("/getVisiblePhoto/{filePath}")
public ResponseEntity<FileSystemResource> getVisiblePhoto(@PathVariable String filePath) {
// 获取配置文件中的路径application.yml的profile
String myPath = RuoYiConfig.getMyPath();
// 构建文件的完整路径
String fileUrl = myPath + "/日志信息/可见光图像/" + filePath;
// 创建文件对象
File file = new File(fileUrl);
// 检查文件是否存在
if (file.exists()) {
// 创建文件系统资源对象包装文件http头不能使用file所以使用FileSystemResource
FileSystemResource resource = new FileSystemResource(file);
// 创建HttpHeaders对象用于设置响应头
HttpHeaders headers = new HttpHeaders();
// 设置文件长度
headers.setContentLength(file.length());
// 动态检测文件的MIME类型
try {
// 尝试获取文件的内容类型
String contentType = Files.probeContentType(file.toPath());
if (contentType != null) {
// 如果内容类型不为空则设置到HTTP响应头中
headers.setContentType(MediaType.parseMediaType(contentType));
} else {
// 如果内容类型为空,则默认设置为图像类型
headers.setContentType(MediaType.parseMediaType("image/*"));
}
} catch (IOException e) {
// 如果发生IO异常则默认设置内容类型为图像类型
headers.setContentType(MediaType.parseMediaType("image/*"));
}
// 返回包含文件资源的响应实体
return ResponseEntity.ok()
.headers(headers)
.body(resource);
} else {
// 如果文件不存在返回404状态
return ResponseEntity.notFound().build();
}
return recordBusbarTempService.getVisiblePhoto(filePath);
}
/**
@ -165,45 +129,14 @@ public class RecordBusbarTempController extends BaseController
*/
@GetMapping("/getThermalPhoto/{filePath}")
public ResponseEntity<FileSystemResource> getThermalPhoto (@PathVariable String filePath) {
// 获取配置文件中的路径application.yml的profile
String myPath = RuoYiConfig.getMyPath();
// 构建完整的文件路径
String fileUrl = myPath + "/日志信息/红外热成像/" + filePath;
// 创建文件对象
File file = new File(fileUrl);
// 检查文件是否存在
if (file.exists()) {
// 创建文件系统资源对象包装文件http头不能使用file所以使用FileSystemResource
FileSystemResource resource = new FileSystemResource(file);
// 创建HTTP头对象
HttpHeaders headers = new HttpHeaders();
// 设置文件长度
headers.setContentLength(file.length());
// 动态检测文件的MIME类型
try {
// 尝试获取文件的内容类型
String contentType = Files.probeContentType(file.toPath());
if (contentType != null) {
// 如果内容类型不为空则设置到HTTP响应头中
headers.setContentType(MediaType.parseMediaType(contentType));
} else {
// 如果内容类型为空,则默认设置为图像类型
headers.setContentType(MediaType.parseMediaType("image/*"));
}
} catch (IOException e) {
// 如果发生IO异常则默认设置内容类型为图像类型
headers.setContentType(MediaType.parseMediaType("image/*"));
}
// 返回包含文件资源的响应实体
return ResponseEntity.ok()
.headers(headers)
.body(resource);
} else {
// 如果文件不存在返回404状态
return ResponseEntity.notFound().build();
}
return recordBusbarTempService.getThermalPhoto(filePath);
}
/**
* 线
* @param recordBusbarTemp 线
* @return AjaxResult线
*/
@GetMapping("/busbarTempCurve")
public AjaxResult busbarTempCurve (RecordBusbarTemp recordBusbarTemp){
List<RecordBusbarTemp> recordBusbarTempList = recordBusbarTempService
@ -212,4 +145,17 @@ public class RecordBusbarTempController extends BaseController
}
/**
*
* @param recordBusbarTemp 线
* @return AjaxResult线
*/
@PreAuthorize("@ss.hasPermi('record:recordBusbarTemp:list')")
@PostMapping("/recordBusbarTempList")
public AjaxResult recordBusbarTempList(RecordBusbarTemp recordBusbarTemp)
{
List<RecordBusbarTemp> list = recordBusbarTempService.selectRecordBusbarTempList(recordBusbarTemp);
return success(list);
}
}

@ -41,7 +41,7 @@ import java.util.RandomAccess;
/**
* Controller
*
*
* @author zangch
* @date 2024-11-07
*/
@ -121,7 +121,6 @@ public class RecordInspectionCabinetController extends BaseController
}
/**
* HTTP GET
* @param filePath
@ -129,39 +128,8 @@ public class RecordInspectionCabinetController extends BaseController
*/
@GetMapping("/getThermalVideo/{filePath}")
public ResponseEntity<FileSystemResource> getThermalVideo(@PathVariable String filePath) {
// 获取配置文件中的路径application.yml的profile
String myPath = RuoYiConfig.getMyPath();
// 构建完整的文件路径
String fileUrl = myPath + "/日志信息/巡检录像/热成像/" + filePath;
// 创建文件对象
File file = new File(fileUrl);
// 检查文件是否存在
if (file.exists()) {
// 创建文件系统资源对象包装文件http头不能使用file所以使用FileSystemResource
FileSystemResource resource = new FileSystemResource(file);
// 设置响应头,指定内容类型为视频格式
HttpHeaders headers = new HttpHeaders();
// 设置文件长度的内容类型
headers.setContentLength(file.length());
// 动态检测文件的MIME类型
try {
String contentType = Files.probeContentType(file.toPath());
if (contentType != null) {
headers.setContentType(MediaType.parseMediaType(contentType));
} else {
headers.setContentType(MediaType.parseMediaType("video/*"));
}
} catch (IOException e) {
headers.setContentType(MediaType.parseMediaType("video/*"));
}
// 返回包含文件资源的响应实体
return ResponseEntity.ok()
.headers(headers)
.body(resource);
} else {
// 如果文件不存在返回404状态
return ResponseEntity.notFound().build();
}
return recordInspectionCabinetService.getThermalVideo(filePath);
}
/**
@ -171,39 +139,7 @@ public class RecordInspectionCabinetController extends BaseController
*/
@GetMapping("/getVisibleVideo/{filePath}")
public ResponseEntity<FileSystemResource> getVisibleVideo(@PathVariable String filePath) {
// 获取配置文件中的路径application.yml的profile
String myPath = RuoYiConfig.getMyPath();
// 构建完整的文件路径
String fileUrl = myPath + "/日志信息/巡检录像/可见光/" + filePath;
// 创建文件对象
File file = new File(fileUrl);
// 检查文件是否存在
if (file.exists()) {
// 创建文件系统资源对象包装文件http头不能使用file所以使用FileSystemResource
FileSystemResource resource = new FileSystemResource(file);
// 设置HTTP头信息
HttpHeaders headers = new HttpHeaders();
// 设置文件长度
headers.setContentLength(file.length());
// 动态检测文件的MIME类型
try {
String contentType = Files.probeContentType(file.toPath());
if (contentType != null) {
headers.setContentType(MediaType.parseMediaType(contentType));
} else {
headers.setContentType(MediaType.parseMediaType("video/*"));
}
} catch (IOException e) {
headers.setContentType(MediaType.parseMediaType("video/*"));
}
// 返回包含文件资源的响应实体
return ResponseEntity.ok()
.headers(headers)
.body(resource);
} else {
// 如果文件不存在返回404状态
return ResponseEntity.notFound().build();
}
return recordInspectionCabinetService.getVisibleVideo(filePath);
}
}

@ -1,19 +1,28 @@
package com.ruoyi.record.service;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.List;
import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.record.domain.RecordBusbarTemp;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
/**
* Service
*
*
* @author zangch
* @date 2024-11-07
*/
public interface IRecordBusbarTempService
public interface IRecordBusbarTempService
{
/**
*
*
*
* @param objId
* @return
*/
@ -21,7 +30,7 @@ public interface IRecordBusbarTempService
/**
*
*
*
* @param recordBusbarTemp
* @return
*/
@ -29,7 +38,7 @@ public interface IRecordBusbarTempService
/**
*
*
*
* @param recordBusbarTemp
* @return
*/
@ -37,7 +46,7 @@ public interface IRecordBusbarTempService
/**
*
*
*
* @param recordBusbarTemp
* @return
*/
@ -45,7 +54,7 @@ public interface IRecordBusbarTempService
/**
*
*
*
* @param objIds
* @return
*/
@ -53,9 +62,23 @@ public interface IRecordBusbarTempService
/**
*
*
*
* @param objId
* @return
*/
public int deleteRecordBusbarTempByObjId(Long objId);
/**
*
* @param filePath
* @return 404
*/
public ResponseEntity<FileSystemResource> getThermalPhoto(String filePath);
/**
*
* @param filePath
* @return 404
*/
public ResponseEntity<FileSystemResource> getVisiblePhoto(String filePath);
}

@ -2,18 +2,20 @@ package com.ruoyi.record.service;
import java.util.List;
import com.ruoyi.record.domain.RecordInspectionCabinet;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.ResponseEntity;
/**
* Service
*
*
* @author zangch
* @date 2024-11-07
*/
public interface IRecordInspectionCabinetService
public interface IRecordInspectionCabinetService
{
/**
*
*
*
* @param objId
* @return
*/
@ -21,7 +23,7 @@ public interface IRecordInspectionCabinetService
/**
*
*
*
* @param recordInspectionCabinet
* @return
*/
@ -29,7 +31,7 @@ public interface IRecordInspectionCabinetService
/**
*
*
*
* @param recordInspectionCabinet
* @return
*/
@ -37,7 +39,7 @@ public interface IRecordInspectionCabinetService
/**
*
*
*
* @param recordInspectionCabinet
* @return
*/
@ -45,7 +47,7 @@ public interface IRecordInspectionCabinetService
/**
*
*
*
* @param objIds
* @return
*/
@ -53,9 +55,23 @@ public interface IRecordInspectionCabinetService
/**
*
*
*
* @param objId
* @return
*/
public int deleteRecordInspectionCabinetByObjId(Long objId);
/**
*
* @param filePath
* @return 404
*/
public ResponseEntity<FileSystemResource> getThermalVideo(String filePath);
/**
*
* @param filePath
* @return 404
*/
public ResponseEntity<FileSystemResource> getVisibleVideo(String filePath);
}

@ -1,13 +1,24 @@
package com.ruoyi.record.service.impl;
import java.io.File;
import java.util.List;
import java.io.IOException;
import java.nio.file.Files;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.base.domain.BaseBusbarInfo;
import com.ruoyi.base.domain.BaseCabinetInfo;
import com.ruoyi.base.mapper.BaseBusbarInfoMapper;
import com.ruoyi.base.mapper.BaseCabinetInfoMapper;
import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.common.exception.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import com.ruoyi.record.mapper.RecordBusbarTempMapper;
import com.ruoyi.record.domain.RecordBusbarTemp;
@ -15,12 +26,12 @@ import com.ruoyi.record.service.IRecordBusbarTempService;
/**
* Service
*
*
* @author zangch
* @date 2024-11-07
*/
@Service
public class RecordBusbarTempServiceImpl implements IRecordBusbarTempService
public class RecordBusbarTempServiceImpl implements IRecordBusbarTempService
{
@Autowired
private RecordBusbarTempMapper recordBusbarTempMapper;
@ -31,7 +42,7 @@ public class RecordBusbarTempServiceImpl implements IRecordBusbarTempService
/**
*
*
*
* @param objId
* @return
*/
@ -43,7 +54,7 @@ public class RecordBusbarTempServiceImpl implements IRecordBusbarTempService
/**
*
*
*
* @param recordBusbarTemp
* @return
*/
@ -55,7 +66,7 @@ public class RecordBusbarTempServiceImpl implements IRecordBusbarTempService
/**
*
*
*
* @param recordBusbarTemp
* @return
*/
@ -83,7 +94,7 @@ public class RecordBusbarTempServiceImpl implements IRecordBusbarTempService
/**
*
*
*
* @param recordBusbarTemp
* @return
*/
@ -111,7 +122,7 @@ public class RecordBusbarTempServiceImpl implements IRecordBusbarTempService
/**
*
*
*
* @param objIds
* @return
*/
@ -123,7 +134,7 @@ public class RecordBusbarTempServiceImpl implements IRecordBusbarTempService
/**
*
*
*
* @param objId
* @return
*/
@ -132,4 +143,97 @@ public class RecordBusbarTempServiceImpl implements IRecordBusbarTempService
{
return recordBusbarTempMapper.deleteRecordBusbarTempByObjId(objId);
}
/**
*
* @param filePath
* @return 404
*/
@Override
public ResponseEntity<FileSystemResource> getThermalPhoto(String filePath){
// 获取配置文件中的路径application.yml的profile
String myPath = RuoYiConfig.getMyPath();
// 构建完整的文件路径
String fileUrl = myPath + "/日志信息/红外热成像/" + filePath;
// 创建文件对象
File file = new File(fileUrl);
// 检查文件是否存在
if (file.exists()) {
// 创建文件系统资源对象包装文件http头不能使用file所以使用FileSystemResource
FileSystemResource resource = new FileSystemResource(file);
// 创建HTTP头对象
HttpHeaders headers = new HttpHeaders();
// 设置文件长度
headers.setContentLength(file.length());
// 动态检测文件的MIME类型
try {
// 尝试获取文件的内容类型
String contentType = Files.probeContentType(file.toPath());
if (contentType != null) {
// 如果内容类型不为空则设置到HTTP响应头中
headers.setContentType(MediaType.parseMediaType(contentType));
} else {
// 如果内容类型为空,则默认设置为图像类型
headers.setContentType(MediaType.parseMediaType("image/*"));
}
} catch (IOException e) {
// 如果发生IO异常则默认设置内容类型为图像类型
headers.setContentType(MediaType.parseMediaType("image/*"));
}
// 返回包含文件资源的响应实体
return ResponseEntity.ok()
.headers(headers)
.body(resource);
} else {
// 如果文件不存在返回404状态
return ResponseEntity.notFound().build();
}
}
/**
*
* @param filePath
* @return 404
*/
@Override
public ResponseEntity<FileSystemResource> getVisiblePhoto(String filePath){
// 获取配置文件中的路径application.yml的profile
String myPath = RuoYiConfig.getMyPath();
// 构建文件的完整路径
String fileUrl = myPath + "/日志信息/可见光图像/" + filePath;
// 创建文件对象
File file = new File(fileUrl);
// 检查文件是否存在
if (file.exists()) {
// 创建文件系统资源对象包装文件http头不能使用file所以使用FileSystemResource
FileSystemResource resource = new FileSystemResource(file);
// 创建HttpHeaders对象用于设置响应头
HttpHeaders headers = new HttpHeaders();
// 设置文件长度
headers.setContentLength(file.length());
// 动态检测文件的MIME类型
try {
// 尝试获取文件的内容类型
String contentType = Files.probeContentType(file.toPath());
if (contentType != null) {
// 如果内容类型不为空则设置到HTTP响应头中
headers.setContentType(MediaType.parseMediaType(contentType));
} else {
// 如果内容类型为空,则默认设置为图像类型
headers.setContentType(MediaType.parseMediaType("image/*"));
}
} catch (IOException e) {
// 如果发生IO异常则默认设置内容类型为图像类型
headers.setContentType(MediaType.parseMediaType("image/*"));
}
// 返回包含文件资源的响应实体
return ResponseEntity.ok()
.headers(headers)
.body(resource);
} else {
// 如果文件不存在返回404状态
return ResponseEntity.notFound().build();
}
}
}

@ -1,7 +1,21 @@
package com.ruoyi.record.service.impl;
import java.io.File;
import java.util.List;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.file.Files;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.config.RuoYiConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import com.ruoyi.record.mapper.RecordInspectionCabinetMapper;
import com.ruoyi.record.domain.RecordInspectionCabinet;
@ -9,19 +23,19 @@ import com.ruoyi.record.service.IRecordInspectionCabinetService;
/**
* Service
*
*
* @author zangch
* @date 2024-11-07
*/
@Service
public class RecordInspectionCabinetServiceImpl implements IRecordInspectionCabinetService
public class RecordInspectionCabinetServiceImpl implements IRecordInspectionCabinetService
{
@Autowired
private RecordInspectionCabinetMapper recordInspectionCabinetMapper;
/**
*
*
*
* @param objId
* @return
*/
@ -33,7 +47,7 @@ public class RecordInspectionCabinetServiceImpl implements IRecordInspectionCabi
/**
*
*
*
* @param recordInspectionCabinet
* @return
*/
@ -45,7 +59,7 @@ public class RecordInspectionCabinetServiceImpl implements IRecordInspectionCabi
/**
*
*
*
* @param recordInspectionCabinet
* @return
*/
@ -57,7 +71,7 @@ public class RecordInspectionCabinetServiceImpl implements IRecordInspectionCabi
/**
*
*
*
* @param recordInspectionCabinet
* @return
*/
@ -69,7 +83,7 @@ public class RecordInspectionCabinetServiceImpl implements IRecordInspectionCabi
/**
*
*
*
* @param objIds
* @return
*/
@ -81,7 +95,7 @@ public class RecordInspectionCabinetServiceImpl implements IRecordInspectionCabi
/**
*
*
*
* @param objId
* @return
*/
@ -90,4 +104,89 @@ public class RecordInspectionCabinetServiceImpl implements IRecordInspectionCabi
{
return recordInspectionCabinetMapper.deleteRecordInspectionCabinetByObjId(objId);
}
/**
*
* @param filePath
* @return 404
*/
@Override
public ResponseEntity<FileSystemResource> getThermalVideo(String filePath){
// 获取配置文件中的路径application.yml的profile
String myPath = RuoYiConfig.getMyPath();
// 构建完整的文件路径
String fileUrl = myPath + "/日志信息/巡检录像/热成像/" + filePath;
// 创建文件对象
File file = new File(fileUrl);
// 检查文件是否存在
if (file.exists()) {
// 创建文件系统资源对象包装文件http头不能使用file所以使用FileSystemResource
FileSystemResource resource = new FileSystemResource(file);
// 设置响应头,指定内容类型为视频格式
HttpHeaders headers = new HttpHeaders();
// 设置文件长度的内容类型
headers.setContentLength(file.length());
// 动态检测文件的MIME类型
try {
String contentType = Files.probeContentType(file.toPath());
if (contentType != null) {
headers.setContentType(MediaType.parseMediaType(contentType));
} else {
headers.setContentType(MediaType.parseMediaType("video/*"));
}
} catch (IOException e) {
headers.setContentType(MediaType.parseMediaType("video/*"));
}
// 返回包含文件资源的响应实体
return ResponseEntity.ok()
.headers(headers)
.body(resource);
} else {
// 如果文件不存在返回404状态
return ResponseEntity.notFound().build();
}
}
/**
*
* @param filePath
* @return 404
*/
@Override
public ResponseEntity<FileSystemResource> getVisibleVideo(String filePath){
// 获取配置文件中的路径application.yml的profile
String myPath = RuoYiConfig.getMyPath();
// 构建完整的文件路径
String fileUrl = myPath + "/日志信息/巡检录像/可见光/" + filePath;
// 创建文件对象
File file = new File(fileUrl);
// 检查文件是否存在
if (file.exists()) {
// 创建文件系统资源对象包装文件http头不能使用file所以使用FileSystemResource
FileSystemResource resource = new FileSystemResource(file);
// 设置HTTP头信息
HttpHeaders headers = new HttpHeaders();
// 设置文件长度
headers.setContentLength(file.length());
// 动态检测文件的MIME类型
try {
String contentType = Files.probeContentType(file.toPath());
if (contentType != null) {
headers.setContentType(MediaType.parseMediaType(contentType));
} else {
headers.setContentType(MediaType.parseMediaType("video/*"));
}
} catch (IOException e) {
headers.setContentType(MediaType.parseMediaType("video/*"));
}
// 返回包含文件资源的响应实体
return ResponseEntity.ok()
.headers(headers)
.body(resource);
} else {
// 如果文件不存在返回404状态
return ResponseEntity.notFound().build();
}
}
}

@ -42,3 +42,11 @@ export function delRecordBusbarAlarm(objId) {
method: 'delete'
})
}
export function recordBusbarAlarmList(query) {
return request({
url: '/record/recordBusbarAlarm/recordBusbarAlarmList',
method: 'post',
params: query
})
}

@ -1,22 +0,0 @@
-- 菜单 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('报警信息', '2000', '1', 'baseAlarmInfo', 'base/baseAlarmInfo/index', 1, 0, 'C', '0', '0', 'base:baseAlarmInfo:list', '#', 'admin', sysdate(), '', null, '报警信息菜单');
-- 按钮父菜单ID
SELECT @parentId := LAST_INSERT_ID();
-- 按钮 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('报警信息查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'base:baseAlarmInfo:query', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('报警信息新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'base:baseAlarmInfo:add', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('报警信息修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'base:baseAlarmInfo:edit', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('报警信息删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'base:baseAlarmInfo:remove', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('报警信息导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'base:baseAlarmInfo:export', '#', 'admin', sysdate(), '', null, '');

@ -1,22 +0,0 @@
-- 菜单 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检报警记录', '2025', '1', 'recordBusbarAlarm', 'record/recordBusbarAlarm/index', 1, 0, 'C', '0', '0', 'record:recordBusbarAlarm:list', '#', 'admin', sysdate(), '', null, '巡检报警记录菜单');
-- 按钮父菜单ID
SELECT @parentId := LAST_INSERT_ID();
-- 按钮 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检报警记录查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'record:recordBusbarAlarm:query', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检报警记录新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'record:recordBusbarAlarm:add', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检报警记录修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'record:recordBusbarAlarm:edit', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检报警记录删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'record:recordBusbarAlarm:remove', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检报警记录导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'record:recordBusbarAlarm:export', '#', 'admin', sysdate(), '', null, '');
Loading…
Cancel
Save