| | |
| | | .stream().filter(sysUserLevelInsurance -> !((sysUserLevelInsurance.getEndDate() != null && sysUserLevelInsurance.getEndDate().before(enterProjectTime)) || sysUserLevelInsurance.getStartDate().after(exitProjectTime))) |
| | | .collect(Collectors.toList()); |
| | | |
| | | // 判断是否有用户级别工资 |
| | | if(sysUserLevelWages.size() <= 0){ |
| | | throw new BadRequestException("此用户暂无级别工资"); |
| | | } |
| | | // 判断是否有用户级别保险 |
| | | if(sysUserLevelInsurances.size() <= 0){ |
| | | throw new BadRequestException("此用户暂无级别保险"); |
| | | } |
| | | // // 判断是否有用户级别工资 |
| | | // if(sysUserLevelWages.size() <= 0){ |
| | | // throw new BadRequestException("此用户暂无级别工资"); |
| | | // } |
| | | // // 判断是否有用户级别保险 |
| | | // if(sysUserLevelInsurances.size() <= 0){ |
| | | // throw new BadRequestException("此用户暂无级别保险"); |
| | | // } |
| | | |
| | | Map<Long, Double> sysUserLevelWageHoursMap = new HashMap<Long, Double>(); |
| | | for (SysUserLevelWage sysUserLevelWage : sysUserLevelWages) { |
| | |
| | | map.put("用户", user); |
| | | map.put("进入项目时间", projectCost.getEnterProjectTime()); |
| | | map.put("退出项目时间", projectCost.getExitProjectTime()); |
| | | map.put("参与时间", projectCost.getInvolvementHours()); |
| | | map.put("项目成本", projectCost.getProjectCost()); |
| | | map.put("备注", projectCost.getRemarks()); |
| | | map.put("创建者", projectCost.getCreateBy()); |