fix(用例管理): 修复全选关联需求问题

--bug=1036165 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036165
This commit is contained in:
guoyuqi 2024-02-28 11:35:08 +08:00 committed by 刘瑞斌
parent b6cad47426
commit ee28959658
1 changed files with 4 additions and 1 deletions

View File

@ -349,7 +349,10 @@ public class FunctionalCaseDemandService {
public void setDemandDTOList(List<PlatformDemandDTO.Demand> list, List<DemandDTO> demandDTOList) {
for (PlatformDemandDTO.Demand demand : list) {
DemandDTO demandDTO = new DemandDTO();
BeanUtils.copyBean(demand, demandDTO);
demandDTO.setDemandId(demand.getDemandId());
demandDTO.setDemandUrl(demand.getDemandUrl());
demandDTO.setDemandName(demand.getDemandName());
demandDTO.setParent(demand.getParent());
if (CollectionUtils.isNotEmpty(demand.getChildren())) {
setDemandDTOList(demand.getChildren(), demandDTOList);
}