From 259b76217c491e7c00257e985aa70bc68dd2e757 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期四, 30 三月 2023 21:43:36 +0800
Subject: [PATCH] 获取图片改成多次获取
---
ycl-common/src/main/java/com/ycl/utils/StringUtils.java | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ycl-common/src/main/java/com/ycl/utils/StringUtils.java b/ycl-common/src/main/java/com/ycl/utils/StringUtils.java
index 4fa7c6c..62ddc24 100644
--- a/ycl-common/src/main/java/com/ycl/utils/StringUtils.java
+++ b/ycl-common/src/main/java/com/ycl/utils/StringUtils.java
@@ -1,5 +1,8 @@
package com.ycl.utils;
+import java.math.BigDecimal;
+import java.text.DecimalFormat;
+
public class StringUtils {
/**
@@ -48,13 +51,14 @@
* hello_world=>helloWorld
* HELLO_WORLD=>helloWorld
* Hello_World=>helloWorld
+ *
* @param content
* @return
*/
public static String underlineToLowerCamelCase(String content) {
return new StringBuilder(16)
- .append(content.substring(0,1).toLowerCase())
- .append(content.substring(1).replaceAll("_([a-zA-Z])","$1".toUpperCase()))
+ .append(content.substring(0, 1).toLowerCase())
+ .append(content.substring(1).replaceAll("_([a-zA-Z])", "$1".toUpperCase()))
.toString();
}
@@ -64,6 +68,7 @@
* hello_world=>HelloWorld
* HELLO_WORLD=>HelloWorld
* Hello_World=>HelloWorld
+ *
* @param content
* @return
*/
@@ -74,5 +79,7 @@
.toString();
}
-
+ public static String doubleTwo(Double value) {
+ return String.format("%.2f", value);
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0