diff --git a/couplet-common/couplet-common-business/src/main/java/com/couplet/log/annotation/Record.java b/couplet-common/couplet-common-business/src/main/java/com/couplet/log/annotation/Record.java
deleted file mode 100644
index 03f040a..0000000
--- a/couplet-common/couplet-common-business/src/main/java/com/couplet/log/annotation/Record.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.couplet.log.annotation;
-
-/**
- * @author DongXiaoDong
- * @version 1.0
- * @date 2024/3/28 15:39
- * @description
- */
-public @interface Record {
-}
diff --git a/couplet-common/couplet-common-business/src/main/java/com/couplet/log/aop/AopRecord.java b/couplet-common/couplet-common-business/src/main/java/com/couplet/log/aop/AopRecord.java
deleted file mode 100644
index e4ff8b0..0000000
--- a/couplet-common/couplet-common-business/src/main/java/com/couplet/log/aop/AopRecord.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.couplet.log.aop;
-
-/**
- * @author DongXiaoDong
- * @version 1.0
- * @date 2024/3/28 23:12
- * @description
- */
-public class AopRecord {
-}
diff --git a/couplet-modules/couplet-analyze/couplet-analyze-msg/src/test/java/com/couplet/msg/Randoms.java b/couplet-modules/couplet-analyze/couplet-analyze-msg/src/test/java/com/couplet/msg/Randoms.java
new file mode 100644
index 0000000..37a80f1
--- /dev/null
+++ b/couplet-modules/couplet-analyze/couplet-analyze-msg/src/test/java/com/couplet/msg/Randoms.java
@@ -0,0 +1,36 @@
+package com.couplet.msg;
+
+import java.util.Random;
+
+/**
+ * @author DongXiaoDong
+ * @version 1.0
+ * @date 2024/4/4 11:34
+ * @description
+ */
+public class Randoms {
+ public static void main(String[] args) {
+ String gtaNumber = generateGTA();
+ System.out.println("随机生成的GTA开头的七位数字:" + gtaNumber);
+ }
+
+ public static String generateGTA() {
+ // 生成四位以"GTA"开头的字符串
+ String prefix = "GTA";
+ // 生成三位随机数字
+ String randomNumber = generateRandomNumber(4);
+ // 拼接字符串
+ return prefix + randomNumber;
+ }
+
+ public static String generateRandomNumber(int length) {
+ // 生成随机数
+ Random random = new Random();
+ StringBuilder sb = new StringBuilder();
+ for (int i = 0; i < length; i++) {
+ // 生成0到9之间的随机数字,并转换为字符串
+ sb.append(random.nextInt(10));
+ }
+ return sb.toString();
+ }
+}
diff --git a/couplet-modules/couplet-business/pom.xml b/couplet-modules/couplet-business/pom.xml
index cc7969f..1c43041 100644
--- a/couplet-modules/couplet-business/pom.xml
+++ b/couplet-modules/couplet-business/pom.xml
@@ -82,6 +82,11 @@
couplet-common-swagger
+
+ com.couplet
+ couplet-analyze-msg
+
+
diff --git a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/controller/TroubleLogController.java b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/controller/TroubleLogController.java
new file mode 100644
index 0000000..7ff88b5
--- /dev/null
+++ b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/controller/TroubleLogController.java
@@ -0,0 +1,10 @@
+package com.couplet.business.server.controller;
+
+/**
+ * @author DongXiaoDong
+ * @version 1.0
+ * @date 2024/4/4 10:37
+ * @description
+ */
+public class TroubleLogController {
+}
diff --git a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/mapper/SysTroubleMapper.java b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/mapper/SysTroubleMapper.java
index 7f211bd..d4ddf4b 100644
--- a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/mapper/SysTroubleMapper.java
+++ b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/mapper/SysTroubleMapper.java
@@ -1,11 +1,14 @@
package com.couplet.business.server.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.couplet.analyze.msg.domain.CoupletMsgData;
import com.couplet.common.domain.CoupletTroubleCode;
import com.couplet.common.domain.CoupletTroubleGrade;
+import com.couplet.common.domain.CoupletTroubleLog;
import com.couplet.common.domain.CoupletTroubleType;
import com.couplet.common.domain.request.TroubleResp;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@@ -22,8 +25,4 @@ public interface SysTroubleMapper extends BaseMapper {
List selectTroubleListByType();
List selectTroubleListByGrade();
-
-// int addTrouble(TroubleAddReq troubleAddReq);
-
-// int updateTrouble(TroubleUpdReq troubleUpdReq);
}
diff --git a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/mapper/TroubleLogMapper.java b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/mapper/TroubleLogMapper.java
new file mode 100644
index 0000000..b686e7d
--- /dev/null
+++ b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/mapper/TroubleLogMapper.java
@@ -0,0 +1,16 @@
+package com.couplet.business.server.mapper;
+
+
+import com.couplet.analyze.msg.domain.CoupletMsgData;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * @author DongXiaoDong
+ * @version 1.0
+ * @date 2024/4/4 10:38
+ * @description
+ */
+@Mapper
+public interface TroubleLogMapper {
+
+}
diff --git a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/SysTroubleService.java b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/SysTroubleService.java
index 5018464..07dd7f4 100644
--- a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/SysTroubleService.java
+++ b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/SysTroubleService.java
@@ -1,11 +1,13 @@
package com.couplet.business.server.service;
import com.baomidou.mybatisplus.extension.service.IService;
+import com.couplet.analyze.msg.domain.CoupletMsgData;
import com.couplet.common.core.domain.PageResult;
import com.couplet.common.domain.CoupletTroubleCode;
import com.couplet.common.domain.CoupletTroubleGrade;
import com.couplet.common.domain.CoupletTroubleType;
import com.couplet.common.domain.request.TroubleResp;
+import io.swagger.models.auth.In;
import java.util.List;
@@ -22,8 +24,4 @@ public interface SysTroubleService extends IService {
List selectTroubleListByType();
List selectTroubleListByGrade();
-
-// int addTrouble (TroubleAddReq troubleAddReq);
-
-// int updateTrouble(TroubleUpdReq troubleUpdReq);
}
diff --git a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/TroubleLogService.java b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/TroubleLogService.java
new file mode 100644
index 0000000..d230dc6
--- /dev/null
+++ b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/TroubleLogService.java
@@ -0,0 +1,13 @@
+package com.couplet.business.server.service;
+
+import com.couplet.analyze.msg.domain.CoupletMsgData;
+
+/**
+ * @author DongXiaoDong
+ * @version 1.0
+ * @date 2024/4/4 10:38
+ * @description
+ */
+public interface TroubleLogService {
+
+}
diff --git a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/impl/SysTroubleServiceImpl.java b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/impl/SysTroubleServiceImpl.java
index 48c34bb..acaf6c0 100644
--- a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/impl/SysTroubleServiceImpl.java
+++ b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/service/impl/SysTroubleServiceImpl.java
@@ -1,6 +1,7 @@
package com.couplet.business.server.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.couplet.analyze.msg.domain.CoupletMsgData;
import com.couplet.business.server.mapper.SysTroubleMapper;
import com.couplet.business.server.service.SysTroubleService;
import com.couplet.common.core.domain.PageResult;
@@ -14,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
+import java.util.Random;
/**
* @author DongXiaoDong
@@ -50,25 +52,33 @@ public class SysTroubleServiceImpl extends ServiceImpl
select * from couplet_trouble_grade
+
+
diff --git a/couplet-modules/couplet-business/src/main/resources/mapper/business/TroubleLogMapper.xml b/couplet-modules/couplet-business/src/main/resources/mapper/business/TroubleLogMapper.xml
new file mode 100644
index 0000000..b2e17c4
--- /dev/null
+++ b/couplet-modules/couplet-business/src/main/resources/mapper/business/TroubleLogMapper.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 809fbfe..e259c7f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -275,6 +275,13 @@
${couplet.version}
+
+
+ com.couplet
+ couplet-analyze-msg
+ ${couplet.version}
+
+