|
@@ -19,6 +19,7 @@ import org.springframework.stereotype.Service;
|
|
import java.io.FileOutputStream;
|
|
import java.io.FileOutputStream;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.sql.Timestamp;
|
|
import java.sql.Timestamp;
|
|
|
|
+import java.text.DecimalFormat;
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
@@ -170,7 +171,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
.eq("action_type", 0))) {
|
|
.eq("action_type", 0))) {
|
|
totalWorkingTime += timeCalculation.getDuration();
|
|
totalWorkingTime += timeCalculation.getDuration();
|
|
}
|
|
}
|
|
- resultMap.put("time", totalWorkingTime);
|
|
|
|
|
|
+ resultMap.put("time", new DecimalFormat("#.00").format(totalWorkingTime / 3600));
|
|
resultMap.put("project", projectMapper.selectList(new QueryWrapper<Project>()
|
|
resultMap.put("project", projectMapper.selectList(new QueryWrapper<Project>()
|
|
.eq("company_id", userMapper.selectById(userId).getCompanyId())));
|
|
.eq("company_id", userMapper.selectById(userId).getCompanyId())));
|
|
httpRespMsg.data = resultMap;
|
|
httpRespMsg.data = resultMap;
|