新增/修改排单新增 接入组件方案id 能力

This commit is contained in:
gaoqr
2026-05-21 11:50:52 +08:00
parent 0e2933f0e2
commit 2a9e38b8d0
5 changed files with 84 additions and 64 deletions
@@ -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
*