| | |
| | | @PostMapping(value = "/api/t-inspection-report/add") |
| | | public R<Boolean> add(@RequestBody String param) { |
| | | TInspectionReportDTO dto = JSON.parseObject(param,TInspectionReportDTO.class); |
| | | Long userId = tokenService.getLoginUser().getUserId(); |
| | | dto.setCommitUserId(userId); |
| | | inspectionReportService.save(dto); |
| | | // 通过当前用户查询项目组 |
| | | Long userId = tokenService.getLoginUser().getUserId(); |
| | | TProjectTeamStaff projectTeamStaff = projectTeamStaffService.getOne(Wrappers.lambdaQuery(TProjectTeamStaff.class) |
| | | .eq(TProjectTeamStaff::getUserId, userId) |
| | | .last("LIMIT 1")); |