单位分钟改为小时

hehai
jiakun.lin 4 years ago
parent f451c7724a
commit b868abe4c9
  1. 6
      src/main/java/com/msdw/tms/service/impl/ProjectRecordServiceImpl.java

@ -75,11 +75,11 @@ public class ProjectRecordServiceImpl extends ServiceImpl<ProjectRecordDao, Proj
ProjectRecordVo projectRecordVo = this.baseMapper.getByUserScore(userId, isdel);
Double totalTime = projectRecordVo.getTotalTime();
if (totalTime != null) {
/*DecimalFormat df = new DecimalFormat("0.00");
DecimalFormat df = new DecimalFormat("0.0");
double time = totalTime / 60;
String format = df.format(time);
projectRecordVo.setTotalTime(Double.parseDouble(format));*/
projectRecordVo.setTotalTime(projectRecordVo.getTotalTime());
projectRecordVo.setTotalTime(Double.parseDouble(format));
//projectRecordVo.setTotalTime(projectRecordVo.getTotalTime());
}

Loading…
Cancel
Save