|
@@ -25,7 +25,7 @@ public enum MeterType {
|
|
|
public static MeterType getByIndex(int index,int contractType) {
|
|
|
MeterType[] values = MeterType.values();
|
|
|
if(contractType==2&&(index==0||index==2)){
|
|
|
- index*=2;
|
|
|
+ index=index+3;
|
|
|
}
|
|
|
if (index >= 0 && index < values.length) {
|
|
|
return values[index];
|