|
|
@ -14,6 +14,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
|
|
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
|
|
|
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
|
|
|
|
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
|
|
|
|
import com.ruoyi.system.domain.check.TdCheckReport;
|
|
|
|
import com.ruoyi.system.domain.check.TdCheckReport;
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.exam.ExamManagerDTO;
|
|
|
|
import com.ruoyi.system.domain.userbook.dto.UserBookDTO;
|
|
|
|
import com.ruoyi.system.domain.userbook.dto.UserBookDTO;
|
|
|
|
import com.ruoyi.system.domain.userexam.dto.request.UserExamReqDTO;
|
|
|
|
import com.ruoyi.system.domain.userexam.dto.request.UserExamReqDTO;
|
|
|
|
import com.ruoyi.system.domain.userexam.dto.response.UserExamExportDTO;
|
|
|
|
import com.ruoyi.system.domain.userexam.dto.response.UserExamExportDTO;
|
|
|
@ -136,7 +137,11 @@ public class TdExamnumController extends BaseController {
|
|
|
|
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
|
|
|
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
|
|
|
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
|
|
|
|
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
|
|
|
|
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
|
|
|
|
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
|
|
|
|
Integer count = userExamManager.countExamMonth(minDayTime, maxDayTime,true);
|
|
|
|
ExamManagerDTO examManagerDTO =new ExamManagerDTO();
|
|
|
|
|
|
|
|
examManagerDTO.setMinDayTime(minDayTime);
|
|
|
|
|
|
|
|
examManagerDTO.setMaxDayTime(maxDayTime);
|
|
|
|
|
|
|
|
examManagerDTO.setPassed(1);
|
|
|
|
|
|
|
|
Integer count = userExamManager.countExamMonth(examManagerDTO);
|
|
|
|
if(Objects.isNull(count)){
|
|
|
|
if(Objects.isNull(count)){
|
|
|
|
count = 0;
|
|
|
|
count = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -169,7 +174,11 @@ public class TdExamnumController extends BaseController {
|
|
|
|
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
|
|
|
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
|
|
|
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
|
|
|
|
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
|
|
|
|
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
|
|
|
|
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
|
|
|
|
Integer count = userExamManager.countExamMonth(minDayTime, maxDayTime,false);
|
|
|
|
ExamManagerDTO examManagerDTO =new ExamManagerDTO();
|
|
|
|
|
|
|
|
examManagerDTO.setMinDayTime(minDayTime);
|
|
|
|
|
|
|
|
examManagerDTO.setMaxDayTime(maxDayTime);
|
|
|
|
|
|
|
|
examManagerDTO.setPassed(0);
|
|
|
|
|
|
|
|
Integer count = userExamManager.countExamMonth(examManagerDTO);
|
|
|
|
if(Objects.isNull(count)){
|
|
|
|
if(Objects.isNull(count)){
|
|
|
|
count = 0;
|
|
|
|
count = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|