third commit by ailanyin

This commit is contained in:
2022-03-29 11:04:01 +08:00
parent e340066b15
commit 8a1288dee0
63 changed files with 1632 additions and 323 deletions

View File

@ -16,6 +16,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@MapperScan({"com.ailanyin.mapper"})
@EnableScheduling
public class AdminApplication {
public static void main(String[] args) {
SpringApplication.run(AdminApplication.class, args);
}

View File

@ -51,4 +51,18 @@ public class HxCarLocationLogController{
public AjaxResult getBigPicData() {
return AjaxResult.success(hxCarLocationLogService.getBigPicData());
}
@GetMapping("/getAllReadInfo")
@ApiOperation(value = "获取所有读卡器")
//@PreAuthorize("hasAuthority('business:hxCarLocationLog:list')")
public AjaxResult getAllReadInfo() {
return AjaxResult.success(hxCarLocationLogService.getAllReadInfo());
}
@GetMapping("/getLogByReadId")
@ApiOperation(value = "获取读卡器的日志")
//@PreAuthorize("hasAuthority('business:hxCarLocationLog:list')")
public AjaxResult getLogByReadId(@RequestParam(value = "readId") Long readId) {
return AjaxResult.success(hxCarLocationLogService.getLogByReadId(readId));
}
}

View File

@ -0,0 +1,70 @@
package com.ailanyin.admin.controller;
import com.ailanyin.model.HxCarLogConfig;
import com.ailanyin.admin.service.HxCarLogConfigService;
import com.ailanyin.common.result.AjaxResult;
import com.ailanyin.common.result.CommonPage;
import com.github.pagehelper.PageHelper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author ailanyin
* @version 1.0
* @since 2022-02-15 04:15:39
*/
@RestController
@RequestMapping("/business/hxCarLogConfig")
@Api(tags = "车辆定位配置管理")
public class HxCarLogConfigController{
@Autowired
private HxCarLogConfigService hxCarLogConfigService;
@PostMapping
@ApiOperation(value = "新增('business:hxCarLogConfig:add')")
//@PreAuthorize("hasAuthority('business:hxCarLogConfig:add')")
public AjaxResult insertHxCarLogConfig(@RequestBody HxCarLogConfig hxCarLogConfig) {
hxCarLogConfigService.insertHxCarLogConfig(hxCarLogConfig);
return AjaxResult.success();
}
@PutMapping
@ApiOperation(value = "修改('business:hxCarLogConfig:edit')")
//@PreAuthorize("hasAuthority('business:hxCarLogConfig:edit')")
public AjaxResult updateHxCarLogConfig(@RequestBody HxCarLogConfig hxCarLogConfig) {
hxCarLogConfigService.updateHxCarLogConfig(hxCarLogConfig);
return AjaxResult.success();
}
@DeleteMapping("/{ids}")
@ApiOperation(value = "批量删除('business:hxCarLogConfig:remove')")
//@PreAuthorize("hasAuthority('business:hxCarLogConfig:remove')")
public AjaxResult deleteByIds(@PathVariable Long[] ids) {
hxCarLogConfigService.deleteByIds(ids);
return AjaxResult.success();
}
@GetMapping("/list")
@ApiOperation(value = "获取列表('business:hxCarLogConfig:list')")
//@PreAuthorize("hasAuthority('business:hxCarLogConfig:list')")
public CommonPage list(HxCarLogConfig hxCarLogConfig,
@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
PageHelper.startPage(pageNum, pageSize);
List<HxCarLogConfig> list = hxCarLogConfigService.getListByParam(hxCarLogConfig);
return CommonPage.restPage(list);
}
@GetMapping(value = {"/{id}"})
@ApiOperation(value = "根据id获取详情('business:hxCarLogConfig:query')")
//@PreAuthorize("hasAuthority('business:hxCarLogConfig:query')")
public AjaxResult getInfo(@PathVariable(value = "id", required = false) Long id) {
return AjaxResult.success(hxCarLogConfigService.getInfo(id));
}
}

View File

@ -63,20 +63,13 @@ public class HxSecurityManagementController {
return AjaxResult.success(hxVideoService.getVideoByType(type));
}
@GetMapping("/hiddenDanger/1")
@ApiOperation(value = "安全隐患内容列表图 type=1车间/=2总厂")
@GetMapping("/hiddenDanger")
@ApiOperation(value = "安全隐患整改情况 type=1车间/=2总厂")
//@PreAuthorize("hasAuthority('system:user:import')")
public AjaxResult hiddenDanger(@RequestParam(value = "type") String type) {
return AjaxResult.success(hxHiddenDangerService.getHiddenDangerBigPic(type));
}
@GetMapping("/hiddenDanger/2")
@ApiOperation(value = "安全隐患整改情况图")
//@PreAuthorize("hasAuthority('system:user:import')")
public AjaxResult hiddenDanger() {
return AjaxResult.success(hxHiddenDangerService.getWorkshopHiddenDangerBigPic());
}
@GetMapping("/dangerousMap")
@ApiOperation(value = "中间危险点地图")
//@PreAuthorize("hasAuthority('system:user:import')")

View File

@ -52,6 +52,13 @@ public class HxStorehouseController {
return AjaxResult.success();
}
@PostMapping("/insert")
public AjaxResult insert(@RequestBody HxStorehouse hxStorehouse) {
hxStorehouseService.insert(hxStorehouse);
return AjaxResult.success();
}
@GetMapping("/importTemplate")
@ApiOperation(value = "导出模板")
//@PreAuthorize("hasAuthority('system:user:import')")

View File

@ -0,0 +1,43 @@
package com.ailanyin.admin.controller;
import com.ailanyin.model.HxTableConfig;
import com.ailanyin.admin.service.HxTableConfigService;
import com.ailanyin.common.result.AjaxResult;
import com.ailanyin.common.result.CommonPage;
import com.github.pagehelper.PageHelper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author ailanyin
* @version 1.0
* @since 2022-03-08 09:18:14
*/
@RestController
@RequestMapping("/business/hxTableConfig")
@Api(tags = "表结构管理")
public class HxTableConfigController{
@Autowired
private HxTableConfigService hxTableConfigService;
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult updateHxTableConfig(@RequestBody HxTableConfig hxTableConfig) {
hxTableConfigService.updateByTableName(hxTableConfig);
return AjaxResult.success();
}
@GetMapping
@ApiOperation(value = "根据表名获取")
public AjaxResult getInfo(@RequestParam(value = "tableName") String tableName) {
return AjaxResult.success("查询成功",hxTableConfigService.selectByTableName(tableName));
}
}

View File

@ -8,6 +8,7 @@ import com.ailanyin.admin.service.SysUserService;
import com.ailanyin.admin.vo.LoginBodyVo;
import com.ailanyin.common.result.AjaxResult;
import com.ailanyin.common.utils.ExcelUtil;
import com.ailanyin.common.utils.IpUtil;
import com.ailanyin.mapper.SysLogMapper;
import com.ailanyin.model.SysMenu;
import com.ailanyin.model.SysUser;
@ -25,6 +26,8 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
@ -55,8 +58,6 @@ public class SysLoginController {
private String tokenHeader;
@Value("${jwt.tokenHead}")
private String tokenHead;
@Value("${hx.ip}")
private String ip;
@Value("${server.port}")
private String port;
@ -117,7 +118,11 @@ public class SysLoginController {
@GetMapping("/getSocketUrl")
@ApiOperation(value = "获取Socket地址")
public AjaxResult getSocketUrl() {
return AjaxResult.success("ws://" + ip + ":" + port + "/ws/asset");
try {
return AjaxResult.success("ws://" + IpUtil.getLocalIp() + ":" + port + "/ws/asset");
} catch (UnknownHostException e) {
return AjaxResult.error();
}
}
}

View File

@ -1,19 +1,29 @@
package com.ailanyin.admin.entity;
import cn.hutool.core.img.ImgUtil;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.RandomUtil;
import cn.hutool.core.util.RuntimeUtil;
import com.ailanyin.admin.controller.SysUserController;
import com.ailanyin.admin.socket.SocketServerListenHandler;
import com.ailanyin.common.utils.*;
import com.ailanyin.model.HxCarLocationLog;
import com.ailanyin.security.service.WebSocketService;
import com.alibaba.fastjson.JSON;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.util.Base64Utils;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import java.io.*;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.*;
/**
* @author ailanyin
@ -22,18 +32,25 @@ import java.util.List;
*/
public class Test {
public static void main(String[] args) throws UnknownHostException, IOException {
public static void main(String[] args) throws Exception, IOException {
System.out.println(checkAnswer("107,108,109,","108,109,107,"));
for (int i = 1; i < 255; i++) {
Integer result = Integer.parseInt("A5",16) +
Integer.parseInt("FF",16) +
Integer.parseInt("04",16) +
Integer.parseInt("31",16) +
Integer.parseInt("00",16) +
Integer.parseInt(Integer.toHexString(i),16);
String s2 = ConvertUtil.binaryAdd(ConvertUtil.binaryReverse(Integer.toBinaryString(result)), "1");
System.out.println(i +" ==== A5 FF 04 31 00 "+Integer.toHexString(i).toUpperCase()+" "+Integer.toHexString(Integer.parseInt(s2.substring(s2.length() - 8),2)).toUpperCase());
} // A5 FF 04 31 00 FD 2A
}
private static boolean checkAnswer(String right, String answer) {
if (answer != null && answer.length() > 0) {
if (answer.length() != right.length()) {
return false;
}
} else {
return false;
}
String[] rgt = right.split(",");
for (String one : rgt) {
if (!answer.contains(one)) {
return false;
}
}
return true;
}
}

View File

@ -8,10 +8,19 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.ApplicationContext;
import org.springframework.core.annotation.Order;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* 项目启动后连接 socket 读卡器
@ -25,6 +34,8 @@ import javax.annotation.Resource;
@Order(value = 2)
public class StartReaderRunner implements ApplicationRunner {
@Autowired
private ApplicationContext applicationContext;
@Autowired
private RedisService redisService;
@Resource

View File

@ -1,6 +1,8 @@
package com.ailanyin.admin.service;
import com.ailanyin.model.HxCarLocationLog;
import com.ailanyin.model.HxReaderInfo;
import java.util.List;
/**
@ -53,4 +55,8 @@ public interface HxCarLocationLogService{
* @return list
*/
List<HxCarLocationLog> getBigPicData();
List<HxReaderInfo> getAllReadInfo();
List<HxCarLocationLog> getLogByReadId(Long readId);
}

View File

@ -0,0 +1,49 @@
package com.ailanyin.admin.service;
import com.ailanyin.model.HxCarLogConfig;
import java.util.List;
/**
* @author ailanyin
* @version 1.0
* @since 2022-02-15 04:15:39
*/
public interface HxCarLogConfigService{
/**
* 条件查询列表
*
* @param hxCarLogConfig hxCarLogConfig
* @return list
*/
List<HxCarLogConfig> getListByParam(HxCarLogConfig hxCarLogConfig);
/**
* 新增
*
* @param hxCarLogConfig hxCarLogConfig
*/
void insertHxCarLogConfig(HxCarLogConfig hxCarLogConfig);
/**
* 修改
*
* @param hxCarLogConfig hxCarLogConfig
*/
void updateHxCarLogConfig(HxCarLogConfig hxCarLogConfig);
/**
* 批量删除
*
* @param ids ids
*/
void deleteByIds(Long[] ids);
/**
* 主键查询
*
* @param id id
* @return hxCarLogConfig
*/
HxCarLogConfig getInfo(Long id);
}

View File

@ -35,12 +35,5 @@ public interface HxHiddenDangerService {
*/
Map getHiddenDangerBigPic(String type);
/**
* 安全隐患整改情况图
*
* @return list
*/
List<Map> getWorkshopHiddenDangerBigPic();
}

View File

@ -14,4 +14,6 @@ public interface HxStorehouseService {
void importData(List<HxStorehouse> list);
void insert(HxStorehouse hxStorehouse);
}

View File

@ -0,0 +1,27 @@
package com.ailanyin.admin.service;
import com.ailanyin.model.HxTableConfig;
import java.util.List;
/**
* @author ailanyin
* @version 1.0
* @since 2022-03-08 09:18:14
*/
public interface HxTableConfigService{
/**
* 查询
*
* @param tableName tableName
* @return String
*/
String selectByTableName(String tableName);
/**
* 修改
*
* @param hxTableConfig hxTableConfig
*/
void updateByTableName(HxTableConfig hxTableConfig);
}

View File

@ -1,8 +1,14 @@
package com.ailanyin.admin.service.impl;
import com.ailanyin.common.utils.DateUtil;
import com.ailanyin.common.utils.EmptyUtil;
import com.ailanyin.mapper.HxCarLocationLogMapper;
import com.ailanyin.mapper.HxCarLogConfigMapper;
import com.ailanyin.mapper.HxReaderInfoMapper;
import com.ailanyin.model.HxCarLocationLog;
import com.ailanyin.admin.service.HxCarLocationLogService;
import com.ailanyin.model.HxCarLogConfig;
import com.ailanyin.model.HxReaderInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -20,6 +26,10 @@ public class HxCarLocationLogServiceImpl implements HxCarLocationLogService {
@Resource
private HxCarLocationLogMapper hxCarLocationLogMapper;
@Resource
private HxReaderInfoMapper hxReaderInfoMapper;
@Resource
private HxCarLogConfigMapper hxCarLogConfigMapper;
@Override
public List<HxCarLocationLog> getListByParam(HxCarLocationLog hxCarLocationLog) {
@ -55,4 +65,19 @@ public class HxCarLocationLogServiceImpl implements HxCarLocationLogService {
return hxCarLocationLogMapper.getBigPicData();
}
@Override
public List<HxReaderInfo> getAllReadInfo() {
return hxReaderInfoMapper.getAllReadInfo();
}
@Override
public List<HxCarLocationLog> getLogByReadId(Long readId) {
HxCarLogConfig config = hxCarLogConfigMapper.selectOne();
Date selectTime = null;
if (EmptyUtil.isNotEmpty(config.getMaxDay())) {
selectTime = DateUtil.getDateBefore(new Date(),config.getMaxDay());
}
return hxCarLocationLogMapper.selectByParam(readId,config.getMaxTotal(),selectTime);
}
}

View File

@ -0,0 +1,53 @@
package com.ailanyin.admin.service.impl;
import com.ailanyin.mapper.HxCarLogConfigMapper;
import com.ailanyin.model.HxCarLogConfig;
import com.ailanyin.admin.service.HxCarLogConfigService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
/**
* @author ailanyin
* @version 1.0
* @since 2022-02-15 04:15:39
*/
@Service
public class HxCarLogConfigServiceImpl implements HxCarLogConfigService {
@Resource
private HxCarLogConfigMapper hxCarLogConfigMapper;
@Override
public List<HxCarLogConfig> getListByParam(HxCarLogConfig hxCarLogConfig) {
return hxCarLogConfigMapper.selectList(hxCarLogConfig);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void insertHxCarLogConfig(HxCarLogConfig hxCarLogConfig) {
hxCarLogConfig.setCreateTime(new Date());
hxCarLogConfigMapper.insertSelective(hxCarLogConfig);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void updateHxCarLogConfig(HxCarLogConfig hxCarLogConfig) {
hxCarLogConfigMapper.updateByPrimaryKeySelective(hxCarLogConfig);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void deleteByIds(Long[] ids) {
hxCarLogConfigMapper.deleteByIds(ids);
}
@Override
public HxCarLogConfig getInfo(Long id) {
return hxCarLogConfigMapper.selectByPrimaryKey(id);
}
}

View File

@ -60,8 +60,8 @@ public class HxCivilIncomeServiceImpl implements HxCivilIncomeService {
//type=1总厂情况/2=合同及产品/3本月情况
if (TYPE_1.equals(type)) {
HxGeneralPlantConditions conditions = new HxGeneralPlantConditions();
returnMap.put("list",hxGeneralPlantConditionsMapper.selectList(conditions));
returnMap.put("total",hxGeneralPlantConditionsMapper.selectTotal(DateUtil.getNowYear() + "-%"));
returnMap.put("list", hxGeneralPlantConditionsMapper.selectList(conditions));
returnMap.put("total", hxGeneralPlantConditionsMapper.selectTotal(DateUtil.getNowYear() + "-%"));
}
if (TYPE_2.equals(type)) {
@ -76,18 +76,19 @@ public class HxCivilIncomeServiceImpl implements HxCivilIncomeService {
list.add(map);
}
);
returnMap.put("list",list);
returnMap.put("monthList",monthList);
returnMap.put("list", list);
returnMap.put("monthList", monthList);
Map totalAndAmount = hxCivilContractMapper.selectTotalAndAmountByYear(year);
totalAndAmount.putIfAbsent("amount", 0);
returnMap.put("totalAndAmount",totalAndAmount);
returnMap.put("categoryTotal",hxCivilContractMapper.selectCategoryTotalByYear(year));
returnMap.put("totalAndAmount", totalAndAmount);
returnMap.put("categoryTotal", hxCivilContractMapper.selectCategoryTotalByYear(year));
}
if (TYPE_3.equals(type)) {
HxCivilIncome hxCivilIncome = new HxCivilIncome();
hxCivilIncome.setMonth(DateUtil.getDate("yyyy-MM"));
returnMap.put("list",selectHxCivilIncomeList(hxCivilIncome));
List<HxCivilIncome> list = selectHxCivilIncomeList(hxCivilIncome);
returnMap.put("list", EmptyUtil.isNotEmpty(list) ? list : selectHxCivilIncomeList(new HxCivilIncome()));
}
return returnMap;
}
@ -111,7 +112,7 @@ public class HxCivilIncomeServiceImpl implements HxCivilIncomeService {
String category = map.get("category").toString();
String planQuantity = map.get("planQuantity").toString();
String realQuantity = map.get("realQuantity").toString();
map.put("quantityRate",Float.valueOf(realQuantity) * 100/Float.valueOf(planQuantity));
map.put("quantityRate", Float.valueOf(realQuantity) * 100 / Float.valueOf(planQuantity));
categoryList.remove(category);
}
@ -120,9 +121,9 @@ public class HxCivilIncomeServiceImpl implements HxCivilIncomeService {
// "realQuantity": 86,
// "planQuantity": 91,
// "category": "其他"
map.put("category",catetory);
map.put("realQuantity",0);
map.put("planQuantity",0);
map.put("category", catetory);
map.put("realQuantity", 0);
map.put("planQuantity", 0);
mapList.add(map);
}
}

View File

@ -3,6 +3,7 @@ package com.ailanyin.admin.service.impl;
import com.ailanyin.admin.service.HxDangerousPointService;
import com.ailanyin.common.service.RedisService;
import com.ailanyin.common.utils.EmptyUtil;
import com.ailanyin.common.utils.IpUtil;
import com.ailanyin.mapper.HxDangerousPointMapper;
import com.ailanyin.mapper.HxDangerousSourceMapper;
import com.ailanyin.mapper.HxDictMapper;
@ -15,6 +16,8 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.*;
/**
@ -32,8 +35,6 @@ public class HxDangerousPointServiceImpl implements HxDangerousPointService {
private String pointLevelParentId;
@Value("${hxDict.sourceLevelParentId}")
private String sourceLevelParentId;
@Value("${hx.ip}")
private String ip;
@Value("${redis.database}")
private String database;
@ -133,8 +134,12 @@ public class HxDangerousPointServiceImpl implements HxDangerousPointService {
e.printStackTrace();
}
String url = "http://" + ip + "/stream/live/dangerousPoint" + hxDangerousPoint.getId()+".flv";
redisService.set(database + ":rtmp:dangerousPoint" + hxDangerousPoint.getId(), url);
try {
String url = "http://" + IpUtil.getLocalIp() + "/stream/live/dangerousPoint" + hxDangerousPoint.getId()+".flv";
redisService.set(database + ":rtmp:dangerousPoint" + hxDangerousPoint.getId(), url);
} catch (UnknownHostException e) {
e.printStackTrace();
}
}
}
}

View File

@ -5,6 +5,7 @@ import com.ailanyin.common.utils.DateUtil;
import com.ailanyin.common.utils.EmptyUtil;
import com.ailanyin.mapper.HxDangerousWorkMapper;
import com.ailanyin.model.HxDangerousWork;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -63,19 +64,20 @@ public class HxDangerousWorkServiceImpl implements HxDangerousWorkService {
*/
@Override
public List<HxDangerousWork> getDangerousWorkBigPic(String type) {
return hxDangerousWorkMapper.selectByTime(handleDate(type));
List<HxDangerousWork> list = hxDangerousWorkMapper.selectByTime(handleDate(type));
return EmptyUtil.isNotEmpty(list) ? list : hxDangerousWorkMapper.selectLimit10(type);
}
private Map handleDate(String type) {
Map<String,Object> map = new HashMap(2);
Map<String, Object> map = new HashMap(2);
if (WEEK.equals(type)) {
map.put("start", DateUtil.getBeginDayOfWeek());
map.put("end", DateUtil.getEndDayOfWeek());
map.put("start", DateFormatUtils.format(DateUtil.getBeginDayOfWeek(), "yyyyMMdd"));
map.put("end", DateFormatUtils.format(DateUtil.getEndDayOfWeek(), "yyyyMMdd"));
}
if (MONTH.equals(type)) {
map.put("start", DateUtil.getBeginDayOfMonth());
map.put("end", DateUtil.getEndDayOfMonth());
map.put("start", DateFormatUtils.format(DateUtil.getBeginDayOfMonth(), "yyyyMMdd"));
map.put("end", DateFormatUtils.format(DateUtil.getEndDayOfMonth(), "yyyyMMdd"));
}
return map;

View File

@ -23,8 +23,6 @@ import java.util.*;
@Transactional(rollbackFor = Exception.class)
public class HxHiddenDangerServiceImpl implements HxHiddenDangerService {
@Value("${hxDict.alreadyUpdate}")
private String alreadyUpdate;
@Resource
private HxHiddenDangerMapper hxHiddenDangerMapper;
@ -51,7 +49,7 @@ public class HxHiddenDangerServiceImpl implements HxHiddenDangerService {
@Override
public void importData(List<HxHiddenDanger> list) {
list.forEach(hxHiddenDanger -> {
if (EmptyUtil.isNotEmpty(hxHiddenDanger.getWorkshopName())) {
if (EmptyUtil.isNotEmpty(hxHiddenDanger.getExistProblem())) {
hxHiddenDanger.setCreateTime(new Date());
hxHiddenDangerMapper.insertSelective(hxHiddenDanger);
}
@ -70,66 +68,34 @@ public class HxHiddenDangerServiceImpl implements HxHiddenDangerService {
if (WORKSHOP.equals(type)) {
String year = String.valueOf(DateUtil.getNowYear());
HxHiddenDanger hxHiddenDanger = new HxHiddenDanger();
hxHiddenDanger.setMonth(year);
hxHiddenDanger.setCheckDate(year);
map.put("list",hxHiddenDangerMapper.selectHxHiddenDangerList(hxHiddenDanger));
List<String> allWorkshop = hxHiddenDangerMapper.getAllWorkshopByYear(year + "-%");
List<Map> mapList = new ArrayList<>();
allWorkshop.forEach(
workshop -> {
Map rateMap = hxHiddenDangerMapper.selectByWorkShopAndYear(workshop,year + "-%");
rateMap.put("name",workshop);
mapList.add(rateMap);
}
);
map.put("allWorkshop",allWorkshop);
map.put("mapList",mapList);
// 责任单位 = 车间
map.put("mapList",hxHiddenDangerMapper.selectByYearGroupUnit(year));
}
if (GENERAL_FACTORY.equals(type)) {
Integer nowYear = DateUtil.getNowYear();
List<Map> allCategoryAndCount = hxHiddenDangerMapper.getAllCategoryAndCount(nowYear);
Long measuresCount = hxHiddenDangerMapper.getCountByMeasures(alreadyUpdate,nowYear);
Long total = hxHiddenDangerMapper.getCountByMeasures(null,nowYear);
List<String> monthList = hxHiddenDangerMapper.getAllMonthByYear(nowYear + "-%");
// 获取柱状图 所有月份 -> 个数
List<Map<String,Integer>> monthCountList = hxHiddenDangerMapper.selectCountGroupByMonth();
// 获取饼图
// 获取所有分类
List<String> categoryList = hxHiddenDangerMapper.getAllCategoryByYear(nowYear);
List<Map> mapList = new ArrayList<>();
monthList.forEach(month -> {
Map rateMap = hxHiddenDangerMapper.getAllByMonth(month);
rateMap.put("name",month);
mapList.add(rateMap);
categoryList.forEach(category -> {
Integer count = hxHiddenDangerMapper.selectCountByCategoryAndYear(category,nowYear);
Map<String,Object> categoryCountMap = new HashMap();
categoryCountMap.put("category",category);
categoryCountMap.put("count",count);
mapList.add(categoryCountMap);
});
map.put("category",allCategoryAndCount);
map.put("mapList",mapList);
map.put("monthList",monthList);
map.put("total",total);
map.put("updateCate",BigDecimalUtil.calculateCompletionRate(
measuresCount.toString(),
total.toString()
));
map.put("category",categoryList);
map.put("mapList",mapList);
map.put("monthList",monthCountList);
map.put("total",hxHiddenDangerMapper.selectCountByCategoryAndYear(null,nowYear));
}
return map;
}
/**
* 安全隐患整改情况图
*
* @return list
*/
@Override
public List<Map> getWorkshopHiddenDangerBigPic() {
List<Map> list = new ArrayList<>();
//获取所有车间
List<String> workshopList = hxHiddenDangerMapper.getAllWorkshopList();
workshopList.forEach(workshop -> {
Map map = new HashMap(3);
Map countMap = hxHiddenDangerMapper.selectWorkShopDangerCount(workshop,alreadyUpdate);
map.put("workShopName",workshop);
map.put("count",countMap.get("TOTALCOUNT"));
map.put("updateCount",countMap.get("UPDATECOUNT"));
list.add(map);
});
return list;
}
}

View File

@ -63,23 +63,24 @@ public class HxMilitaryGeneralFactoryServiceImpl implements HxMilitaryGeneralFac
Map returnMap = new HashMap(3);
//type=1总厂情况/2=合同/3本月情况
if (TYPE_1.equals(type)) {
returnMap.put("list",hxMilitaryGeneralFactoryMapper.selectListGroupByMonth(null));
returnMap.put("total",hxMilitaryGeneralFactoryMapper.selectTotal(DateUtil.getNowYear() + "-%"));
returnMap.put("modelTotal",hxMilitaryGeneralFactoryMapper.selectModelTotal(DateUtil.getNowYear() + "-%"));
returnMap.put("list", hxMilitaryGeneralFactoryMapper.selectListGroupByMonth(null));
returnMap.put("total", hxMilitaryGeneralFactoryMapper.selectTotal(DateUtil.getNowYear() + "-%"));
returnMap.put("modelTotal", hxMilitaryGeneralFactoryMapper.selectModelTotal(DateUtil.getNowYear() + "-%"));
}
if (TYPE_2.equals(type)) {
String year = DateUtil.getNowYear() + "-%";
HxMilitaryContract hxMilitaryContract = new HxMilitaryContract();
hxMilitaryContract.setContractDate(year);
returnMap.put("list",hxMilitaryContractMapper.selectList(hxMilitaryContract));
returnMap.put("totalAndAmount",hxMilitaryContractMapper.selectTotalAndAmountByYear(year));
returnMap.put("list", hxMilitaryContractMapper.selectList(hxMilitaryContract));
returnMap.put("totalAndAmount", hxMilitaryContractMapper.selectTotalAndAmountByYear(year));
}
if (TYPE_3.equals(type)) {
HxMilitaryIncome hxMilitaryIncome = new HxMilitaryIncome();
hxMilitaryIncome.setMonth(DateUtil.getDate("yyyy-MM"));
returnMap.put("list",hxMilitaryIncomeService.selectList(hxMilitaryIncome));
List<HxMilitaryIncome> list = hxMilitaryIncomeService.selectList(hxMilitaryIncome);
returnMap.put("list", EmptyUtil.isNotEmpty(list) ? list : hxMilitaryIncomeService.selectList(new HxMilitaryIncome()));
}
return returnMap;
}

View File

@ -1,6 +1,8 @@
package com.ailanyin.admin.service.impl;
import com.ailanyin.admin.service.HxStorehouseService;
import com.ailanyin.common.exception.Asserts;
import com.ailanyin.common.utils.Base64Util;
import com.ailanyin.common.utils.EmptyUtil;
import com.ailanyin.mapper.HxStorehouseMapper;
import com.ailanyin.model.HxStorehouse;
@ -39,7 +41,59 @@ public class HxStorehouseServiceImpl implements HxStorehouseService {
});
}
@Override
public void insert(HxStorehouse hxStorehouse) {
if (EmptyUtil.isEmpty(hxStorehouse)
|| !checkAuth(hxStorehouse.getAuth())) {
Asserts.fail("鉴权失败");
}
if (EmptyUtil.isNotEmpty(hxStorehouse.getNumberNo())) {
if (checkIsExist(hxStorehouse)) {
hxStorehouseMapper.updateSelective(hxStorehouse);
} else {
hxStorehouseMapper.insertSelective(hxStorehouse);
}
}
}
private boolean checkIsExist(HxStorehouse hxStorehouse) {
return hxStorehouseMapper.checkIsExist(hxStorehouse) > 0;
}
/**
* 取当前时间得unix时间戳(秒级)
* 计算时间戳每一位相加得和取最后一位拼接在时间戳后面
*
* 如 1646204542
* 相加(1+6+4+6+2+0+4+5+4+2 = 34 )
* 34取最后一位 4
* 拼接时间戳就是16462045424
* base64加密16462045424
* 最后得到MTY0NjIwNDU0MjQ=
* @param authStr base64加密字符串
* @return 鉴权成功 or 失败
*/
private boolean checkAuth(String authStr) {
if (EmptyUtil.isEmpty(authStr)) {
return false;
}
// base64解码
try {
String auth = new String(Base64Util.decrypt(authStr));
if (auth.length() != 11) {
return false;
}
Integer result = 0;
String[] unixArray = auth.substring(0, auth.length() - 1).split("");
for (String unix : unixArray) {
result = result + Integer.parseInt(unix);
}
return result.toString().substring(result.toString().length() - 1).equals(auth.substring(auth.length() - 1));
} catch (Exception e) {
return false;
}
}
}

View File

@ -0,0 +1,33 @@
package com.ailanyin.admin.service.impl;
import com.ailanyin.mapper.HxTableConfigMapper;
import com.ailanyin.model.HxTableConfig;
import com.ailanyin.admin.service.HxTableConfigService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
/**
* @author ailanyin
* @version 1.0
* @since 2022-03-08 09:18:14
*/
@Service
public class HxTableConfigServiceImpl implements HxTableConfigService {
@Resource
private HxTableConfigMapper hxTableConfigMapper;
@Override
public String selectByTableName(String tableName) {
return hxTableConfigMapper.selectByTableName(tableName);
}
@Override
public void updateByTableName(HxTableConfig hxTableConfig) {
hxTableConfigMapper.updateByTableName(hxTableConfig);
}
}

View File

@ -8,6 +8,7 @@ import com.ailanyin.admin.service.HxWorkHomeInfoService;
import com.ailanyin.common.service.RedisService;
import com.ailanyin.common.utils.EmptyUtil;
import com.ailanyin.common.utils.FileUtil;
import com.ailanyin.common.utils.IpUtil;
import com.ailanyin.mapper.HxVideoMapper;
import com.ailanyin.mapper.HxVideoSystemMapper;
import com.ailanyin.model.HxDangerousPoint;
@ -23,6 +24,8 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
@ -39,8 +42,6 @@ public class HxVideoServiceImpl implements HxVideoService {
private HxVideoMapper hxVideoMapper;
@Value("${upload.path}")
private String path;
@Value("${hx.ip}")
private String ip;
@Value("${redis.database}")
private String database;
@ -205,7 +206,11 @@ public class HxVideoServiceImpl implements HxVideoService {
}
String url = "http://" + ip + "/stream/live/" + fileName + ".flv";
redisService.set(database + ":rtmp:" + fileName, url);
try {
String url = "http://" + IpUtil.getLocalIp() + "/stream/live/" + fileName + ".flv";
redisService.set(database + ":rtmp:" + fileName, url);
} catch (UnknownHostException e) {
e.printStackTrace();
}
}
}

View File

@ -3,6 +3,7 @@ package com.ailanyin.admin.service.impl;
import com.ailanyin.admin.service.HxVideoSystemService;
import com.ailanyin.common.service.RedisService;
import com.ailanyin.common.utils.EmptyUtil;
import com.ailanyin.common.utils.IpUtil;
import com.ailanyin.mapper.HxVideoSystemMapper;
import com.ailanyin.model.HxVideoSystem;
import org.springframework.beans.factory.annotation.Autowired;
@ -12,6 +13,8 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.List;
/**
@ -25,8 +28,6 @@ public class HxVideoSystemServiceImpl implements HxVideoSystemService {
@Resource
private HxVideoSystemMapper hxVideoSystemMapper;
@Value("${hx.ip}")
private String ip;
@Value("${redis.database}")
private String database;
@ -65,9 +66,12 @@ public class HxVideoSystemServiceImpl implements HxVideoSystemService {
} catch (IOException e) {
e.printStackTrace();
}
String url = "http://" + ip + "/stream/live/video" + hxVideoSystem.getId()+".flv";
redisService.set(database + ":rtmp:video" + hxVideoSystem.getId(), url);
try {
String url = "http://" + IpUtil.getLocalIp() + "/stream/live/video" + hxVideoSystem.getId()+".flv";
redisService.set(database + ":rtmp:video" + hxVideoSystem.getId(), url);
} catch (UnknownHostException e) {
e.printStackTrace();
}
}
}
}

View File

@ -4,6 +4,7 @@ import com.ailanyin.admin.service.HxWorkHomeInfoService;
import com.ailanyin.common.service.RedisService;
import com.ailanyin.common.utils.BigDecimalUtil;
import com.ailanyin.common.utils.EmptyUtil;
import com.ailanyin.common.utils.IpUtil;
import com.ailanyin.mapper.HxWorkHomeInfoMapper;
import com.ailanyin.model.HxWorkHomeInfo;
import com.ailanyin.model.HxWorkHomeInfo;
@ -13,6 +14,8 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.List;
/**
@ -25,8 +28,6 @@ import java.util.List;
public class HxWorkHomeInfoServiceImpl implements HxWorkHomeInfoService {
@Resource
private HxWorkHomeInfoMapper hxWorkHomeInfoMapper;
@Value("${hx.ip}")
private String ip;
@Value("${redis.database}")
private String database;
@ -72,8 +73,12 @@ public class HxWorkHomeInfoServiceImpl implements HxWorkHomeInfoService {
e.printStackTrace();
}
String url = "http://" + ip + "/stream/live/hxWorkHomeInfo" + hxWorkHomeInfo.getId()+".flv";
redisService.set(database + ":rtmp:hxWorkHomeInfo" + hxWorkHomeInfo.getId(), url);
try {
String url = "http://" + IpUtil.getLocalIp() + "/stream/live/hxWorkHomeInfo" + hxWorkHomeInfo.getId()+".flv";
redisService.set(database + ":rtmp:hxWorkHomeInfo" + hxWorkHomeInfo.getId(), url);
} catch (UnknownHostException e) {
e.printStackTrace();
}
}
}

View File

@ -82,10 +82,11 @@ public class SocketServerClientHandler extends Thread {
}
private boolean checkIsNeedUpload(long cardNumber) {
if (redisService.hasKey(database + ":business:uploadInterval:" + cardNumber)) {
/*if (redisService.hasKey(database + ":business:uploadInterval:" + cardNumber)) {
return false;
}
redisService.set(database + ":business:uploadInterval:" + cardNumber, cardNumber, Integer.valueOf(redisService.get(database + ":business:config:uploadInterval").toString()));
*/
return true;
}
@ -132,11 +133,18 @@ public class SocketServerClientHandler extends Thread {
if (distance >= 100) {
return;
}
//多次进入或出去公房则不记录
if (checkIsManyLog(hxReaderInfo, distance, hxCarLocation.getLocationCardNum(), hxReaderInfo.getId())) {
return;
}
log.setDistance(distance);
log.setStatus(hxReaderInfo.getRecordDistance() < distance ? "0":"1");
//低电压
log.setLowVoltage(String.valueOf(Integer.parseInt(split[8], 16)));
//读卡器id
log.setReadId(hxReaderInfo.getId());
//读卡器名称
log.setReadName(hxReaderInfo.getReaderName());
//与正北夹角
log.setNorthAngle(hxReaderInfo.getNorthAngle());
//汽车横坐标
@ -162,6 +170,25 @@ public class SocketServerClientHandler extends Thread {
}
}
private boolean checkIsManyLog(HxReaderInfo hxReaderInfo, Integer distance, String cardNum, Long readerInfoId) {
Integer lastDistance = hxCarLocationLogMapper.selectLastLogDistanceByCardNumAndReadId(cardNum, readerInfoId);
if (lastDistance == null) {
return false;
}
if (lastDistance > hxReaderInfo.getRecordDistance() && distance > hxReaderInfo.getRecordDistance()) {
return true;
}
if (lastDistance < hxReaderInfo.getRecordDistance() && distance < hxReaderInfo.getRecordDistance()) {
return true;
}
return false;
}
private String calculationAbscissa(HxReaderInfo hxReaderInfo, Integer distance) {
HxCarLocationMap hxCarLocationMap = getHxCarLocationMap();
return String.valueOf(100 * (Float.valueOf(calculationSin(distance, hxReaderInfo.getNorthAngle())) * hxCarLocationMap.getScale()
@ -183,12 +210,12 @@ public class SocketServerClientHandler extends Thread {
}
private HxCarLocationMap getHxCarLocationMap() {
if (redisService.hasKey(database +":business:carLocationMap")) {
return (HxCarLocationMap) redisService.get(database +":business:carLocationMap");
if (redisService.hasKey(database + ":business:carLocationMap")) {
return (HxCarLocationMap) redisService.get(database + ":business:carLocationMap");
}
HxCarLocationMap map = hxCarLocationMapMapper.selectList(new HxCarLocationMap()).get(0);
redisService.set(database +":business:carLocationMap",map);
redisService.set(database + ":business:carLocationMap", map);
return map;
}
}

View File

@ -5,6 +5,7 @@ spring:
url: jdbc:dm://localhost:5236/AITEST?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: SYSDBA
password: root12345
#password: shangqie0428
driver-class-name: dm.jdbc.driver.DmDriver
validation-query: SELECT 1
@ -26,4 +27,5 @@ ailanyin:
database-url: jdbc:dm://localhost:5236/AITEST?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
database-username: SYSDBA
database-password: root12345
#database-password: shangqie0428

View File

@ -0,0 +1,40 @@
drop table "ROOT"."hx_car_location_log";
CREATE TABLE "ROOT"."hx_car_location_log"
(
"id" BIGINT IDENTITY(1, 1) NOT NULL,
"card_number" VARCHAR(255),
"distance" INT,
"low_voltage" INT,
"read_id" BIGINT,
"read_name" VARCHAR(255),
"north_angle" INT,
"car_abscissa" VARCHAR(255),
"car_ordinate" VARCHAR(255),
"car_id" VARCHAR(255),
"driver_name" VARCHAR(255),
"driver_phone" VARCHAR(255),
"status" VARCHAR(255),
"create_time" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("id")) STORAGE(ON "AITEST", CLUSTERBTR) ;
COMMENT ON TABLE "ROOT"."hx_car_location_log" IS '汽车位置记录日志';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."car_abscissa" IS '汽车横坐标';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."car_id" IS '车牌号';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."car_ordinate" IS '汽车纵坐标';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."card_number" IS '卡片编号';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."create_time" IS '录入时间';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."distance" IS '距离';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."driver_name" IS '驾驶人姓名';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."driver_phone" IS '驾驶人手机号';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."id" IS 'ID';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."low_voltage" IS '低电压(1->是0->否)';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."north_angle" IS '与正北夹角';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."read_id" IS '阅读器Id';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."read_name" IS '读卡器名称';
COMMENT ON COLUMN "ROOT"."hx_car_location_log"."status" IS '进or出(1->进0->出)';
CREATE UNIQUE INDEX "INDEX173691208784900" ON "ROOT"."hx_car_location_log"("id" ASC) STORAGE(ON "AITEST", CLUSTERBTR) ;

View File

@ -0,0 +1,14 @@
CREATE TABLE "ROOT"."hx_car_log_config"
(
"id" BIGINT IDENTITY(1, 1) NOT NULL,
"max_total" INT,
"max_day" INT,
"create_time" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("id")) STORAGE(ON "AITEST", CLUSTERBTR) ;
COMMENT ON COLUMN "ROOT"."hx_car_log_config"."max_day" IS '最大天数';
COMMENT ON COLUMN "ROOT"."hx_car_log_config"."max_total" IS '最大条数';
CREATE UNIQUE INDEX "INDEX26167740331500" ON "ROOT"."hx_car_log_config"("id" ASC) STORAGE(ON "AITEST", CLUSTERBTR) ;

View File

@ -0,0 +1,30 @@
drop table "ROOT"."hx_dangerous_work";
CREATE TABLE "ROOT"."hx_dangerous_work"
(
"id" BIGINT IDENTITY(1, 1) NOT NULL,
"start_date" VARCHAR(255),
"end_date" VARCHAR(255),
"dept_name" VARCHAR(255),
"work_address" VARCHAR(255),
"worker_total" VARCHAR(255),
"work_content" VARCHAR(255),
"remark" VARCHAR(255),
"create_time" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("id")) STORAGE(ON "AITEST", CLUSTERBTR) ;
COMMENT ON COLUMN "ROOT"."hx_dangerous_work"."dept_name" IS '部门名称';
COMMENT ON COLUMN "ROOT"."hx_dangerous_work"."end_date" IS '结束日期';
COMMENT ON COLUMN "ROOT"."hx_dangerous_work"."remark" IS '备注';
COMMENT ON COLUMN "ROOT"."hx_dangerous_work"."start_date" IS '开始日期';
COMMENT ON COLUMN "ROOT"."hx_dangerous_work"."work_address" IS '作业地点';
COMMENT ON COLUMN "ROOT"."hx_dangerous_work"."work_content" IS '作业内容';
COMMENT ON COLUMN "ROOT"."hx_dangerous_work"."worker_total" IS '作业人数';
CREATE INDEX "select_time_index" ON "ROOT"."hx_dangerous_work"("start_date" ASC,"end_date" ASC) STORAGE(ON "AITEST", CLUSTERBTR) ;
CREATE UNIQUE INDEX "INDEX18622088418500" ON "ROOT"."hx_dangerous_work"("id" ASC) STORAGE(ON "AITEST", CLUSTERBTR) ;

View File

@ -0,0 +1,31 @@
drop table "ROOT"."hx_hidden_danger";
CREATE TABLE "ROOT"."hx_hidden_danger"
(
"id" BIGINT IDENTITY(1, 1) NOT NULL,
"check_date" VARCHAR(255),
"address" VARCHAR(255),
"exist_problem" VARCHAR(255),
"category" VARCHAR(255),
"update_suggest" VARCHAR(255),
"temp_update_method" VARCHAR(255),
"responsible_unit" VARCHAR(255),
"responsible_person" VARCHAR(255),
"suggest_complete_time" VARCHAR(255),
"create_time" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("id")) STORAGE(ON "AITEST", CLUSTERBTR) ;
COMMENT ON COLUMN "ROOT"."hx_hidden_danger"."address" IS '所在位置';
COMMENT ON COLUMN "ROOT"."hx_hidden_danger"."category" IS '类别';
COMMENT ON COLUMN "ROOT"."hx_hidden_danger"."check_date" IS '检查日期';
COMMENT ON COLUMN "ROOT"."hx_hidden_danger"."exist_problem" IS '存在问题';
COMMENT ON COLUMN "ROOT"."hx_hidden_danger"."responsible_person" IS '责任人';
COMMENT ON COLUMN "ROOT"."hx_hidden_danger"."responsible_unit" IS '责任单位';
COMMENT ON COLUMN "ROOT"."hx_hidden_danger"."suggest_complete_time" IS '建议完成日期';
COMMENT ON COLUMN "ROOT"."hx_hidden_danger"."temp_update_method" IS '临时整改建议';
COMMENT ON COLUMN "ROOT"."hx_hidden_danger"."update_suggest" IS '整改建议';
CREATE UNIQUE INDEX "INDEX915279446700" ON "ROOT"."hx_hidden_danger"("id" ASC) STORAGE(ON "AITEST", CLUSTERBTR) ;

View File

@ -0,0 +1,25 @@
CREATE TABLE "ROOT"."hx_month_dynamic"
(
"id" BIGINT IDENTITY(1, 1) NOT NULL,
"month" VARCHAR(255),
"income" VARCHAR(255),
"expenditure" VARCHAR(255),
"new_contract" VARCHAR(255),
"safety_problem" VARCHAR(255),
"quality_problem" VARCHAR(255),
"create_time" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("id")) STORAGE(ON "AITEST", CLUSTERBTR) ;
COMMENT ON TABLE "ROOT"."hx_month_dynamic" IS '本月动态';
COMMENT ON COLUMN "ROOT"."hx_month_dynamic"."create_time" IS '录入时间';
COMMENT ON COLUMN "ROOT"."hx_month_dynamic"."expenditure" IS '本月支出';
COMMENT ON COLUMN "ROOT"."hx_month_dynamic"."id" IS 'ID';
COMMENT ON COLUMN "ROOT"."hx_month_dynamic"."income" IS '本月收入';
COMMENT ON COLUMN "ROOT"."hx_month_dynamic"."month" IS '月份';
COMMENT ON COLUMN "ROOT"."hx_month_dynamic"."new_contract" IS '本月新签合同数';
COMMENT ON COLUMN "ROOT"."hx_month_dynamic"."quality_problem" IS '本月质量问题';
COMMENT ON COLUMN "ROOT"."hx_month_dynamic"."safety_problem" IS '本月安全问题数';
CREATE UNIQUE INDEX "INDEX4638228020500" ON "ROOT"."hx_month_dynamic"("id" ASC) STORAGE(ON "AITEST", CLUSTERBTR) ;

View File

@ -0,0 +1,31 @@
drop table "ROOT"."hx_reader_info";
CREATE TABLE "ROOT"."hx_reader_info"
(
"id" BIGINT NOT NULL,
"reader_name" VARCHAR(255),
"abscissa" INT,
"ordinate" INT,
"north_angle" INT,
"reader_ip" VARCHAR(255),
"reader_port" INT,
"record_distance" INT,
"create_time" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("id")) STORAGE(ON "AITEST", CLUSTERBTR) ;
COMMENT ON TABLE "ROOT"."hx_reader_info" IS '读卡器';
COMMENT ON COLUMN "ROOT"."hx_reader_info"."abscissa" IS '横坐标';
COMMENT ON COLUMN "ROOT"."hx_reader_info"."create_time" IS '录入时间';
COMMENT ON COLUMN "ROOT"."hx_reader_info"."id" IS 'ID';
COMMENT ON COLUMN "ROOT"."hx_reader_info"."north_angle" IS '与正北夹角';
COMMENT ON COLUMN "ROOT"."hx_reader_info"."ordinate" IS '纵坐标';
COMMENT ON COLUMN "ROOT"."hx_reader_info"."reader_ip" IS '读卡器静态ip';
COMMENT ON COLUMN "ROOT"."hx_reader_info"."reader_name" IS '读卡器名称';
COMMENT ON COLUMN "ROOT"."hx_reader_info"."reader_port" IS '读卡器端口';
COMMENT ON COLUMN "ROOT"."hx_reader_info"."record_distance" IS '进出工房设置距离';
CREATE UNIQUE INDEX "INDEX6215806402700" ON "ROOT"."hx_reader_info"("id" ASC) STORAGE(ON "AITEST", CLUSTERBTR) ;

View File

@ -0,0 +1,8 @@
CREATE TABLE "ROOT"."hx_table_config"
(
"table_name" VARCHAR(255) NULL,
"key_info" TEXT NULL
);
INSERT INTO "ROOT"."hx_table_config"("table_name","key_info") VALUES('hx_hidden_danger','{"checkDate":true,"suggestCompleteTime":true,"category":true,"responsibleUnit":true,"address":true,"existProblem":true,"updateSuggest":true,"tempUpdateMethod":true,"responsiblePerson":true}');

View File

@ -91,4 +91,4 @@ INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","pat
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2058,'日志删除',2043,2,'',null,null,1,0,'F','0','0','business:hxCarLocationLog:remove','#','admin','2022-01-17 15:31:31','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2060,'地图信息修改',2045,2,'',null,null,1,0,'F','0','0','business:hxCarLocationMap:edit','#','admin','2022-01-17 15:33:59','',null,'');
SET IDENTITY_INSERT "ROOT"."sys_menu" OFF;
SET IDENTITY_INSERT "ROOT"."sys_menu" OFF;

View File

@ -0,0 +1,94 @@
delete from "ROOT"."sys_menu";
SET IDENTITY_INSERT "ROOT"."sys_menu" ON;
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1,'系统管理',0,12,'system',null,'',1,0,'M','0','0','','system','admin','2021-10-12 11:26:30','admin','2021-11-19 20:16:30','系统管理目录');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2,'系统监控',0,13,'monitor',null,'',1,0,'M','0','0','','monitor','admin','2021-10-12 11:26:30','admin','2021-11-19 20:16:34','系统监控目录');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(100,'用户管理',1,1,'user','system/user/index','',1,0,'C','0','0','system:user:list','user','admin','2021-10-12 11:26:30','admin','2021-10-12 13:31:12','用户管理菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(101,'角色管理',1,2,'role','system/role/index','',1,0,'C','0','0','system:role:list','peoples','admin','2021-10-12 11:26:30','',null,'角色管理菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(102,'菜单管理',1,3,'menu','system/menu/index','',1,0,'C','0','0','system:menu:list','tree-table','admin','2021-10-12 11:26:30','',null,'菜单管理菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(103,'部门管理',1,4,'dept','system/dept/index','',1,0,'C','0','0','system:dept:list','tree','admin','2021-10-12 11:26:30','',null,'部门管理菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(104,'岗位管理',1,5,'post','system/post/index','',1,0,'C','0','0','system:post:list','post','admin','2021-10-12 11:26:30','',null,'岗位管理菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(105,'字典管理',1,6,'dict','system/dict/index','',1,0,'C','0','0','system:dict:list','dict','admin','2021-10-12 11:26:30','',null,'字典管理菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(106,'参数设置',1,7,'config','system/config/index','',1,0,'C','0','0','system:config:list','edit','admin','2021-10-12 11:26:30','','2021-10-15 17:20:32','参数设置菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(112,'服务监控',2,2,'server','monitor/server/index','',1,1,'C','0','0','monitor:server:list','server','admin','2021-10-12 11:26:30','','2021-11-03 09:16:24','服务监控菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(113,'缓存监控',2,3,'cache','monitor/cache/index','',1,1,'C','0','0','monitor:cache:list','redis','admin','2021-10-12 11:26:30','','2021-11-03 09:16:20','缓存监控菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(500,'操作日志',1,9,'operlog','monitor/operlog/index','',1,1,'C','0','0','system:log:list','form','admin','2021-10-12 11:26:30','','2021-10-29 17:26:50','操作日志菜单');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1001,'用户查询',100,1,'','','',1,0,'F','0','0','system:user:query','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1002,'用户新增',100,2,'','','',1,0,'F','0','0','system:user:add','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1003,'用户修改',100,3,'','','',1,0,'F','0','0','system:user:edit','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1004,'用户删除',100,4,'','','',1,0,'F','0','0','system:user:remove','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1005,'用户导出',100,5,'','','',1,0,'F','0','0','system:user:export','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1006,'用户导入',100,6,'','','',1,0,'F','0','0','system:user:import','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1007,'重置密码',100,7,'','','',1,0,'F','0','0','system:user:resetPwd','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1008,'角色查询',101,1,'','','',1,0,'F','0','0','system:role:query','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1009,'角色新增',101,2,'','','',1,0,'F','0','0','system:role:add','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1010,'角色修改',101,3,'','','',1,0,'F','0','0','system:role:edit','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1011,'角色删除',101,4,'','','',1,0,'F','0','0','system:role:remove','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1012,'权限重置',101,5,'','','',1,0,'F','0','0','system:role:refresh','#','admin','2021-10-12 11:26:30','','2021-10-26 14:53:55','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1013,'菜单查询',102,1,'','','',1,0,'F','0','0','system:menu:query','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1014,'菜单新增',102,2,'','','',1,0,'F','0','0','system:menu:add','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1015,'菜单修改',102,3,'','','',1,0,'F','0','0','system:menu:edit','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1016,'菜单删除',102,4,'','','',1,0,'F','0','0','system:menu:remove','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1017,'部门查询',103,1,'','','',1,0,'F','0','0','system:dept:query','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1018,'部门新增',103,2,'','','',1,0,'F','0','0','system:dept:add','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1019,'部门修改',103,3,'','','',1,0,'F','0','0','system:dept:edit','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1020,'部门删除',103,4,'','','',1,0,'F','0','0','system:dept:remove','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1021,'岗位查询',104,1,'','','',1,0,'F','0','0','system:post:query','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1022,'岗位新增',104,2,'','','',1,0,'F','0','0','system:post:add','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1023,'岗位修改',104,3,'','','',1,0,'F','0','0','system:post:edit','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1024,'岗位删除',104,4,'','','',1,0,'F','0','0','system:post:remove','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1025,'岗位导出',104,5,'','','',1,0,'F','0','0','system:post:export','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1026,'字典查询',105,1,'#','','',1,0,'F','0','0','system:dict:query','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1027,'字典新增',105,2,'#','','',1,0,'F','0','0','system:dict:add','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1028,'字典修改',105,3,'#','','',1,0,'F','0','0','system:dict:edit','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1029,'字典删除',105,4,'#','','',1,0,'F','0','0','system:dict:remove','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1030,'字典导出',105,5,'#','','',1,0,'F','0','0','system:dict:export','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1031,'参数查询',106,1,'#','','',1,0,'F','0','0','system:config:query','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1032,'参数新增',106,2,'#','','',1,0,'F','0','0','system:config:add','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1033,'参数修改',106,3,'#','','',1,0,'F','0','0','system:config:edit','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1034,'参数删除',106,4,'#','','',1,0,'F','0','0','system:config:remove','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1035,'参数导出',106,5,'#','','',1,0,'F','0','0','system:config:export','#','admin','2021-10-12 11:26:30','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1040,'操作查询',500,1,'#','','',1,0,'F','0','0','system:log:query','#','admin','2021-10-12 11:26:30','','2021-10-29 13:27:44','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1041,'操作删除',500,2,'#','','',1,0,'F','0','0','system:log:remove','#','admin','2021-10-12 11:26:30','','2021-10-29 13:27:49','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(1042,'日志导出',500,3,'#','','',1,0,'F','0','0','system:log:export','#','admin','2021-10-12 11:26:30','','2021-11-02 10:55:10','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2002,'黑名单管理',1,10,'blacklist','system/blacklist/index',null,1,1,'C','0','0','','user','','2021-11-01 16:08:18','','2021-11-01 17:30:08','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2003,'黑名单查询',2002,1,'',null,null,1,0,'F','0','0','system:blacklist:query','#','','2021-11-02 10:52:47','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2004,'黑名单删除',2002,2,'',null,null,1,0,'F','0','0','system:blacklist:remove','#','','2021-11-02 10:53:51','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2005,'黑名单导出',2002,3,'',null,null,1,0,'F','0','0','system:blacklist:export','#','','2021-11-02 10:54:21','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2006,'异常监控',2,1,'exception','monitor/exception/index',null,1,1,'C','0','0','','bug','','2021-11-02 21:51:00','','2021-11-03 09:16:54','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2007,'回收站',100,10,'',null,null,1,0,'F','0','0','system:user:recovery','#','','2021-11-03 17:00:17','','2021-11-03 17:00:38','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2008,'驾驶舱总览',2014,1,'/bigScreen/drivingCabin','',null,0,0,'C','0','0','','druid','admin','2021-11-19 20:01:17','admin','2021-12-03 16:52:27','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2009,'科研生产',2014,2,'/bigScreen/scientific',null,null,0,0,'C','0','0','','nested','admin','2021-11-19 20:17:35','admin','2021-12-03 17:10:50','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2010,'经营管理',2014,3,'/bigScreen/management',null,null,0,0,'C','0','0','','monitor','admin','2021-11-19 20:18:17','admin','2021-12-03 17:13:37','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2011,'质量管理',2014,4,'/bigScreen/qualityManage',null,null,0,0,'C','0','0','','validCode','admin','2021-11-19 20:20:38','admin','2021-12-03 17:19:18','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2012,'安全管理',2014,5,'/bigScreen/securityManage',null,null,0,0,'C','0','0','','international','admin','2021-11-19 20:21:35','admin','2021-12-03 17:25:18','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2013,'信息化管理',2014,6,'/bigScreen/information',null,null,0,0,'C','0','0','','redis','admin','2021-11-19 20:33:02','admin','2021-12-03 17:25:27','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2014,'科研生产驾驶舱',0,1,'bigScreen',null,null,1,0,'M','0','0','','guide','admin','2021-11-19 21:03:46','admin','2021-12-03 17:02:53','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2015,'用户字典',2014,7,'bigScreen','bigScreen/userDictionary/index',null,1,0,'C','0','0','','clipboard','admin','2021-12-06 09:08:53','admin','2021-12-06 09:11:45','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2023,'数据管理',0,2,'chartList',null,null,1,0,'M','0','0','','list','admin','2021-12-16 09:23:15','admin','2021-12-22 16:15:41','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2024,'驾驶舱总览',2023,1,'page1','chartList/page1/index',null,1,0,'C','0','0','','chart','admin','2021-12-16 09:24:06','admin','2021-12-16 11:11:50','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2032,'质量管理',2023,4,'page4','chartList/page4/index',null,1,0,'C','0','0','','chart','admin','2021-12-16 11:09:15','admin','2021-12-16 16:07:35','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2035,'科研生产',2023,2,'page2',null,null,1,0,'M','0','0','','list','admin','2021-12-16 11:18:30','admin','2021-12-22 16:14:58','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2036,'作业动态',2035,1,'one','chartList/page2/one/index',null,1,0,'C','0','0','','chart','admin','2021-12-16 11:18:54','admin','2021-12-16 11:21:30','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2037,'生产管理',2035,2,'two','chartList/page2/two/index',null,1,0,'C','0','0','','chart','admin','2021-12-16 11:19:56','admin','2021-12-16 11:21:43','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2038,'项目管理',2035,3,'three','chartList/page2/three/index',null,1,0,'C','0','0','','chart','admin','2021-12-16 11:20:15','admin','2021-12-16 11:21:55','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2039,'安全管理',2023,5,'page5','chartList/page5/index',null,1,0,'C','0','0',null,'chart','admin','2021-12-16 16:11:23','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2040,'经营管理',2023,3,'page3','chartList/page3/index',null,1,0,'C','0','0','','chart','admin','2021-12-16 17:06:38','admin','2021-12-17 14:41:53','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2041,'信息化管理',2023,6,'page6','chartList/page6/index',null,1,0,'C','0','0','','chart','admin','2021-12-16 17:07:38','admin','2021-12-17 10:00:59','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2042,'车辆管理',0,3,'vehicleMent',null,null,1,0,'M','0','0','','example','admin','2022-01-15 09:48:02','admin','2022-01-15 09:50:29','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2043,'日志管理',2042,5,'journal','vehicleMent/journal',null,1,0,'C','0','0','business:hxCarLocationLog:list','chart','admin','2022-01-15 09:54:27','admin','2022-01-17 15:36:16','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2044,'车辆列表',2042,4,'add','vehicleMent/add',null,1,0,'C','0','0','business:hxCarLocation:list','chart','admin','2022-01-15 09:56:08','admin','2022-01-17 15:34:50','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2045,'地图管理',2042,2,'map','vehicleMent/map',null,1,0,'C','0','0','business:hxCarLocationMap:list','chart','admin','2022-01-15 09:57:01','admin','2022-01-17 15:36:36','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2046,'读卡器管理',2042,3,'reader','vehicleMent/reader',null,1,0,'C','0','0','business:hxReaderInfo:list','chart','admin','2022-01-15 10:08:48','admin','2022-01-17 15:36:26','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2048,'车辆总览(大图)',2042,1,'overview','vehicleMent/overview',null,1,0,'C','0','0','','chart','admin','2022-01-15 16:30:06','admin','2022-02-18 09:11:42','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2049,'车辆新增',2044,1,'',null,null,1,0,'F','0','0','business:hxCarLocation:add','#','admin','2022-01-17 15:25:15','admin','2022-01-17 15:25:50','');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2050,'车辆修改',2044,2,'',null,null,1,0,'F','0','0','business:hxCarLocation:edit','#','admin','2022-01-17 15:26:27','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2052,'删除车辆',2044,4,'',null,null,1,0,'F','0','0','business:hxCarLocation:remove','#','admin','2022-01-17 15:27:24','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2053,'读卡器新增',2046,1,'',null,null,1,0,'F','0','0','business:hxReaderInfo:add','#','admin','2022-01-17 15:29:03','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2054,'读卡器修改',2046,2,'',null,null,1,0,'F','0','0','business:hxReaderInfo:edit','#','admin','2022-01-17 15:29:25','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2056,'读卡器删除',2046,4,'',null,null,1,0,'F','0','0','business:hxReaderInfo:remove','#','admin','2022-01-17 15:30:11','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2058,'日志删除',2043,2,'',null,null,1,0,'F','0','0','business:hxCarLocationLog:remove','#','admin','2022-01-17 15:31:31','',null,'');
INSERT INTO "ROOT"."sys_menu"("menu_id","menu_name","parent_id","order_num","path","component","query","is_frame","is_cache","menu_type","visible","status","perms","icon","create_by","create_time","update_by","update_time","remark") VALUES(2060,'地图信息修改',2045,2,'',null,null,1,0,'F','0','0','business:hxCarLocationMap:edit','#','admin','2022-01-17 15:33:59','',null,'');
SET IDENTITY_INSERT "ROOT"."sys_menu" OFF;

View File

@ -0,0 +1,145 @@
delete from "ROOT"."sys_role_menu";
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,100);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,101);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,102);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,103);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,104);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,105);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,106);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,112);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,113);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,500);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1001);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1002);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1003);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1004);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1005);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1006);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1007);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1008);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1009);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1010);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1011);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1012);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1013);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1014);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1015);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1016);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1017);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1018);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1019);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1020);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1021);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1022);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1023);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1024);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1025);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1026);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1027);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1028);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1029);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1030);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1031);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1032);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1033);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1034);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1035);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1040);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1041);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,1042);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2002);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2003);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2004);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2005);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2006);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2007);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2008);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2009);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2010);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2011);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2012);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2013);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2014);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2015);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2023);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2024);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2032);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2035);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2036);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2037);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2038);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2039);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2040);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2041);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2042);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2043);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2044);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2045);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2046);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2048);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2049);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2050);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2052);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2053);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2054);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2056);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2058);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(1,2060);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,2);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,100);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,101);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,102);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,103);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,104);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,105);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,106);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,112);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,113);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,500);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1001);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1002);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1003);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1004);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1005);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1006);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1007);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1008);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1009);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1010);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1011);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1012);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1013);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1014);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1015);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1016);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1017);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1018);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1019);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1020);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1021);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1022);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1023);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1024);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1025);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1026);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1027);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1028);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1029);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1030);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1031);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1032);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1033);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1034);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1035);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1040);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1041);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,1042);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,2002);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,2003);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,2004);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,2005);
INSERT INTO "ROOT"."sys_role_menu"("role_id","menu_id") VALUES(2,2006);