mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
新增/修改排单新增 接入组件方案id 能力
This commit is contained in:
+23
@@ -149,6 +149,29 @@ public class LocalDateTimeUtils {
|
||||
return dateSection;
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成起时间0点和止时间12点的区间
|
||||
*
|
||||
* @param dateSection
|
||||
* @return
|
||||
*/
|
||||
public static LocalDateTime[] generateTimeSection(LocalDate[] dateSection) {
|
||||
if (ObjectUtil.isNotNull(dateSection) && dateSection.length == 2) {
|
||||
|
||||
LocalDateTime[] result = new LocalDateTime[2];
|
||||
|
||||
// 开始时间:00:00:00
|
||||
result[0] = dateSection[0].atStartOfDay();
|
||||
|
||||
// 结束时间:23:59:59
|
||||
result[1] = dateSection[1].atTime(23, 59, 59);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成当前时间的字符串,格式yyyyMMddHHmmss
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user