fix(用例管理): 修复用例等级模板为空导入默认值为空的问题
--bug=1045294 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001045294
This commit is contained in:
parent
ffd897e9bd
commit
e65069f90b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue