From adf749e8da2bfce006390b008f6b9e8606b62180 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期四, 28 八月 2025 17:02:30 +0800
Subject: [PATCH] update

---
 cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAgreeController.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAgreeController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAgreeController.java
index 01029be..bbdd362 100644
--- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAgreeController.java
+++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAgreeController.java
@@ -53,11 +53,24 @@
         Protocol three = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 3));
         Protocol four = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 4));
         Protocol five = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 5));
+        Protocol seven = protocolService.getOne(new LambdaQueryWrapper<Protocol>().eq(Protocol::getType, 7));
         model.addAttribute("one",one);
         model.addAttribute("two",two);
         model.addAttribute("three",three);
         model.addAttribute("four",four);
         model.addAttribute("five",five);
+        if (seven == null){
+            Protocol protocol = new Protocol();
+            protocol.setType(7);
+            protocol.setContent("");
+            protocol.setInsertTime(new Date());
+            protocolService.save( protocol);
+
+            model.addAttribute("seven",protocol);
+        }else{
+            model.addAttribute("seven",seven);
+        }
+
         return PREFIX + "tAgreementDriver.html";
     }
 

--
Gitblit v1.7.1