fix(用例管理): 用例评审脑图单独评审用例返回结果增加我的结果条件
This commit is contained in:
parent
c2c1e332ee
commit
66a9832e1d
|
@ -121,7 +121,7 @@ public class CaseReviewFunctionalCaseController {
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/mind/multiple/review")
|
@PostMapping("/mind/multiple/review")
|
||||||
@Operation(summary = "用例管理-用例评审-评审列表-评审详情-列表-批量评审")
|
@Operation(summary = "评审详情-脑图-多人评审返回评审结果")
|
||||||
@RequiresPermissions(value = {PermissionConstants.CASE_REVIEW_REVIEW, PermissionConstants.CASE_REVIEW_READ_UPDATE}, logical = Logical.OR)
|
@RequiresPermissions(value = {PermissionConstants.CASE_REVIEW_REVIEW, PermissionConstants.CASE_REVIEW_READ_UPDATE}, logical = Logical.OR)
|
||||||
@CheckOwner(resourceId = "#request.getReviewId()", resourceType = "case_review")
|
@CheckOwner(resourceId = "#request.getReviewId()", resourceType = "case_review")
|
||||||
public String mindReview(@Validated @RequestBody MindReviewFunctionalCaseRequest request) {
|
public String mindReview(@Validated @RequestBody MindReviewFunctionalCaseRequest request) {
|
||||||
|
|
|
@ -599,7 +599,11 @@ public class CaseReviewFunctionalCaseService {
|
||||||
param.put(CaseEvent.Param.COUNT_MAP, countMap);
|
param.put(CaseEvent.Param.COUNT_MAP, countMap);
|
||||||
provider.updateCaseReview(param);
|
provider.updateCaseReview(param);
|
||||||
|
|
||||||
return caseReviewFunctionalCase.getStatus();
|
String status = caseReviewFunctionalCase.getStatus();
|
||||||
|
if (StringUtils.isNotBlank(request.getUserId())) {
|
||||||
|
status = request.getStatus();
|
||||||
|
}
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -551,6 +551,15 @@ public class CaseReviewFunctionalCaseControllerTests extends BaseTest {
|
||||||
caseReviewHistories = caseReviewHistoryMapper.selectByExample(caseReviewHistoryExample);
|
caseReviewHistories = caseReviewHistoryMapper.selectByExample(caseReviewHistoryExample);
|
||||||
Assertions.assertEquals(10,caseReviewHistories.size());
|
Assertions.assertEquals(10,caseReviewHistories.size());
|
||||||
|
|
||||||
|
request = new MindReviewFunctionalCaseRequest();
|
||||||
|
request.setReviewId("wx_review_id_4");
|
||||||
|
request.setStatus(FunctionalCaseReviewStatus.PASS.toString());
|
||||||
|
request.setCaseId("wx_case_id_2");
|
||||||
|
request.setUserId("123");
|
||||||
|
caseReviewFunctionalCaseService.mindReview(request, "123");
|
||||||
|
caseReviewHistories = caseReviewHistoryMapper.selectByExample(caseReviewHistoryExample);
|
||||||
|
Assertions.assertEquals(11,caseReviewHistories.size());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue