| | |
| | | package com.xcong.farmer.cms; |
| | | |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.xcong.farmer.cms.common.response.Result; |
| | | import com.xcong.farmer.cms.common.utils.FileUtils; |
| | | import com.xcong.farmer.cms.configurations.properties.CmsProperties; |
| | |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Paths; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @SpringBootTest |
| | | class KssframeworkApplicationTests { |
| | |
| | | |
| | | @Test |
| | | public void dateTest(){ |
| | | WebArticleInPageDto webArticleInPageDto = new WebArticleInPageDto(); |
| | | webArticleInPageDto.setTimeType("一周内"); |
| | | System.out.println(webArticleInPageDto.getTimeType()); |
| | | String columnIdStr = "1,2,3"; |
| | | if(StrUtil.isNotEmpty(columnIdStr)){ |
| | | long[] columnIdLongs = StrUtil.splitToLong(columnIdStr, StrUtil.COMMA); |
| | | List<Long> columnList = new ArrayList<>(); |
| | | for(long columnIdLong : columnIdLongs){ |
| | | columnList.add(columnIdLong); |
| | | } |
| | | System.out.println(columnList); |
| | | } |
| | | } |
| | | |
| | | } |