| | |
| | | package com.yuanchu.mom; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.yuanchu.mom.exception.ErrorException; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.apache.el.lang.ExpressionBuilder; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | |
| | | import java.time.temporal.TemporalAdjusters; |
| | | import java.time.temporal.WeekFields; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Locale; |
| | | import java.util.regex.Matcher; |
| | |
| | | |
| | | @Test |
| | | void contextLoads() { |
| | | String b=null; |
| | | BigDecimal decimal1 = new BigDecimal("20"); |
| | | BigDecimal decimal2 = new BigDecimal(b == null ?"0":b); |
| | | BigDecimal decimal3 = new BigDecimal("10"); |
| | | if (decimal1.compareTo(decimal2)>0 && decimal1.compareTo(decimal3)>0){ |
| | | System.out.println("√"); |
| | | String str = "[[\"5\",\"5\",\"5\",\"5\"]]"; |
| | | str = str.substring(1, str.length() - 1); |
| | | for (String s1 :str.split("\\],\\[")) { |
| | | String[] strings = Arrays.stream(s1.substring(1, str.length() - 1).split(",")) |
| | | .map(s -> s.replace("\"", "")) |
| | | .toArray(String[]::new); |
| | | for (String string : strings) { |
| | | System.out.println(string); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |