|
@@ -233,7 +233,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
if (functionList.size() == 0) {
|
|
|
String leaderId = user.getId();
|
|
|
//不是项目经理,只看自己的报告
|
|
|
- List<Map<String, Object>> list = new ArrayList<>();
|
|
|
+ List<ReportVO> list = new ArrayList<>();
|
|
|
//没有指定员工或者指定的就是自己
|
|
|
if (targetUid == null || targetUid.equals(user.getId())) {
|
|
|
//查看自己的日报
|
|
@@ -248,10 +248,10 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
double reportTime = 0;
|
|
|
BigDecimal total = new BigDecimal(0);
|
|
|
int state = 1;
|
|
|
- for (Map<String, Object> m : list) {
|
|
|
- double t = (double) m.get("time");
|
|
|
+ for (ReportVO m : list) {
|
|
|
+ double t = m.getWorkingTime();
|
|
|
reportTime += t;
|
|
|
- total = total.add((BigDecimal)m.get("cost"));
|
|
|
+ total = total.add(m.getCost());
|
|
|
}
|
|
|
|
|
|
DecimalFormat df = new DecimalFormat("0.00");
|