update 新增查询参数

develop
hhb@hotmail.com 2 months ago
parent ff696685ef
commit fb2e273060

@ -142,6 +142,13 @@ public class AdminAppraiseServiceImpl implements AdminAppraiseService {
Long endTime = timeRangeDto.getEndTime(); Long endTime = timeRangeDto.getEndTime();
String academicYearId = timeRangeDto.getAcademicYearId(); String academicYearId = timeRangeDto.getAcademicYearId();
String schoolId = SecurityUtil.getLoginUser().getSchoolId(); String schoolId = SecurityUtil.getLoginUser().getSchoolId();
String typeName = "";
if (timeRangeDto.getType().equals("moral")) {
typeName = "德育";
}else if (timeRangeDto.getType().equals("labour")){
typeName = "劳育";
}
// fixme: 是否对时间范围做一些限制(不能确保当前周有数据) // fixme: 是否对时间范围做一些限制(不能确保当前周有数据)
// 无参默认当前周 // 无参默认当前周
@ -166,7 +173,7 @@ public class AdminAppraiseServiceImpl implements AdminAppraiseService {
startTime, startTime,
endTime, endTime,
classIds, classIds,
"德育" typeName
); );
if (res != null) { if (res != null) {

@ -16,4 +16,6 @@ public class TimeRangeDto {
@NotNull @NotNull
// todo: 似乎不需要(有时间范围就不需要这个字段来划分时间,如果不传时间那就需要) // todo: 似乎不需要(有时间范围就不需要这个字段来划分时间,如果不传时间那就需要)
private String academicYearId; private String academicYearId;
//教育类型type:'moral' type:'labour'
private String type;
} }

Loading…
Cancel
Save