切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
63bb712b465ac4c1e6cd9c7b269178255fd8eb8c
2 个父辈
3e9eafd8
dcbbedfd
Merge branch 'test' of
http://gitlab.fjmaimaimai.com/allied-creation/performance
into test
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
11 行增加
和
7 行删除
pkg/application/staff_assess/service/service_2.go
pkg/port/beego/controllers/staff_assess_controller.go
pkg/application/staff_assess/service/service_2.go
查看文件 @
63bb712
...
...
@@ -326,7 +326,8 @@ func (srv StaffAssessServeice) QueryMemberPerformanceIndicator(in *query.MemberP
}
adapterList
:=
make
([]
*
adapter
.
PerformanceIndicatorAdapter
,
0
)
categoryMap
:=
map
[
string
]
int
{}
// 内容分类
categoryMap
:=
map
[
string
]
int
{}
// 内容分类
categoryNameMap
:=
map
[
string
]
int
{}
// 内容名称
for
i
:=
range
userIds
{
userId
:=
userIds
[
i
]
userIdInt
,
err
:=
strconv
.
Atoi
(
userId
)
...
...
@@ -365,11 +366,15 @@ func (srv StaffAssessServeice) QueryMemberPerformanceIndicator(in *query.MemberP
// 内容名称有值合并到数组
if
len
(
item
.
Name
)
>
0
{
for
index
:=
range
pia
.
PIContents
{
piContent
:=
&
pia
.
PIContents
[
index
]
if
piContent
.
Category
==
item
.
Category
{
piContent
.
Names
=
append
(
piContent
.
Names
,
item
.
Name
)
break
onlyKey2
:=
userId
+
item
.
Category
+
item
.
Name
if
_
,
ok
:=
categoryNameMap
[
onlyKey2
];
!
ok
{
categoryNameMap
[
onlyKey2
]
=
0
for
index
:=
range
pia
.
PIContents
{
piContent
:=
&
pia
.
PIContents
[
index
]
if
piContent
.
Category
==
item
.
Category
{
piContent
.
Names
=
append
(
piContent
.
Names
,
item
.
Name
)
break
}
}
}
}
...
...
pkg/port/beego/controllers/staff_assess_controller.go
查看文件 @
63bb712
...
...
@@ -249,7 +249,6 @@ func (c *StaffAssessController) QueryMemberPerformanceIndicator() {
if
user
:=
middlewares
.
GetUser
(
c
.
Ctx
);
user
!=
nil
{
in
.
CompanyId
=
int
(
user
.
CompanyId
)
in
.
OperatorId
=
int
(
user
.
UserId
)
}
c
.
Response
(
srv
.
QueryMemberPerformanceIndicator
(
in
))
}
...
...
请
注册
或
登录
后发表评论