一日流程评估结果园历展示

This commit is contained in:
zhanglipeng 2021-04-29 17:14:43 +08:00
parent f1e8889a59
commit 03aa2533f2

View File

@ -70,6 +70,8 @@ public class ByCalendarController extends BaseController {
@Autowired
private IByDayflowassessmentplanService byDayflowassessmentplanService;
@Autowired
private IByDayflowassessmentService byDayflowassessmentService;
@Autowired
private IByDayFlowDetailService byDayFlowDetailService;
/**
@ -197,6 +199,10 @@ public class ByCalendarController extends BaseController {
//幼儿一日流程评估计划
listvi.addAll(getdayflowdata(classId, formatter));
//幼儿园一日流程评估结果
Long userId = SecurityUtils.getLoginUser().getUser().getUserId();
listvi.addAll(getdayflowresult(userId, formatter));
AjaxResult ajax = AjaxResult.success();
ajax.put("calendarData", listvi);
return ajax;
@ -462,4 +468,29 @@ public class ByCalendarController extends BaseController {
return listvi;
}
//获取教师一日流程评估结果
private List<ByCalendarShow> getdayflowresult(Long userId, SimpleDateFormat formatter) {
List<ByCalendarShow> listvi = new ArrayList<>();
Long deptId = SecurityUtils.getLoginUser().getUser().getDept().getDeptId();
ByDayflowassessment byDayflowassessment = new ByDayflowassessment();
byDayflowassessment.setDeptId(deptId);
byDayflowassessment.setPgdx(userId);
List<ByDayflowassessment> list = byDayflowassessmentService.selectByDayflowassessmentList(byDayflowassessment);
if (list != null && list.size() > 0) {
ByCalendarShow by = null;
for (int i = 0; i < list.size(); i++) {
by = new ByCalendarShow();
ByDayflowassessment byNewDayflowassessment = list.get(i);
by.setTitle("一日流程评估:" + byNewDayflowassessment.getZzdf());
String timefor = formatter.format(byNewDayflowassessment.getCreateTime());
by.setStart(timefor);
by.setEnd(timefor);
by.setColor("#1890ff");
listvi.add(by);
}
}
return listvi;
}
}