+
diff --git a/device/src/main/java/com/njcn/gather/device/source/pojo/param/PqSourceParam.java b/detection/src/main/java/com/njcn/gather/source/pojo/param/PqSourceParam.java
similarity index 98%
rename from device/src/main/java/com/njcn/gather/device/source/pojo/param/PqSourceParam.java
rename to detection/src/main/java/com/njcn/gather/source/pojo/param/PqSourceParam.java
index 779d0d67..bd5f88c8 100644
--- a/device/src/main/java/com/njcn/gather/device/source/pojo/param/PqSourceParam.java
+++ b/detection/src/main/java/com/njcn/gather/source/pojo/param/PqSourceParam.java
@@ -1,4 +1,4 @@
-package com.njcn.gather.device.source.pojo.param;
+package com.njcn.gather.source.pojo.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.gather.device.pojo.constant.DevValidMessage;
diff --git a/device/src/main/java/com/njcn/gather/device/source/pojo/po/PqSource.java b/detection/src/main/java/com/njcn/gather/source/pojo/po/PqSource.java
similarity index 95%
rename from device/src/main/java/com/njcn/gather/device/source/pojo/po/PqSource.java
rename to detection/src/main/java/com/njcn/gather/source/pojo/po/PqSource.java
index 24f19577..b08ca723 100644
--- a/device/src/main/java/com/njcn/gather/device/source/pojo/po/PqSource.java
+++ b/detection/src/main/java/com/njcn/gather/source/pojo/po/PqSource.java
@@ -1,4 +1,4 @@
-package com.njcn.gather.device.source.pojo.po;
+package com.njcn.gather.source.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.mybatisplus.bo.BaseEntity;
diff --git a/device/src/main/java/com/njcn/gather/device/source/pojo/po/SourceInitialize.java b/detection/src/main/java/com/njcn/gather/source/pojo/po/SourceInitialize.java
similarity index 95%
rename from device/src/main/java/com/njcn/gather/device/source/pojo/po/SourceInitialize.java
rename to detection/src/main/java/com/njcn/gather/source/pojo/po/SourceInitialize.java
index 13c66fd7..694ccb5d 100644
--- a/device/src/main/java/com/njcn/gather/device/source/pojo/po/SourceInitialize.java
+++ b/detection/src/main/java/com/njcn/gather/source/pojo/po/SourceInitialize.java
@@ -1,4 +1,4 @@
-package com.njcn.gather.device.source.pojo.po;
+package com.njcn.gather.source.pojo.po;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
diff --git a/device/src/main/java/com/njcn/gather/device/source/pojo/po/SourceParam.java b/detection/src/main/java/com/njcn/gather/source/pojo/po/SourceParam.java
similarity index 87%
rename from device/src/main/java/com/njcn/gather/device/source/pojo/po/SourceParam.java
rename to detection/src/main/java/com/njcn/gather/source/pojo/po/SourceParam.java
index f3b347dd..b2b8eae5 100644
--- a/device/src/main/java/com/njcn/gather/device/source/pojo/po/SourceParam.java
+++ b/detection/src/main/java/com/njcn/gather/source/pojo/po/SourceParam.java
@@ -1,4 +1,4 @@
-package com.njcn.gather.device.source.pojo.po;
+package com.njcn.gather.source.pojo.po;
import lombok.Data;
diff --git a/device/src/main/java/com/njcn/gather/device/source/service/IPqSourceService.java b/detection/src/main/java/com/njcn/gather/source/service/IPqSourceService.java
similarity index 86%
rename from device/src/main/java/com/njcn/gather/device/source/service/IPqSourceService.java
rename to detection/src/main/java/com/njcn/gather/source/service/IPqSourceService.java
index 72a93cba..bd9f4fbe 100644
--- a/device/src/main/java/com/njcn/gather/device/source/service/IPqSourceService.java
+++ b/detection/src/main/java/com/njcn/gather/source/service/IPqSourceService.java
@@ -1,11 +1,11 @@
-package com.njcn.gather.device.source.service;
+package com.njcn.gather.source.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.njcn.gather.device.source.pojo.param.PqSourceParam;
-import com.njcn.gather.device.source.pojo.po.PqSource;
-import com.njcn.gather.device.source.pojo.po.SourceInitialize;
-import com.njcn.gather.device.source.pojo.po.SourceParam;
+import com.njcn.gather.source.pojo.param.PqSourceParam;
+import com.njcn.gather.source.pojo.po.PqSource;
+import com.njcn.gather.source.pojo.po.SourceInitialize;
+import com.njcn.gather.source.pojo.po.SourceParam;
import java.util.List;
import java.util.Map;
diff --git a/device/src/main/java/com/njcn/gather/device/source/service/impl/PqSourceServiceImpl.java b/detection/src/main/java/com/njcn/gather/source/service/impl/PqSourceServiceImpl.java
similarity index 94%
rename from device/src/main/java/com/njcn/gather/device/source/service/impl/PqSourceServiceImpl.java
rename to detection/src/main/java/com/njcn/gather/source/service/impl/PqSourceServiceImpl.java
index 89e400e9..c75f4099 100644
--- a/device/src/main/java/com/njcn/gather/device/source/service/impl/PqSourceServiceImpl.java
+++ b/detection/src/main/java/com/njcn/gather/source/service/impl/PqSourceServiceImpl.java
@@ -1,4 +1,4 @@
-package com.njcn.gather.device.source.service.impl;
+package com.njcn.gather.source.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
@@ -12,14 +12,14 @@ import com.njcn.common.pojo.enums.common.DataStateEnum;
import com.njcn.common.pojo.exception.BusinessException;
import com.njcn.gather.device.pojo.enums.CommonEnum;
import com.njcn.gather.device.pojo.enums.DevResponseEnum;
-import com.njcn.gather.device.source.mapper.PqSourceMapper;
-import com.njcn.gather.device.source.pojo.param.PqSourceParam;
-import com.njcn.gather.device.source.pojo.po.PqSource;
-import com.njcn.gather.device.source.pojo.po.SourceInitialize;
-import com.njcn.gather.device.source.pojo.po.SourceParam;
-import com.njcn.gather.device.source.service.IPqSourceService;
-import com.njcn.gather.device.type.entity.DevType;
-import com.njcn.gather.device.type.service.IDevTypeService;
+import com.njcn.gather.source.mapper.PqSourceMapper;
+import com.njcn.gather.source.pojo.param.PqSourceParam;
+import com.njcn.gather.source.pojo.po.PqSource;
+import com.njcn.gather.source.pojo.po.SourceInitialize;
+import com.njcn.gather.source.pojo.po.SourceParam;
+import com.njcn.gather.source.service.IPqSourceService;
+import com.njcn.gather.type.entity.DevType;
+import com.njcn.gather.type.service.IDevTypeService;
import com.njcn.gather.system.dictionary.pojo.po.DictData;
import com.njcn.gather.system.dictionary.service.IDictDataService;
import com.njcn.web.factory.PageFactory;
diff --git a/device/src/main/java/com/njcn/gather/device/type/controller/DevTypeController.java b/detection/src/main/java/com/njcn/gather/type/controller/DevTypeController.java
similarity index 73%
rename from device/src/main/java/com/njcn/gather/device/type/controller/DevTypeController.java
rename to detection/src/main/java/com/njcn/gather/type/controller/DevTypeController.java
index ba7fffd1..15e596cd 100644
--- a/device/src/main/java/com/njcn/gather/device/type/controller/DevTypeController.java
+++ b/detection/src/main/java/com/njcn/gather/type/controller/DevTypeController.java
@@ -1,26 +1,19 @@
-package com.njcn.gather.device.type.controller;
+package com.njcn.gather.type.controller;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.common.pojo.annotation.OperateInfo;
import com.njcn.common.pojo.enums.common.LogEnum;
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
import com.njcn.common.pojo.response.HttpResult;
-import com.njcn.common.utils.LogUtil;
-import com.njcn.gather.device.type.entity.DevType;
-import com.njcn.gather.device.type.service.IDevTypeService;
-import com.njcn.gather.system.dictionary.pojo.param.DictDataParam;
-import com.njcn.gather.system.dictionary.pojo.po.DictData;
-import com.njcn.gather.system.dictionary.service.IDictDataService;
+import com.njcn.gather.type.entity.DevType;
+import com.njcn.gather.type.service.IDevTypeService;
import com.njcn.web.utils.HttpResultUtil;
import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
diff --git a/device/src/main/java/com/njcn/gather/device/type/entity/DevType.java b/detection/src/main/java/com/njcn/gather/type/entity/DevType.java
similarity index 95%
rename from device/src/main/java/com/njcn/gather/device/type/entity/DevType.java
rename to detection/src/main/java/com/njcn/gather/type/entity/DevType.java
index fdd8fa28..3e8d0274 100644
--- a/device/src/main/java/com/njcn/gather/device/type/entity/DevType.java
+++ b/detection/src/main/java/com/njcn/gather/type/entity/DevType.java
@@ -1,4 +1,4 @@
-package com.njcn.gather.device.type.entity;
+package com.njcn.gather.type.entity;
import com.baomidou.mybatisplus.annotation.TableName;
diff --git a/device/src/main/java/com/njcn/gather/device/type/mapper/DevTypeMapper.java b/detection/src/main/java/com/njcn/gather/type/mapper/DevTypeMapper.java
similarity index 68%
rename from device/src/main/java/com/njcn/gather/device/type/mapper/DevTypeMapper.java
rename to detection/src/main/java/com/njcn/gather/type/mapper/DevTypeMapper.java
index 8bb72349..66494326 100644
--- a/device/src/main/java/com/njcn/gather/device/type/mapper/DevTypeMapper.java
+++ b/detection/src/main/java/com/njcn/gather/type/mapper/DevTypeMapper.java
@@ -1,8 +1,8 @@
-package com.njcn.gather.device.type.mapper;
+package com.njcn.gather.type.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.njcn.gather.device.type.entity.DevType;
+import com.njcn.gather.type.entity.DevType;
/**
*
diff --git a/device/src/main/java/com/njcn/gather/device/type/mapper/mapping/DevTypeMapper.xml b/detection/src/main/java/com/njcn/gather/type/mapper/mapping/DevTypeMapper.xml
similarity index 69%
rename from device/src/main/java/com/njcn/gather/device/type/mapper/mapping/DevTypeMapper.xml
rename to detection/src/main/java/com/njcn/gather/type/mapper/mapping/DevTypeMapper.xml
index 2c0fe0ee..459ba18b 100644
--- a/device/src/main/java/com/njcn/gather/device/type/mapper/mapping/DevTypeMapper.xml
+++ b/detection/src/main/java/com/njcn/gather/type/mapper/mapping/DevTypeMapper.xml
@@ -1,5 +1,5 @@
-
+
diff --git a/device/src/main/java/com/njcn/gather/device/type/service/IDevTypeService.java b/detection/src/main/java/com/njcn/gather/type/service/IDevTypeService.java
similarity index 75%
rename from device/src/main/java/com/njcn/gather/device/type/service/IDevTypeService.java
rename to detection/src/main/java/com/njcn/gather/type/service/IDevTypeService.java
index 767ba4ac..021279b3 100644
--- a/device/src/main/java/com/njcn/gather/device/type/service/IDevTypeService.java
+++ b/detection/src/main/java/com/njcn/gather/type/service/IDevTypeService.java
@@ -1,7 +1,7 @@
-package com.njcn.gather.device.type.service;
+package com.njcn.gather.type.service;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.njcn.gather.device.type.entity.DevType;
+import com.njcn.gather.type.entity.DevType;
import java.util.List;
diff --git a/device/src/main/java/com/njcn/gather/device/type/service/impl/DevTypeServiceImpl.java b/detection/src/main/java/com/njcn/gather/type/service/impl/DevTypeServiceImpl.java
similarity index 81%
rename from device/src/main/java/com/njcn/gather/device/type/service/impl/DevTypeServiceImpl.java
rename to detection/src/main/java/com/njcn/gather/type/service/impl/DevTypeServiceImpl.java
index 1e2757bd..d8bda016 100644
--- a/device/src/main/java/com/njcn/gather/device/type/service/impl/DevTypeServiceImpl.java
+++ b/detection/src/main/java/com/njcn/gather/type/service/impl/DevTypeServiceImpl.java
@@ -1,11 +1,11 @@
-package com.njcn.gather.device.type.service.impl;
+package com.njcn.gather.type.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njcn.common.pojo.enums.common.DataStateEnum;
-import com.njcn.gather.device.type.entity.DevType;
-import com.njcn.gather.device.type.mapper.DevTypeMapper;
-import com.njcn.gather.device.type.service.IDevTypeService;
+import com.njcn.gather.type.entity.DevType;
+import com.njcn.gather.type.mapper.DevTypeMapper;
+import com.njcn.gather.type.service.IDevTypeService;
import org.springframework.stereotype.Service;
import java.util.List;
diff --git a/device/src/main/java/com/njcn/gather/device/device/util/DeviceUtil.java b/detection/src/main/java/com/njcn/gather/util/DeviceUtil.java
similarity index 97%
rename from device/src/main/java/com/njcn/gather/device/device/util/DeviceUtil.java
rename to detection/src/main/java/com/njcn/gather/util/DeviceUtil.java
index 9a6fba40..999baceb 100644
--- a/device/src/main/java/com/njcn/gather/device/device/util/DeviceUtil.java
+++ b/detection/src/main/java/com/njcn/gather/util/DeviceUtil.java
@@ -1,4 +1,4 @@
-package com.njcn.gather.device.device.util;
+package com.njcn.gather.util;
import com.njcn.common.utils.sm.Sm4Utils;
import com.njcn.common.utils.sm.ThreeDesUtil;
diff --git a/device/src/main/resources/mapper/PqScriptCheckdataMapper.xml b/detection/src/main/resources/mapper/PqScriptCheckdataMapper.xml
similarity index 91%
rename from device/src/main/resources/mapper/PqScriptCheckdataMapper.xml
rename to detection/src/main/resources/mapper/PqScriptCheckdataMapper.xml
index a044cb84..7439171f 100644
--- a/device/src/main/resources/mapper/PqScriptCheckdataMapper.xml
+++ b/detection/src/main/resources/mapper/PqScriptCheckdataMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
+
diff --git a/device/pom.xml b/device/pom.xml
deleted file mode 100644
index eeaf245c..00000000
--- a/device/pom.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
- 4.0.0
-
- com.njcn.gather
- CN_Gather
- 1.0.0
-
- device
-
-
-
- com.njcn
- njcn-common
- 0.0.1
-
-
-
- com.njcn
- mybatis-plus
- 0.0.1
-
-
-
- com.njcn
- spingboot2.3.12
- 2.3.12
-
-
- com.njcn.gather
- system
- 1.0.0
- compile
-
-
- com.alibaba
- fastjson
- 1.2.83
-
-
- com.njcn.gather
- storage
- 1.0.0
- compile
-
-
-
-
-
\ No newline at end of file
diff --git a/device/src/main/java/com/njcn/gather/device/device/pojo/enums/TimeCheckResultEnum.java b/device/src/main/java/com/njcn/gather/device/device/pojo/enums/TimeCheckResultEnum.java
deleted file mode 100644
index 40e16e24..00000000
--- a/device/src/main/java/com/njcn/gather/device/device/pojo/enums/TimeCheckResultEnum.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.njcn.gather.device.device.pojo.enums;
-
-import lombok.Getter;
-
-/**
- * @author caozehui
- * @data 2024-12-11
- */
-@Getter
-public enum TimeCheckResultEnum {
- UNQUALIFY(0, "不合格"),
- QUALIFY(1, "合格"),
- UNKNOWN(2, "/");
-
- private Integer value;
- private String msg;
-
- TimeCheckResultEnum(Integer value, String msg) {
- this.value = value;
- this.msg = msg;
- }
-}
diff --git a/device/src/main/java/com/njcn/gather/device/script/mapper/mapping/PqScriptCheckDataMapper.xml b/device/src/main/java/com/njcn/gather/device/script/mapper/mapping/PqScriptCheckDataMapper.xml
deleted file mode 100644
index 6b86ac06..00000000
--- a/device/src/main/java/com/njcn/gather/device/script/mapper/mapping/PqScriptCheckDataMapper.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/entrance/pom.xml b/entrance/pom.xml
index 8122c169..c1e8c29e 100644
--- a/entrance/pom.xml
+++ b/entrance/pom.xml
@@ -18,7 +18,7 @@
com.njcn.gather
- device
+ detection
1.0.0
@@ -26,11 +26,6 @@
user
1.0.0
-
- com.njcn.gather
- detection
- 1.0.0
-
com.njcn.gather
diff --git a/entrance/src/main/resources/application.yml b/entrance/src/main/resources/application.yml
index b4260152..767c8e52 100644
--- a/entrance/src/main/resources/application.yml
+++ b/entrance/src/main/resources/application.yml
@@ -6,7 +6,7 @@ spring:
datasource:
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://192.168.1.24:13306/pqs9100?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=CTT
+ url: jdbc:mysql://127.0.0.1:13306/pqs9100?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=CTT
username: root
password: njcnpqs
#初始化建立物理连接的个数、最小、最大连接数
diff --git a/pom.xml b/pom.xml
index 5dc61f56..087a5c42 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,6 @@
entrance
system
user
- device
detection
storage