Commit 8a56a4876f348ca43ddff701c85a5b803f50227b
1 parent
9be31754
♻️ refactor(mes): 更新状态枚举注释格式
调整多个状态枚举类中的注释格式,统一描述方法引用方式,提升代码可读性。
Showing
3 changed files
with
30 additions
and
0 deletions
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/cal/MesCalPlanStatusEnum.java
| ... | ... | @@ -15,7 +15,17 @@ import java.util.Arrays; |
| 15 | 15 | @AllArgsConstructor |
| 16 | 16 | public enum MesCalPlanStatusEnum implements ArrayValuable<Integer> { |
| 17 | 17 | |
| 18 | + /** | |
| 19 | + * 草稿 | |
| 20 | + * | |
| 21 | + * 对应 MesCalPlanService#createPlan 方法 | |
| 22 | + */ | |
| 18 | 23 | PREPARE(0, "草稿"), |
| 24 | + /** | |
| 25 | + * 已确认 | |
| 26 | + * | |
| 27 | + * 对应 MesCalPlanService#confirmPlan 方法 | |
| 28 | + */ | |
| 19 | 29 | CONFIRMED(1, "已确认"); |
| 20 | 30 | |
| 21 | 31 | public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesCalPlanStatusEnum::getStatus).toArray(Integer[]::new); | ... | ... |
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/dv/MesDvCheckPlanStatusEnum.java
| ... | ... | @@ -15,7 +15,17 @@ import java.util.Arrays; |
| 15 | 15 | @AllArgsConstructor |
| 16 | 16 | public enum MesDvCheckPlanStatusEnum implements ArrayValuable<Integer> { |
| 17 | 17 | |
| 18 | + /** | |
| 19 | + * 草稿 | |
| 20 | + * | |
| 21 | + * 对应 MesDvCheckPlanService#createCheckPlan 方法 | |
| 22 | + */ | |
| 18 | 23 | PREPARE(0, "草稿"), |
| 24 | + /** | |
| 25 | + * 已启用 | |
| 26 | + * | |
| 27 | + * 对应 MesDvCheckPlanService#enableCheckPlan 方法 | |
| 28 | + */ | |
| 19 | 29 | ENABLED(1, "已启用"); |
| 20 | 30 | |
| 21 | 31 | public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesDvCheckPlanStatusEnum::getStatus).toArray(Integer[]::new); | ... | ... |
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/enums/pro/MesProAndonStatusEnum.java
| ... | ... | @@ -15,7 +15,17 @@ import java.util.Arrays; |
| 15 | 15 | @AllArgsConstructor |
| 16 | 16 | public enum MesProAndonStatusEnum implements ArrayValuable<Integer> { |
| 17 | 17 | |
| 18 | + /** | |
| 19 | + * 未处置 | |
| 20 | + * | |
| 21 | + * 对应 MesProAndonRecordService#createAndonRecord 方法 | |
| 22 | + */ | |
| 18 | 23 | ACTIVE(0, "未处置"), |
| 24 | + /** | |
| 25 | + * 已处置 | |
| 26 | + * | |
| 27 | + * 对应 MesProAndonRecordService#updateAndonRecord 方法 | |
| 28 | + */ | |
| 19 | 29 | HANDLED(1, "已处置"); |
| 20 | 30 | |
| 21 | 31 | public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesProAndonStatusEnum::getStatus).toArray(Integer[]::new); | ... | ... |