切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
3ffb2a38405458a4caaf6acf2b45a4667f2c4442
2 个父辈
4e01d79a
daee1a31
Merge branch 'test' of
http://gitlab.fjmaimaimai.com/allied-creation/performance
into test
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
15 行增加
和
1 行删除
pkg/application/staff_assess/query/summary_query_member.go
pkg/application/staff_assess/service/service_2.go
pkg/infrastructure/dao/staff_assess_dao.go
pkg/application/staff_assess/query/summary_query_member.go
查看文件 @
3ffb2a3
...
...
@@ -24,6 +24,7 @@ type ExportPerformanceIndicatorCommand struct {
CycleId
int
`cname:"周期ID" json:"cycleId,string"`
Title
string
`cname:"标题" json:"title"`
Selected
[]
ExportSelected
`cname:"选中用户" json:"selected"`
BeginDays
[]
string
`cname:"选中日期" json:"beginDays"`
CompanyId
int
`cname:"公司ID" json:"companyId"`
OperatorId
int
`cname:"操作人ID" json:"operatorId"`
}
...
...
pkg/application/staff_assess/service/service_2.go
查看文件 @
3ffb2a3
...
...
@@ -356,6 +356,7 @@ func (srv StaffAssessServeice) ExportPerformanceIndicator(in *query.ExportPerfor
in
.
CompanyId
,
in
.
OperatorId
,
in
.
CycleId
,
in
.
BeginDays
,
hrbp
,
string
(
domain
.
AssessSelf
),
userIds
)
...
...
pkg/infrastructure/dao/staff_assess_dao.go
查看文件 @
3ffb2a3
...
...
@@ -842,7 +842,14 @@ type ExportPerformanceIndicator struct {
Remark
[]
domain
.
AssessContemtRemark
`json:"remark"`
// 评估内容填写反馈内容
}
func
(
d
*
StaffAssessDao
)
ExportPerformanceIndicator
(
companyId
int
,
operatorId
int
,
cycleId
int
,
hrbp
int
,
assessType
string
,
userIds
[]
string
)
([]
ExportPerformanceIndicator
,
error
)
{
func
(
d
*
StaffAssessDao
)
ExportPerformanceIndicator
(
companyId
int
,
operatorId
int
,
cycleId
int
,
beginDays
[]
string
,
hrbp
int
,
assessType
string
,
userIds
[]
string
)
([]
ExportPerformanceIndicator
,
error
)
{
sqlString
:=
`
set time zone 'PRC';
with t_user_department as (
...
...
@@ -947,6 +954,11 @@ func (d *StaffAssessDao) ExportPerformanceIndicator(companyId int, operatorId in
sqlString
+=
` and t_staff_assess_1.target_user_id in (?) `
condition
=
append
(
condition
,
pg
.
In
(
userIds
))
}
if
len
(
beginDays
)
>
0
{
sqlString
+=
` and t_staff_assess_1.begin_day in (?) `
condition
=
append
(
condition
,
pg
.
In
(
beginDays
))
}
//sqlString += ` order by convert_to(t_staff_assess_1.target_user_name,'GBK'), staff_assess_content.sort_by`
sqlString
+=
` order by t_staff_assess_1.begin_day`
...
...
请
注册
或
登录
后发表评论