|
@ -214,7 +214,7 @@ public class PrenatalInspectorPreCardService extends BaseService {
|
|
Long nextExamDay = 0l;
|
|
Long nextExamDay = 0l;
|
|
for (PrenatalInspectorPlan plan : plans) {
|
|
for (PrenatalInspectorPlan plan : plans) {
|
|
Long temp = DateUtil.getDays(plan.getInspectionTime(), date);
|
|
Long temp = DateUtil.getDays(plan.getInspectionTime(), date);
|
|
if (nextExamDay == 0 || nextExamDay > temp) {
|
|
|
|
|
|
if ((nextExamDay == 0 || nextExamDay > temp) && (temp > 0)) {
|
|
nextExamDay = temp;
|
|
nextExamDay = temp;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -329,7 +329,7 @@ public class PrenatalInspectorPreCardService extends BaseService {
|
|
Long nextExamDay = 0l;
|
|
Long nextExamDay = 0l;
|
|
for (PrenatalInspectorPlan plan : plans) {
|
|
for (PrenatalInspectorPlan plan : plans) {
|
|
Long temp = DateUtil.getDays(plan.getInspectionTime(), date);
|
|
Long temp = DateUtil.getDays(plan.getInspectionTime(), date);
|
|
if (nextExamDay == 0 || nextExamDay > temp) {
|
|
|
|
|
|
if ((nextExamDay == 0 || nextExamDay > temp) && (temp > 0)) {
|
|
nextExamDay = temp;
|
|
nextExamDay = temp;
|
|
}
|
|
}
|
|
}
|
|
}
|