From 947622a11997e34a92b5b74bc5982aba21562240 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 09 十二月 2025 12:29:09 +0800
Subject: [PATCH] 次破报表添加厚度以及相关功能

---
 north-glass-erp/src/test/java/com/example/erp/ErpApplicationTests.java |   15 +++++++++++++++
 1 files changed, 15 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
index 2005bf1..f85faad 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,13 +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