From 71f90ed3a2eeea97b20cd095cc34a1f64dac5c81 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期三, 26 十一月 2025 11:21:39 +0800
Subject: [PATCH] 提交 计算方式进度

---
 north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 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
new file mode 100644
index 0000000..f85faad
--- /dev/null
+++ b/north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java
@@ -0,0 +1,28 @@
+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() {
+        String.valueOf("1.0").replaceAll("\\.0*$|(\\.\\d*?)0+$", "$1");
+    }
+
+    @Test
+    void test() {
+        int x =100;
+        System.out.println(6.5+x/8);
+//        stringRedisTemplate.opsForValue().set("test", "test");
+//        Object test = stringRedisTemplate.opsForValue().get("test");
+    }
+
+}

--
Gitblit v1.8.0