| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.yuanchu.mom.exception.ErrorException; |
| | | import com.yuanchu.mom.utils.DianLuUtils; |
| | | 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 javax.annotation.Resource; |
| | | import javax.script.ScriptEngine; |
| | | import javax.script.ScriptEngineManager; |
| | | import java.math.BigDecimal; |
| | |
| | | @SpringBootTest |
| | | class SystemRunApplicationTest { |
| | | |
| | | @Resource |
| | | DianLuUtils dianLuUtils; |
| | | |
| | | @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); |
| | | } |
| | | } |
| | | //dianLuUtils.readDianLuFile1(); |
| | | } |
| | | |
| | | |