fix:新增三明治流程相关字段
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package com.cool.store.utils;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 公告工具
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/10/29
|
||||
*/
|
||||
public class CommonUtil {
|
||||
public static BigDecimal convertToBig(String value) {
|
||||
if (StringUtils.isBlank(value)) {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
try {
|
||||
return new BigDecimal(value);
|
||||
} catch (Exception ignored) {}
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user