mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
fix(用例管理): 修复导入文件问题
--bug=1043012 --user=王旭 【用例管理】导入用例-责任人为空或者在系统中不存在-文件校验成功 https://www.tapd.cn/55049933/s/1535606
This commit is contained in:
parent
0eadb3cb93
commit
b47d8c60ed
@ -546,7 +546,7 @@ excel.template.id=Non mandatory, add a new use case when the ID is empty or does
|
||||
excel.template.case_edit_type=Not mandatory, fill in STEP for step description, fill in Text for text description, default to Text if not filled in
|
||||
excel.template.tag=Not mandatory labels should be separated by semicolons or commas
|
||||
excel.template.text_description=Not mandatory, when the editing mode is STEP, the step description will be based on the identifier [1] [2] [3] To determine whether to split a cell into multiple steps, if not, it is a single step
|
||||
excel.template.member=Not mandatory, please fill in the relevant personnel ID or email under this project
|
||||
excel.template.member=please fill in the relevant personnel ID or email under this project
|
||||
excel.template.not_required=Not required
|
||||
case_import_table_header_missing=Header information is missing!
|
||||
functional_case.module.length_less_than=The title is too long, the length must be less than
|
||||
|
@ -543,7 +543,7 @@ excel.template.id=非必填,ID为空或不存在时新增用例;
|
||||
excel.template.case_edit_type=非必填,步骤描述填写STEP,文本描述填写TEXT,未填写默认为TEXT
|
||||
excel.template.tag=非必填,标签之间以分号或者逗号隔开
|
||||
excel.template.text_description=非必填,编辑模式为STEP时,步骤描述会根据标识[1] [2] [3]...来判断是否将单元格拆分为多个步骤,没有则为一个步骤
|
||||
excel.template.member=非必填,请填写该项目下的相关人员ID或邮箱
|
||||
excel.template.member=请填写该项目下的相关人员ID或邮箱
|
||||
excel.template.not_required=非必填
|
||||
case_import_table_header_missing=表头信息缺失!
|
||||
functional_case.module.length_less_than=标题过长,字数必须小于
|
||||
|
@ -544,7 +544,7 @@ excel.template.id=非必填,ID為空時或不存在時新增用例
|
||||
excel.template.case_edit_type=非必填,步驟描述填寫STEP,文本描述填寫TEXT,為填寫默認為TEXT
|
||||
excel.template.tag=非必填,標簽之間以分號或者逗號隔開
|
||||
excel.template.text_description=非必填,編輯模式為STEP時,步驟描述會根據標識[1] [2] [3]...來判斷是否將單元格拆分為多個步驟,沒有則為一個步驟
|
||||
excel.template.member=非必填,請填寫該項目下的相關人員ID或郵箱
|
||||
excel.template.member=請填寫該項目下的相關人員ID或郵箱
|
||||
excel.template.not_required=非必填
|
||||
case_import_table_header_missing=表頭信息缺失!
|
||||
functional_case.module.length_less_than=標題過長,字數必須小於
|
||||
|
@ -96,7 +96,11 @@ public class FunctionCaseTemplateWriteHandler implements RowWriteHandler {
|
||||
TemplateCustomFieldDTO templateCustomFieldDTO = customField.get(entry.getKey());
|
||||
List<String> strings = caseLevelAndStatusValueMap.get(entry.getKey());
|
||||
if (StringUtils.equalsAnyIgnoreCase(templateCustomFieldDTO.getType(), CustomFieldType.MULTIPLE_MEMBER.name(), CustomFieldType.MEMBER.name())) {
|
||||
setComment(fieldMap.get(entry.getKey()), Translator.get("excel.template.member"));
|
||||
if (templateCustomFieldDTO.getRequired()) {
|
||||
setComment(fieldMap.get(entry.getKey()), Translator.get("required").concat(",").concat(Translator.get("excel.template.member")));
|
||||
} else {
|
||||
setComment(fieldMap.get(entry.getKey()), Translator.get("excel.template.not_required").concat(",").concat(Translator.get("excel.template.member")));
|
||||
}
|
||||
} else {
|
||||
if (templateCustomFieldDTO.getRequired()) {
|
||||
if (CollectionUtils.isNotEmpty(strings)) {
|
||||
|
Loading…
Reference in New Issue
Block a user