临时提交

This commit is contained in:
648540858
2024-11-21 20:50:22 +08:00
parent 0cacdb5928
commit 4b694954d4
2 changed files with 35 additions and 9 deletions

View File

@@ -40,7 +40,15 @@ public class RecordPlanServiceImpl implements IRecordPlanService {
@Override
public RecordPlan get(Integer planId) {
return recordPlanMapper.get(planId);
RecordPlan recordPlan = recordPlanMapper.get(planId);
if (recordPlan == null) {
return null;
}
List<RecordPlanItem> recordPlanItemList = recordPlanMapper.getItemList(planId);
if (!recordPlanItemList.isEmpty()) {
recordPlan.setPlanItemList(recordPlanItemList);
}
return recordPlan;
}
@Override