| | |
| | | if (ObjectUtils.isEmpty(queryBO.getTag())){ |
| | | throw new BusinessException(this.getClass(), ResultCode.PARAM_ERROR.getCode() ,"查询报告类别参数缺失"); |
| | | } |
| | | if (queryBO.getExperimentName() == "null"){ |
| | | if (queryBO.getExperimentName() == ""){ |
| | | queryBO.setExperimentName(null); |
| | | } |
| | | UserInfoDomainDTO user = userDomainService.getUserById(currentUserId); |
| | |
| | | predicateList.add(criteriaBuilder.equal(root.get("experimentId"),queryParam.getExperimentId())); |
| | | } |
| | | if (!ObjectUtils.isEmpty(queryParam.getExperimentName())){ |
| | | predicateList.add(criteriaBuilder.equal(root.get("experimentName"), queryParam.getExperimentName())); |
| | | predicateList.add(criteriaBuilder.like(root.get("experimentName"),"%"+queryParam.getExperimentName()+"%")); |
| | | } |
| | | if (roleTag == UserTagEnum.USER_TAG_0.getCode()){ |
| | | predicateList.add(criteriaBuilder.equal(root.get("personUserId"), currentUserId)); |
| | |
| | | if (queryParam.getTag() == 1){ |
| | | predicateList.add(criteriaBuilder.isNull(root.get("assessPerson"))); |
| | | }else if (queryParam.getTag() == 2){ |
| | | predicateList.add(criteriaBuilder.isNotNull(root.get("assessPerson"))); |
| | | predicateList.add(criteriaBuilder.isNotNull(root.get("assessPerson")) |
| | | ); |
| | | } |
| | | //现在领导能查看所有的报告 |
| | | // if (roleTag == UserTagEnum.USER_TAG_2.getCode()){ |
| | |
| | | |
| | | reportById.setAssessPerson(reportUpdateBO.getAssessPerson()); |
| | | reportById.setAssessLevel(reportUpdateBO.getAssessLevel()); |
| | | // reportById.setSafeRiskAnalysis(reportUpdateBO.getSafeRiskAnalysis()); |
| | | reportById.setDescription(reportUpdateBO.getDescription()); |
| | | reportById.setUpdateTime(LocalDateTime.now()); |
| | | reportById.setUpdateByUserId(currentUserId); |