From 1f6e899e7c3683ebcaa28c77f4c84d9185942483 Mon Sep 17 00:00:00 2001
From: lxw <810412026@qq.com>
Date: 星期三, 24 五月 2023 11:38:52 +0800
Subject: [PATCH] 导出中英文切换放电类型

---
 src/main/java/com/whyc/dto/BattTestData.java |  195 +++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 150 insertions(+), 45 deletions(-)

diff --git a/src/main/java/com/whyc/dto/BattTestData.java b/src/main/java/com/whyc/dto/BattTestData.java
index b49f85f..0f16848 100644
--- a/src/main/java/com/whyc/dto/BattTestData.java
+++ b/src/main/java/com/whyc/dto/BattTestData.java
@@ -159,62 +159,167 @@
 	//钀藉悗鍗曚綋鍙傛暟锛堢粍绔數鍘�>鏍囩О*test_stop锛�
 	public static final float test_stop = 0.9f;
 	//鍒ゆ柇鐢垫睜缁勭殑褰撳墠鐘舵��
-	public static String battState(int num){
+	/*public static String battState(int num){
 		String state="";
 		switch (num) {
 		case 0:state= BattTestData.test_type0;break;
 		case 1:state= BattTestData.test_type1;break;
 		case 2:state= BattTestData.test_type2;break;
-		case 3:state= BattTestData.test_type3;break;
-		case 4:state= BattTestData.test_type4;break;
-		case 5:state= BattTestData.test_type5;break;
-		case 6:state= BattTestData.test_type6;break;
-		case 7:state= BattTestData.test_type7;break;
-		case 8:state= BattTestData.test_type8;break;
-		case 9:state= BattTestData.test_type9;break;
+			case 3:
+				state = BattTestData.test_type3;
+				break;
+			case 4:
+				state = BattTestData.test_type4;
+				break;
+			case 5:
+				state = BattTestData.test_type5;
+				break;
+			case 6:
+				state = BattTestData.test_type6;
+				break;
+			case 7:
+				state = BattTestData.test_type7;
+				break;
+			case 8:
+				state = BattTestData.test_type8;
+				break;
+			case 9:
+				state = BattTestData.test_type9;
+				break;
+		}
+		return state;
+	}*/
+
+	//鍒ゆ柇鐢垫睜缁勭殑褰撳墠鐘舵��
+	public static String battState(int num) {
+		String state = "";
+		switch (num) {
+			case 0:
+				state = "test_type0";
+				break;
+			case 1:
+				state = "test_type1";
+				break;
+			case 2:
+				state = "test_type2";
+				break;
+			case 3:
+				state = "test_type3";
+				break;
+			case 4:
+				state = "test_type4";
+				break;
+			case 5:
+				state = "test_type5";
+				break;
+			case 6:
+				state = "test_type6";
+				break;
+			case 7:
+				state = "test_type7";
+				break;
+			case 8:
+				state = "test_type8";
+				break;
+			case 9:
+				state = "test_type9";
+				break;
 		}
 		return state;
 	}
 
 	//bts鏀剧數缁堟鍘熷洜
-	public static String getStopType(int dev_type, int stop_type_t)
-	{
+	public static String getStopType(int dev_type, int stop_type_t) {
 		String stop_type = "鏈煡";
-		if(BattTestData.TEST_LOADER_FBI_IDCE == dev_type) {
-			switch(stop_type_t)
-		        {
-		             case 0 : stop_type = "鎵嬪姩鍋滄"; break;
-		             case 1 : stop_type = "鏀剧數鏃堕棿鍒�"; break;
-		             case 2 : stop_type = "鏀剧數瀹归噺鍒�"; break;
-		             case 3 : stop_type = "鍗曚綋涓嬮檺鍒�"; break;
-		             case 4 : stop_type = "缁勭涓嬮檺鍒�"; break;
-		             case 5 : stop_type = "甯傜數涓柇"; break;
-		             case 6 : stop_type = "鍐呭瓨涓嶈冻"; break;
-		             case 7 : stop_type = "娓╁害寮傚父"; break;
-		        }
-		} else if(BattTestData.TEST_LOADER_FBS9100S == dev_type){
-			switch(stop_type_t)
-		        {
-		             case 0 : stop_type = "鎵嬪姩鍋滄"; break;
-		             case 1 : stop_type = "鏆傚仠"; break;
-		             case 2 : stop_type = "姝e湪鏀剧數娴嬭瘯"; break;
-		             case 3 : stop_type = "姝e湪绛夊緟鏀剧數"; break;
-		             case 4 : stop_type = "姝e湪闄愭祦鍏呯數"; break;
-		             case 5 : stop_type = "姝e湪鐩磋繛鍏呯數"; break;
-		             case 6 : stop_type = "姝e湪绛夊緟鍏呯數"; break;
-		             case 7 : stop_type = "鏀剧數鏃堕棿鍒�"; break;
-		             case 8 : stop_type = "鏀剧數瀹归噺鍒�"; break;
-		             case 9 : stop_type = "鍗曚綋涓嬮檺鍒�"; break;
-		             case 10 : stop_type = "缁勭涓嬮檺鍒�"; break;
-		             case 11 : stop_type = "甯傜數涓柇鍋滄"; break;
-		             case 12 : stop_type = "瀛樺偍鏁版嵁婊�"; break;
-		             case 13 : stop_type = "鏈哄唴娓╁害寮傚父"; break;
-		             case 14 : stop_type = "鏀剧數鐢垫祦杩囨祦"; break;
-		             case 15 : stop_type = "鍚庡彴閫氫俊涓柇"; break;
-		             case 16 : stop_type = "璐熻浇妯″潡涓柇"; break;
-		             case 17 : stop_type = "鍦ㄧ嚎妯″潡涓柇"; break;
-		             case 18 : stop_type = "璐熻浇妯″潡杩囧姛鐜�"; break;
-		             case 19 : stop_type = "鍐呴儴绋嬪簭寮傚父"; break;
+		if (BattTestData.TEST_LOADER_FBI_IDCE == dev_type) {
+			switch (stop_type_t) {
+				case 0:
+					stop_type = "鎵嬪姩鍋滄";
+					break;
+				case 1:
+					stop_type = "鏀剧數鏃堕棿鍒�";
+					break;
+				case 2:
+					stop_type = "鏀剧數瀹归噺鍒�";
+					break;
+				case 3:
+					stop_type = "鍗曚綋涓嬮檺鍒�";
+					break;
+				case 4:
+					stop_type = "缁勭涓嬮檺鍒�";
+					break;
+				case 5:
+					stop_type = "甯傜數涓柇";
+					break;
+				case 6:
+					stop_type = "鍐呭瓨涓嶈冻";
+					break;
+				case 7:
+					stop_type = "娓╁害寮傚父";
+					break;
+			}
+		} else if (BattTestData.TEST_LOADER_FBS9100S == dev_type) {
+			switch (stop_type_t) {
+				case 0:
+					stop_type = "鎵嬪姩鍋滄";
+					break;
+				case 1:
+					stop_type = "鏆傚仠";
+					break;
+				case 2:
+					stop_type = "姝e湪鏀剧數娴嬭瘯";
+					break;
+				case 3:
+					stop_type = "姝e湪绛夊緟鏀剧數";
+					break;
+				case 4:
+					stop_type = "姝e湪闄愭祦鍏呯數";
+					break;
+				case 5:
+					stop_type = "姝e湪鐩磋繛鍏呯數";
+					break;
+				case 6:
+					stop_type = "姝e湪绛夊緟鍏呯數";
+					break;
+				case 7:
+					stop_type = "鏀剧數鏃堕棿鍒�";
+					break;
+				case 8:
+					stop_type = "鏀剧數瀹归噺鍒�";
+					break;
+				case 9:
+					stop_type = "鍗曚綋涓嬮檺鍒�";
+					break;
+				case 10:
+					stop_type = "缁勭涓嬮檺鍒�";
+					break;
+				case 11:
+					stop_type = "甯傜數涓柇鍋滄";
+					break;
+				case 12:
+					stop_type = "瀛樺偍鏁版嵁婊�";
+					break;
+				case 13:
+					stop_type = "鏈哄唴娓╁害寮傚父";
+					break;
+				case 14:
+					stop_type = "鏀剧數鐢垫祦杩囨祦";
+					break;
+				case 15:
+					stop_type = "鍚庡彴閫氫俊涓柇";
+					break;
+				case 16:
+					stop_type = "璐熻浇妯″潡涓柇";
+					break;
+				case 17:
+					stop_type = "鍦ㄧ嚎妯″潡涓柇";
+					break;
+				case 18:
+					stop_type = "璐熻浇妯″潡杩囧姛鐜�";
+					break;
+				case 19:
+					stop_type = "鍐呴儴绋嬪簭寮傚父";
+					break;
 		        }
 		} else {
 			stop_type = "鎵嬪姩鍋滄";

--
Gitblit v1.9.1