|
@@ -1305,7 +1305,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
.setRoleId(roleId)
|
|
|
.setRoleName(sysRoleMapper.selectById(roleId).getRolename())
|
|
|
.setWorkTypeId(workTypeId)
|
|
|
- .setWorkType(workTypeMapper.selectById(workTypeId).getName())
|
|
|
+ .setWorkType(workTypeId!=null?workTypeMapper.selectById(workTypeId).getName():null)
|
|
|
.setMonthCost(monthCostValue)
|
|
|
.setCost(costValue)
|
|
|
.setPosition(position)
|
|
@@ -1902,24 +1902,24 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
//headCell.setCellValue("部门");
|
|
|
headCell.setCellValue(MessageUtils.message("excel.department"));
|
|
|
headCell.setCellStyle(headStyle);
|
|
|
+// headCell = headRow.createCell(6);
|
|
|
+// //headCell.setCellValue("月薪");
|
|
|
+// headCell.setCellValue(MessageUtils.message("excel.MonSalary"));
|
|
|
+// headCell.setCellStyle(headStyle);
|
|
|
+// headCell = headRow.createCell(7);
|
|
|
+// //headCell.setCellValue("时薪");
|
|
|
+// headCell.setCellValue(MessageUtils.message("excel.hourlyWage"));
|
|
|
+// headCell.setCellStyle(headStyle);
|
|
|
headCell = headRow.createCell(6);
|
|
|
- //headCell.setCellValue("月薪");
|
|
|
- headCell.setCellValue(MessageUtils.message("excel.MonSalary"));
|
|
|
- headCell.setCellStyle(headStyle);
|
|
|
- headCell = headRow.createCell(7);
|
|
|
- //headCell.setCellValue("时薪");
|
|
|
- headCell.setCellValue(MessageUtils.message("excel.hourlyWage"));
|
|
|
- headCell.setCellStyle(headStyle);
|
|
|
- headCell = headRow.createCell(8);
|
|
|
//headCell.setCellValue("证书");
|
|
|
headCell.setCellValue(MessageUtils.message("excel.certificate"));
|
|
|
headCell.setCellStyle(headStyle);
|
|
|
for (int i = 0; i < userCustomList.size(); i++) {
|
|
|
- headCell = headRow.createCell(8+i);
|
|
|
+ headCell = headRow.createCell(6+i);
|
|
|
headCell.setCellValue(userCustomList.get(i).getName());
|
|
|
headCell.setCellStyle(headStyle);
|
|
|
}
|
|
|
- headCell = headRow.createCell(8+userCustomList.size());
|
|
|
+ headCell = headRow.createCell(6+userCustomList.size());
|
|
|
//headCell.setCellValue("状态");
|
|
|
headCell.setCellValue(MessageUtils.message("leave.status"));
|
|
|
headCell.setCellStyle(headStyle);
|
|
@@ -1964,8 +1964,8 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
}else {
|
|
|
row.createCell(5).setCellValue(item.getDepartmentName());
|
|
|
}
|
|
|
- row.createCell(6).setCellValue(item.getMonthCost()==null? 0 : item.getMonthCost().intValue());
|
|
|
- row.createCell(7).setCellValue(item.getCost() == null?0.0 : item.getCost().doubleValue());
|
|
|
+// row.createCell(6).setCellValue(item.getMonthCost()==null? 0 : item.getMonthCost().intValue());
|
|
|
+// row.createCell(7).setCellValue(item.getCost() == null?0.0 : item.getCost().doubleValue());
|
|
|
List<UserCert> certList = userCertList.stream().distinct().filter(uc -> uc.getUserId().equals(item.getId())).collect(Collectors.toList());
|
|
|
if(certList.size()>0){
|
|
|
String s="";
|
|
@@ -1976,9 +1976,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
s+=certList.get(i).getCertName()+" "+certList.get(i).getCertDate();
|
|
|
}
|
|
|
}
|
|
|
- row.createCell(8).setCellValue(s);
|
|
|
+ row.createCell(6).setCellValue(s);
|
|
|
}else {
|
|
|
- row.createCell(8).setCellValue("");
|
|
|
+ row.createCell(6).setCellValue("");
|
|
|
}
|
|
|
for (int i = 0; i < userCustomList.size(); i++) {
|
|
|
String value="";
|
|
@@ -1994,9 +1994,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
case 4:value=item.getPlate5()==null?"":item.getPlate5();
|
|
|
break;
|
|
|
}
|
|
|
- row.createCell(8+i).setCellValue(value);
|
|
|
+ row.createCell(6+i).setCellValue(value);
|
|
|
}
|
|
|
- row.createCell(8+userCustomList.size()).setCellValue(item.getIsActive()==1?MessageUtils.message("excel.normal"):MessageUtils.message("access.deactivated"));
|
|
|
+ row.createCell(6+userCustomList.size()).setCellValue(item.getIsActive()==1?MessageUtils.message("excel.normal"):MessageUtils.message("access.deactivated"));
|
|
|
rowNum++;
|
|
|
}
|
|
|
//生成Excel文件
|