|
|
@@ -283,10 +283,11 @@ public class HealthPlanServiceImpl implements HealthPlanService {
|
|
|
return tasks;
|
|
|
}
|
|
|
@Override
|
|
|
- public List<HealthPlan> listPendingReviewPlans(Long familyId) {
|
|
|
+ public List<HealthPlan> listPendingReviewPlans(Long familyId, Long teacherId) {
|
|
|
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<HealthPlan> w = new com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<>();
|
|
|
w.eq("family_id", familyId);
|
|
|
w.in("status", "draft", "pending_review");
|
|
|
+ if (teacherId != null) w.eq("teacher_id", teacherId);
|
|
|
w.orderByDesc("created_at");
|
|
|
return healthPlanMapper.selectList(w);
|
|
|
}
|