|
@@ -976,14 +976,14 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
|
|
|
}
|
|
|
|
|
|
- List<Long> timeList = classGradeUserMapper.selectStart(classGradeStudentVo.getUserId(), classGradeStudentVo.getGoodsId(), classGradeStudentVo.getGradeId(),classGradeStudentVo.getOrderGoodsId());
|
|
|
+ /* List<Long> timeList = classGradeUserMapper.selectStart(classGradeStudentVo.getUserId(), classGradeStudentVo.getGoodsId(), classGradeStudentVo.getGradeId(),classGradeStudentVo.getOrderGoodsId());
|
|
|
if (!org.springframework.util.CollectionUtils.isEmpty(timeList)) {
|
|
|
//查找开始学习时间
|
|
|
classGradeStudentVo.setStartTime(timeList.get(0));
|
|
|
}else{
|
|
|
classGradeStudentVo.setStartTime(classGradeUserMapper.selectStartNoPhoto(classGradeStudentVo.getUserId(), classGradeStudentVo.getGoodsId(), classGradeStudentVo.getGradeId(),classGradeStudentVo.getOrderGoodsId())
|
|
|
);
|
|
|
- }
|
|
|
+ }*/
|
|
|
//BigDecimal divide = new BigDecimal(studyLong.toString()).divide(new BigDecimal(secLong.toString()),2,BigDecimal.ROUND_HALF_UP);
|
|
|
//classGradeStudentVo.setStudyNum(divide.multiply(new BigDecimal("100")).longValue());
|
|
|
classGradeStudentVo.setSecAllNum(secLong);
|
|
@@ -994,12 +994,12 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
/*if (Validator.isNotEmpty(classGradeStudentVo.getRebuyOrderGoodsId()) && classGradeStudentVo.getRebuyOrderGoodsId().longValue() > 0) {
|
|
|
classGradeStudentVo.setRebuy(orderMapper.getGradePeriod(classGradeStudentVo.getRebuyOrderGoodsId(), classGradeStudentVo.getUserId()));
|
|
|
}*/
|
|
|
- if (ObjectUtils.isNotNull(classGradeStudentVo.getOrgId())){
|
|
|
+/* if (ObjectUtils.isNotNull(classGradeStudentVo.getOrgId())){
|
|
|
SysTenant tenant = iSysTenantService.getById(classGradeStudentVo.getOrgId());
|
|
|
if (ObjectUtils.isNotNull(tenant)){
|
|
|
classGradeStudentVo.setTenantName(tenant.getTenantName());
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
return classGradeStudentVos;
|
|
|
}
|