fix(测试用例): 日期类型导入错误

--bug=1045506 --user=王旭 【测试用例】导出xmind-日期带具体时间类型-再导入回来-报错校验失败 https://www.tapd.cn/55049933/s/1566505
This commit is contained in:
WangXu10 2024-08-21 11:17:02 +08:00 committed by Craftsman
parent 79d7ca46b4
commit 927fd92abb
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import io.metersphere.functional.service.FunctionalCaseService;
import io.metersphere.functional.xmind.pojo.Attached;
import io.metersphere.functional.xmind.pojo.JsonRootBean;
import io.metersphere.functional.xmind.utils.DetailUtil;
import io.metersphere.plugin.platform.enums.PlatformCustomFieldType;
import io.metersphere.sdk.util.CommonBeanFactory;
import io.metersphere.sdk.util.JSON;
import io.metersphere.sdk.util.LogUtils;
@ -361,7 +362,7 @@ public class XMindCaseParser {
}
} else {
//自定义字段
String[] customFiled = item.getTitle().split("(?:\\s*:|)");
String[] customFiled = item.getTitle().split("(?:\\s*:|)",2);
Map<String, Object> stringObjectMap = testCase.getCustomData();
if (customFiled.length > 1) {
TemplateCustomFieldDTO templateCustomFieldDTO = customFieldsMap.get(customFiled[0]);