| | |
| | | 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 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); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |