切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郑周
2 years ago
提交
e1f652c722f8f7aa9bf187ea0a71da256f987264
1 个父辈
1a3aeae0
1.优化命名
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
pkg/port/beego/controllers/import_controller.go
pkg/port/beego/controllers/import_controller.go
查看文件 @
e1f652c
...
...
@@ -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
...
...
请
注册
或
登录
后发表评论