| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.enums.QATestItemStatusEnum; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.framework.web.service.TokenService; |
| | | import com.ruoyi.system.dto.TQaTestItemDTO; |
| | | import com.ruoyi.system.dto.TQaTestItemEvaluateDTO; |
| | |
| | | query.setTeamIds(teamIds); |
| | | } |
| | | } |
| | | |
| | | return R.ok(qaTestItemService.pageList(query)); |
| | | } |
| | | |
| | |
| | | testItemVO.setQaTestItemReportList(qaTestItemReportVOS); |
| | | // 查询项目组名称 |
| | | TProjectTeam projectTeam = projectTeamService.getById(testItemVO.getTeamId()); |
| | | |
| | | if (projectTeam == null) { |
| | | throw new ServiceException("当前数据项目组不存在"); |
| | | } |
| | | |
| | | TProjectTeamVO projectTeamVO = new TProjectTeamVO(); |
| | | BeanUtils.copyProperties(projectTeam, projectTeamVO); |
| | | // 查询项目组成员 |
| | |
| | | @ApiOperation(value = "删除QA检测项管理") |
| | | @DeleteMapping(value = "/open/t-qa-test-item/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | if (Objects.equals(tokenService.getLoginUser().getUser().getRoleType(), 1)) { |
| | | return R.fail("超级管理员不能删除检测项,只能删除报告"); |
| | | } |
| | | // 删除QA检测项管理成员 |
| | | qaTestItemReportService.remove(Wrappers.lambdaQuery(TQaTestItemReport.class).eq(TQaTestItemReport::getItemId, id)); |
| | | return R.ok(qaTestItemService.removeById(id)); |
| | |
| | | @ApiOperation(value = "批量删除QA检测项管理") |
| | | @DeleteMapping(value = "/open/t-qa-test-item/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | if (Objects.equals(tokenService.getLoginUser().getUser().getRoleType(), 1)) { |
| | | return R.fail("超级管理员不能删除检测项,只能删除报告"); |
| | | } |
| | | // 删除QA检测项检测报告 |
| | | qaTestItemReportService.remove(Wrappers.lambdaQuery(TQaTestItemReport.class).in(TQaTestItemReport::getItemId, ids)); |
| | | return R.ok(qaTestItemService.removeByIds(ids)); |