fix(项目管理): 日志跳转用例详情页
--bug=1037239 --user=王旭 【项目管理】批量复制功能用例-项目管理日志查看-点击名称跳转应该跳转至用例详情页 https://www.tapd.cn/55049933/s/1490496
This commit is contained in:
parent
53b72d7517
commit
8e2a08a18b
|
@ -200,7 +200,7 @@ public class FunctionalCaseService {
|
||||||
|
|
||||||
//记录日志
|
//记录日志
|
||||||
FunctionalCaseHistoryLogDTO historyLogDTO = getImportLogModule(functionalCase);
|
FunctionalCaseHistoryLogDTO historyLogDTO = getImportLogModule(functionalCase);
|
||||||
saveImportDataLog(functionalCase, new FunctionalCaseHistoryLogDTO(), historyLogDTO, userId, organizationId, OperationLogType.ADD.name(), OperationLogModule.CASE_MANAGEMENT_CASE_CREATE);
|
saveImportDataLog(functionalCase, new FunctionalCaseHistoryLogDTO(), historyLogDTO, userId, organizationId, OperationLogType.ADD.name(), OperationLogModule.FUNCTIONAL_CASE);
|
||||||
|
|
||||||
return functionalCase;
|
return functionalCase;
|
||||||
}
|
}
|
||||||
|
@ -420,7 +420,7 @@ public class FunctionalCaseService {
|
||||||
//获取变更历史数量数量
|
//获取变更历史数量数量
|
||||||
OperationHistoryExample operationHistoryExample = new OperationHistoryExample();
|
OperationHistoryExample operationHistoryExample = new OperationHistoryExample();
|
||||||
List<String> types = List.of(OperationLogType.ADD.name(), OperationLogType.IMPORT.name(), OperationLogType.UPDATE.name());
|
List<String> types = List.of(OperationLogType.ADD.name(), OperationLogType.IMPORT.name(), OperationLogType.UPDATE.name());
|
||||||
List<String> modules = List.of(OperationLogModule.CASE_MANAGEMENT_CASE_CREATE, OperationLogModule.CASE_MANAGEMENT_CASE_UPDATE);
|
List<String> modules = List.of(OperationLogModule.FUNCTIONAL_CASE);
|
||||||
operationHistoryExample.createCriteria().andSourceIdEqualTo(functionalCaseDetailDTO.getId()).andTypeIn(types).andModuleIn(modules);
|
operationHistoryExample.createCriteria().andSourceIdEqualTo(functionalCaseDetailDTO.getId()).andTypeIn(types).andModuleIn(modules);
|
||||||
functionalCaseDetailDTO.setHistoryCount((int) operationHistoryMapper.countByExample(operationHistoryExample));
|
functionalCaseDetailDTO.setHistoryCount((int) operationHistoryMapper.countByExample(operationHistoryExample));
|
||||||
|
|
||||||
|
@ -834,7 +834,7 @@ public class FunctionalCaseService {
|
||||||
historyLogDTO.setCustomFields(customFields);
|
historyLogDTO.setCustomFields(customFields);
|
||||||
historyLogDTO.setCaseAttachments(caseAttachments);
|
historyLogDTO.setCaseAttachments(caseAttachments);
|
||||||
historyLogDTO.setFileAssociationList(fileAssociationList);
|
historyLogDTO.setFileAssociationList(fileAssociationList);
|
||||||
saveImportDataLog(functionalCase, new FunctionalCaseHistoryLogDTO(), historyLogDTO, userId, organizationId, OperationLogType.ADD.name(), OperationLogModule.CASE_MANAGEMENT_CASE_CREATE);
|
saveImportDataLog(functionalCase, new FunctionalCaseHistoryLogDTO(), historyLogDTO, userId, organizationId, OperationLogType.ADD.name(), OperationLogModule.FUNCTIONAL_CASE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1092,7 +1092,7 @@ public class FunctionalCaseService {
|
||||||
List<FunctionalCaseCustomField> customFields = functionalCaseCustomFieldMapper.selectByExample(fieldExample);
|
List<FunctionalCaseCustomField> customFields = functionalCaseCustomFieldMapper.selectByExample(fieldExample);
|
||||||
FunctionalCaseHistoryLogDTO historyLogDTO = new FunctionalCaseHistoryLogDTO(functionalCase, caseBlob, customFields, new ArrayList<>(), new ArrayList<>());
|
FunctionalCaseHistoryLogDTO historyLogDTO = new FunctionalCaseHistoryLogDTO(functionalCase, caseBlob, customFields, new ArrayList<>(), new ArrayList<>());
|
||||||
|
|
||||||
saveImportDataLog(functionalCase, new FunctionalCaseHistoryLogDTO(), historyLogDTO, userId, organizationId, OperationLogType.IMPORT.name(), OperationLogModule.CASE_MANAGEMENT_CASE_CREATE);
|
saveImportDataLog(functionalCase, new FunctionalCaseHistoryLogDTO(), historyLogDTO, userId, organizationId, OperationLogType.IMPORT.name(), OperationLogModule.FUNCTIONAL_CASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1223,7 +1223,7 @@ public class FunctionalCaseService {
|
||||||
//记录新值
|
//记录新值
|
||||||
FunctionalCaseHistoryLogDTO modifiedLogDTO = getImportLogModule(functionalCase);
|
FunctionalCaseHistoryLogDTO modifiedLogDTO = getImportLogModule(functionalCase);
|
||||||
//记录日志
|
//记录日志
|
||||||
saveImportDataLog(functionalCase, originalValue, modifiedLogDTO, userId, organizationId, OperationLogType.IMPORT.name(), OperationLogModule.CASE_MANAGEMENT_CASE_UPDATE);
|
saveImportDataLog(functionalCase, originalValue, modifiedLogDTO, userId, organizationId, OperationLogType.IMPORT.name(), OperationLogModule.FUNCTIONAL_CASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addStatusIds(List<String> caseIds, FunctionalCase functionalCase, FunctionalCaseExcelData functionalCaseExcelData) {
|
private void addStatusIds(List<String> caseIds, FunctionalCase functionalCase, FunctionalCaseExcelData functionalCaseExcelData) {
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class OperationHistoryRequest extends BasePageRequest implements Serializ
|
||||||
private List<String> types;
|
private List<String> types;
|
||||||
|
|
||||||
@Schema(description = "操作模块")
|
@Schema(description = "操作模块")
|
||||||
private List<String> modules;
|
private String modules;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,11 +62,8 @@
|
||||||
#{type}
|
#{type}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="request.modules != null and request.modules.size() > 0">
|
<if test="request.modules != null and request.modules !=''">
|
||||||
AND operation_history.`module` in
|
AND operation_history.`module` like CONCAT('%',#{request.modules},'%')
|
||||||
<foreach collection="request.modules" item="module" open="(" close=")" separator=",">
|
|
||||||
#{module}
|
|
||||||
</foreach>
|
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -147,7 +147,7 @@
|
||||||
setLoadListParams({
|
setLoadListParams({
|
||||||
projectId: appStore.currentProjectId,
|
projectId: appStore.currentProjectId,
|
||||||
sourceId: props.sourceId,
|
sourceId: props.sourceId,
|
||||||
modules: ['API_TEST_MANAGEMENT_CASE'],
|
modules: 'API_TEST_MANAGEMENT_CASE',
|
||||||
types: typeFilter.value,
|
types: typeFilter.value,
|
||||||
});
|
});
|
||||||
loadList();
|
loadList();
|
||||||
|
|
|
@ -238,7 +238,7 @@
|
||||||
projectId: appStore.currentProjectId,
|
projectId: appStore.currentProjectId,
|
||||||
sourceId: props.caseId,
|
sourceId: props.caseId,
|
||||||
types: ['IMPORT', 'ADD', 'UPDATE'],
|
types: ['IMPORT', 'ADD', 'UPDATE'],
|
||||||
modules: ['CASE_MANAGEMENT_CASE_CREATE', 'CASE_MANAGEMENT_CASE_UPDATE'],
|
modules: 'CASE_MANAGEMENT_CASE',
|
||||||
});
|
});
|
||||||
await loadList();
|
await loadList();
|
||||||
featureCaseStore.getCaseCounts(props.caseId);
|
featureCaseStore.getCaseCounts(props.caseId);
|
||||||
|
|
Loading…
Reference in New Issue