Commit 46a71ee9 authored by duanruiming's avatar duanruiming

[update] 时段优化

parent ac581f7a
......@@ -568,11 +568,11 @@ public class DTStaticInfoServiceImpl implements StaticInfoService {
dailyPlanInfoPojo.setDailyPlanId(dailyPlanId);
dailyPlanInfoPojo.setControlCrossId(HexUtil.hexToInt(value.get(0)));
List<Integer> listFromHex = getListFromHex(value.get(1), 2, "");
Collections.reverse(listFromHex);
// Collections.reverse(listFromHex);
List<String> startTimeChain = new ArrayList<>();
for (int i = 0; i < listFromHex.size() / 2; i++) {
int hour = listFromHex.get(i * 2);
int minute = listFromHex.get(i * 2 + 1);
int minute = listFromHex.get(i * 2);
int hour = listFromHex.get(i * 2 + 1);
// 只有第一个时段可以为00:00
if ((i != 0 && hour == 0)) {
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment