From 7fdc12195ab810476f01f6d332cbcd0a271effdb Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期一, 17 十一月 2025 08:31:09 +0800
Subject: [PATCH] 提交部分报工存入redis功能实现

---
 north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java b/north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java
index dee29d9..03a60ce 100644
--- a/north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java
+++ b/north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java
@@ -1,10 +1,16 @@
 package com.example.erp;
 
 import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.data.redis.core.StringRedisTemplate;
+
+import static org.apache.tomcat.jni.Lock.trylock;
 
 @SpringBootTest
 class ErpApplicationTests {
+    @Autowired
+    private StringRedisTemplate stringRedisTemplate;
 
     @Test
     void contextLoads() {
@@ -13,7 +19,8 @@
 
     @Test
     void test() {
-
+//        stringRedisTemplate.opsForValue().set("test", "test");
+//        Object test = stringRedisTemplate.opsForValue().get("test");
     }
 
 }

--
Gitblit v1.8.0