Commit ee87005e authored by 王淑君's avatar 王淑君

修改接口

parent f2f2ac56
......@@ -171,8 +171,7 @@ public class BRStudentChapterServiceImpl implements BRStudentChapterService {
if (brStudentChapterDto.getCurrent().equals(brStudentChapterDto.getDuration())){
brStudentChapter.setProgress(1);
}else{
float num = (float)(Math.floor((float)brStudentChapterDto.getCurrent()/brStudentChapterDto.getDuration()*10000))/10000;
brStudentChapter.setProgress(num);
brStudentChapter.setProgress((Math.floor((float)brStudentChapterDto.getCurrent()/brStudentChapterDto.getDuration()*100))/100);
}
return brStudentChapter;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment