From 936783f91b69a0581249336586a1efe1bc294142 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 6 Apr 2026 21:29:39 +0800 Subject: [PATCH] ♻️ refactor(mes): 使用 ListUtil 替换 List.of --- yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/cal/MesCalShiftTypeEnum.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/cal/MesCalShiftTypeEnum.java b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/cal/MesCalShiftTypeEnum.java index f801e10..940cbc8 100644 --- a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/cal/MesCalShiftTypeEnum.java +++ b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/cal/MesCalShiftTypeEnum.java @@ -1,5 +1,6 @@ package cn.iocoder.yudao.module.mes.enums.cal; +import cn.hutool.core.collection.ListUtil; import cn.hutool.core.lang.Pair; import cn.iocoder.yudao.framework.common.core.ArrayValuable; import lombok.AllArgsConstructor; @@ -17,14 +18,14 @@ import java.util.List; @AllArgsConstructor public enum MesCalShiftTypeEnum implements ArrayValuable { - SINGLE(1, "单白班", List.of( + SINGLE(1, "单白班", ListUtil.of( Pair.of("白班", new String[]{"08:00", "17:00"}) )), - TWO(2, "两班倒", List.of( + TWO(2, "两班倒", ListUtil.of( Pair.of("白班", new String[]{"08:00", "20:00"}), Pair.of("夜班", new String[]{"20:00", "08:00"}) )), - THREE(3, "三班倒", List.of( + THREE(3, "三班倒", ListUtil.of( Pair.of("白班", new String[]{"08:00", "16:00"}), Pair.of("中班", new String[]{"16:00", "00:00"}), Pair.of("夜班", new String[]{"00:00", "08:00"}) -- libgit2 0.21.4