refactor(项目设置): 优化状态流接口,避免脏数据导致接口报错
This commit is contained in:
parent
3dab64d0f0
commit
4c1ec5d35b
|
@ -261,6 +261,7 @@ public class BaseTemplateService {
|
|||
request.setFieldId(refFieldMap.get(item.getFieldId()));
|
||||
return request;
|
||||
})
|
||||
.filter(item -> StringUtils.isNotBlank(item.getFieldId()))
|
||||
.toList();
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ import io.metersphere.system.domain.StatusItem;
|
|||
import io.metersphere.system.dto.StatusItemDTO;
|
||||
import io.metersphere.system.mapper.BaseProjectMapper;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
@ -97,6 +98,7 @@ public class OrganizationStatusFlowSettingService extends BaseStatusFlowSettingS
|
|||
statusDefinition.setStatusId(refFieldMap.get(item.getStatusId()));
|
||||
return statusDefinition;
|
||||
})
|
||||
.filter(item -> StringUtils.isNotBlank(item.getStatusId()))
|
||||
.toList();
|
||||
statusDefinitions.addAll(projectStatusDefinitions);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue