切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
b21343680e55013d702e598da971e432ff2df8a4
2 个父辈
43f39e12
db26ae28
Merge branch 'test' of
http://gitlab.fjmaimaimai.com/allied-creation/performance
into test
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
11 行增加
和
11 行删除
pkg/port/beego/controllers/import_controller.go
pkg/port/beego/controllers/import_controller.go
查看文件 @
b213436
...
...
@@ -273,20 +273,20 @@ func (controller *ImportController) ZipImport() {
})
continue
}
if
err
:
=
controller
.
parserAndInsert
(
f
,
fn
);
err
!=
nil
{
if
err
=
controller
.
parserAndInsert
(
f
,
fn
);
err
!=
nil
{
failure
=
append
(
failure
,
command
.
ErrorI
{
FileName
:
fn
,
Message
:
err
.
Error
(),
})
continue
}
else
{
success
=
append
(
success
,
command
.
ErrorI
{
FileName
:
fn
,
Message
:
""
,
})
}
success
=
append
(
success
,
command
.
ErrorI
{
FileName
:
fn
,
Message
:
""
,
})
}
// 解析完成
out
=
command
.
OutResult
{
Status
:
"completed"
,
Success
:
success
,
...
...
@@ -409,9 +409,9 @@ func (controller *ImportController) parserAndInsert(file *os.File, fileName stri
return
application
.
ThrowError
(
application
.
ARG_ERROR
,
"没有数据内容"
)
}
var
filenameWithSuffix
=
path
.
Base
(
fileName
)
var
fileSuffix
=
path
.
Ext
(
filenameWithSuffix
)
var
filenameOnly
=
strings
.
TrimSuffix
(
filenameWithSuffix
,
fileSuffix
)
var
nameWithSuffix
=
path
.
Base
(
fileName
)
var
suffix
=
path
.
Ext
(
nameWithSuffix
)
var
nameOnly
=
strings
.
TrimSuffix
(
nameWithSuffix
,
suffix
)
ruService
:=
service
.
NewEvaluationTemplateService
()
in
:=
&
templateCommand
.
CreateTemplateCommand
{}
...
...
@@ -419,7 +419,7 @@ func (controller *ImportController) parserAndInsert(file *os.File, fileName stri
ua
:=
middlewares
.
GetUser
(
controller
.
Ctx
)
in
.
CompanyId
=
ua
.
CompanyId
in
.
CreatorId
=
ua
.
UserId
in
.
Name
=
file
nameOnly
in
.
Name
=
nameOnly
in
.
Describe
=
""
in
.
NodeContents
=
list
...
...
请
注册
或
登录
后发表评论