|
@@ -10,14 +10,15 @@ import java.util.Objects;
|
|
|
* @description 保养分类数据字典
|
|
|
*/
|
|
|
public enum MaintenanceTypeEnum {
|
|
|
- MACHINERY("机械",1),
|
|
|
- ELECTRIC("电气",2),
|
|
|
- REST("其他",99)
|
|
|
+ MECHANICAL_OVERHAUL("机械检修","jj"),
|
|
|
+ ELECTRICAL_REPAIR("电气检修","DJ"),
|
|
|
+ ENGINE_ATTENDANCE("机械保养","JY"),
|
|
|
+ ELECTRICAL_MAINTENANCE("电气保养","DY")
|
|
|
;
|
|
|
private final String type;
|
|
|
- private final Integer message;
|
|
|
+ private final String message;
|
|
|
|
|
|
- MaintenanceTypeEnum(String type,Integer message){
|
|
|
+ MaintenanceTypeEnum(String type,String message){
|
|
|
this.message = message;
|
|
|
this.type = type;
|
|
|
}
|
|
@@ -26,7 +27,7 @@ public enum MaintenanceTypeEnum {
|
|
|
return getMessageByType(message,null).type;
|
|
|
}
|
|
|
|
|
|
- public static Integer messageOf(String type){
|
|
|
+ public static String messageOf(String type){
|
|
|
return getTypeByMessage(type,null).message;
|
|
|
}
|
|
|
|