新增标准与修改标准 插入数据库取消时分秒
This commit is contained in:
@@ -108,7 +108,7 @@ public class FieldConvertUtil {
|
||||
List<String> timeList = Arrays.asList(timeStr.split(","));
|
||||
|
||||
List<String> collect = timeList.stream()
|
||||
.map(item -> "str_to_date('" + item + "','%Y-%m-%d %H:%i:%s')")
|
||||
.map(item -> "str_to_date('" + item + "','%Y-%m-%d')")
|
||||
.collect(Collectors.toList());
|
||||
timeStr ="concat(" + String.join(", \',\' ,", collect) + ")";
|
||||
} else {
|
||||
@@ -143,7 +143,7 @@ public class FieldConvertUtil {
|
||||
String mustValue = "'"+ UUIDUtils.randomUUID20() + "','" + id + "','0','"
|
||||
+ LoginUserUtil.getUserId() + "'";
|
||||
Date date = new Date();
|
||||
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
String nowTime = sf.format(date);
|
||||
String timeValue = "," + changeTimeValue(nowTime);
|
||||
mustValue += timeValue + timeValue;
|
||||
|
||||
Reference in New Issue
Block a user