fix(用例管理): 修复用例等级模板为空导入默认值为空的问题

--bug=1045294 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001045294
This commit is contained in:
guoyuqi 2024-08-20 14:53:36 +08:00 committed by Craftsman
parent ffd897e9bd
commit e65069f90b
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,7 @@ public class FunctionalCaseService {
Map<String, Object> customData = functionalCaseExcelData.getCustomData();
customFieldsMap.forEach((k, v) -> {
//用例等级如果没有默认值则为P0
if (StringUtils.equalsIgnoreCase(v.getInternalFieldKey(), "functional_priority") && v.getDefaultValue()==null) {
if (StringUtils.equalsIgnoreCase(v.getInternalFieldKey(), "functional_priority") && (v.getDefaultValue() == null || StringUtils.isBlank(v.getDefaultValue().toString()))) {
v.setDefaultValue("P0");
}
Object value = customData.get(k);