|
@@ -851,7 +851,7 @@ public class FinanceServiceImpl extends ServiceImpl<FinanceMapper, Finance> impl
|
|
|
List<String> rowData = new ArrayList<String>();
|
|
|
rowData.add(p.projectCode);
|
|
|
rowData.add(p.project);
|
|
|
- rowData.add("");
|
|
|
+ rowData.add("项目合计");
|
|
|
userCustoms.forEach(userCustom -> {rowData.add("");});
|
|
|
rowData.add(p.workingTime+"");
|
|
|
rowData.add(p.salary.toPlainString());
|
|
@@ -879,8 +879,8 @@ public class FinanceServiceImpl extends ServiceImpl<FinanceMapper, Finance> impl
|
|
|
if (membMap.get("project").equals(p.project)) {
|
|
|
//匹配到项目了
|
|
|
List<String> membRowData = new ArrayList<String>();
|
|
|
- membRowData.add("");
|
|
|
- membRowData.add("");
|
|
|
+ membRowData.add(p.projectCode);
|
|
|
+ membRowData.add(p.project);
|
|
|
Double workingTime = (Double) membMap.get("workingTime");
|
|
|
String creatorId = (String) membMap.get("creatorId");
|
|
|
User us = userList.stream().filter(u->u.getId().equals(creatorId)).findFirst().get();
|
|
@@ -956,8 +956,8 @@ public class FinanceServiceImpl extends ServiceImpl<FinanceMapper, Finance> impl
|
|
|
if (assignNoProUser != null && assignNoProUser) {
|
|
|
for (Finance npu : noProjectUser) {
|
|
|
List<String> membRowData = new ArrayList<String>();
|
|
|
- membRowData.add("");
|
|
|
- membRowData.add("");
|
|
|
+ membRowData.add(p.projectCode);
|
|
|
+ membRowData.add(p.project);
|
|
|
Double workingTime = new Double(0);
|
|
|
Finance userFinance = npu;
|
|
|
Optional<Map> op = noPUserDataList.stream().filter(map->((Integer)map.get("projectId")).equals(p.projectId) && ((String)map.get("creatorId")).equals(npu.getUserId())).findFirst();
|
|
@@ -986,6 +986,26 @@ public class FinanceServiceImpl extends ServiceImpl<FinanceMapper, Finance> impl
|
|
|
}else {
|
|
|
membRowData.add(npu.getName());
|
|
|
}
|
|
|
+ //自定义字段的显示
|
|
|
+ for (int i = 0; i < userCustoms.size(); i++) {
|
|
|
+ switch (i){
|
|
|
+ case 0:
|
|
|
+ membRowData.add(us.getPlate1()==null?"":us.getPlate1());
|
|
|
+ break;
|
|
|
+ case 1:
|
|
|
+ membRowData.add(us.getPlate2()==null?"":us.getPlate2());
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ membRowData.add(us.getPlate3()==null?"":us.getPlate3());
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ membRowData.add(us.getPlate4()==null?"":us.getPlate4());
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ membRowData.add(us.getPlate5()==null?"":us.getPlate5());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
membRowData.add(workingTime+"");
|
|
|
membRowData.add(salary.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString());
|
|
|
membRowData.add(bonus.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString());
|