Commit 936783f91b69a0581249336586a1efe1bc294142

Authored by YunaiV
1 parent 8a56a487

♻️ refactor(mes): 使用 ListUtil 替换 List.of

yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/cal/MesCalShiftTypeEnum.java
1 1 package cn.iocoder.yudao.module.mes.enums.cal;
2 2  
  3 +import cn.hutool.core.collection.ListUtil;
3 4 import cn.hutool.core.lang.Pair;
4 5 import cn.iocoder.yudao.framework.common.core.ArrayValuable;
5 6 import lombok.AllArgsConstructor;
... ... @@ -17,14 +18,14 @@ import java.util.List;
17 18 @AllArgsConstructor
18 19 public enum MesCalShiftTypeEnum implements ArrayValuable<Integer> {
19 20  
20   - SINGLE(1, "单白班", List.of(
  21 + SINGLE(1, "单白班", ListUtil.of(
21 22 Pair.of("白班", new String[]{"08:00", "17:00"})
22 23 )),
23   - TWO(2, "两班倒", List.of(
  24 + TWO(2, "两班倒", ListUtil.of(
24 25 Pair.of("白班", new String[]{"08:00", "20:00"}),
25 26 Pair.of("夜班", new String[]{"20:00", "08:00"})
26 27 )),
27   - THREE(3, "三班倒", List.of(
  28 + THREE(3, "三班倒", ListUtil.of(
28 29 Pair.of("白班", new String[]{"08:00", "16:00"}),
29 30 Pair.of("中班", new String[]{"16:00", "00:00"}),
30 31 Pair.of("夜班", new String[]{"00:00", "08:00"})
... ...