bug修复
This commit is contained in:
@@ -106,10 +106,16 @@ public class FieldConvertUtil {
|
||||
|
||||
if (StringUtils.isNotBlank(timeStr)) {
|
||||
List<String> timeList = Arrays.asList(timeStr.split(","));
|
||||
|
||||
List<String> collect = timeList.stream()
|
||||
.map(item -> "str_to_date('" + item + "','%Y-%m-%d')")
|
||||
.collect(Collectors.toList());
|
||||
List<String> collect;
|
||||
if (timeStr.length()<=10) {
|
||||
collect = timeList.stream()
|
||||
.map(item -> "str_to_date('" + item + "','%Y-%m-%d')")
|
||||
.collect(Collectors.toList());
|
||||
}else {
|
||||
collect = timeList.stream()
|
||||
.map(item -> "str_to_date('" + item.substring(0,10) + "','%Y-%m-%d ')")
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
timeStr ="concat(" + String.join(", \',\' ,", collect) + ")";
|
||||
} else {
|
||||
timeStr = "null";
|
||||
|
||||
Reference in New Issue
Block a user