Commit bf7873b1 by 杨林龙

优化设备调频

1 parent 220d8ba4
...@@ -350,8 +350,8 @@ public class DeviceFreqService { ...@@ -350,8 +350,8 @@ public class DeviceFreqService {
private static String transWeekFrequency(String week, String weekTimer) { private static String transWeekFrequency(String week, String weekTimer) {
StringBuilder sb = new StringBuilder(weekTimer + "/星期"); StringBuilder sb = new StringBuilder(weekTimer + "/星期");
for (int i = 0; i < week.length(); i++) { for (int i = 0; i < week.length(); i++) {
char c = week.charAt(i); String c = String.valueOf(week.charAt(i));
String weekStr = TransWeekEnum.getStrByWeekInt((int) c); String weekStr = TransWeekEnum.getStrByWeekInt(Integer.parseInt(c));
sb.append(weekStr); sb.append(weekStr);
} }
String str = sb.toString(); String str = sb.toString();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!