fix(用例管理): 修复全选关联需求问题
--bug=1036165 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036165
This commit is contained in:
parent
b6cad47426
commit
ee28959658
|
@ -349,7 +349,10 @@ public class FunctionalCaseDemandService {
|
||||||
public void setDemandDTOList(List<PlatformDemandDTO.Demand> list, List<DemandDTO> demandDTOList) {
|
public void setDemandDTOList(List<PlatformDemandDTO.Demand> list, List<DemandDTO> demandDTOList) {
|
||||||
for (PlatformDemandDTO.Demand demand : list) {
|
for (PlatformDemandDTO.Demand demand : list) {
|
||||||
DemandDTO demandDTO = new DemandDTO();
|
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())) {
|
if (CollectionUtils.isNotEmpty(demand.getChildren())) {
|
||||||
setDemandDTOList(demand.getChildren(), demandDTOList);
|
setDemandDTOList(demand.getChildren(), demandDTOList);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue