Jelajahi Sumber

修改某数组的长度

Reiskuchen 5 tahun lalu
induk
melakukan
2bfeb8ae7e

+ 2 - 2
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/TimeCalculationServiceImpl.java

@@ -119,8 +119,8 @@ public class TimeCalculationServiceImpl extends ServiceImpl<TimeCalculationMappe
                 resultArray[4] = timeArray[7] + timeArray[8] + timeArray[9];
                 resultArray[5] = timeArray[10];
                 resultArray[6] = timeArray[0];
-                //将后端的10中行为类型分门别类转换为前端的6种并转换为字符串格式
-                String[] stringArray = new String[6];
+                //将后端的10中行为类型分门别类转换为前端的7种并转换为字符串格式
+                String[] stringArray = new String[7];
                 for (int i = 0; i < 7; i++) {
                     stringArray[i] = convertSecond(resultArray[i]);
                 }