fix(测试计划): 修复列表选中计划集总数量变问题

--bug=1042524 --user=王旭 【测试计划】计划-计划详情-功能用例/接口用例/场景用例-左侧模块树-选择某模块时,上方代表全部数量的数字不应该改变 https://www.tapd.cn/55049933/s/1531356
This commit is contained in:
WangXu10 2024-06-19 10:53:53 +08:00 committed by Craftsman
parent b3086f3da8
commit b5a292e4a3
3 changed files with 3 additions and 0 deletions

View File

@ -340,6 +340,7 @@ public class TestPlanApiCaseService extends TestPlanResourceService {
* @return
*/
private Map<String, Long> getCollectionCount(TestPlanApiCaseModuleRequest request) {
request.setCollectionId(null);
Map<String, Long> projectModuleCountMap = new HashMap<>();
List<ModuleCountDTO> list = extTestPlanApiCaseMapper.collectionCountByRequest(request.getTestPlanId());
list.forEach(item -> {

View File

@ -473,6 +473,7 @@ public class TestPlanApiScenarioService extends TestPlanResourceService {
* @return
*/
private Map<String, Long> getCollectionCount(TestPlanApiScenarioModuleRequest request) {
request.setCollectionId(null);
Map<String, Long> projectModuleCountMap = new HashMap<>();
List<ModuleCountDTO> list = extTestPlanApiScenarioMapper.collectionCountByRequest(request.getTestPlanId());
list.forEach(item -> {

View File

@ -365,6 +365,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService {
* @return
*/
private Map<String, Long> getCollectionCount(TestPlanCaseModuleRequest request) {
request.setCollectionId(null);
Map<String, Long> projectModuleCountMap = new HashMap<>();
List<ModuleCountDTO> list = extTestPlanFunctionalCaseMapper.collectionCountByRequest(request.getTestPlanId());
list.forEach(item -> {