Commit 1fb764ed by jianan

PEP得分

parent cd000442
...@@ -542,22 +542,22 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService { ...@@ -542,22 +542,22 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
if (Integer.valueOf(1).equals(s.getTaskRoutineAtweek1())) { if (Integer.valueOf(1).equals(s.getTaskRoutineAtweek1())) {
count += CommonUtil.weekDayCount(firstDay, lastDay, 1); count += CommonUtil.weekDayCount(firstDay, lastDay, 1);
} }
if (Integer.valueOf(2).equals(s.getTaskRoutineAtweek1())) { if (Integer.valueOf(1).equals(s.getTaskRoutineAtweek2())) {
count += CommonUtil.weekDayCount(firstDay, lastDay, 2); count += CommonUtil.weekDayCount(firstDay, lastDay, 2);
} }
if (Integer.valueOf(3).equals(s.getTaskRoutineAtweek1())) { if (Integer.valueOf(1).equals(s.getTaskRoutineAtweek3())) {
count += CommonUtil.weekDayCount(firstDay, lastDay, 3); count += CommonUtil.weekDayCount(firstDay, lastDay, 3);
} }
if (Integer.valueOf(4).equals(s.getTaskRoutineAtweek1())) { if (Integer.valueOf(1).equals(s.getTaskRoutineAtweek4())) {
count += CommonUtil.weekDayCount(firstDay, lastDay, 4); count += CommonUtil.weekDayCount(firstDay, lastDay, 4);
} }
if (Integer.valueOf(5).equals(s.getTaskRoutineAtweek1())) { if (Integer.valueOf(1).equals(s.getTaskRoutineAtweek5())) {
count += CommonUtil.weekDayCount(firstDay, lastDay, 5); count += CommonUtil.weekDayCount(firstDay, lastDay, 5);
} }
if (Integer.valueOf(6).equals(s.getTaskRoutineAtweek1())) { if (Integer.valueOf(1).equals(s.getTaskRoutineAtweek6())) {
count += CommonUtil.weekDayCount(firstDay, lastDay, 6); count += CommonUtil.weekDayCount(firstDay, lastDay, 6);
} }
if (Integer.valueOf(7).equals(s.getTaskRoutineAtweek1())) { if (Integer.valueOf(1).equals(s.getTaskRoutineAtweek7())) {
count += CommonUtil.weekDayCount(firstDay, lastDay, 7); count += CommonUtil.weekDayCount(firstDay, lastDay, 7);
} }
// 判断trackTime是否在时间范围内 // 判断trackTime是否在时间范围内
......
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