|
@@ -1892,7 +1892,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
headList.add("姓名");
|
|
headList.add("姓名");
|
|
headList.add("部门");
|
|
headList.add("部门");
|
|
headList.add("工作日期");
|
|
headList.add("工作日期");
|
|
- headList.add("部门");
|
|
|
|
|
|
+ headList.add("工作时长(h)");
|
|
headList.add("加班工时(h)");
|
|
headList.add("加班工时(h)");
|
|
if (hasViewSalary) {
|
|
if (hasViewSalary) {
|
|
headList.add("加班成本(元)");
|
|
headList.add("加班成本(元)");
|
|
@@ -1901,13 +1901,21 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
List<List<String>> allList = new ArrayList<List<String>>();
|
|
List<List<String>> allList = new ArrayList<List<String>>();
|
|
allList.add(headList);
|
|
allList.add(headList);
|
|
double totalCostTime = 0;
|
|
double totalCostTime = 0;
|
|
|
|
+ double totalWorkTime = 0;
|
|
int seq = 1;
|
|
int seq = 1;
|
|
for (Map<String, Object> map : list) {
|
|
for (Map<String, Object> map : list) {
|
|
totalMoneyCost = totalMoneyCost.add((BigDecimal)map.get("cost"));
|
|
totalMoneyCost = totalMoneyCost.add((BigDecimal)map.get("cost"));
|
|
totalCostTime += (Double)map.get("overtimeHours");
|
|
totalCostTime += (Double)map.get("overtimeHours");
|
|
|
|
+ totalWorkTime += (Double)map.get("workingTime");
|
|
List<String> rowData = new ArrayList<String>();
|
|
List<String> rowData = new ArrayList<String>();
|
|
rowData.add(""+seq);
|
|
rowData.add(""+seq);
|
|
|
|
+ rowData.add((String)map.get("projectCode"));
|
|
|
|
+ rowData.add((String)map.get("projectName"));
|
|
|
|
+ rowData.add((String)map.get("degreeName"));
|
|
rowData.add((String)map.get("username"));
|
|
rowData.add((String)map.get("username"));
|
|
|
|
+ rowData.add((String)map.get("departmentName"));
|
|
|
|
+ rowData.add((String)map.get("createDate"));
|
|
|
|
+ rowData.add(((Double)map.get("workingTime")).toString());
|
|
rowData.add(((Double)map.get("overtimeHours")).toString());
|
|
rowData.add(((Double)map.get("overtimeHours")).toString());
|
|
if (hasViewSalary) {
|
|
if (hasViewSalary) {
|
|
rowData.add(((BigDecimal)map.get("cost")).toString());
|
|
rowData.add(((BigDecimal)map.get("cost")).toString());
|
|
@@ -1919,6 +1927,13 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
//合计
|
|
//合计
|
|
List<String> sumRow = new ArrayList<String>();
|
|
List<String> sumRow = new ArrayList<String>();
|
|
sumRow.add("合计");
|
|
sumRow.add("合计");
|
|
|
|
+ sumRow.add("");
|
|
|
|
+ sumRow.add("");
|
|
|
|
+ sumRow.add("");
|
|
|
|
+ sumRow.add("");
|
|
|
|
+ sumRow.add("");
|
|
|
|
+ sumRow.add("");
|
|
|
|
+ sumRow.add(""+totalWorkTime);
|
|
sumRow.add(""+totalCostTime);
|
|
sumRow.add(""+totalCostTime);
|
|
if (hasViewSalary) {
|
|
if (hasViewSalary) {
|
|
sumRow.add(totalMoneyCost.toString());
|
|
sumRow.add(totalMoneyCost.toString());
|